Socket
Socket
Sign inDemoInstall

thunkify-wrap

Package Overview
Dependencies
Maintainers
2
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 1.0.1 to 1.0.2

5

History.md
1.0.2 / 2014-07-31
==================
* is generator function filter
1.0.1 / 2014-07-10

@@ -3,0 +8,0 @@ ==================

11

index.js

@@ -73,2 +73,6 @@ /**!

function thunkify(fn, ctx) {
if (isGeneratorFunction(fn)) {
return fn;
}
if (fn.toString() === thunk.toString()) {

@@ -115,5 +119,6 @@ return fn;

function genify(fn, ctx) {
if (fn.constructor.name === 'GeneratorFunction') {
if (isGeneratorFunction(fn)) {
return fn;
}
function* genify() {

@@ -179,1 +184,5 @@ var thunk = thunkify(fn);

};
function isGeneratorFunction(fn) {
return typeof fn === 'function' && fn.constructor.name === 'GeneratorFunction';
}

2

package.json
{
"name": "thunkify-wrap",
"version": "1.0.1",
"version": "1.0.2",
"repository": "dead-horse/node-thunkify-wrap",

@@ -5,0 +5,0 @@ "description": "Turn callbacks, arrays, generators, generator functions, and promises into a thunk",

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