@poe-platform/safe-js 0.1.430 → 0.1.431
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-KKRY6QGW.js → chunk-35AKWKAL.js} +12 -5
- package/dist/safe-js/chunks/chunk-35AKWKAL.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-7KGFFD23.js → chunk-HBSJ2KM3.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-KKRY6QGW.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-7KGFFD23.js.map → chunk-HBSJ2KM3.js.map} +0 -0
|
@@ -914,7 +914,6 @@ var KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
914
914
|
"true",
|
|
915
915
|
"false",
|
|
916
916
|
"null",
|
|
917
|
-
"undefined",
|
|
918
917
|
"typeof",
|
|
919
918
|
"void",
|
|
920
919
|
"delete",
|
|
@@ -923,7 +922,7 @@ var KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
923
922
|
"in",
|
|
924
923
|
"of"
|
|
925
924
|
]);
|
|
926
|
-
var EXPRESSION_ENDING_KEYWORDS = /* @__PURE__ */ new Set(["true", "false", "null"
|
|
925
|
+
var EXPRESSION_ENDING_KEYWORDS = /* @__PURE__ */ new Set(["true", "false", "null"]);
|
|
927
926
|
var CONTROL_FLOW_PAREN_KEYWORDS = /* @__PURE__ */ new Set(["if", "while", "for", "catch"]);
|
|
928
927
|
var MAX_UNICODE_CODE_POINT = 1114111;
|
|
929
928
|
var IDENTIFIER_START_PATTERN = new RegExp("^\\p{ID_Start}$", "u");
|
|
@@ -11943,6 +11942,7 @@ var Scope = class _Scope {
|
|
|
11943
11942
|
assign(name, value) {
|
|
11944
11943
|
const scope = this.resolveScope(name);
|
|
11945
11944
|
if (scope === void 0) {
|
|
11945
|
+
if (name === "undefined") throw new TypeError("Cannot assign to const binding 'undefined'.");
|
|
11946
11946
|
throw new ReferenceError(`Cannot assign to undeclared binding '${name}'.`);
|
|
11947
11947
|
}
|
|
11948
11948
|
const binding = scope.#bindings.get(name);
|
|
@@ -11973,6 +11973,7 @@ var Scope = class _Scope {
|
|
|
11973
11973
|
if (this.parent !== void 0) {
|
|
11974
11974
|
return this.parent.lookup(name);
|
|
11975
11975
|
}
|
|
11976
|
+
if (name === "undefined") return { found: true, kind: "const", value: void 0 };
|
|
11976
11977
|
return { found: false };
|
|
11977
11978
|
}
|
|
11978
11979
|
snapshot() {
|
|
@@ -33758,7 +33759,7 @@ function hashParsedAst(ast, includeFunctionSource = true) {
|
|
|
33758
33759
|
let hash = FNV_OFFSET_BASIS;
|
|
33759
33760
|
visit(ast);
|
|
33760
33761
|
return hash.toString(16).padStart(8, "0");
|
|
33761
|
-
function visit(value, includeTemplateRaw = false, enclosingSource) {
|
|
33762
|
+
function visit(value, includeTemplateRaw = false, enclosingSource, identifierName = false) {
|
|
33762
33763
|
if (value === null) {
|
|
33763
33764
|
write("null");
|
|
33764
33765
|
return;
|
|
@@ -33788,6 +33789,10 @@ function hashParsedAst(ast, includeFunctionSource = true) {
|
|
|
33788
33789
|
return;
|
|
33789
33790
|
case "object": {
|
|
33790
33791
|
const record4 = value;
|
|
33792
|
+
if (record4.type === "Identifier" && record4.name === "undefined" && !identifierName) {
|
|
33793
|
+
visit({ type: "UndefinedLiteral", value: void 0 });
|
|
33794
|
+
return;
|
|
33795
|
+
}
|
|
33791
33796
|
const source = includeFunctionSource ? functionSources.get(value) : void 0;
|
|
33792
33797
|
if (source !== void 0 && !(enclosingSource !== void 0 && source.text === enclosingSource.text && source.start >= enclosingSource.start && source.end <= enclosingSource.end)) {
|
|
33793
33798
|
write("function-source:");
|
|
@@ -33803,7 +33808,8 @@ function hashParsedAst(ast, includeFunctionSource = true) {
|
|
|
33803
33808
|
visit(
|
|
33804
33809
|
record4[key],
|
|
33805
33810
|
shouldIncludeTemplateRaw(record4, key, includeTemplateRaw),
|
|
33806
|
-
source ?? enclosingSource
|
|
33811
|
+
source ?? enclosingSource,
|
|
33812
|
+
key === "property" && record4.type === "MemberExpression" && !record4.computed || key === "key" && !record4.computed || (key === "imported" || key === "local") && record4.type === "ImportSpecifier" || key === "exported" && record4.type === "ExportSpecifier"
|
|
33807
33813
|
);
|
|
33808
33814
|
write(",");
|
|
33809
33815
|
}
|
|
@@ -34702,6 +34708,7 @@ var KNOWN_RUNTIME_GLOBALS = [
|
|
|
34702
34708
|
"SyntaxError",
|
|
34703
34709
|
"TypeError",
|
|
34704
34710
|
"URIError",
|
|
34711
|
+
"undefined",
|
|
34705
34712
|
"console"
|
|
34706
34713
|
];
|
|
34707
34714
|
|
|
@@ -47188,4 +47195,4 @@ export {
|
|
|
47188
47195
|
FileSnapshotBackend,
|
|
47189
47196
|
run
|
|
47190
47197
|
};
|
|
47191
|
-
//# sourceMappingURL=chunk-
|
|
47198
|
+
//# sourceMappingURL=chunk-35AKWKAL.js.map
|