v1.2.4: lighten the load
This commit is contained in:
parent
d962557b02
commit
df6b77daf5
|
@ -1,13 +1,21 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
var PromiseA;
|
||||||
|
try {
|
||||||
|
PromiseA = require('bluebird');
|
||||||
|
} catch(e) {
|
||||||
|
PromiseA = global.Promise;
|
||||||
|
}
|
||||||
|
var promisify = PromiseA.promisify || require('util').promisify;
|
||||||
|
|
||||||
//var OAUTH3 = require('./oauth3.core.js').OAUTH3;
|
//var OAUTH3 = require('./oauth3.core.js').OAUTH3;
|
||||||
var OAUTH3 = require('./oauth3.issuer.js').OAUTH3;
|
var OAUTH3 = require('./oauth3.issuer.js').OAUTH3;
|
||||||
// used for OAUTH3.urls.resourcePasswordOwner
|
// used for OAUTH3.urls.resourcePasswordOwner
|
||||||
// used for OAUTH3.authn.loginMeta
|
// used for OAUTH3.authn.loginMeta
|
||||||
// used for OAUTH3.authn.otp
|
// used for OAUTH3.authn.otp
|
||||||
// used for OAUTH3.authn.resourcePasswordOwner
|
// used for OAUTH3.authn.resourcePasswordOwner
|
||||||
var PromiseA = require('bluebird');
|
|
||||||
var requestAsync = PromiseA.promisify(require('request'));
|
var requestAsync = promisify(require('@coolaj86/urequest'));
|
||||||
var crypto = require('crypto');
|
var crypto = require('crypto');
|
||||||
|
|
||||||
OAUTH3.crypto = OAUTH3.crypto || {};
|
OAUTH3.crypto = OAUTH3.crypto || {};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "oauth3.js",
|
"name": "oauth3.js",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"description": "The world's smallest, fastest, and most secure OAuth3 (and OAuth2) JavaScript implementation.",
|
"description": "The world's smallest, fastest, and most secure OAuth3 (and OAuth2) JavaScript implementation.",
|
||||||
"main": "oauth3.node.js",
|
"main": "oauth3.node.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -32,9 +32,8 @@
|
||||||
"sign"
|
"sign"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bluebird": "^3.5.0",
|
"@coolaj86/urequest": "^1.3.6",
|
||||||
"elliptic": "^6.4.0",
|
"elliptic": "^6.4.0",
|
||||||
"request": "^2.81.0",
|
|
||||||
"terminal-forms.js": "git+https://git.oauth3.org/OAuth3/terminal-forms.js.git#v1"
|
"terminal-forms.js": "git+https://git.oauth3.org/OAuth3/terminal-forms.js.git#v1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -49,6 +48,9 @@
|
||||||
"pbkdf2": "^3.0.9",
|
"pbkdf2": "^3.0.9",
|
||||||
"vinyl-source-stream": "^1.1.0"
|
"vinyl-source-stream": "^1.1.0"
|
||||||
},
|
},
|
||||||
|
"trulyOptionalDependencies": {
|
||||||
|
"bluebird": "^3.5.0"
|
||||||
|
},
|
||||||
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
|
"author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)",
|
||||||
"license": "(MIT OR Apache-2.0)"
|
"license": "(MIT OR Apache-2.0)"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue