Skip to content

Commit

Permalink
Add es6-promisify to replace bluebird promisify
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasnixell authored and lbalmaceda committed Aug 24, 2020
1 parent 84a4aa0 commit e65c1d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"dependencies": {
"axios": "^0.19.2",
"bluebird": "^3.5.5",
"es6-promisify": "^6.1.1",
"form-data": "^3.0.0",
"jsonwebtoken": "^8.5.1",
"jwks-rsa": "^1.8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/management/ManagementTokenProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var ArgumentError = require('rest-facade').ArgumentError;
var assign = Object.assign || require('object.assign');
var AuthenticationClient = require('../auth');
var memoizer = require('lru-memoizer');
var Promise = require('bluebird');
var es6Promisify = require('es6-promisify');

var DEFAULT_OPTIONS = { enableCache: true };

Expand Down Expand Up @@ -73,7 +73,7 @@ var ManagementTokenProvider = function(options) {
this.authenticationClient = new AuthenticationClient(authenticationClientOptions);

var self = this;
this.getCachedAccessToken = Promise.promisify(
this.getCachedAccessToken = es6Promisify.promisify(
memoizer({
load: function(options, callback) {
self
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ es6-promisify@^5.0.0:
dependencies:
es6-promise "^4.0.3"

es6-promisify@^6.0.0:
es6-promisify@^6.0.0, es6-promisify@^6.1.1:
version "6.1.1"
resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-6.1.1.tgz#46837651b7b06bf6fff893d03f29393668d01621"
integrity sha512-HBL8I3mIki5C1Cc9QjKUenHtnG0A5/xA8Q/AllRcfiwl2CZFXGK7ddBiCoRwAix4i2KxcQfjtIVcrVbB3vbmwg==
Expand Down

0 comments on commit e65c1d0

Please sign in to comment.