webpipe-js 2.0.39 → 2.0.40

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/index.cjs CHANGED
@@ -1057,11 +1057,13 @@ var Parser = class {
1057
1057
  const start = this.pos;
1058
1058
  this.expect("calling");
1059
1059
  this.skipInlineSpaces();
1060
+ const methodStart = this.pos;
1060
1061
  const method = this.parseMethod();
1061
1062
  this.skipInlineSpaces();
1063
+ const pathStart = this.pos;
1062
1064
  const path = this.consumeWhile((c) => c !== "\n");
1063
1065
  const end = this.pos;
1064
- return { kind: "CallingRoute", method, path, start, end };
1066
+ return { kind: "CallingRoute", method, methodStart, path, pathStart, start, end };
1065
1067
  });
1066
1068
  if (calling) return calling;
1067
1069
  const executingPipeline = this.tryParse(() => {
package/dist/index.d.cts CHANGED
@@ -241,7 +241,9 @@ interface It {
241
241
  type When = {
242
242
  kind: 'CallingRoute';
243
243
  method: string;
244
+ methodStart: number;
244
245
  path: string;
246
+ pathStart: number;
245
247
  start: number;
246
248
  end: number;
247
249
  } | {
package/dist/index.d.ts CHANGED
@@ -241,7 +241,9 @@ interface It {
241
241
  type When = {
242
242
  kind: 'CallingRoute';
243
243
  method: string;
244
+ methodStart: number;
244
245
  path: string;
246
+ pathStart: number;
245
247
  start: number;
246
248
  end: number;
247
249
  } | {
package/dist/index.mjs CHANGED
@@ -1004,11 +1004,13 @@ var Parser = class {
1004
1004
  const start = this.pos;
1005
1005
  this.expect("calling");
1006
1006
  this.skipInlineSpaces();
1007
+ const methodStart = this.pos;
1007
1008
  const method = this.parseMethod();
1008
1009
  this.skipInlineSpaces();
1010
+ const pathStart = this.pos;
1009
1011
  const path = this.consumeWhile((c) => c !== "\n");
1010
1012
  const end = this.pos;
1011
- return { kind: "CallingRoute", method, path, start, end };
1013
+ return { kind: "CallingRoute", method, methodStart, path, pathStart, start, end };
1012
1014
  });
1013
1015
  if (calling) return calling;
1014
1016
  const executingPipeline = this.tryParse(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.39",
3
+ "version": "2.0.40",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",