Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-traverse

Package Overview
Dependencies
Maintainers
6
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-traverse - npm Package Compare versions

Comparing version 6.3.16 to 6.3.17

2

lib/scope/index.js

@@ -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());
});
});
});
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc