@mongosh/async-rewriter2
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -52,3 +52,5 @@ "use strict"; | ||
} | ||
else if (path.isClassDeclaration() && path.parentPath.isProgram()) { | ||
else if (path.isClassDeclaration() && | ||
path.parentPath.isProgram() && | ||
path.node.id) { | ||
this.variables.push(path.node.id.name); | ||
@@ -55,0 +57,0 @@ this.movedStatements.push(t.expressionStatement(t.assignmentExpression('=', path.node.id, t.classExpression(path.node.id, path.node.superClass, path.node.body)))); |
{ | ||
"name": "@mongosh/async-rewriter2", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "MongoDB Shell Async Rewriter Package", | ||
@@ -58,3 +58,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "225d4603f0d43d500a8847beaa980e906e9a35be" | ||
"gitHead": "5737e60cdbcd551f6a355b38fc9b5b6cc19ac5a4" | ||
} |
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
272882
1788