Comparing version 4.4.0 to 4.4.1
4.4.1 / 2016-05-04 | ||
================== | ||
* fix: Correctly parse Put/MultipartUpload response when using upload callback (#104) | ||
* chore(package): update babel-plugin-transform-runtime to version 6.8.0 (#103) | ||
4.4.0 / 2016-04-28 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -253,12 +253,20 @@ /**! | ||
params.content = xml; | ||
params.xmlResponse = true; | ||
if (!(options.headers && options.headers['x-oss-callback'])) { | ||
params.xmlResponse = true; | ||
} | ||
params.successStatuses = [200]; | ||
var result = yield this.request(params); | ||
return { | ||
var ret = { | ||
res: result.res, | ||
bucket: result.data.Bucket, | ||
name: result.data.Key, | ||
etag: result.data.ETag | ||
bucket: params.bucket, | ||
name: name, | ||
etag: result.res.headers['etag'] | ||
}; | ||
if (options.headers && options.headers['x-oss-callback']) { | ||
ret.data = JSON.parse(result.data.toString()); | ||
} | ||
return ret; | ||
}; | ||
@@ -265,0 +273,0 @@ |
@@ -68,3 +68,3 @@ /** | ||
return { | ||
var ret = { | ||
name: name, | ||
@@ -74,2 +74,8 @@ url: this._objectUrl(name), | ||
}; | ||
if (options.headers && options.headers['x-oss-callback']) { | ||
ret.data = JSON.parse(result.data.toString()); | ||
} | ||
return ret; | ||
}; | ||
@@ -102,3 +108,3 @@ | ||
return { | ||
var ret = { | ||
name: name, | ||
@@ -108,2 +114,8 @@ url: this._objectUrl(name), | ||
}; | ||
if (options.headers && options.headers['x-oss-callback']) { | ||
ret.data = JSON.parse(result.data.toString()); | ||
} | ||
return ret; | ||
}; | ||
@@ -110,0 +122,0 @@ |
{ | ||
"name": "ali-oss", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -46,3 +46,3 @@ "main": "lib/client.js", | ||
"autod": "^2.4.2", | ||
"babel-plugin-transform-runtime": "^6.7.5", | ||
"babel-plugin-transform-runtime": "^6.8.0", | ||
"babel-preset-es2015": "^6.3.13", | ||
@@ -49,0 +49,0 @@ "babel-runtime": "^6.6.1", |
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
132605
2014