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

aa

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aa - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

README.md

17

aa.js

@@ -101,3 +101,3 @@ // aa.js - async-await.js

// is generator function? then get generator.
if (gtor && gtor.constructor === GeneratorFunction)
if (isGeneratorFunction(gtor))
gtor = gtor.apply(ctx, args);

@@ -151,6 +151,6 @@

if (value.constructor === GeneratorFunction)
if (isGeneratorFunction(value))
value = value.apply(ctx, args);
if (value.constructor === GeneratorFunctionPrototype || isGenerator(value))
if (isGenerator(value))
return aa.call(ctx, value)(callback);

@@ -217,3 +217,6 @@

function isGeneratorFunction(gtor) {
return !!gtor && gtor.constructor === GeneratorFunction;
if (!gtor) return false;
var ctor = gtor.constructor;
return ctor === GeneratorFunction ||
(ctor.displayName || ctor.name) === 'GeneratorFunction';
}

@@ -223,3 +226,7 @@

function isGenerator(gtor) {
return !!gtor && (gtor.constructor === GeneratorFunctionPrototype || gtor.next === 'function');
if (!gtor) return false;
var ctor = gtor.constructor;
return ctor === GeneratorFunctionPrototype ||
(ctor.displayName || ctor.name) === 'GeneratorFunctionPrototype' ||
typeof gtor.next === 'function';
}

@@ -226,0 +233,0 @@

{
"name": "aa",
"version": "0.1.13",
"version": "0.1.14",
"description": "aa - Async-Await. co like library, go like channel, thunkify or promisefy wrap package",

@@ -5,0 +5,0 @@ "main": "aa.js",

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