thunkify-wrap
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -60,7 +60,7 @@ /**! | ||
// thunkify benchmark | ||
// node version: v0.11.12, date: Thu Jul 10 2014 18:28:27 GMT+0800 (CST) | ||
// node version: v0.11.12, date: Thu Jul 10 2014 22:53:10 GMT+0800 (CST) | ||
// Starting... | ||
// | ||
// yield asyncThunk('a', 1) 1000000 times, use: 5976ms, qps: 167336.01070950468 | ||
// yield asyncGen('a', 1) 1000000 times, use: 15607ms, qps: 64073.81303261357 | ||
// yield* asyncGen('a', 1) 1000000 times, use: 9456ms, qps: 105752.96108291032 | ||
// yield asyncThunk('a', 1) 1000000 times, use: 5578ms, qps: 179275.72606669058 | ||
// yield asyncGen('a', 1) 1000000 times, use: 12610ms, qps: 79302.14115781126 | ||
// yield* asyncGen('a', 1) 1000000 times, use: 6817ms, qps: 146692.09329617134 |
1.1.0 / 2014-07-10 | ||
1.0.1 / 2014-07-10 | ||
================== | ||
* improve performance | ||
1.0.0 / 2014-07-10 | ||
================== | ||
* Merge pull request #1 from node-modules/genify | ||
@@ -6,0 +11,0 @@ * yield* asyncGen(a, 1) slow 1.5x than yield asyncThunk(a, 1) |
@@ -62,2 +62,4 @@ /**! | ||
var slice = Array.prototype.slice; | ||
/** | ||
@@ -76,3 +78,3 @@ * Wrap a regular callback `fn` as a thunk. | ||
function thunk() { | ||
var args = [].slice.call(arguments); | ||
var args = slice.call(arguments); | ||
var results; | ||
@@ -79,0 +81,0 @@ var called; |
{ | ||
"name": "thunkify-wrap", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "dead-horse/node-thunkify-wrap", | ||
@@ -5,0 +5,0 @@ "description": "Turn callbacks, arrays, generators, generator functions, and promises into a thunk", |
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
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
10299
246