typebox 1.0.24 → 1.0.25

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.
@@ -7,7 +7,7 @@ import { BuildSchema, CheckSchema, ErrorSchema } from './schema.mjs';
7
7
  export function BuildPrefixItems(context, schema, value) {
8
8
  return E.ReduceAnd(schema.prefixItems.map((schema, index) => {
9
9
  const isLength = E.IsGreaterEqualThan(E.Constant(index), E.Member(value, 'length'));
10
- const isSchema = BuildSchema(context, schema, `value[${index}]`);
10
+ const isSchema = BuildSchema(context, schema, `${value}[${index}]`);
11
11
  const addIndex = context.AddIndex(E.Constant(index));
12
12
  const guarded = context.UseUnevaluated() ? E.And(isSchema, addIndex) : isSchema;
13
13
  return E.Or(isLength, guarded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "A Runtime Type System for JavaScript",
4
- "version": "1.0.24",
4
+ "version": "1.0.25",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"