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

ast-types

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-types - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

22

lib/path-visitor.js

@@ -131,13 +131,17 @@ var assert = require("assert");

} else {
var name, names = types.getFieldNames(value);
for (var i = 0, len = names.length; i < len; ++i) {
if (!hasOwn.call(value, name = names[i])) {
value[name] = types.getFieldValue(value, name);
var childNames = types.getFieldNames(value);
var childCount = childNames.length;
var childPaths = [];
for (var i = 0; i < childCount; ++i) {
var childName = childNames[i];
if (!hasOwn.call(value, childName)) {
value[childName] = types.getFieldValue(value, childName);
}
visitor.visit(path.get(name));
assert.strictEqual(
value, path.value,
"Path value changed while traversing its children"
);
childPaths.push(path.get(childName));
}
for (var i = 0; i < childCount; ++i) {
visitor.visit(childPaths[i]);
}
}

@@ -144,0 +148,0 @@ }

@@ -21,3 +21,3 @@ {

],
"version": "0.5.6",
"version": "0.5.7",
"homepage": "http://github.com/benjamn/ast-types",

@@ -24,0 +24,0 @@ "repository": {

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