update node modules

This commit is contained in:
s2
2020-07-20 16:20:39 +02:00
parent dcb748f037
commit f9fb05e4db
906 changed files with 124011 additions and 93468 deletions

12
node_modules/escodegen/escodegen.js generated vendored
View File

@@ -983,7 +983,7 @@
result.push('[');
}
result.push(this.generateExpression(expr, Precedence.Sequence, E_TTT));
result.push(this.generateExpression(expr, Precedence.Assignment, E_TTT));
if (computed) {
result.push(']');
@@ -2223,13 +2223,19 @@
multiline = false;
if (expr.properties.length === 1) {
property = expr.properties[0];
if (property.value.type !== Syntax.Identifier) {
if (
property.type === Syntax.Property
&& property.value.type !== Syntax.Identifier
) {
multiline = true;
}
} else {
for (i = 0, iz = expr.properties.length; i < iz; ++i) {
property = expr.properties[i];
if (!property.shorthand) {
if (
property.type === Syntax.Property
&& !property.shorthand
) {
multiline = true;
break;
}