webpipe-js 2.0.25 → 2.0.26

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
@@ -1207,10 +1207,16 @@ var Parser = class {
1207
1207
  this.expect('"');
1208
1208
  const inlineComment = this.parseInlineComment();
1209
1209
  this.skipSpaces();
1210
+ const variables = [];
1210
1211
  const mocks = [];
1211
1212
  const tests = [];
1212
1213
  while (true) {
1213
1214
  this.skipSpaces();
1215
+ const letBinding = this.tryParse(() => this.parseLetBinding());
1216
+ if (letBinding) {
1217
+ variables.push(letBinding);
1218
+ continue;
1219
+ }
1214
1220
  const withMock = this.tryParse(() => this.parseMock());
1215
1221
  if (withMock) {
1216
1222
  mocks.push(withMock);
@@ -1228,7 +1234,7 @@ var Parser = class {
1228
1234
  }
1229
1235
  break;
1230
1236
  }
1231
- return { name, mocks, tests, inlineComment: inlineComment || void 0 };
1237
+ return { name, variables, mocks, tests, inlineComment: inlineComment || void 0 };
1232
1238
  }
1233
1239
  };
1234
1240
  function parseProgram(text) {
package/dist/index.d.cts CHANGED
@@ -149,6 +149,7 @@ type ResultBranchType = {
149
149
  };
150
150
  interface Describe {
151
151
  name: string;
152
+ variables: Array<[string, string]>;
152
153
  mocks: Mock[];
153
154
  tests: It[];
154
155
  lineNumber?: number;
package/dist/index.d.ts CHANGED
@@ -149,6 +149,7 @@ type ResultBranchType = {
149
149
  };
150
150
  interface Describe {
151
151
  name: string;
152
+ variables: Array<[string, string]>;
152
153
  mocks: Mock[];
153
154
  tests: It[];
154
155
  lineNumber?: number;
package/dist/index.mjs CHANGED
@@ -1157,10 +1157,16 @@ var Parser = class {
1157
1157
  this.expect('"');
1158
1158
  const inlineComment = this.parseInlineComment();
1159
1159
  this.skipSpaces();
1160
+ const variables = [];
1160
1161
  const mocks = [];
1161
1162
  const tests = [];
1162
1163
  while (true) {
1163
1164
  this.skipSpaces();
1165
+ const letBinding = this.tryParse(() => this.parseLetBinding());
1166
+ if (letBinding) {
1167
+ variables.push(letBinding);
1168
+ continue;
1169
+ }
1164
1170
  const withMock = this.tryParse(() => this.parseMock());
1165
1171
  if (withMock) {
1166
1172
  mocks.push(withMock);
@@ -1178,7 +1184,7 @@ var Parser = class {
1178
1184
  }
1179
1185
  break;
1180
1186
  }
1181
- return { name, mocks, tests, inlineComment: inlineComment || void 0 };
1187
+ return { name, variables, mocks, tests, inlineComment: inlineComment || void 0 };
1182
1188
  }
1183
1189
  };
1184
1190
  function parseProgram(text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webpipe-js",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "Web Pipe parser",
5
5
  "license": "ISC",
6
6
  "author": "William Cotton",