@voltiso/transform
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -78,2 +78,5 @@ "use strict"; | ||
// return ts.visitEachChild(node, visitor, transformationContext) | ||
const oldShouldStrip = ctx.shouldStripBecauseOfSymbol; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
ctx.shouldStripBecauseOfSymbol = undefined; | ||
const result = ts.visitEachChild(node, visitor, transformationContext); | ||
@@ -98,6 +101,7 @@ const isCandidate = ts.isExpressionStatement(node) || ts.isVariableStatement(node); | ||
result = ts.addSyntheticLeadingComment(result, ts.SyntaxKind.MultiLineCommentTrivia, node.getText()); | ||
ctx.shouldStripBecauseOfSymbol = undefined; | ||
ctx.shouldStripBecauseOfSymbol = oldShouldStrip; | ||
return result; | ||
} | ||
} | ||
ctx.shouldStripBecauseOfSymbol ||= oldShouldStrip; | ||
return result; | ||
@@ -104,0 +108,0 @@ }; |
@@ -52,2 +52,5 @@ // ⠀ⓥ 2022 🌩 🌩 ⠀ ⠀ | ||
// return ts.visitEachChild(node, visitor, transformationContext) | ||
const oldShouldStrip = ctx.shouldStripBecauseOfSymbol; | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | ||
ctx.shouldStripBecauseOfSymbol = undefined; | ||
const result = ts.visitEachChild(node, visitor, transformationContext); | ||
@@ -72,6 +75,7 @@ const isCandidate = ts.isExpressionStatement(node) || ts.isVariableStatement(node); | ||
result = ts.addSyntheticLeadingComment(result, ts.SyntaxKind.MultiLineCommentTrivia, node.getText()); | ||
ctx.shouldStripBecauseOfSymbol = undefined; | ||
ctx.shouldStripBecauseOfSymbol = oldShouldStrip; | ||
return result; | ||
} | ||
} | ||
ctx.shouldStripBecauseOfSymbol ||= oldShouldStrip; | ||
return result; | ||
@@ -78,0 +82,0 @@ }; |
{ | ||
"name": "@voltiso/transform", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/voltiso/mono.git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
194096
2365