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

syncho

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

syncho - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "syncho",
"version": "0.0.1",
"version": "0.0.2",
"description": "Fast and lean abstraction for node Fibers. Easily run asynchronous functions synchronously.",

@@ -5,0 +5,0 @@ "author": "Jerome Touffe-Blin <jtblin@gmail.com> (http://about.me/jtblin)",

@@ -67,11 +67,15 @@ (function () {

return function (/* arguments */) {
var cb = arguments[arguments.length-1];
delete arguments[--arguments.length];
var args = arguments, cb = args[args.length-1];
if (typeof cb !== 'function') throw new Error('Must pass a callback function to async functions');
try {
cb(null, fn.apply(cxt, arguments));
}
catch (err) {
cb(err);
}
delete args[--args.length];
process.nextTick(function () {
Sync(function () {
try {
cb(null, fn.apply(cxt, args));
}
catch (err) {
cb(err);
}
});
});
}

@@ -78,0 +82,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