Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

thunkify-wrap

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thunkify-wrap - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

9

History.md
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc