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.3.32 to 0.3.33

10

def/core.js

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

.build("elements")
.field("elements", [or(def("Expression"), null)]);
.field("elements", [or(def("Expression"), def("SpreadElement"), null)]);

@@ -207,3 +207,3 @@ def("ObjectExpression")

.build("properties")
.field("properties", [def("Property")]);
.field("properties", [or(def("Property"), def("SpreadProperty"))]);

@@ -300,3 +300,3 @@ // TODO Not in the Mozilla Parser API, but used by Esprima.

// TODO Report this nonsense.
.field("arguments", [def("Expression")]);
.field("arguments", [or(def("Expression"), def("SpreadElement"))]);

@@ -308,3 +308,3 @@ def("CallExpression")

// See comment for NewExpression above.
.field("arguments", [def("Expression")]);
.field("arguments", [or(def("Expression"), def("SpreadElement"))]);

@@ -360,3 +360,1 @@ def("MemberExpression")

));
types.finalize();

2

def/e4x.js

@@ -88,3 +88,1 @@ require("./core");

.field("contents", or(isString, null));
types.finalize();

@@ -75,3 +75,3 @@ require("./core");

def("SpreadElement")
.bases("Expression")
.bases("Node")
.build("argument")

@@ -168,3 +168,1 @@ .field("argument", def("Expression"));

.field("tail", isBoolean);
types.finalize();

@@ -9,3 +9,3 @@ require("./core");

def("SpreadProperty")
.bases("Property")
.bases("Node")
.build("argument")

@@ -19,3 +19,1 @@ .field("argument", def("Expression"));

.field("all", isBoolean, false);
types.finalize();

@@ -110,3 +110,1 @@ require("./core");

.field("nullable", isBoolean);
types.finalize();

@@ -40,3 +40,1 @@ require("./core");

.field("index", geq(0));
types.finalize();

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

types.finalize();
exports.Type = types.Type;

@@ -17,0 +19,0 @@ exports.builtInTypes = types.builtInTypes;

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

],
"version": "0.3.32",
"version": "0.3.33",
"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