@sinclair/typebox 0.28.19 → 0.28.20

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.
@@ -33,7 +33,7 @@ export declare enum ValueErrorType {
33
33
  NumberMultipleOf = 30,
34
34
  NumberExclusiveMinimum = 31,
35
35
  NumberExclusiveMaximum = 32,
36
- NumberMinumum = 33,
36
+ NumberMinimum = 33,
37
37
  NumberMaximum = 34,
38
38
  Object = 35,
39
39
  ObjectMinProperties = 36,
package/errors/errors.js CHANGED
@@ -69,7 +69,7 @@ var ValueErrorType;
69
69
  ValueErrorType[ValueErrorType["NumberMultipleOf"] = 30] = "NumberMultipleOf";
70
70
  ValueErrorType[ValueErrorType["NumberExclusiveMinimum"] = 31] = "NumberExclusiveMinimum";
71
71
  ValueErrorType[ValueErrorType["NumberExclusiveMaximum"] = 32] = "NumberExclusiveMaximum";
72
- ValueErrorType[ValueErrorType["NumberMinumum"] = 33] = "NumberMinumum";
72
+ ValueErrorType[ValueErrorType["NumberMinimum"] = 33] = "NumberMinimum";
73
73
  ValueErrorType[ValueErrorType["NumberMaximum"] = 34] = "NumberMaximum";
74
74
  ValueErrorType[ValueErrorType["Object"] = 35] = "Object";
75
75
  ValueErrorType[ValueErrorType["ObjectMinProperties"] = 36] = "ObjectMinProperties";
@@ -337,10 +337,10 @@ var ValueErrors;
337
337
  yield { type: ValueErrorType.NumberExclusiveMaximum, schema, path, value, message: `Expected number to be less than ${schema.exclusiveMaximum}` };
338
338
  }
339
339
  if (IsDefined(schema.minimum) && !(value >= schema.minimum)) {
340
- yield { type: ValueErrorType.NumberMaximum, schema, path, value, message: `Expected number to be greater or equal to ${schema.minimum}` };
340
+ yield { type: ValueErrorType.NumberMinimum, schema, path, value, message: `Expected number to be greater or equal to ${schema.minimum}` };
341
341
  }
342
342
  if (IsDefined(schema.maximum) && !(value <= schema.maximum)) {
343
- yield { type: ValueErrorType.NumberMinumum, schema, path, value, message: `Expected number to be less or equal to ${schema.maximum}` };
343
+ yield { type: ValueErrorType.NumberMaximum, schema, path, value, message: `Expected number to be less or equal to ${schema.maximum}` };
344
344
  }
345
345
  }
346
346
  function* Object(schema, references, path, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinclair/typebox",
3
- "version": "0.28.19",
3
+ "version": "0.28.20",
4
4
  "description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",
5
5
  "keywords": [
6
6
  "typescript",