Comparing version 6.1.0 to 6.1.1
## CHANGE LOG | ||
### v6.1.1 | ||
2013-12-5 issue [#90](https://github.com/qiniu/nodejs-sdk/pull/90) | ||
- 创建buffer前检测 | ||
### v6.1.0 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "qiniu", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"test": "make test", | ||
"blanket": { | ||
"blanket": { | ||
"pattern": "qiniu/qiniu", | ||
@@ -14,0 +14,0 @@ "data-cover-flags": { |
@@ -30,5 +30,5 @@ var conf = require('./conf'); | ||
this.key = key || null; | ||
} | ||
} | ||
// onret: callback function instead of ret | ||
// onret: callback function instead of ret | ||
function put(uptoken, key, body, extra, onret) { | ||
@@ -63,5 +63,5 @@ if(!extra) { | ||
} | ||
var buf = Buffer.isBuffer(body) ? body : new Buffer(body); | ||
form.buffer('file', buf, key, extra.mimeType); | ||
form.buffer('file', new Buffer(body), key, extra.mimeType); | ||
//extra['checkcrc'] | ||
@@ -105,2 +105,1 @@ if (extra.checkCrc == 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
17463
463