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.30 to 0.3.31

def/es7.js

10

def/es6.js

@@ -29,8 +29,2 @@ require("./core");

def("AwaitExpression")
.bases("Expression")
.build("argument", "all")
.field("argument", or(def("Expression"), null))
.field("all", isBoolean, false);
def("GeneratorExpression")

@@ -82,5 +76,5 @@ .bases("Expression")

def("SpreadElement")
.bases("Pattern")
.bases("Node")
.build("argument")
.field("argument", def("Pattern"));
.field("argument", def("Expression"));

@@ -87,0 +81,0 @@ var ClassBodyElement = or(

@@ -26,2 +26,20 @@ require("./core");

def("XJSNamespacedName")
.bases("Node")
.build("namespace", "name")
.field("namespace", def("Identifier"))
.field("name", def("Identifier"));
def("XJSMemberExpression")
.bases("MemberExpression")
.build("object", "property")
.field("object", def("Identifier"))
.field("property", def("Identifier"))
.field("computed", isBoolean, defaults.false);
def("XJSSpreadAttribute")
.bases("Node")
.build("argument")
.field("argument", def("Expression"));
def("XJSExpressionContainer")

@@ -28,0 +46,0 @@ .bases("Expression")

1

main.js

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

require("./def/es6");
require("./def/es7");
require("./def/mozilla");

@@ -12,0 +13,0 @@ require("./def/e4x");

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

],
"version": "0.3.30",
"version": "0.3.31",
"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