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.12.3 to 0.12.4

2

def/typescript.js

@@ -92,3 +92,3 @@ "use strict";;

.build("literal")
.field("literal", or(def("NumericLiteral"), def("StringLiteral"), def("BooleanLiteral")));
.field("literal", or(def("NumericLiteral"), def("StringLiteral"), def("BooleanLiteral"), def("TemplateLiteral"), def("UnaryExpression")));
["TSUnionType",

@@ -95,0 +95,0 @@ "TSIntersectionType",

@@ -1045,3 +1045,3 @@ import { Omit } from "../types";

type: "TSLiteralType";
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind;
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind;
}

@@ -1048,0 +1048,0 @@ export interface TSUnionType extends Omit<TSType, "type"> {

@@ -148,3 +148,6 @@ "use strict";;

}
else if (namedTypes.TypeAlias && namedTypes.TypeAlias.check(node)) {
else if ((namedTypes.TypeAlias && namedTypes.TypeAlias.check(node)) ||
(namedTypes.InterfaceDeclaration && namedTypes.InterfaceDeclaration.check(node)) ||
(namedTypes.TSTypeAliasDeclaration && namedTypes.TSTypeAliasDeclaration.check(node)) ||
(namedTypes.TSInterfaceDeclaration && namedTypes.TSInterfaceDeclaration.check(node))) {
addTypePattern(path.get("id"), scopeTypes);

@@ -151,0 +154,0 @@ }

{
"author": "Ben Newman <bn@cs.stanford.edu>",
"name": "ast-types",
"version": "0.12.3",
"version": "0.12.4",
"description": "Esprima-compatible implementation of the Mozilla JS Parser API",

@@ -41,20 +41,20 @@ "keywords": [

"devDependencies": {
"@babel/parser": "^7.4.2",
"@babel/types": "^7.4.0",
"@types/esprima": "^4.0.2",
"@types/glob": "^7.1.1",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.9",
"espree": "^4.0.0",
"esprima": "~4.0.0",
"esprima-fb": "~14001.1.0-dev-harmony-fb",
"flow-parser": "^0.83.0",
"glob": "^7.1.2",
"mocha": "^5.0.0",
"recast": "^0.17.3",
"reify": "^0.18.1",
"ts-add-module-exports": "^1.0.0",
"ts-emit-clean": "^1.0.0",
"ts-node": "^7.0.1",
"typescript": "^3.3.4000"
"@babel/parser": "7.4.3",
"@babel/types": "7.4.0",
"@types/esprima": "4.0.2",
"@types/glob": "7.1.1",
"@types/mocha": "5.2.6",
"@types/node": "11.13.7",
"espree": "5.0.1",
"esprima": "4.0.1",
"esprima-fb": "15001.1001.0-dev-harmony-fb",
"flow-parser": "0.97.0",
"glob": "7.1.3",
"mocha": "6.1.4",
"recast": "0.17.5",
"reify": "0.18.1",
"ts-add-module-exports": "1.0.0",
"ts-emit-clean": "1.0.0",
"ts-node": "7.0.1",
"typescript": "3.4.3"
},

@@ -61,0 +61,0 @@ "engines": {

Sorry, the diff of this file is too big to display

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