webpipe-js 2.0.38 → 2.0.39
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 +9 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,11 @@ var Parser = class {
|
|
|
71
71
|
return new Map(this.pipelineRanges);
|
|
72
72
|
}
|
|
73
73
|
getVariableRanges() {
|
|
74
|
-
|
|
74
|
+
const copy = /* @__PURE__ */ new Map();
|
|
75
|
+
for (const [varType, byName] of this.variableRanges.entries()) {
|
|
76
|
+
copy.set(varType, new Map(byName));
|
|
77
|
+
}
|
|
78
|
+
return copy;
|
|
75
79
|
}
|
|
76
80
|
getTestLetVariables() {
|
|
77
81
|
return [...this.testLetVariables];
|
|
@@ -964,7 +968,10 @@ var Parser = class {
|
|
|
964
968
|
const value = this.parseBacktickString();
|
|
965
969
|
const inlineComment = this.parseInlineComment();
|
|
966
970
|
const end = this.pos;
|
|
967
|
-
this.variableRanges.
|
|
971
|
+
if (!this.variableRanges.has(varType)) {
|
|
972
|
+
this.variableRanges.set(varType, /* @__PURE__ */ new Map());
|
|
973
|
+
}
|
|
974
|
+
this.variableRanges.get(varType).set(name, { start, end });
|
|
968
975
|
this.skipWhitespaceOnly();
|
|
969
976
|
return { varType, name, value, inlineComment: inlineComment || void 0, start, end };
|
|
970
977
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -305,10 +305,10 @@ declare function getPipelineRanges(text: string): Map<string, {
|
|
|
305
305
|
start: number;
|
|
306
306
|
end: number;
|
|
307
307
|
}>;
|
|
308
|
-
declare function getVariableRanges(text: string): Map<string, {
|
|
308
|
+
declare function getVariableRanges(text: string): Map<string, Map<string, {
|
|
309
309
|
start: number;
|
|
310
310
|
end: number;
|
|
311
|
-
}
|
|
311
|
+
}>>;
|
|
312
312
|
declare function getTestLetVariables(text: string): TestLetVariable[];
|
|
313
313
|
declare function getTestLetVariableRanges(text: string): Map<string, {
|
|
314
314
|
start: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -305,10 +305,10 @@ declare function getPipelineRanges(text: string): Map<string, {
|
|
|
305
305
|
start: number;
|
|
306
306
|
end: number;
|
|
307
307
|
}>;
|
|
308
|
-
declare function getVariableRanges(text: string): Map<string, {
|
|
308
|
+
declare function getVariableRanges(text: string): Map<string, Map<string, {
|
|
309
309
|
start: number;
|
|
310
310
|
end: number;
|
|
311
|
-
}
|
|
311
|
+
}>>;
|
|
312
312
|
declare function getTestLetVariables(text: string): TestLetVariable[];
|
|
313
313
|
declare function getTestLetVariableRanges(text: string): Map<string, {
|
|
314
314
|
start: number;
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,11 @@ var Parser = class {
|
|
|
18
18
|
return new Map(this.pipelineRanges);
|
|
19
19
|
}
|
|
20
20
|
getVariableRanges() {
|
|
21
|
-
|
|
21
|
+
const copy = /* @__PURE__ */ new Map();
|
|
22
|
+
for (const [varType, byName] of this.variableRanges.entries()) {
|
|
23
|
+
copy.set(varType, new Map(byName));
|
|
24
|
+
}
|
|
25
|
+
return copy;
|
|
22
26
|
}
|
|
23
27
|
getTestLetVariables() {
|
|
24
28
|
return [...this.testLetVariables];
|
|
@@ -911,7 +915,10 @@ var Parser = class {
|
|
|
911
915
|
const value = this.parseBacktickString();
|
|
912
916
|
const inlineComment = this.parseInlineComment();
|
|
913
917
|
const end = this.pos;
|
|
914
|
-
this.variableRanges.
|
|
918
|
+
if (!this.variableRanges.has(varType)) {
|
|
919
|
+
this.variableRanges.set(varType, /* @__PURE__ */ new Map());
|
|
920
|
+
}
|
|
921
|
+
this.variableRanges.get(varType).set(name, { start, end });
|
|
915
922
|
this.skipWhitespaceOnly();
|
|
916
923
|
return { varType, name, value, inlineComment: inlineComment || void 0, start, end };
|
|
917
924
|
}
|