Socket
Socket
Sign inDemoInstall

@mongosh/async-rewriter2

Package Overview
Dependencies
Maintainers
10
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/async-rewriter2 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

lib/stages/transform-maybe-await.js

@@ -238,2 +238,3 @@ "use strict";

enter(path) {
var _a, _b;
if (path.parentPath.isArrowFunctionExpression() && path.key === 'body') {

@@ -244,2 +245,5 @@ path.replaceWith(t.blockStatement([

}
if ((_b = (_a = path.find(path => path.isFunction() || !!path.node[isGeneratedHelper])) === null || _a === void 0 ? void 0 : _a.node) === null || _b === void 0 ? void 0 : _b[isGeneratedHelper]) {
return path.skip();
}
},

@@ -270,5 +274,2 @@ exit(path) {

}
if (path.find(path => path.isFunction() || !!path.node[isGeneratedHelper]).node[isGeneratedHelper]) {
return;
}
if (path.parentPath.isCallExpression() &&

@@ -327,2 +328,3 @@ path.key === 'callee' &&

}), { [isGeneratedHelper]: true }));
path.skip();
}

@@ -329,0 +331,0 @@ },

@@ -66,3 +66,4 @@ "use strict";

if (path.node.directives.length === 1 &&
path.node.directives[0].value.type === 'DirectiveLiteral') {
path.node.directives[0].value.type === 'DirectiveLiteral' &&
path.node.body.length === 0) {
path.replaceWith(t.program([

@@ -83,3 +84,3 @@ t.expressionStatement(t.stringLiteral(path.node.directives[0].value.value))

t.expressionStatement(t.callExpression(t.arrowFunctionExpression([], t.blockStatement(this.movedStatements)), []))
]));
], path.node.directives));
}

@@ -86,0 +87,0 @@ },

{
"name": "@mongosh/async-rewriter2",
"version": "1.0.0",
"version": "1.0.1",
"description": "MongoDB Shell Async Rewriter Package",

@@ -37,3 +37,3 @@ "main": "./lib/index.js",

},
"gitHead": "fe7811b4af0d4553a2405a4912d548607c2cd515"
"gitHead": "2f34d96bc82a6f4ca7e3dad61a8e141272b036e4"
}

Sorry, the diff of this file is not supported yet

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