Comparing version 0.0.3-1 to 0.0.3-2
21
chain.js
@@ -117,2 +117,3 @@ /* | ||
} | ||
return chain; | ||
@@ -183,3 +184,3 @@ } | ||
else { | ||
return _data; | ||
return util.extend(_data); | ||
} | ||
@@ -316,2 +317,14 @@ }, | ||
/** | ||
* Object extend api | ||
**/ | ||
extend: function (obj, extObj) { | ||
this.each(extObj, function (value, key) { | ||
if (extObj.hasOwnProperty(key)) { | ||
obj[key] = value; | ||
} | ||
}); | ||
return obj; | ||
}, | ||
/** | ||
* function call simple encapsulation | ||
@@ -322,3 +335,7 @@ */ | ||
args = args.pop(); | ||
handler.apply(context, args); | ||
try { | ||
handler.apply(context, args); | ||
} catch (e) { | ||
} | ||
} | ||
@@ -325,0 +342,0 @@ } |
## ChangeLog for: chainjs | ||
## Version 0.0.3 - 2014/11/11 | ||
## Version 0.0.3-2 - 2014/1/17 | ||
- [Fix bug]: data() api using extend to export chain data instead of return private data variable | ||
## Version 0.0.3 - 2014/1/1 | ||
- [Feature]: Add Chain.sham api, for calling chain step-handler normally | ||
@@ -6,0 +10,0 @@ |
{ | ||
"name": "chainjs", | ||
"version": "0.0.3-1", | ||
"version": "0.0.3-2", | ||
"description": "Chainjs call each async function step by step, let async function callback fairily.", | ||
@@ -5,0 +5,0 @@ "main": "chain.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
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
39882
12
1064
0