@poe-platform/safe-js 0.1.483 → 0.1.485

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-GDGW6WIT.js";
30
+ } from "./chunk-KBXIWZWM.js";
31
31
 
32
32
  // packages/safe-js/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -8249,4 +8249,4 @@ export {
8249
8249
  parseMcpConfig,
8250
8250
  makeMcpModule
8251
8251
  };
8252
- //# sourceMappingURL=chunk-YRWFGEZM.js.map
8252
+ //# sourceMappingURL=chunk-E3U4HI47.js.map
@@ -3416,6 +3416,8 @@ var Parser = class {
3416
3416
  return this.parseTryStatement();
3417
3417
  }
3418
3418
  if (token.type === "keyword" && token.value === "import" && !this.isImportMetaStart() && this.peekToken(1).value !== "(") {
3419
+ if (this.lexicalContext.grammar !== void 0)
3420
+ throw new SyntaxError("Static import declarations are not allowed in dynamic functions.");
3419
3421
  return this.parseImportDeclaration();
3420
3422
  }
3421
3423
  if (token.type === "keyword" && token.value === "return") {
@@ -26998,6 +27000,10 @@ async function evaluateDeleteExpression(node, context) {
26998
27000
  if (member.kind === "resolved" && member.superReceiver !== void 0)
26999
27001
  throw new ReferenceError("Cannot delete a super property.");
27000
27002
  if (member.kind === "nullish" || member.object === null || member.object === void 0) {
27003
+ if (node.argument.type !== "Identifier") {
27004
+ const argument = await evaluateNode(node.argument, context);
27005
+ return argument.kind === "normal" ? { kind: "normal", hasValue: true, value: true } : argument;
27006
+ }
27001
27007
  if (member.kind === "nullish") {
27002
27008
  return {
27003
27009
  kind: "normal",
@@ -57266,4 +57272,4 @@ authorization of the copyright holder.
57266
57272
  SPDX-License-Identifier: Unicode-3.0
57267
57273
 
57268
57274
  */
57269
- //# sourceMappingURL=chunk-GDGW6WIT.js.map
57275
+ //# sourceMappingURL=chunk-KBXIWZWM.js.map