@poe-platform/safe-js 0.1.482 → 0.1.484

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.
@@ -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") {
@@ -57266,4 +57268,4 @@ authorization of the copyright holder.
57266
57268
  SPDX-License-Identifier: Unicode-3.0
57267
57269
 
57268
57270
  */
57269
- //# sourceMappingURL=chunk-GDGW6WIT.js.map
57271
+ //# sourceMappingURL=chunk-DFDH37RE.js.map