@lunora/values 1.0.0-alpha.10 → 1.0.0-alpha.11

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  export { ValidationError, describeValue, formatPath } from './packem_shared/ValidationError-CoyFtkxj.mjs';
2
2
  export { jsonSchemaFromNode, objectSchemaFromNodes } from './packem_shared/jsonSchemaFromNode-e81rO5qr.mjs';
3
3
  export { argsToJsonSchema, toJsonSchema } from './packem_shared/argsToJsonSchema-DSAZmlYY.mjs';
4
- export { isOrWrapsFromValidator, optionalInner, v } from './packem_shared/isOrWrapsFromValidator-Cxpmyfut.mjs';
4
+ export { isOrWrapsFromValidator, optionalInner, v } from './packem_shared/isOrWrapsFromValidator-BQtxt-B8.mjs';
5
5
  export { DEFER_VALIDATION, installCompiledValidatorMap, parseValidatorMap } from './packem_shared/DEFER_VALIDATION-CIKr17sW.mjs';
@@ -212,11 +212,11 @@ const array = (inner) => {
212
212
  fail(context, "array", value);
213
213
  }
214
214
  const { length } = value;
215
- const out = Array.from({ length });
215
+ const out = [];
216
216
  const { path } = context;
217
217
  for (let index = 0; index < length; index += 1) {
218
218
  path.push(index);
219
- out[index] = innerInternal._parse(value[index], context);
219
+ out.push(innerInternal._parse(value[index], context));
220
220
  path.pop();
221
221
  }
222
222
  return out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/values",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "Validators for Lunora: the v.* validator suite with end-to-end return-type inference",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -46,7 +46,7 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@lunora/errors": "1.0.0-alpha.7"
49
+ "@lunora/errors": "1.0.0-alpha.8"
50
50
  },
51
51
  "engines": {
52
52
  "node": "^22.15.0 || >=24.11.0"