poe-code 11.0.5 → 11.0.7

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.
@@ -245,7 +245,6 @@ var KEYWORDS = /* @__PURE__ */ new Set([
245
245
  "await",
246
246
  "yield",
247
247
  "import",
248
- "from",
249
248
  "as",
250
249
  "true",
251
250
  "false",
@@ -2545,7 +2544,13 @@ var Parser = class {
2545
2544
  }
2546
2545
  ];
2547
2546
  }
2548
- this.expectKeyword("from");
2547
+ const fromToken = this.currentToken();
2548
+ if (fromToken.type !== "identifier" || fromToken.value !== "from" || fromToken.end.offset - fromToken.start.offset !== fromToken.value.length) {
2549
+ throw new Error(
2550
+ `Expected 'from' at line ${fromToken.start.line}, column ${fromToken.start.column}.`
2551
+ );
2552
+ }
2553
+ this.index += 1;
2549
2554
  const sourceToken = this.currentToken();
2550
2555
  if (sourceToken.type !== "string") {
2551
2556
  throw unexpectedTokenError(sourceToken);
@@ -28976,4 +28981,4 @@ export {
28976
28981
  FileSnapshotBackend,
28977
28982
  run
28978
28983
  };
28979
- //# sourceMappingURL=chunk-WC2N7PM5.js.map
28984
+ //# sourceMappingURL=chunk-OPNWSDXC.js.map