ast-types
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -255,3 +255,3 @@ var assert = require("assert"); | ||
// with a particular name, those instances need to be stored in a cache. | ||
var defCache = {}; | ||
var defCache = Object.create(null); | ||
@@ -265,8 +265,8 @@ function Def(typeName) { | ||
baseNames: { value: [] }, | ||
ownFields: { value: {} }, | ||
ownFields: { value: Object.create(null) }, | ||
// These two are populated during finalization. | ||
allSupertypes: { value: {} }, // Includes own typeName. | ||
allSupertypes: { value: Object.create(null) }, // Includes own typeName. | ||
supertypeList: { value: [] }, // Linear inheritance hierarchy. | ||
allFields: { value: {} }, // Includes inherited fields. | ||
allFields: { value: Object.create(null) }, // Includes inherited fields. | ||
fieldNames: { value: [] }, // Non-hidden keys of allFields. | ||
@@ -684,3 +684,3 @@ | ||
var lastSeen = {}; | ||
var lastSeen = Object.create(null); | ||
@@ -687,0 +687,0 @@ for (var pos = 0; pos < list.length; ++pos) { |
@@ -27,2 +27,3 @@ var types = require("./lib/types"); | ||
exports.getSupertypeNames = types.getSupertypeNames; | ||
exports.astNodesAreEquivalent = require("./lib/equiv"); | ||
exports.traverse = require("./lib/traverse"); | ||
@@ -29,0 +30,0 @@ exports.finalize = types.finalize; |
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"homepage": "http://github.com/benjamn/ast-types", | ||
@@ -24,0 +24,0 @@ "repository": { |
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
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
96344
20
2472