typebox 1.1.1 → 1.1.2

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.
@@ -21,7 +21,7 @@ export class Validator {
21
21
  if (this.result.Check(value))
22
22
  return value;
23
23
  const [_result, errors] = Errors(this.build.Context(), this.build.Schema(), value);
24
- throw new ParseError(this.build.Context(), this.build.Schema(), errors);
24
+ throw new ParseError(this.build.Schema(), value, errors);
25
25
  }
26
26
  /** Returns errors for the given value */
27
27
  Errors(value) {
@@ -47,7 +47,6 @@ export * from './recursiveRef.mjs';
47
47
  export * from './ref.mjs';
48
48
  export * from './required.mjs';
49
49
  export * from './schema.mjs';
50
- export * from './schema.mjs';
51
50
  export * from './then.mjs';
52
51
  export * from './type.mjs';
53
52
  export * from './uniqueItems.mjs';
@@ -53,7 +53,6 @@ export * from './recursiveRef.mjs';
53
53
  export * from './ref.mjs';
54
54
  export * from './required.mjs';
55
55
  export * from './schema.mjs';
56
- export * from './schema.mjs';
57
56
  export * from './then.mjs';
58
57
  export * from './type.mjs';
59
58
  export * from './uniqueItems.mjs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"
package/readme.md CHANGED
@@ -189,12 +189,12 @@ type S = Type.Static<typeof S> // type S = {
189
189
 
190
190
  [Documentation](https://sinclairzx81.github.io/typebox/#/docs/schema/overview)
191
191
 
192
+ The Schema submodule is a low level JSON Schema spec compliant validation system that supports Drafts 3 through to 2020-12. This validation system is decoupled from both Type.* and Value.* submodules and is designed to be an ultra lightweight, high performance alternative to Ajv for compiling and validating with native JSON Schema.
193
+
192
194
  ```typescript
193
195
  import Schema from 'typebox/schema'
194
196
  ```
195
197
 
196
- The Value submodule is developed over a more low level JSON Schema spec compliant validation system that supports Drafts 3 through to 2020-12. This validation system is entirely decoupled from both Type and Value submodules and is designed to be a ultra lightweight, high performance alternative to Ajv.
197
-
198
198
  ### Example
199
199
 
200
200
  The following uses the Schema submodule to compile and parse from JSON Schema.