babel-plugin-minify-type-constructors
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -9,3 +9,2 @@ "use strict"; | ||
if (t.isIdentifier(node.callee, { name: "Array" }) && !path.scope.getBinding("Array")) { | ||
if (constructorArgs.length === 0) { | ||
@@ -59,3 +58,2 @@ // Array() -> [] | ||
if (t.isIdentifier(node.callee, { name: "Object" }) && !path.scope.getBinding("Object")) { | ||
var isVoid0 = require("babel-helper-is-void-0")(t); | ||
@@ -107,3 +105,7 @@ var arg = node.arguments[0]; | ||
return { | ||
boolean, number, string, array, object | ||
boolean, | ||
number, | ||
string, | ||
array, | ||
object | ||
}; | ||
@@ -110,0 +112,0 @@ } |
{ | ||
"name": "babel-plugin-minify-type-constructors", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -15,5 +15,5 @@ "homepage": "https://github.com/babel/babili#readme", | ||
"dependencies": { | ||
"babel-helper-is-void-0": "^0.0.1" | ||
"babel-helper-is-void-0": "^0.1.0" | ||
}, | ||
"devDependencies": {} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6883
140
0
+ Addedbabel-helper-is-void-0@0.1.1(transitive)
- Removedbabel-helper-is-void-0@0.0.1(transitive)