Comparing version 6.1.5 to 6.1.6
## CHANGE LOG | ||
### v6.1.6 | ||
2014-10-31 | ||
- 增加fsizelimit, insertonly | ||
### v6.1.5 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "qiniu", | ||
"version": "6.1.5", | ||
"version": "6.1.6", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -206,2 +206,8 @@ | ||
flags['deadline'] = this.expires + Math.floor(Date.now() / 1000); | ||
if (this.fsizeLimit != null) { | ||
flags['fsizeLimit'] = this.fsizeLimit; | ||
} | ||
if (this.insertOnly != null) { | ||
flags['insertOnly'] = this.insertOnly; | ||
} | ||
return flags; | ||
@@ -234,6 +240,6 @@ } | ||
} | ||
function makeBaseUrl(domain, key) { | ||
// query like '-thumbnail', '?imageMogr2/thumbnail/960x' and so on | ||
function makeBaseUrl(domain, key, query) { | ||
key = new Buffer(key); | ||
return 'http://' + domain + '/' + querystring.escape(key); | ||
return 'http://' + domain + '/' + querystring.escape(key) + (query||''); | ||
} |
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
25887
528