webpipe-js 2.0.23 → 2.0.24

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
@@ -1094,16 +1094,7 @@ var Parser = class {
1094
1094
  if (!m) break;
1095
1095
  mocks.push(m);
1096
1096
  }
1097
- this.expect("when");
1098
- this.skipInlineSpaces();
1099
- const when = this.parseWhen();
1100
- this.skipSpaces();
1101
1097
  const variables = [];
1102
- let input;
1103
- let body;
1104
- let headers;
1105
- let cookies;
1106
- let firstWithClause = true;
1107
1098
  while (true) {
1108
1099
  const letBinding = this.tryParse(() => {
1109
1100
  const binding = this.parseLetBinding();
@@ -1114,6 +1105,18 @@ var Parser = class {
1114
1105
  variables.push(letBinding);
1115
1106
  continue;
1116
1107
  }
1108
+ break;
1109
+ }
1110
+ this.expect("when");
1111
+ this.skipInlineSpaces();
1112
+ const when = this.parseWhen();
1113
+ this.skipSpaces();
1114
+ let input;
1115
+ let body;
1116
+ let headers;
1117
+ let cookies;
1118
+ let firstWithClause = true;
1119
+ while (true) {
1117
1120
  const parsed = this.tryParse(() => {
1118
1121
  if (firstWithClause) {
1119
1122
  this.expect("with");
package/dist/index.mjs CHANGED
@@ -1044,16 +1044,7 @@ var Parser = class {
1044
1044
  if (!m) break;
1045
1045
  mocks.push(m);
1046
1046
  }
1047
- this.expect("when");
1048
- this.skipInlineSpaces();
1049
- const when = this.parseWhen();
1050
- this.skipSpaces();
1051
1047
  const variables = [];
1052
- let input;
1053
- let body;
1054
- let headers;
1055
- let cookies;
1056
- let firstWithClause = true;
1057
1048
  while (true) {
1058
1049
  const letBinding = this.tryParse(() => {
1059
1050
  const binding = this.parseLetBinding();
@@ -1064,6 +1055,18 @@ var Parser = class {
1064
1055
  variables.push(letBinding);
1065
1056
  continue;
1066
1057
  }
1058
+ break;
1059
+ }
1060
+ this.expect("when");
1061
+ this.skipInlineSpaces();
1062
+ const when = this.parseWhen();
1063
+ this.skipSpaces();
1064
+ let input;
1065
+ let body;
1066
+ let headers;
1067
+ let cookies;
1068
+ let firstWithClause = true;
1069
+ while (true) {
1067
1070
  const parsed = this.tryParse(() => {
1068
1071
  if (firstWithClause) {
1069
1072
  this.expect("with");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",