babel-traverse
Advanced tools
Comparing version 6.3.16 to 6.3.17
@@ -795,3 +795,3 @@ "use strict"; | ||
return true; | ||
} else if (t.isClassProperty(node)) { | ||
} else if (t.isClassProperty(node) || t.isObjectProperty(node)) { | ||
if (node.computed && !this.isPure(node.key, constantsOnly)) return false; | ||
@@ -798,0 +798,0 @@ return this.isPure(node.value, constantsOnly); |
{ | ||
"name": "babel-traverse", | ||
"version": "6.3.16", | ||
"version": "6.3.17", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"babel-runtime": "^5.0.0", | ||
"babel-types": "^6.3.14", | ||
"babel-types": "^6.3.17", | ||
"babylon": "^6.3.15", | ||
@@ -17,0 +17,0 @@ "debug": "^2.2.0", |
@@ -37,3 +37,7 @@ var traverse = require("../lib").default; | ||
}); | ||
test("purity", function () { | ||
assert.ok(getPath("({ x: 1 })").get("body")[0].get("expression").isPure()); | ||
}); | ||
}); | ||
}); |
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
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
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
165825
4662
1
Updatedbabel-types@^6.3.17