degenerator
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25422