vovk 3.0.0-draft.458 → 3.0.0-draft.459

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.
@@ -39,9 +39,9 @@ function withValidationLibrary({ isForm, disableServerSideValidation, skipSchema
39
39
  // Return a brand-new async generator that yields validated items
40
40
  return (async function* () {
41
41
  let i = 0;
42
- for await (let item of data) {
42
+ for await (const item of data) {
43
43
  if (validateEachIteration || i === 0) {
44
- item = (await validate(item, iteration, { type: 'iteration', req, status: 200, i })) ?? item;
44
+ await validate(item, iteration, { type: 'iteration', req, status: 200, i });
45
45
  }
46
46
  i++;
47
47
  yield item;
@@ -39,9 +39,9 @@ function withValidationLibrary({ isForm, disableServerSideValidation, skipSchema
39
39
  // Return a brand-new async generator that yields validated items
40
40
  return (async function* () {
41
41
  let i = 0;
42
- for await (let item of data) {
42
+ for await (const item of data) {
43
43
  if (validateEachIteration || i === 0) {
44
- item = (await validate(item, iteration, { type: 'iteration', req, status: 200, i })) ?? item;
44
+ await validate(item, iteration, { type: 'iteration', req, status: 200, i });
45
45
  }
46
46
  i++;
47
47
  yield item;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.458",
3
+ "version": "3.0.0-draft.459",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",