Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-replace-expressions

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-replace-expressions - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

index.js

@@ -11,3 +11,3 @@ const { parseExpression } = require("@babel/parser");

function sanitizedNode(node) {
const { comments, loc, start, end, ...rest } = node;
const { comments, loc, start, end, extra, ...rest } = node;
return rest;

@@ -58,3 +58,3 @@ }

visitor: {
Expression(path, state) {
Expression(path) {
if (replacementNodes.has(path.node)) {

@@ -61,0 +61,0 @@ path.skip();

{
"name": "babel-plugin-transform-replace-expressions",
"version": "0.0.1",
"version": "0.0.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,3 +30,3 @@ # babel-plugin-transform-replace-expressions

"process.env.NODE_ENV": "\"production\"",
"typeof Hello": "42",
"typeof Hello": "42"
}

@@ -33,0 +33,0 @@ ]

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