babel-plugin-minify-infinity
Advanced tools
Comparing version 0.4.0-alpha.6546ad11 to 0.4.0-alpha.caaefb4c
@@ -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 @@ } | ||
} | ||
} | ||
}; | ||
}; |
{ | ||
"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"] | ||
}); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1697
30