Comparing version 2.0.0 to 2.1.0
2.1.0 / 2015-03-23 | ||
================== | ||
* feat: add getStream*() api | ||
2.0.0 / 2015-02-28 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -155,2 +155,3 @@ /**! | ||
* - {String} [mime] | ||
* - {Boolean} [customResponse] | ||
* | ||
@@ -209,3 +210,4 @@ * @api private | ||
timeout: timeout, | ||
writeStream: params.writeStream | ||
writeStream: params.writeStream, | ||
customResponse: params.customResponse, | ||
}; | ||
@@ -212,0 +214,0 @@ var result = yield urllib.requestThunk(url, reqParams); |
@@ -138,2 +138,23 @@ /**! | ||
proto.getStream = function* (name, options) { | ||
name = this._objectName(name); | ||
options = options || {}; | ||
var result = yield* this.request({ | ||
name: name, | ||
headers: options.headers, | ||
timeout: options.timeout, | ||
method: 'GET', | ||
successStatuses: [200, 304], | ||
customResponse: true, | ||
}); | ||
return { | ||
stream: result.res, | ||
res: { | ||
status: result.status, | ||
headers: result.headers | ||
} | ||
}; | ||
}; | ||
proto.delete = function* (name, options) { | ||
@@ -140,0 +161,0 @@ name = this._objectName(name); |
{ | ||
"name": "ali-oss", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,2 +68,3 @@ ali-oss | ||
- [x] get* | ||
- [x] getStream* | ||
- [x] head* | ||
@@ -70,0 +71,0 @@ - [x] copy* |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32291
944
79