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.4.3 to 0.4.4

9

lib/types.js

@@ -307,2 +307,11 @@ var assert = require("assert");

// Note that the list returned by this function is a copy of the internal
// supertypeList, *without* the typeName itself as the first element.
exports.getSupertypeNames = function(typeName) {
assert.ok(hasOwn.call(defCache, typeName));
var d = defCache[typeName];
assert.strictEqual(d.finalized, true);
return d.supertypeList.slice(1);
};
// Returns an object mapping from every known type in the defCache to the

@@ -309,0 +318,0 @@ // most specific supertype whose name is an own property of the candidates

1

main.js

@@ -26,2 +26,3 @@ var types = require("./lib/types");

exports.someField = types.someField;
exports.getSupertypeNames = types.getSupertypeNames;
exports.traverse = require("./lib/traverse");

@@ -28,0 +29,0 @@ exports.finalize = types.finalize;

2

package.json

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

],
"version": "0.4.3",
"version": "0.4.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