diff --git a/package.json b/package.json index cde9c20e4..c6af84938 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "homepage": "https://github.com/auth0/node-auth0", "dependencies": { "axios": "^0.19.2", - "bluebird": "^3.5.5", "es6-promisify": "^6.1.1", "form-data": "^3.0.0", "jsonwebtoken": "^8.5.1", diff --git a/src/Auth0RestClient.js b/src/Auth0RestClient.js index 019fabe19..a9a2e1446 100644 --- a/src/Auth0RestClient.js +++ b/src/Auth0RestClient.js @@ -1,5 +1,4 @@ var RestClient = require('rest-facade').Client; -var Promise = require('bluebird'); var ArgumentError = require('rest-facade').ArgumentError; var utils = require('./utils'); diff --git a/src/RetryRestClient.js b/src/RetryRestClient.js index 28ea9cf43..74b58cc85 100644 --- a/src/RetryRestClient.js +++ b/src/RetryRestClient.js @@ -1,4 +1,3 @@ -var Promise = require('bluebird'); var retry = require('retry'); var ArgumentError = require('rest-facade').ArgumentError; var assign = Object.assign || require('object.assign'); diff --git a/src/auth/OAUthWithIDTokenValidation.js b/src/auth/OAUthWithIDTokenValidation.js index aee4ec045..bac2b321b 100644 --- a/src/auth/OAUthWithIDTokenValidation.js +++ b/src/auth/OAUthWithIDTokenValidation.js @@ -1,6 +1,5 @@ var jwt = require('jsonwebtoken'); var jwksClient = require('jwks-rsa'); -var Promise = require('bluebird'); var ArgumentError = require('rest-facade').ArgumentError; var validateIdToken = require('./idToken').validate; diff --git a/src/management/JobsManager.js b/src/management/JobsManager.js index bdded4099..14b96808e 100644 --- a/src/management/JobsManager.js +++ b/src/management/JobsManager.js @@ -1,6 +1,5 @@ var axios = require('axios'); var extend = require('util')._extend; -var Promise = require('bluebird'); var FormData = require('form-data'); var fs = require('fs'); diff --git a/src/utils.js b/src/utils.js index 3f534e4f8..fe545b9df 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,3 @@ -var Promise = require('bluebird'); var pkg = require('../package.json'); /** diff --git a/test/auth/oauth-with-idtoken-validation.tests.js b/test/auth/oauth-with-idtoken-validation.tests.js index 07b5cfaad..f43b4202d 100644 --- a/test/auth/oauth-with-idtoken-validation.tests.js +++ b/test/auth/oauth-with-idtoken-validation.tests.js @@ -1,5 +1,4 @@ var expect = require('chai').expect; -var Promise = require('bluebird'); var sinon = require('sinon'); var proxyquire = require('proxyquire'); diff --git a/test/auth/oauth.tests.js b/test/auth/oauth.tests.js index 73dbc5281..6219d59d6 100644 --- a/test/auth/oauth.tests.js +++ b/test/auth/oauth.tests.js @@ -1,7 +1,6 @@ var expect = require('chai').expect; var extend = require('util')._extend; var nock = require('nock'); -var Promise = require('bluebird'); var sinon = require('sinon'); // Constants. diff --git a/test/management/client-grants.tests.js b/test/management/client-grants.tests.js index 08a27ca52..10cca2184 100644 --- a/test/management/client-grants.tests.js +++ b/test/management/client-grants.tests.js @@ -1,6 +1,5 @@ var expect = require('chai').expect; var nock = require('nock'); -var Promise = require('bluebird'); var SRC_DIR = '../../src'; var API_URL = 'https://tenant.auth0.com'; diff --git a/test/management/client.tests.js b/test/management/client.tests.js index e3325c277..34b0be9b4 100644 --- a/test/management/client.tests.js +++ b/test/management/client.tests.js @@ -1,6 +1,5 @@ var expect = require('chai').expect; var nock = require('nock'); -var Promise = require('bluebird'); var SRC_DIR = '../../src'; var API_URL = 'https://tenant.auth0.com'; diff --git a/test/management/grants.tests.js b/test/management/grants.tests.js index 665a34a7f..a2ec904db 100644 --- a/test/management/grants.tests.js +++ b/test/management/grants.tests.js @@ -1,6 +1,5 @@ var expect = require('chai').expect; var nock = require('nock'); -var Promise = require('bluebird'); var SRC_DIR = '../../src'; var API_URL = 'https://tenant.auth0.com'; diff --git a/test/management/resource-servers.tests.js b/test/management/resource-servers.tests.js index 829a35233..0b9af30f3 100644 --- a/test/management/resource-servers.tests.js +++ b/test/management/resource-servers.tests.js @@ -1,6 +1,5 @@ var expect = require('chai').expect; var nock = require('nock'); -var Promise = require('bluebird'); var SRC_DIR = '../../src'; var API_URL = 'https://tenant.auth0.com'; diff --git a/test/retry-rest-client.tests.js b/test/retry-rest-client.tests.js index e6e7ec366..67c35249d 100644 --- a/test/retry-rest-client.tests.js +++ b/test/retry-rest-client.tests.js @@ -1,7 +1,6 @@ var expect = require('chai').expect; var nock = require('nock'); -var Promise = require('bluebird'); var ArgumentError = require('rest-facade').ArgumentError; var RestClient = require('rest-facade').Client; var RetryRestClient = require('../src/RetryRestClient');