Socket
Socket
Sign inDemoInstall

babel-plugin-minify-infinity

Package Overview
Dependencies
0
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0-alpha.5f601890 to 0.5.0-alpha.6889f45d

6

lib/index.js

@@ -31,3 +31,7 @@ "use strict";

if (path.isLVal() && !path.parentPath.isExpressionStatement()) {
const bindingIds = path.parentPath.getBindingIdentifierPaths();
if (bindingIds["Infinity"] === path && // ObjectProperty is common for ObjectExpression and ObjectPattern and only
// one of them is a Binding, the other is simply a reference
!path.parentPath.parentPath.isObjectExpression()) {
return;

@@ -34,0 +38,0 @@ }

2

package.json
{
"name": "babel-plugin-minify-infinity",
"version": "0.5.0-alpha.5f601890",
"version": "0.5.0-alpha.6889f45d",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc