webpipe-js 2.0.36 → 2.0.37
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 +4 -2
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1063,9 +1063,10 @@ var Parser = class {
|
|
|
1063
1063
|
this.skipInlineSpaces();
|
|
1064
1064
|
this.expect("pipeline");
|
|
1065
1065
|
this.skipInlineSpaces();
|
|
1066
|
+
const nameStart = this.pos;
|
|
1066
1067
|
const name = this.parseIdentifier();
|
|
1067
1068
|
const end = this.pos;
|
|
1068
|
-
return { kind: "ExecutingPipeline", name, start, end };
|
|
1069
|
+
return { kind: "ExecutingPipeline", name, nameStart, start, end };
|
|
1069
1070
|
});
|
|
1070
1071
|
if (executingPipeline) return executingPipeline;
|
|
1071
1072
|
const executingVariable = this.tryParse(() => {
|
|
@@ -1076,9 +1077,10 @@ var Parser = class {
|
|
|
1076
1077
|
this.skipInlineSpaces();
|
|
1077
1078
|
const varType = this.parseIdentifier();
|
|
1078
1079
|
this.skipInlineSpaces();
|
|
1080
|
+
const nameStart = this.pos;
|
|
1079
1081
|
const name = this.parseIdentifier();
|
|
1080
1082
|
const end = this.pos;
|
|
1081
|
-
return { kind: "ExecutingVariable", varType, name, start, end };
|
|
1083
|
+
return { kind: "ExecutingVariable", varType, name, nameStart, start, end };
|
|
1082
1084
|
});
|
|
1083
1085
|
if (executingVariable) return executingVariable;
|
|
1084
1086
|
throw new ParseFailure("when", this.pos);
|
package/dist/index.d.cts
CHANGED
|
@@ -246,12 +246,14 @@ type When = {
|
|
|
246
246
|
} | {
|
|
247
247
|
kind: 'ExecutingPipeline';
|
|
248
248
|
name: string;
|
|
249
|
+
nameStart: number;
|
|
249
250
|
start: number;
|
|
250
251
|
end: number;
|
|
251
252
|
} | {
|
|
252
253
|
kind: 'ExecutingVariable';
|
|
253
254
|
varType: string;
|
|
254
255
|
name: string;
|
|
256
|
+
nameStart: number;
|
|
255
257
|
start: number;
|
|
256
258
|
end: number;
|
|
257
259
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -246,12 +246,14 @@ type When = {
|
|
|
246
246
|
} | {
|
|
247
247
|
kind: 'ExecutingPipeline';
|
|
248
248
|
name: string;
|
|
249
|
+
nameStart: number;
|
|
249
250
|
start: number;
|
|
250
251
|
end: number;
|
|
251
252
|
} | {
|
|
252
253
|
kind: 'ExecutingVariable';
|
|
253
254
|
varType: string;
|
|
254
255
|
name: string;
|
|
256
|
+
nameStart: number;
|
|
255
257
|
start: number;
|
|
256
258
|
end: number;
|
|
257
259
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1010,9 +1010,10 @@ var Parser = class {
|
|
|
1010
1010
|
this.skipInlineSpaces();
|
|
1011
1011
|
this.expect("pipeline");
|
|
1012
1012
|
this.skipInlineSpaces();
|
|
1013
|
+
const nameStart = this.pos;
|
|
1013
1014
|
const name = this.parseIdentifier();
|
|
1014
1015
|
const end = this.pos;
|
|
1015
|
-
return { kind: "ExecutingPipeline", name, start, end };
|
|
1016
|
+
return { kind: "ExecutingPipeline", name, nameStart, start, end };
|
|
1016
1017
|
});
|
|
1017
1018
|
if (executingPipeline) return executingPipeline;
|
|
1018
1019
|
const executingVariable = this.tryParse(() => {
|
|
@@ -1023,9 +1024,10 @@ var Parser = class {
|
|
|
1023
1024
|
this.skipInlineSpaces();
|
|
1024
1025
|
const varType = this.parseIdentifier();
|
|
1025
1026
|
this.skipInlineSpaces();
|
|
1027
|
+
const nameStart = this.pos;
|
|
1026
1028
|
const name = this.parseIdentifier();
|
|
1027
1029
|
const end = this.pos;
|
|
1028
|
-
return { kind: "ExecutingVariable", varType, name, start, end };
|
|
1030
|
+
return { kind: "ExecutingVariable", varType, name, nameStart, start, end };
|
|
1029
1031
|
});
|
|
1030
1032
|
if (executingVariable) return executingVariable;
|
|
1031
1033
|
throw new ParseFailure("when", this.pos);
|