Updating NPM dependencies
This commit is contained in:
4
node_modules/@babel/traverse/lib/path/replacement.js
generated
vendored
4
node_modules/@babel/traverse/lib/path/replacement.js
generated
vendored
@@ -172,7 +172,7 @@ function _replaceWith(node) {
|
||||
t.validate(this.parent, this.key, node);
|
||||
}
|
||||
|
||||
this.debug(`Replace with ${node && node.type}`);
|
||||
this.debug(`Replace with ${node == null ? void 0 : node.type}`);
|
||||
this.node = this.container[this.key] = node;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ function replaceExpressionWithStatements(nodes) {
|
||||
}
|
||||
|
||||
const functionParent = this.getFunctionParent();
|
||||
const isParentAsync = functionParent && functionParent.is("async");
|
||||
const isParentAsync = functionParent == null ? void 0 : functionParent.is("async");
|
||||
const container = t.arrowFunctionExpression([], t.blockStatement(nodes));
|
||||
this.replaceWith(t.callExpression(container, []));
|
||||
this.traverse(hoistVariablesVisitor);
|
||||
|
||||
Reference in New Issue
Block a user