@baiducloud/sdk
Advanced tools
Comparing version 1.0.0-rc.39 to 1.0.0-rc.40
# CHANGELOG | ||
## 1.0.0-rc.40(2023-06-19) | ||
- BosClient: 'x-bce-security-token' considered in auth token. | ||
## 1.0.0-rc.39(2023-06-16) | ||
@@ -3,0 +8,0 @@ |
{ | ||
"name": "@baiducloud/sdk", | ||
"version": "1.0.0-rc.39", | ||
"version": "1.0.0-rc.40", | ||
"description": "Baidu Cloud Engine JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -109,2 +109,7 @@ /** | ||
var auth = new Auth(credentials.ak, credentials.sk); | ||
if (config.sessionToken) { | ||
params['x-bce-security-token'] = config.sessionToken; | ||
} | ||
var authorization = auth.generateAuthorization( | ||
@@ -116,5 +121,2 @@ 'GET', resource, params, headers, timestamp, expirationInSeconds, | ||
if (config.sessionToken) { | ||
params['x-bce-security-token'] = config.sessionToken; | ||
} | ||
@@ -1678,3 +1680,2 @@ return util.format('%s%s?%s', config.endpoint, resource, qs.encode(params)); | ||
var agent = this._httpAgent = new HttpClient(config); | ||
var httpContext = { | ||
@@ -1681,0 +1682,0 @@ httpMethod: httpMethod, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3260522