webpipe-js 2.0.35 → 2.0.36
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 +5 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -524,18 +524,22 @@ var Parser = class {
|
|
|
524
524
|
this.skipInlineSpaces();
|
|
525
525
|
let config = "";
|
|
526
526
|
let configType = "quoted";
|
|
527
|
+
let configStart = void 0;
|
|
528
|
+
let configEnd = void 0;
|
|
527
529
|
if (this.cur() === ":") {
|
|
528
530
|
this.pos++;
|
|
529
531
|
this.skipInlineSpaces();
|
|
532
|
+
configStart = this.pos;
|
|
530
533
|
const res = this.parseStepConfig();
|
|
531
534
|
config = res.config;
|
|
532
535
|
configType = res.configType;
|
|
536
|
+
configEnd = this.pos;
|
|
533
537
|
}
|
|
534
538
|
const condition = this.parseStepCondition();
|
|
535
539
|
const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
|
|
536
540
|
this.skipWhitespaceOnly();
|
|
537
541
|
const end = this.pos;
|
|
538
|
-
return { kind: "Regular", name, args, config, configType, condition, parsedJoinTargets, start, end };
|
|
542
|
+
return { kind: "Regular", name, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
539
543
|
}
|
|
540
544
|
/**
|
|
541
545
|
* Parse optional step condition (tag expression after the config)
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -471,18 +471,22 @@ var Parser = class {
|
|
|
471
471
|
this.skipInlineSpaces();
|
|
472
472
|
let config = "";
|
|
473
473
|
let configType = "quoted";
|
|
474
|
+
let configStart = void 0;
|
|
475
|
+
let configEnd = void 0;
|
|
474
476
|
if (this.cur() === ":") {
|
|
475
477
|
this.pos++;
|
|
476
478
|
this.skipInlineSpaces();
|
|
479
|
+
configStart = this.pos;
|
|
477
480
|
const res = this.parseStepConfig();
|
|
478
481
|
config = res.config;
|
|
479
482
|
configType = res.configType;
|
|
483
|
+
configEnd = this.pos;
|
|
480
484
|
}
|
|
481
485
|
const condition = this.parseStepCondition();
|
|
482
486
|
const parsedJoinTargets = name === "join" ? this.parseJoinTaskNames(config) : void 0;
|
|
483
487
|
this.skipWhitespaceOnly();
|
|
484
488
|
const end = this.pos;
|
|
485
|
-
return { kind: "Regular", name, args, config, configType, condition, parsedJoinTargets, start, end };
|
|
489
|
+
return { kind: "Regular", name, args, config, configType, configStart, configEnd, condition, parsedJoinTargets, start, end };
|
|
486
490
|
}
|
|
487
491
|
/**
|
|
488
492
|
* Parse optional step condition (tag expression after the config)
|