Comparing version 0.0.1 to 0.0.2
@@ -342,3 +342,9 @@ /*! | ||
function* requestError(res) { | ||
var message = res.data.toString(); | ||
if (res.status === 404) { | ||
var err = new Error('resource not found'); | ||
err.status = 404; | ||
return err; | ||
} | ||
var message = String(res.data); | ||
debug('request response error data: %s', message); | ||
@@ -345,0 +351,0 @@ |
{ | ||
"name": "ali-oss", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -32,3 +32,4 @@ "main": "index.js", | ||
"mocha": "*", | ||
"should": "*" | ||
"should": "*", | ||
"istanbul-harmony": "*" | ||
}, | ||
@@ -35,0 +36,0 @@ "dependencies": { |
@@ -82,3 +82,3 @@ ali-oss | ||
if you do not use node v0.11+ or do not use `node --harmony`. | ||
this module will use [regenerator](/facebook/regenerator) to convert to es5 style. | ||
this module will use [regenerator](https://github.com/facebook/regenerator) to convert to es5 style. | ||
so you only need to use co wrap the generator function into callback style: | ||
@@ -85,0 +85,0 @@ |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
36652
1134
7
44962
11
2