youzanyun-sdk-nodejs
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -28,3 +28,3 @@ /** | ||
const Breakdown = require('./breakdown'); | ||
const { NEED_PREVENT_BREAKDOWN, OPEN_HOST, QA_OPEN_HOST } = require('./config'); | ||
const { NEED_PREVENT_BREAKDOWN, OPEN_HOST, QA_OPEN_HOST, PRE_OPEN_HOST } = require('./config'); | ||
const packageJson = require('./package.json'); | ||
@@ -35,3 +35,3 @@ | ||
this._httpClient = httpClient; | ||
this._openHost = openHost || QA_OPEN_HOST; | ||
this._openHost = openHost || PRE_OPEN_HOST; | ||
this._tokenCache = new TokenCache(); | ||
@@ -38,0 +38,0 @@ this._breakdown = new Breakdown(); |
@@ -5,2 +5,4 @@ exports.OPEN_HOST = 'open.youzanyun.com'; | ||
exports.QA_OPEN_HOST = 'bifrost-gateway.qa.s.qima-inc.com'; | ||
exports.PRE_TOKEN_HOST = 'bifrost-oauth.pre.s.qima-inc.com'; | ||
exports.PRE_OPEN_HOST = 'open-pre.youzanyun.com'; | ||
/** 需要防击穿的场景 */ | ||
@@ -7,0 +9,0 @@ exports.NEED_PREVENT_BREAKDOWN = [ |
{ | ||
"name": "youzanyun-sdk-nodejs", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "有赞云 nodejs sdk", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const config = require('./config'); | ||
const Type_GetCloudToolToken = 'authorization_code'; | ||
const Type_RefreshCloudToolToken = 'refresh_token'; | ||
const Type_RefreshCloudSelfToken = 'silent'; | ||
// const Type_GetCloudToolToken = 'authorization_code'; | ||
// const Type_RefreshCloudToolToken = 'refresh_token'; | ||
// const Type_RefreshCloudSelfToken = 'silent'; | ||
const Type_CloudFunction = 'cloud_function'; | ||
@@ -32,3 +32,3 @@ | ||
this.httpClient = httpClient; | ||
this.requestTokenUrl = `https://${tokenHost || config.QA_TOKEN_HOST}/auth/token`; | ||
this.requestTokenUrl = `https://${tokenHost || config.PRE_TOKEN_HOST}/auth/token`; | ||
} | ||
@@ -35,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14237
456