shift-spec
Advanced tools
Comparing version 2017.0.0 to 2018.0.0
@@ -38,3 +38,3 @@ // Generated by src/generate-spec.js. | ||
typeName: "Enum", | ||
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"] | ||
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", "ForAwaitStatement", "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"] | ||
}; | ||
@@ -110,2 +110,3 @@ | ||
var ExpressionStatement = SPEC.ExpressionStatement = {}; | ||
var ForAwaitStatement = SPEC.ForAwaitStatement = {}; | ||
var ForInStatement = SPEC.ForInStatement = {}; | ||
@@ -174,3 +175,3 @@ var ForOfStatement = SPEC.ForOfStatement = {}; | ||
var ImportDeclaration = Union(Import, ImportNamespace); | ||
var IterationStatement = Union(DoWhileStatement, ForInStatement, ForOfStatement, ForStatement, WhileStatement); | ||
var IterationStatement = Union(DoWhileStatement, ForAwaitStatement, ForInStatement, ForOfStatement, ForStatement, WhileStatement); | ||
var MemberAssignmentTarget = Union(ComputedMemberAssignmentTarget, StaticMemberAssignmentTarget); | ||
@@ -468,2 +469,10 @@ var BindingProperty = Union(BindingPropertyIdentifier, BindingPropertyProperty); | ||
ForAwaitStatement.typeName = "ForAwaitStatement"; | ||
ForAwaitStatement.fields = [ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "ForAwaitStatement" }, | ||
{ name: "left", type: Union(Union(Union(ArrayAssignmentTarget, ObjectAssignmentTarget), Union(AssignmentTargetIdentifier, MemberAssignmentTarget)), VariableDeclaration) }, | ||
{ name: "right", type: Expression }, | ||
{ name: "body", type: Statement } | ||
]; | ||
ForInStatement.typeName = "ForInStatement"; | ||
@@ -608,4 +617,5 @@ ForInStatement.fields = [ | ||
{ name: "multiLine", type: BOOLEAN }, | ||
{ name: "sticky", type: BOOLEAN }, | ||
{ name: "unicode", type: BOOLEAN } | ||
{ name: "dotAll", type: BOOLEAN }, | ||
{ name: "unicode", type: BOOLEAN }, | ||
{ name: "sticky", type: BOOLEAN } | ||
]; | ||
@@ -651,3 +661,4 @@ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "ObjectAssignmentTarget" }, | ||
{ name: "properties", type: List(AssignmentTargetProperty) } | ||
{ name: "properties", type: List(AssignmentTargetProperty) }, | ||
{ name: "rest", type: Maybe(Union(Union(ArrayAssignmentTarget, ObjectAssignmentTarget), Union(AssignmentTargetIdentifier, MemberAssignmentTarget))) } | ||
]; | ||
@@ -658,3 +669,4 @@ | ||
{ name: "type", type: Const(TYPE_INDICATOR), value: "ObjectBinding" }, | ||
{ name: "properties", type: List(BindingProperty) } | ||
{ name: "properties", type: List(BindingProperty) }, | ||
{ name: "rest", type: Maybe(Union(BindingIdentifier, Union(ArrayBinding, ObjectBinding))) } | ||
]; | ||
@@ -661,0 +673,0 @@ |
{ | ||
"name": "shift-spec", | ||
"version": "2017.0.0", | ||
"version": "2018.0.0", | ||
"description": "JavaScript representation of the Shift AST specification", | ||
@@ -32,4 +32,4 @@ "author": "Shape Security", | ||
"eslint": "^5.6.1", | ||
"shift-spec-consumer": "1.0.0", | ||
"shift-spec-idl": "2017.0.0" | ||
"shift-spec-consumer": "1.0.1", | ||
"shift-spec-idl": "2018.0.0" | ||
}, | ||
@@ -36,0 +36,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
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
52297
760
0