webpipe-js 2.0.19 → 2.0.20

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
@@ -1064,9 +1064,14 @@ var Parser = class {
1064
1064
  const tests = [];
1065
1065
  while (true) {
1066
1066
  this.skipSpaces();
1067
- const m = this.tryParse(() => this.parseMock());
1068
- if (m) {
1069
- mocks.push(m);
1067
+ const withMock = this.tryParse(() => this.parseMock());
1068
+ if (withMock) {
1069
+ mocks.push(withMock);
1070
+ continue;
1071
+ }
1072
+ const andMock = this.tryParse(() => this.parseAndMock());
1073
+ if (andMock) {
1074
+ mocks.push(andMock);
1070
1075
  continue;
1071
1076
  }
1072
1077
  const it = this.tryParse(() => this.parseIt());
package/dist/index.mjs CHANGED
@@ -1014,9 +1014,14 @@ var Parser = class {
1014
1014
  const tests = [];
1015
1015
  while (true) {
1016
1016
  this.skipSpaces();
1017
- const m = this.tryParse(() => this.parseMock());
1018
- if (m) {
1019
- mocks.push(m);
1017
+ const withMock = this.tryParse(() => this.parseMock());
1018
+ if (withMock) {
1019
+ mocks.push(withMock);
1020
+ continue;
1021
+ }
1022
+ const andMock = this.tryParse(() => this.parseAndMock());
1023
+ if (andMock) {
1024
+ mocks.push(andMock);
1020
1025
  continue;
1021
1026
  }
1022
1027
  const it = this.tryParse(() => this.parseIt());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",