Socket
Socket
Sign inDemoInstall

degenerator

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

degenerator - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

6

./dist/index.js

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

} while (lastNamesLength !== names.length);
// Second pass is for adding `await`/`yield` statements to any function
// Second pass is for adding `await` statements to any function
// invocations that match the given `names` array.

@@ -90,3 +90,3 @@ (0, ast_types_1.visit)(ast, {

// A "function invocation" expression,
// we need to inject a `AwaitExpression`/`YieldExpression`
// we need to inject an `AwaitExpression`
const delegate = false;

@@ -177,3 +177,3 @@ const { name, parent: { node: pNode }, } = path;

const n = names[i];
if ((0, util_1.isRegExp)(n)) {
if (util_1.types.isRegExp(n)) {
if (n.test(name)) {

@@ -180,0 +180,0 @@ return true;

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

} while (lastNamesLength !== names.length);
// Second pass is for adding `await`/`yield` statements to any function
// Second pass is for adding `await` statements to any function
// invocations that match the given `names` array.

@@ -90,3 +90,3 @@ (0, ast_types_1.visit)(ast, {

// A "function invocation" expression,
// we need to inject a `AwaitExpression`/`YieldExpression`
// we need to inject an `AwaitExpression`
const delegate = false;

@@ -177,3 +177,3 @@ const { name, parent: { node: pNode }, } = path;

const n = names[i];
if ((0, util_1.isRegExp)(n)) {
if (util_1.types.isRegExp(n)) {
if (n.test(name)) {

@@ -180,0 +180,0 @@ return true;

{
"name": "degenerator",
"version": "4.0.1",
"version": "4.0.2",
"description": "Compiles sync functions into async generator functions",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

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