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.3.21 to 0.3.22

7

def/core.js

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

.field("defaults", [def("Expression")], defaults.emptyArray)
.field("rest", or(def("Identifier"), null), defaults["null"]);
.field("rest", or(def("Identifier"), null), defaults["null"])
.field("async", isBoolean, defaults["false"]);

@@ -171,3 +172,3 @@ def("Statement").bases("Node");

.bases("Function", "Declaration")
.build("id", "params", "body", "generator", "expression")
.build("id", "params", "body", "generator", "expression", "async")
.field("id", def("Identifier"));

@@ -177,3 +178,3 @@

.bases("Function", "Expression")
.build("id", "params", "body", "generator", "expression");
.build("id", "params", "body", "generator", "expression", "async");

@@ -180,0 +181,0 @@ def("VariableDeclaration")

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

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

@@ -30,0 +36,0 @@ .bases("Expression")

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

],
"version": "0.3.21",
"version": "0.3.22",
"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