shift-spec
Advanced tools
Comparing version 2016.0.0 to 2017.0.0
@@ -38,3 +38,3 @@ // Generated by src/generate-spec.js. | ||
typeName: "Enum", | ||
values: ["ArrayAssignmentTarget", "ArrayBinding", "ArrayExpression", "ArrowExpression", "AssignmentExpression", "AssignmentTargetIdentifier", "AssignmentTargetPropertyIdentifier", "AssignmentTargetPropertyProperty", "AssignmentTargetWithDefault", "BinaryExpression", "BindingIdentifier", "BindingPropertyIdentifier", "BindingPropertyProperty", "BindingWithDefault", "Block", "BlockStatement", "BreakStatement", "CallExpression", "CatchClause", "ClassDeclaration", "ClassElement", "ClassExpression", "CompoundAssignmentExpression", "ComputedMemberAssignmentTarget", "ComputedMemberExpression", "ComputedPropertyName", "ConditionalExpression", "ContinueStatement", "DataProperty", "DebuggerStatement", "Directive", "DoWhileStatement", "EmptyStatement", "Export", "ExportAllFrom", "ExportDefault", "ExportFrom", "ExportFromSpecifier", "ExportLocalSpecifier", "ExportLocals", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FormalParameters", "FunctionBody", "FunctionDeclaration", "FunctionExpression", "Getter", "IdentifierExpression", "IfStatement", "Import", "ImportNamespace", "ImportSpecifier", "LabeledStatement", "LiteralBooleanExpression", "LiteralInfinityExpression", "LiteralNullExpression", "LiteralNumericExpression", "LiteralRegExpExpression", "LiteralStringExpression", "Method", "Module", "NewExpression", "NewTargetExpression", "ObjectAssignmentTarget", "ObjectBinding", "ObjectExpression", "ReturnStatement", "Script", "Setter", "ShorthandProperty", "SpreadElement", "StaticMemberAssignmentTarget", "StaticMemberExpression", "StaticPropertyName", "Super", "SwitchCase", "SwitchDefault", "SwitchStatement", "SwitchStatementWithDefault", "TemplateElement", "TemplateExpression", "ThisExpression", "ThrowStatement", "TryCatchStatement", "TryFinallyStatement", "UnaryExpression", "UpdateExpression", "VariableDeclaration", "VariableDeclarationStatement", "VariableDeclarator", "WhileStatement", "WithStatement", "YieldExpression", "YieldGeneratorExpression"] | ||
values: ["ArrayAssignmentTarget", "ArrayBinding", "ArrayExpression", "ArrowExpression", "AssignmentExpression", "AssignmentTargetIdentifier", "AssignmentTargetPropertyIdentifier", "AssignmentTargetPropertyProperty", "AssignmentTargetWithDefault", "AwaitExpression", "BinaryExpression", "BindingIdentifier", "BindingPropertyIdentifier", "BindingPropertyProperty", "BindingWithDefault", "Block", "BlockStatement", "BreakStatement", "CallExpression", "CatchClause", "ClassDeclaration", "ClassElement", "ClassExpression", "CompoundAssignmentExpression", "ComputedMemberAssignmentTarget", "ComputedMemberExpression", "ComputedPropertyName", "ConditionalExpression", "ContinueStatement", "DataProperty", "DebuggerStatement", "Directive", "DoWhileStatement", "EmptyStatement", "Export", "ExportAllFrom", "ExportDefault", "ExportFrom", "ExportFromSpecifier", "ExportLocalSpecifier", "ExportLocals", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FormalParameters", "FunctionBody", "FunctionDeclaration", "FunctionExpression", "Getter", "IdentifierExpression", "IfStatement", "Import", "ImportNamespace", "ImportSpecifier", "LabeledStatement", "LiteralBooleanExpression", "LiteralInfinityExpression", "LiteralNullExpression", "LiteralNumericExpression", "LiteralRegExpExpression", "LiteralStringExpression", "Method", "Module", "NewExpression", "NewTargetExpression", "ObjectAssignmentTarget", "ObjectBinding", "ObjectExpression", "ReturnStatement", "Script", "Setter", "ShorthandProperty", "SpreadElement", "StaticMemberAssignmentTarget", "StaticMemberExpression", "StaticPropertyName", "Super", "SwitchCase", "SwitchDefault", "SwitchStatement", "SwitchStatementWithDefault", "TemplateElement", "TemplateExpression", "ThisExpression", "ThrowStatement", "TryCatchStatement", "TryFinallyStatement", "UnaryExpression", "UpdateExpression", "VariableDeclaration", "VariableDeclarationStatement", "VariableDeclarator", "WhileStatement", "WithStatement", "YieldExpression", "YieldGeneratorExpression"] | ||
}; | ||
@@ -77,2 +77,3 @@ | ||
var AssignmentTargetWithDefault = SPEC.AssignmentTargetWithDefault = {}; | ||
var AwaitExpression = SPEC.AwaitExpression = {}; | ||
var BinaryExpression = SPEC.BinaryExpression = {}; | ||
@@ -180,3 +181,3 @@ var BindingIdentifier = SPEC.BindingIdentifier = {}; | ||
var NamedObjectProperty = Union(DataProperty, MethodDefinition); | ||
var Expression = Union(ArrayExpression, ArrowExpression, AssignmentExpression, BinaryExpression, CallExpression, ClassExpression, CompoundAssignmentExpression, ConditionalExpression, FunctionExpression, IdentifierExpression, LiteralBooleanExpression, LiteralInfinityExpression, LiteralNullExpression, LiteralNumericExpression, LiteralRegExpExpression, LiteralStringExpression, MemberExpression, NewExpression, NewTargetExpression, ObjectExpression, TemplateExpression, ThisExpression, UnaryExpression, UpdateExpression, YieldExpression, YieldGeneratorExpression); | ||
var Expression = Union(ArrayExpression, ArrowExpression, AssignmentExpression, AwaitExpression, BinaryExpression, CallExpression, ClassExpression, CompoundAssignmentExpression, ConditionalExpression, FunctionExpression, IdentifierExpression, LiteralBooleanExpression, LiteralInfinityExpression, LiteralNullExpression, LiteralNumericExpression, LiteralRegExpExpression, LiteralStringExpression, MemberExpression, NewExpression, NewTargetExpression, ObjectExpression, TemplateExpression, ThisExpression, UnaryExpression, UpdateExpression, YieldExpression, YieldGeneratorExpression); | ||
var Statement = Union(BlockStatement, BreakStatement, ClassDeclaration, ContinueStatement, DebuggerStatement, EmptyStatement, ExpressionStatement, FunctionDeclaration, IfStatement, IterationStatement, LabeledStatement, ReturnStatement, SwitchStatement, SwitchStatementWithDefault, ThrowStatement, TryCatchStatement, TryFinallyStatement, VariableDeclarationStatement, WithStatement); | ||
@@ -209,2 +210,3 @@ var ObjectProperty = Union(NamedObjectProperty, ShorthandProperty); | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "ArrowExpression" }, | ||
{ name: "isAsync", type: BOOLEAN }, | ||
{ name: "params", type: FormalParameters }, | ||
@@ -248,2 +250,8 @@ { name: "body", type: Union(Expression, FunctionBody) } | ||
AwaitExpression.typeName = "AwaitExpression"; | ||
AwaitExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "AwaitExpression" }, | ||
{ name: "expression", type: Expression } | ||
]; | ||
BinaryExpression.typeName = "BinaryExpression"; | ||
@@ -504,2 +512,3 @@ BinaryExpression.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "FunctionDeclaration" }, | ||
{ name: "isAsync", type: BOOLEAN }, | ||
{ name: "isGenerator", type: BOOLEAN }, | ||
@@ -514,2 +523,3 @@ { name: "name", type: BindingIdentifier }, | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "FunctionExpression" }, | ||
{ name: "isAsync", type: BOOLEAN }, | ||
{ name: "isGenerator", type: BOOLEAN }, | ||
@@ -614,2 +624,3 @@ { name: "name", type: Maybe(BindingIdentifier) }, | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "Method" }, | ||
{ name: "isAsync", type: BOOLEAN }, | ||
{ name: "isGenerator", type: BOOLEAN }, | ||
@@ -616,0 +627,0 @@ { name: "name", type: PropertyName }, |
{ | ||
"name": "shift-spec", | ||
"version": "2016.0.0", | ||
"version": "2017.0.0", | ||
"description": "JavaScript representation of the Shift AST specification", | ||
"author": "Shape Security Labs", | ||
"author": "Shape Security", | ||
"homepage": "https://github.com/shapesecurity/shift-spec-js", | ||
@@ -14,4 +14,5 @@ "repository": { | ||
"build": "node src/generate-spec.js", | ||
"lint": "eslint src", | ||
"test": "node ./", | ||
"prepublish": "rm -rf dist/* && npm update && npm run build" | ||
"prepare": "rm -rf dist/* && npm run build" | ||
}, | ||
@@ -31,4 +32,5 @@ "files": [ | ||
"devDependencies": { | ||
"eslint": "^5.6.1", | ||
"shift-spec-consumer": "1.0.0", | ||
"shift-spec-idl": "2016.0.x" | ||
"shift-spec-idl": "2017.0.0" | ||
}, | ||
@@ -35,0 +37,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
51488
4
749
0
39
3