@poe-platform/safe-js 0.1.492 → 0.1.494
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-NQKOR5UJ.js → chunk-B3WVQWNG.js} +6 -6
- package/dist/safe-js/chunks/{chunk-NQKOR5UJ.js.map → chunk-B3WVQWNG.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-CJDD5FTA.js → chunk-BKZWWEN5.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-CJDD5FTA.js.map → chunk-BKZWWEN5.js.map} +0 -0
|
@@ -1128,7 +1128,7 @@ var Lexer = class {
|
|
|
1128
1128
|
this.readEscapedLiteralCharacter();
|
|
1129
1129
|
continue;
|
|
1130
1130
|
}
|
|
1131
|
-
if (
|
|
1131
|
+
if (char === "\n" || char === "\r") {
|
|
1132
1132
|
this.syntaxError("Unterminated string literal", start);
|
|
1133
1133
|
}
|
|
1134
1134
|
this.advance();
|
|
@@ -1287,7 +1287,7 @@ var Lexer = class {
|
|
|
1287
1287
|
this.readEscapedLiteralCharacter();
|
|
1288
1288
|
continue;
|
|
1289
1289
|
}
|
|
1290
|
-
if (
|
|
1290
|
+
if (char === "\n" || char === "\r") {
|
|
1291
1291
|
this.syntaxError("Unterminated string literal", start);
|
|
1292
1292
|
}
|
|
1293
1293
|
this.advance();
|
|
@@ -1774,7 +1774,7 @@ var Lexer = class {
|
|
|
1774
1774
|
return;
|
|
1775
1775
|
}
|
|
1776
1776
|
this.index += 1;
|
|
1777
|
-
if (char
|
|
1777
|
+
if (isLineBreak(char)) {
|
|
1778
1778
|
this.line += 1;
|
|
1779
1779
|
this.column = 1;
|
|
1780
1780
|
return;
|
|
@@ -1815,7 +1815,7 @@ function isWhitespace(char) {
|
|
|
1815
1815
|
return char === " " || char === " " || char === "\v" || char === "\f" || char === "\uFEFF";
|
|
1816
1816
|
}
|
|
1817
1817
|
function isLineBreak(char) {
|
|
1818
|
-
return char === "\n" || char === "\r";
|
|
1818
|
+
return char === "\n" || char === "\r" || char === "\u2028" || char === "\u2029";
|
|
1819
1819
|
}
|
|
1820
1820
|
function isExpressionEndingPunctuator(value) {
|
|
1821
1821
|
return value === ")" || value === "]" || value === "}" || value === "++" || value === "--";
|
|
@@ -6652,7 +6652,7 @@ function decodeEscapedText(value, allowLegacy = false) {
|
|
|
6652
6652
|
decoded += "\\";
|
|
6653
6653
|
break;
|
|
6654
6654
|
}
|
|
6655
|
-
if (next === "\n") {
|
|
6655
|
+
if (next === "\n" || next === "\u2028" || next === "\u2029") {
|
|
6656
6656
|
index += 2;
|
|
6657
6657
|
continue;
|
|
6658
6658
|
}
|
|
@@ -57329,4 +57329,4 @@ authorization of the copyright holder.
|
|
|
57329
57329
|
SPDX-License-Identifier: Unicode-3.0
|
|
57330
57330
|
|
|
57331
57331
|
*/
|
|
57332
|
-
//# sourceMappingURL=chunk-
|
|
57332
|
+
//# sourceMappingURL=chunk-B3WVQWNG.js.map
|