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

suspend

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

suspend - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

test/suspend.callback.js

11

lib/suspend.js

@@ -1,2 +0,2 @@

var Promise = require('../node_modules/promise/lib/es6-extensions');
var Promise = require('promise/lib/es6-extensions');

@@ -27,5 +27,5 @@ /**

*/
suspend.async = function async(generator) {
suspend.callback = function callback(generator) {
if (!isGeneratorFunction(generator)) {
throw new Error('First .async() argument must be a GeneratorFunction.');
throw new Error('First .callback() argument must be a GeneratorFunction.');
}

@@ -217,7 +217,2 @@

}
// check if a thunk was yielded
if (typeof ret.value === 'function') {
ret.value(this.resume.bind(this));
}
};

@@ -224,0 +219,0 @@

@@ -6,3 +6,3 @@ {

"keywords": ["async", "generator", "yield", "callback", "promise", "flow", "control", "suspend"],
"version": "0.6.1",
"version": "0.7.0",
"repository": {

@@ -14,3 +14,3 @@ "type": "git",

"scripts": {
"test": "node ./node_modules/mocha/bin/mocha --harmony-generators --reporter list",
"test": "node ./node_modules/mocha/bin/mocha --harmony --reporter list",
"test-es5": "node test-es5/run.js"

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