Comparing version 4.7.3 to 4.8.0
4.8.0 / 2017-01-19 | ||
================== | ||
* feat: support VPC region #181 (#183) | ||
* fix comment typo and add object check to avoid call properties of null object (#176) | ||
4.7.3 / 2017-01-06 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -506,4 +506,8 @@ 'use strict'; | ||
var suffix = internal ? '-internal.aliyuncs.com' : '.aliyuncs.com'; | ||
// aliyun VPC region: https://help.aliyun.com/knowledge_detail/38740.html | ||
if (region.startsWith('vpc100-oss-cn-')) { | ||
suffix = '.aliyuncs.com'; | ||
} | ||
return urlutil.parse(protocol + region + suffix); | ||
} |
@@ -20,3 +20,3 @@ 'use strict'; | ||
/** | ||
* Upload an file to OSS using multipart uploads | ||
* Upload a file to OSS using multipart uploads | ||
* @param {String} name | ||
@@ -340,3 +340,3 @@ * @param {String|File} file | ||
var pushRet = true; | ||
while (this.start < this.fileBuffer.length && pushRet) { | ||
while (pushRet && this.fileBuffer && this.start < this.fileBuffer.length) { | ||
var start = this.start; | ||
@@ -343,0 +343,0 @@ var end = start + size; |
{ | ||
"name": "ali-oss", | ||
"version": "4.7.3", | ||
"version": "4.8.0", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -5,0 +5,0 @@ "main": "lib/client.js", |
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
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
139279
2039
0