webpipe-js 2.0.33 → 2.0.34

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
@@ -514,9 +514,15 @@ var Parser = class {
514
514
  const name = this.parseIdentifier();
515
515
  const args = this.parseInlineArgs();
516
516
  this.skipInlineSpaces();
517
- this.expect(":");
518
- this.skipInlineSpaces();
519
- const { config, configType } = this.parseStepConfig();
517
+ let config = "";
518
+ let configType = "quoted";
519
+ if (this.cur() === ":") {
520
+ this.pos++;
521
+ this.skipInlineSpaces();
522
+ const res = this.parseStepConfig();
523
+ config = res.config;
524
+ configType = res.configType;
525
+ }
520
526
  const condition = this.parseStepCondition();
521
527
  const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
522
528
  this.skipWhitespaceOnly();
package/dist/index.mjs CHANGED
@@ -462,9 +462,15 @@ var Parser = class {
462
462
  const name = this.parseIdentifier();
463
463
  const args = this.parseInlineArgs();
464
464
  this.skipInlineSpaces();
465
- this.expect(":");
466
- this.skipInlineSpaces();
467
- const { config, configType } = this.parseStepConfig();
465
+ let config = "";
466
+ let configType = "quoted";
467
+ if (this.cur() === ":") {
468
+ this.pos++;
469
+ this.skipInlineSpaces();
470
+ const res = this.parseStepConfig();
471
+ config = res.config;
472
+ configType = res.configType;
473
+ }
468
474
  const condition = this.parseStepCondition();
469
475
  const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
470
476
  this.skipWhitespaceOnly();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.33",
3
+ "version": "2.0.34",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",