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.4.0-alpha.6546ad11 to 0.4.0-alpha.caaefb4c

10

lib/index.js

@@ -5,3 +5,2 @@ "use strict";

var t = _ref.types;
var INFINITY = t.binaryExpression("/", t.numericLiteral(1), t.numericLiteral(0));

@@ -15,5 +14,5 @@ return {

return;
}
} // It's a referenced identifier
// It's a referenced identifier
if (path.scope.getBinding("Infinity")) {

@@ -23,3 +22,5 @@ return;

if (path.parentPath.isObjectProperty({ key: path.node })) {
if (path.parentPath.isObjectProperty({
key: path.node
})) {
return;

@@ -38,4 +39,5 @@ }

}
}
};
};

2

package.json
{
"name": "babel-plugin-minify-infinity",
"version": "0.4.0-alpha.6546ad11",
"version": "0.4.0-alpha.caaefb4c",
"description": "",

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

@@ -44,5 +44,5 @@ # babel-plugin-minify-infinity

```javascript
require("babel-core").transform("code", {
require("@babel/core").transform("code", {
plugins: ["minify-infinity"]
});
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc