typhonjs-escomplex-commons
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -25,3 +25,5 @@ 'use strict'; | ||
ForInStatement = void 0, | ||
FunctionDeclaration = void 0; | ||
FunctionDeclaration = void 0, | ||
Property = void 0, | ||
RestElement = void 0; | ||
@@ -663,3 +665,5 @@ exports.default = { | ||
}, | ||
RestElement: function RestElement(node, state) { | ||
RestElement: RestElement = function RestElement(node, state) { | ||
state.output.write('...'); | ||
@@ -670,2 +674,3 @@ state.output.operators.push('... (rest)'); | ||
}, | ||
SpreadElement: function SpreadElement(node, state) { | ||
@@ -794,3 +799,5 @@ state.output.write('...'); | ||
}, | ||
Property: function Property(node, state) { | ||
Property: Property = function Property(node, state) { | ||
if (node.method || node.kind && node.kind[0] !== 'i') { | ||
@@ -821,2 +828,3 @@ this.MethodDefinition(node, state); // Either a method or of kind `set` or `get` (not `init`) | ||
}, | ||
ObjectPattern: function ObjectPattern(node, state) { | ||
@@ -834,3 +842,3 @@ var output = state.output; | ||
for (var i = 0;;) { | ||
this.Property(properties[i], state); | ||
this[properties[i].type](properties[i], state); | ||
@@ -1064,2 +1072,6 @@ if (++i < length) { | ||
ObjectProperty: Property, | ||
RestProperty: RestElement, | ||
BooleanLiteral: function BooleanLiteral(node, state) { | ||
@@ -1066,0 +1078,0 @@ state.output.write(node.value); |
{ | ||
"name": "typhonjs-escomplex-commons", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/typhonjs-node-escomplex/typhonjs-escomplex-commons/", | ||
@@ -5,0 +5,0 @@ "description": "Provides core common utilities for typhonjs-escomplex modules and plugins.", |
@@ -6,3 +6,3 @@ /* eslint-disable eqeqeq */ | ||
let ArrayExpression, BinaryExpression, ForInStatement, FunctionDeclaration; | ||
let ArrayExpression, BinaryExpression, ForInStatement, FunctionDeclaration, Property, RestElement; | ||
@@ -699,3 +699,3 @@ export default { | ||
RestElement(node, state) | ||
RestElement: RestElement = function(node, state) | ||
{ | ||
@@ -844,3 +844,3 @@ state.output.write('...'); | ||
Property(node, state) | ||
Property: Property = function(node, state) | ||
{ | ||
@@ -892,3 +892,3 @@ if (node.method || (node.kind && node.kind[0] !== 'i')) | ||
{ | ||
this.Property(properties[i], state); | ||
this[properties[i].type](properties[i], state); | ||
@@ -1173,2 +1173,6 @@ if (++i < length) | ||
ObjectProperty: Property, | ||
RestProperty: RestElement, | ||
BooleanLiteral(node, state) | ||
@@ -1175,0 +1179,0 @@ { |
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
629703
14272