webpipe-js 2.0.68 → 2.0.69

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
@@ -1366,10 +1366,21 @@ var Parser = class {
1366
1366
  if (this.text.startsWith("query ", this.pos) || this.text.startsWith("mutation ", this.pos)) {
1367
1367
  const type = this.consumeWhile((c) => c !== " ");
1368
1368
  this.skipInlineSpaces();
1369
- const name = this.consumeWhile((c) => c !== " " && c !== "\n");
1369
+ const name = this.parseScopedIdentifier();
1370
1370
  target = `${type}.${name}`;
1371
+ } else if (this.text.startsWith("pipeline ", this.pos)) {
1372
+ this.pos += 9;
1373
+ const name = this.parseScopedIdentifier();
1374
+ target = `pipeline.${name}`;
1371
1375
  } else {
1372
- target = this.consumeWhile((c) => c !== " " && c !== "\n");
1376
+ const middlewareType = this.parseIdentifier();
1377
+ if (this.cur() === ".") {
1378
+ this.pos++;
1379
+ const varName = this.parseScopedIdentifier();
1380
+ target = `${middlewareType}.${varName}`;
1381
+ } else {
1382
+ target = middlewareType;
1383
+ }
1373
1384
  }
1374
1385
  this.skipInlineSpaces();
1375
1386
  this.expect("returning");
package/dist/index.mjs CHANGED
@@ -1312,10 +1312,21 @@ var Parser = class {
1312
1312
  if (this.text.startsWith("query ", this.pos) || this.text.startsWith("mutation ", this.pos)) {
1313
1313
  const type = this.consumeWhile((c) => c !== " ");
1314
1314
  this.skipInlineSpaces();
1315
- const name = this.consumeWhile((c) => c !== " " && c !== "\n");
1315
+ const name = this.parseScopedIdentifier();
1316
1316
  target = `${type}.${name}`;
1317
+ } else if (this.text.startsWith("pipeline ", this.pos)) {
1318
+ this.pos += 9;
1319
+ const name = this.parseScopedIdentifier();
1320
+ target = `pipeline.${name}`;
1317
1321
  } else {
1318
- target = this.consumeWhile((c) => c !== " " && c !== "\n");
1322
+ const middlewareType = this.parseIdentifier();
1323
+ if (this.cur() === ".") {
1324
+ this.pos++;
1325
+ const varName = this.parseScopedIdentifier();
1326
+ target = `${middlewareType}.${varName}`;
1327
+ } else {
1328
+ target = middlewareType;
1329
+ }
1319
1330
  }
1320
1331
  this.skipInlineSpaces();
1321
1332
  this.expect("returning");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.68",
3
+ "version": "2.0.69",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",