|
1 | | -// Aliyun OSS SDK for JavaScript v6.6.0 |
| 1 | +// Aliyun OSS SDK for JavaScript v6.7.0 |
2 | 2 | // Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved. |
3 | 3 | // License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE |
4 | 4 | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.OSS = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ |
@@ -1983,7 +1983,7 @@ proto._deleteFileSafe = function _deleteFileSafe(filepath) { |
1983 | 1983 | },{"../common/callback":12,"../common/image":14,"../common/object/copyObject":17,"../common/object/deleteObjectTagging":18,"../common/object/getObjectTagging":19,"../common/object/putObjectTagging":20,"../common/signUtils":22,"babel-runtime/core-js/object/keys":45,"babel-runtime/core-js/promise":46,"babel-runtime/regenerator":55,"copy-to":63,"fs":58,"is-type-of":223,"merge-descriptors":227,"mime":323,"path":236,"url":269,"utility":324}],5:[function(require,module,exports){ |
1984 | 1984 | "use strict"; |
1985 | 1985 |
|
1986 | | -exports.version = "6.6.0"; |
| 1986 | +exports.version = "6.7.0"; |
1987 | 1987 |
|
1988 | 1988 | },{}],6:[function(require,module,exports){ |
1989 | 1989 | 'use strict'; |
@@ -3628,9 +3628,15 @@ exports.authorization = function authorization(accessKeyId, accessKeySecret, can |
3628 | 3628 | * @param {String} resource |
3629 | 3629 | * @param {Number} expires |
3630 | 3630 | */ |
3631 | | -exports._signatureForURL = function _signatureForURL(accessKeySecret, options, resource, expires) { |
| 3631 | +exports._signatureForURL = function _signatureForURL(accessKeySecret) { |
| 3632 | + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 3633 | + var resource = arguments[2]; |
| 3634 | + var expires = arguments[3]; |
| 3635 | + |
3632 | 3636 | var headers = {}; |
3633 | | - var subResource = {}; |
| 3637 | + var _options$subResource = options.subResource, |
| 3638 | + subResource = _options$subResource === undefined ? {} : _options$subResource; |
| 3639 | + |
3634 | 3640 |
|
3635 | 3641 | if (options.process) { |
3636 | 3642 | var processKeyword = 'x-oss-process'; |
@@ -3658,8 +3664,6 @@ exports._signatureForURL = function _signatureForURL(accessKeySecret, options, r |
3658 | 3664 | headers[key] = value; |
3659 | 3665 | } else if (lowerKey.indexOf('content-type') === 0) { |
3660 | 3666 | headers[key] = value; |
3661 | | - } else if (lowerKey !== 'expires' && lowerKey !== 'response' && lowerKey !== 'process' && lowerKey !== 'method' && lowerKey !== 'trafficlimit') { |
3662 | | - subResource[lowerKey] = value; |
3663 | 3667 | } |
3664 | 3668 | }); |
3665 | 3669 |
|
|
0 commit comments