lib/condenser/processors/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js in condenser-0.0.4 vs lib/condenser/processors/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js in condenser-0.0.5
- old
+ new
@@ -2,11 +2,11 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.hooks = void 0;
-var hooks = [function (self, parent) {
- var removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
+const hooks = [function (self, parent) {
+ const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
if (removeParent) {
parent.remove();
return true;
}
\ No newline at end of file