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.7.0 to 0.7.1

2

def/core.js

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

.field("property", or(def("Identifier"), def("Expression")))
.field("computed", isBoolean);
.field("computed", isBoolean, defaults["false"]);

@@ -316,0 +316,0 @@ def("Pattern").bases("Node");

@@ -81,7 +81,8 @@ require("./core");

.bases("Declaration")
.build("kind", "key", "value")
.build("kind", "key", "value", "static")
.field("kind", or("init", "get", "set", ""))
.field("key", or(def("Literal"), def("Identifier"), def("Expression")))
.field("value", def("Function"))
.field("computed", isBoolean, defaults["false"]);
.field("computed", isBoolean, defaults["false"])
.field("static", isBoolean, defaults["false"]);

@@ -142,3 +143,3 @@ def("SpreadElement")

.build("id", "body", "superClass")
.field("id", def("Identifier"))
.field("id", or(def("Identifier"), null))
.field("body", def("ClassBody"))

@@ -145,0 +146,0 @@ .field("superClass", or(def("Expression"), null), defaults["null"]);

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

def("JSXIdentifier")
.bases("Node")
.bases("Identifier")
.build("name")

@@ -154,3 +154,3 @@ .field("name", isString);

.field("optional", isBoolean);
def("ArrayTypeAnnotation")

@@ -266,3 +266,3 @@ .bases("Type")

.field("right", def("Type"));
def("TypeCastExpression")

@@ -269,0 +269,0 @@ .bases("Expression")

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

],
"version": "0.7.0",
"version": "0.7.1",
"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