webpipe-js 2.0.37 → 2.0.38
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 +2 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1248,6 +1248,7 @@ var Parser = class {
|
|
|
1248
1248
|
this.skipInlineSpaces();
|
|
1249
1249
|
this.expect("mock");
|
|
1250
1250
|
this.skipInlineSpaces();
|
|
1251
|
+
const targetStart = this.pos;
|
|
1251
1252
|
let target;
|
|
1252
1253
|
if (this.text.startsWith("query ", this.pos) || this.text.startsWith("mutation ", this.pos)) {
|
|
1253
1254
|
const type = this.consumeWhile((c) => c !== " ");
|
|
@@ -1263,7 +1264,7 @@ var Parser = class {
|
|
|
1263
1264
|
const returnValue = this.parseBacktickString();
|
|
1264
1265
|
this.skipSpaces();
|
|
1265
1266
|
const end = this.pos;
|
|
1266
|
-
return { target, returnValue, start, end };
|
|
1267
|
+
return { target, targetStart, returnValue, start, end };
|
|
1267
1268
|
}
|
|
1268
1269
|
parseMock() {
|
|
1269
1270
|
return this.parseMockHead("with");
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1195,6 +1195,7 @@ var Parser = class {
|
|
|
1195
1195
|
this.skipInlineSpaces();
|
|
1196
1196
|
this.expect("mock");
|
|
1197
1197
|
this.skipInlineSpaces();
|
|
1198
|
+
const targetStart = this.pos;
|
|
1198
1199
|
let target;
|
|
1199
1200
|
if (this.text.startsWith("query ", this.pos) || this.text.startsWith("mutation ", this.pos)) {
|
|
1200
1201
|
const type = this.consumeWhile((c) => c !== " ");
|
|
@@ -1210,7 +1211,7 @@ var Parser = class {
|
|
|
1210
1211
|
const returnValue = this.parseBacktickString();
|
|
1211
1212
|
this.skipSpaces();
|
|
1212
1213
|
const end = this.pos;
|
|
1213
|
-
return { target, returnValue, start, end };
|
|
1214
|
+
return { target, targetStart, returnValue, start, end };
|
|
1214
1215
|
}
|
|
1215
1216
|
parseMock() {
|
|
1216
1217
|
return this.parseMockHead("with");
|