Socket
Socket
Sign inDemoInstall

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.4.4 to 0.4.5

lib/equiv.js

10

lib/types.js

@@ -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": {

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