thunkify-wrap
Advanced tools
Comparing version 0.0.4 to 0.0.5
n.n.n / 2014-03-05 | ||
0.0.5 / 2014-03-06 | ||
================== | ||
* check repeat thunkify | ||
0.0.4 / 2014-03-05 | ||
================== | ||
* add event in readme | ||
@@ -9,3 +14,3 @@ * add test for event | ||
n.n.n / 2014-02-28 | ||
0.0.3 / 2014-02-28 | ||
================== | ||
@@ -12,0 +17,0 @@ |
@@ -65,3 +65,6 @@ /**! | ||
function thunkify(fn, ctx) { | ||
return function(){ | ||
if (fn.toString() === thunk.toString()) { | ||
return fn; | ||
} | ||
function thunk() { | ||
var args = [].slice.call(arguments); | ||
@@ -91,3 +94,4 @@ var results; | ||
}; | ||
}; | ||
} | ||
return thunk; | ||
} | ||
@@ -94,0 +98,0 @@ |
{ | ||
"name": "thunkify-wrap", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": "dead-horse/node-thunkify-wrap", | ||
@@ -5,0 +5,0 @@ "description": "Turn callbacks, arrays, generators, generator functions, and promises into a thunk", |
@@ -7,5 +7,8 @@ | ||
describe('thunkify(object)', function(){ | ||
describe.only('thunkify(object)', function(){ | ||
before(function () { | ||
thunkify(read); | ||
// thunkify twice still ok | ||
thunkify(read); | ||
console.log(read.async.toString()); | ||
}); | ||
@@ -12,0 +15,0 @@ |
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
13741
396