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.1.0 to 0.1.1

5

History.md
0.1.1 / 2014-03-18
==================
* update thunkify.event, fix unremove listener error
0.1.0 / 2014-03-17

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

22

index.js

@@ -111,3 +111,7 @@ /**!

function _done(err, data) {
e.removeListener('error', error);
if (called) {
return;
}
called = true;
e.removeListener('error', _done);
endEvents.forEach(function (name) {

@@ -119,19 +123,7 @@ e.removeListener(name, end);

function error(err) {
if (called) {
return;
}
called = true;
done(err);
}
function end(data) {
if (called) {
return;
}
called = true;
done(null, data);
_done(null, data);
}
e.once('error', error);
e.once('error', _done);
endEvents.forEach(function (name) {

@@ -138,0 +130,0 @@ e.once(name, end);

{
"name": "thunkify-wrap",
"version": "0.1.0",
"version": "0.1.1",
"repository": "dead-horse/node-thunkify-wrap",

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

@@ -7,3 +7,3 @@

describe.only('thunkify(object)', function(){
describe('thunkify(object)', function(){
before(function () {

@@ -10,0 +10,0 @@ thunkify(read);

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