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.6.3 to 0.6.4

13

lib/path-visitor.js

@@ -30,8 +30,9 @@ var assert = require("assert");

for (var typeName in supertypeTable) {
if (hasOwn.call(supertypeTable, typeName)) {
methodName = "visit" + supertypeTable[typeName];
if (isFunction.check(visitor[methodName])) {
methodNameTable[typeName] = methodName;
}
var typeNames = Object.keys(supertypeTable);
var typeNameCount = typeNames.length;
for (var i = 0; i < typeNameCount; ++i) {
var typeName = typeNames[i];
methodName = "visit" + supertypeTable[typeName];
if (isFunction.check(visitor[methodName])) {
methodNameTable[typeName] = methodName;
}

@@ -38,0 +39,0 @@ }

@@ -321,13 +321,14 @@ var assert = require("assert");

var table = {};
var typeNames = Object.keys(defCache);
var typeNameCount = typeNames.length;
for (var typeName in defCache) {
if (hasOwn.call(defCache, typeName)) {
var d = defCache[typeName];
assert.strictEqual(d.finalized, true);
for (var i = 0; i < d.supertypeList.length; ++i) {
var superTypeName = d.supertypeList[i];
if (hasOwn.call(candidates, superTypeName)) {
table[typeName] = superTypeName;
break;
}
for (var i = 0; i < typeNameCount; ++i) {
var typeName = typeNames[i];
var d = defCache[typeName];
assert.strictEqual(d.finalized, true);
for (var j = 0; j < d.supertypeList.length; ++j) {
var superTypeName = d.supertypeList[j];
if (hasOwn.call(candidates, superTypeName)) {
table[typeName] = superTypeName;
break;
}

@@ -334,0 +335,0 @@ }

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

],
"version": "0.6.3",
"version": "0.6.4",
"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