webpipe-js 2.0.39 → 2.0.41
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 +6 -2
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -523,7 +523,9 @@ var Parser = class {
|
|
|
523
523
|
const start = this.pos;
|
|
524
524
|
this.expect("|>");
|
|
525
525
|
this.skipInlineSpaces();
|
|
526
|
+
const nameStart = this.pos;
|
|
526
527
|
const name = this.parseIdentifier();
|
|
528
|
+
const nameEnd = this.pos;
|
|
527
529
|
const args = this.parseInlineArgs();
|
|
528
530
|
this.skipInlineSpaces();
|
|
529
531
|
let config = "";
|
|
@@ -543,7 +545,7 @@ var Parser = class {
|
|
|
543
545
|
const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
|
|
544
546
|
this.skipWhitespaceOnly();
|
|
545
547
|
const end = this.pos;
|
|
546
|
-
return { kind: "Regular", name, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
548
|
+
return { kind: "Regular", name, nameStart, nameEnd, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
547
549
|
}
|
|
548
550
|
/**
|
|
549
551
|
* Parse optional step condition (tag expression after the config)
|
|
@@ -1057,11 +1059,13 @@ var Parser = class {
|
|
|
1057
1059
|
const start = this.pos;
|
|
1058
1060
|
this.expect("calling");
|
|
1059
1061
|
this.skipInlineSpaces();
|
|
1062
|
+
const methodStart = this.pos;
|
|
1060
1063
|
const method = this.parseMethod();
|
|
1061
1064
|
this.skipInlineSpaces();
|
|
1065
|
+
const pathStart = this.pos;
|
|
1062
1066
|
const path = this.consumeWhile((c) => c !== "\n");
|
|
1063
1067
|
const end = this.pos;
|
|
1064
|
-
return { kind: "CallingRoute", method, path, start, end };
|
|
1068
|
+
return { kind: "CallingRoute", method, methodStart, path, pathStart, start, end };
|
|
1065
1069
|
});
|
|
1066
1070
|
if (calling) return calling;
|
|
1067
1071
|
const executingPipeline = this.tryParse(() => {
|
package/dist/index.d.cts
CHANGED
|
@@ -153,6 +153,8 @@ type TagExpr = {
|
|
|
153
153
|
type PipelineStep = {
|
|
154
154
|
kind: 'Regular';
|
|
155
155
|
name: string;
|
|
156
|
+
nameStart: number;
|
|
157
|
+
nameEnd: number;
|
|
156
158
|
args: string[];
|
|
157
159
|
config: string;
|
|
158
160
|
configType: ConfigType;
|
|
@@ -241,7 +243,9 @@ interface It {
|
|
|
241
243
|
type When = {
|
|
242
244
|
kind: 'CallingRoute';
|
|
243
245
|
method: string;
|
|
246
|
+
methodStart: number;
|
|
244
247
|
path: string;
|
|
248
|
+
pathStart: number;
|
|
245
249
|
start: number;
|
|
246
250
|
end: number;
|
|
247
251
|
} | {
|
package/dist/index.d.ts
CHANGED
|
@@ -153,6 +153,8 @@ type TagExpr = {
|
|
|
153
153
|
type PipelineStep = {
|
|
154
154
|
kind: 'Regular';
|
|
155
155
|
name: string;
|
|
156
|
+
nameStart: number;
|
|
157
|
+
nameEnd: number;
|
|
156
158
|
args: string[];
|
|
157
159
|
config: string;
|
|
158
160
|
configType: ConfigType;
|
|
@@ -241,7 +243,9 @@ interface It {
|
|
|
241
243
|
type When = {
|
|
242
244
|
kind: 'CallingRoute';
|
|
243
245
|
method: string;
|
|
246
|
+
methodStart: number;
|
|
244
247
|
path: string;
|
|
248
|
+
pathStart: number;
|
|
245
249
|
start: number;
|
|
246
250
|
end: number;
|
|
247
251
|
} | {
|
package/dist/index.mjs
CHANGED
|
@@ -470,7 +470,9 @@ var Parser = class {
|
|
|
470
470
|
const start = this.pos;
|
|
471
471
|
this.expect("|>");
|
|
472
472
|
this.skipInlineSpaces();
|
|
473
|
+
const nameStart = this.pos;
|
|
473
474
|
const name = this.parseIdentifier();
|
|
475
|
+
const nameEnd = this.pos;
|
|
474
476
|
const args = this.parseInlineArgs();
|
|
475
477
|
this.skipInlineSpaces();
|
|
476
478
|
let config = "";
|
|
@@ -490,7 +492,7 @@ var Parser = class {
|
|
|
490
492
|
const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
|
|
491
493
|
this.skipWhitespaceOnly();
|
|
492
494
|
const end = this.pos;
|
|
493
|
-
return { kind: "Regular", name, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
495
|
+
return { kind: "Regular", name, nameStart, nameEnd, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
494
496
|
}
|
|
495
497
|
/**
|
|
496
498
|
* Parse optional step condition (tag expression after the config)
|
|
@@ -1004,11 +1006,13 @@ var Parser = class {
|
|
|
1004
1006
|
const start = this.pos;
|
|
1005
1007
|
this.expect("calling");
|
|
1006
1008
|
this.skipInlineSpaces();
|
|
1009
|
+
const methodStart = this.pos;
|
|
1007
1010
|
const method = this.parseMethod();
|
|
1008
1011
|
this.skipInlineSpaces();
|
|
1012
|
+
const pathStart = this.pos;
|
|
1009
1013
|
const path = this.consumeWhile((c) => c !== "\n");
|
|
1010
1014
|
const end = this.pos;
|
|
1011
|
-
return { kind: "CallingRoute", method, path, start, end };
|
|
1015
|
+
return { kind: "CallingRoute", method, methodStart, path, pathStart, start, end };
|
|
1012
1016
|
});
|
|
1013
1017
|
if (calling) return calling;
|
|
1014
1018
|
const executingPipeline = this.tryParse(() => {
|