New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

double-done

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

double-done - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

2

index.js

@@ -24,3 +24,3 @@ "use strict";

try { ret = func(); }
catch(e) { return done(e); }
catch(e) { return process.nextTick(done.bind(null, e)); }

@@ -27,0 +27,0 @@ callbackOk(ret);

{
"name": "double-done",
"version": "0.0.5",
"version": "0.1.0",
"description": "Double Done design pattern",

@@ -15,8 +15,8 @@ "scripts": {

"keywords": [
"async",
"pattern",
"design",
"done",
"callback",
"asynchronous",
"callback",
"done",
"design",
"pattern"
"async"
],

@@ -23,0 +23,0 @@ "engines": {

@@ -161,8 +161,8 @@ # double-done

function myAsyncFunction(param1, done, doneOk) {
doneOk = dd(done, doneOk);
var ret;
doneOk = dd(done, doneOk);
try { ret = throwingFunction(param1); }
catch(e) { return done(e); }
catch(e) { return process.nextTick(done.bind(null, e)); }

@@ -201,2 +201,4 @@ doneOk(somethingElse(ret));

* 2017-01-19 - v0.1.0
* Fixed documentation
* 2017-01-18 - v0.0.5

@@ -203,0 +205,0 @@ * Added doneOk.try

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