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

babel-plugin-closure-elimination

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-closure-elimination - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

5

lib/index.js

@@ -83,3 +83,3 @@ 'use strict';

console.error(label);
console.error(require('babel-generator')(rootNode).code);
console.error(require('babel-generator').default(rootNode).code);
console.error('\n=======================================================\n');

@@ -161,2 +161,5 @@ }

replacement = t.functionDeclaration(_uid, node.params, normalizeFunctionBody(node.body));
if (node.id && node.id.name) {
scope.rename(node.id.name, _uid.name);
}
replacement.loc = node.loc;

@@ -163,0 +166,0 @@ replacement.generator = node.generator;

2

package.json
{
"name": "babel-plugin-closure-elimination",
"version": "1.1.11",
"version": "1.1.12",
"description": "Removes closures from your JavaScript in the name of performance.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -120,2 +120,5 @@ import 'babel-polyfill';

);
if(node.id && node.id.name) {
scope.rename(node.id.name, uid.name);
}
replacement.loc = node.loc;

@@ -148,5 +151,5 @@ replacement.generator = node.generator;

console.error(label);
console.error(require('babel-generator')(rootNode).code);
console.error(require('babel-generator').default(rootNode).code);
console.error('\n=======================================================\n');
}
}
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