Skip to content

Commit

Permalink
bump: 1.0.0-rc.40
Browse files Browse the repository at this point in the history
  • Loading branch information
lurunze1226 committed Jun 19, 2023
1 parent e853676 commit abcbed9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 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)

- BosClient: Add 'x-bce-security-token' when using generatePresignedUrl with sessionToken;
Expand Down
11 changes: 6 additions & 5 deletions dist/baidubce-sdk.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -52164,7 +52164,7 @@ arguments[4][21][0].apply(exports,arguments)
},{"./support/isBuffer":245,"_process":202,"dup":21,"inherits":244}],247:[function(require,module,exports){
module.exports={
"name": "@baiducloud/sdk",
"version": "1.0.0-rc.39",
"version": "1.0.0-rc.40",
"description": "Baidu Cloud Engine JavaScript SDK",
"main": "./index.js",
"browser": {
Expand Down Expand Up @@ -53194,15 +53194,17 @@ BosClient.prototype.generatePresignedUrl = function (bucketName, key, timestamp,

var credentials = config.credentials;
var auth = new Auth(credentials.ak, credentials.sk);

if (config.sessionToken) {
params['x-bce-security-token'] = config.sessionToken;
}

var authorization = auth.generateAuthorization(
'GET', resource, params, headers, timestamp, expirationInSeconds,
headersToSign);

params.authorization = authorization;

if (config.sessionToken) {
params['x-bce-security-token'] = config.sessionToken;
}

return util.format('%s%s?%s', config.endpoint, resource, qs.encode(params));
};
Expand Down Expand Up @@ -54761,7 +54763,6 @@ BosClient.prototype.sendHTTPRequest = function (httpMethod, resource, args, conf

function doRequest() {
var agent = this._httpAgent = new HttpClient(config);

var httpContext = {
httpMethod: httpMethod,
resource: resource,
Expand Down
2 changes: 1 addition & 1 deletion dist/baidubce-sdk.bundle.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abcbed9

Please sign in to comment.