@poe-platform/safe-js 0.1.85 → 0.1.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/safe-js/chunks/{chunk-TNPFJ4XS.js → chunk-GO774BRE.js} +11 -11
- package/dist/safe-js/chunks/chunk-GO774BRE.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-LWIWUCBZ.js → chunk-J6FLHEO5.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-TNPFJ4XS.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-LWIWUCBZ.js.map → chunk-J6FLHEO5.js.map} +0 -0
|
@@ -3554,9 +3554,9 @@ var Parser = class {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
}
|
|
3556
3556
|
const token = this.currentToken();
|
|
3557
|
-
if (token.type === "identifier") {
|
|
3557
|
+
if (token.type === "identifier" || token.type === "keyword") {
|
|
3558
3558
|
this.index += 1;
|
|
3559
|
-
const key =
|
|
3559
|
+
const key = createIdentifierName(token);
|
|
3560
3560
|
if (this.consumePunctuator(":") !== void 0) {
|
|
3561
3561
|
const value2 = this.parseBindingElement();
|
|
3562
3562
|
if (value2.type === "RestElement") {
|
|
@@ -3571,6 +3571,7 @@ var Parser = class {
|
|
|
3571
3571
|
span: createSpan2(key.span.start, value2.span.end)
|
|
3572
3572
|
};
|
|
3573
3573
|
}
|
|
3574
|
+
if (!isIdentifierLikeToken(token)) throw unexpectedTokenError(token);
|
|
3574
3575
|
let value = key;
|
|
3575
3576
|
if (this.consumePunctuator("=") !== void 0) {
|
|
3576
3577
|
const right = this.parseExpression().node;
|
|
@@ -3783,9 +3784,9 @@ var Parser = class {
|
|
|
3783
3784
|
};
|
|
3784
3785
|
}
|
|
3785
3786
|
const token = this.currentToken();
|
|
3786
|
-
if (token.type === "identifier") {
|
|
3787
|
+
if (token.type === "identifier" || token.type === "keyword") {
|
|
3787
3788
|
this.index += 1;
|
|
3788
|
-
const key =
|
|
3789
|
+
const key = createIdentifierName(token);
|
|
3789
3790
|
if (this.consumePunctuator(":") !== void 0) {
|
|
3790
3791
|
const value2 = this.parseAssignmentPatternElement();
|
|
3791
3792
|
if (value2.type === "RestElement") {
|
|
@@ -3800,6 +3801,7 @@ var Parser = class {
|
|
|
3800
3801
|
span: createSpan2(key.span.start, value2.span.end)
|
|
3801
3802
|
};
|
|
3802
3803
|
}
|
|
3804
|
+
if (!isIdentifierLikeToken(token)) throw unexpectedTokenError(token);
|
|
3803
3805
|
let value = key;
|
|
3804
3806
|
if (this.consumePunctuator("=") !== void 0) {
|
|
3805
3807
|
const right = this.parseAssignmentExpression().node;
|
|
@@ -4448,9 +4450,9 @@ var Parser = class {
|
|
|
4448
4450
|
};
|
|
4449
4451
|
}
|
|
4450
4452
|
const token = this.currentToken();
|
|
4451
|
-
if (
|
|
4453
|
+
if (token.type === "identifier" || token.type === "keyword") {
|
|
4452
4454
|
this.index += 1;
|
|
4453
|
-
const key =
|
|
4455
|
+
const key = createIdentifierName(token);
|
|
4454
4456
|
if (this.currentToken().type === "punctuator" && this.currentToken().value === "(") {
|
|
4455
4457
|
const value2 = this.parseObjectMethod(asyncToken, key.span.start);
|
|
4456
4458
|
return {
|
|
@@ -4463,6 +4465,7 @@ var Parser = class {
|
|
|
4463
4465
|
};
|
|
4464
4466
|
}
|
|
4465
4467
|
if (this.consumePunctuator(":") === void 0) {
|
|
4468
|
+
if (!isIdentifierLikeToken(token)) throw unexpectedTokenError(token);
|
|
4466
4469
|
assertAllowedIdentifierReference(token);
|
|
4467
4470
|
return {
|
|
4468
4471
|
type: "Property",
|
|
@@ -5874,10 +5877,7 @@ function rebasePosition(position, base) {
|
|
|
5874
5877
|
};
|
|
5875
5878
|
}
|
|
5876
5879
|
function isLiteralPropertyKey(token) {
|
|
5877
|
-
|
|
5878
|
-
return true;
|
|
5879
|
-
}
|
|
5880
|
-
return token.type === "keyword" && (token.value === "true" || token.value === "false" || token.value === "null" || token.value === "undefined");
|
|
5880
|
+
return token.type === "numeric" || token.type === "string";
|
|
5881
5881
|
}
|
|
5882
5882
|
function isIdentifierLikeToken(token) {
|
|
5883
5883
|
return token.type === "identifier" || token.type === "keyword" && token.value === "async";
|
|
@@ -32810,4 +32810,4 @@ export {
|
|
|
32810
32810
|
FileSnapshotBackend,
|
|
32811
32811
|
run
|
|
32812
32812
|
};
|
|
32813
|
-
//# sourceMappingURL=chunk-
|
|
32813
|
+
//# sourceMappingURL=chunk-GO774BRE.js.map
|