webpipe-js 2.0.67 → 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 +14 -3
- package/dist/index.mjs +14 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -378,7 +378,7 @@ var Parser = class {
|
|
|
378
378
|
if (bt !== null) return { config: bt, configType: "backtick" };
|
|
379
379
|
const dq = this.tryParse(() => this.parseQuotedString());
|
|
380
380
|
if (dq !== null) return { config: dq, configType: "quoted" };
|
|
381
|
-
const id = this.tryParse(() => this.
|
|
381
|
+
const id = this.tryParse(() => this.parseScopedIdentifier());
|
|
382
382
|
if (id !== null) return { config: id, configType: "identifier" };
|
|
383
383
|
throw new ParseFailure("step-config", this.pos);
|
|
384
384
|
}
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
@@ -324,7 +324,7 @@ var Parser = class {
|
|
|
324
324
|
if (bt !== null) return { config: bt, configType: "backtick" };
|
|
325
325
|
const dq = this.tryParse(() => this.parseQuotedString());
|
|
326
326
|
if (dq !== null) return { config: dq, configType: "quoted" };
|
|
327
|
-
const id = this.tryParse(() => this.
|
|
327
|
+
const id = this.tryParse(() => this.parseScopedIdentifier());
|
|
328
328
|
if (id !== null) return { config: id, configType: "identifier" };
|
|
329
329
|
throw new ParseFailure("step-config", this.pos);
|
|
330
330
|
}
|
|
@@ -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.
|
|
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
|
-
|
|
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");
|