Socket
Socket
Sign inDemoInstall

@voltiso/transform

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voltiso/transform - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

6

dist/cjs/strip/stripTransform.js

@@ -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 @@ };

2

package.json
{
"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

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