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 +7 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
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
package/dist/index.d.ts
CHANGED
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) {
|