webpipe-js 2.0.13 → 2.0.14

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
@@ -509,17 +509,18 @@ var Parser = class {
509
509
  */
510
510
  parseStepCondition() {
511
511
  this.skipInlineSpaces();
512
- if (this.cur() !== "@") {
512
+ const ch = this.cur();
513
+ if (ch !== "@" && ch !== "(") {
513
514
  return void 0;
514
515
  }
515
516
  let expr = this.parseTagExpr();
516
517
  while (true) {
517
518
  this.skipInlineSpaces();
518
- const ch = this.cur();
519
- if (ch === "\n" || ch === "\r" || ch === "#" || this.text.startsWith("//", this.pos)) {
519
+ const ch2 = this.cur();
520
+ if (ch2 === "\n" || ch2 === "\r" || ch2 === "#" || this.text.startsWith("//", this.pos)) {
520
521
  break;
521
522
  }
522
- if (ch !== "@") {
523
+ if (ch2 !== "@") {
523
524
  break;
524
525
  }
525
526
  const nextTag = this.parseTag();
package/dist/index.mjs CHANGED
@@ -459,17 +459,18 @@ var Parser = class {
459
459
  */
460
460
  parseStepCondition() {
461
461
  this.skipInlineSpaces();
462
- if (this.cur() !== "@") {
462
+ const ch = this.cur();
463
+ if (ch !== "@" && ch !== "(") {
463
464
  return void 0;
464
465
  }
465
466
  let expr = this.parseTagExpr();
466
467
  while (true) {
467
468
  this.skipInlineSpaces();
468
- const ch = this.cur();
469
- if (ch === "\n" || ch === "\r" || ch === "#" || this.text.startsWith("//", this.pos)) {
469
+ const ch2 = this.cur();
470
+ if (ch2 === "\n" || ch2 === "\r" || ch2 === "#" || this.text.startsWith("//", this.pos)) {
470
471
  break;
471
472
  }
472
- if (ch !== "@") {
473
+ if (ch2 !== "@") {
473
474
  break;
474
475
  }
475
476
  const nextTag = this.parseTag();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",