@forklaunch/validator 0.6.12 → 0.6.14
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/lib/__test__/utils/mockSchemaValidator.d.mts +1 -1
- package/lib/__test__/utils/mockSchemaValidator.d.ts +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/{schema.types-BJaGPLeb.d.mts → schema.types-CDVoqb4z.d.mts} +1 -1
- package/lib/{schema.types-BJaGPLeb.d.ts → schema.types-CDVoqb4z.d.ts} +1 -1
- package/lib/src/typebox/index.d.mts +2 -2
- package/lib/src/typebox/index.d.ts +2 -2
- package/lib/src/zod/index.d.mts +2 -2
- package/lib/src/zod/index.d.ts +2 -2
- package/package.json +13 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
2
|
-
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-
|
|
2
|
+
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-CDVoqb4z.mjs';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import '@sinclair/typebox/compiler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
2
|
-
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-
|
|
2
|
+
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-CDVoqb4z.js';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import '@sinclair/typebox/compiler';
|
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ParseError } from './schema.types-
|
|
2
|
-
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-
|
|
1
|
+
import { P as ParseError } from './schema.types-CDVoqb4z.mjs';
|
|
2
|
+
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-CDVoqb4z.mjs';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ParseError } from './schema.types-
|
|
2
|
-
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-
|
|
1
|
+
import { P as ParseError } from './schema.types-CDVoqb4z.js';
|
|
2
|
+
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-CDVoqb4z.js';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
|
@@ -41,7 +41,7 @@ declare class TypeboxSchemaValidator implements SchemaValidator<(<T extends TObj
|
|
|
41
41
|
never: TNever;
|
|
42
42
|
binary: TTransform<TString, Uint8Array>;
|
|
43
43
|
file: TTransform<TString, (name: string, type: MimeType) => File>;
|
|
44
|
-
type: <T>() => T
|
|
44
|
+
type: <T>() => TTransform<TAny, T>;
|
|
45
45
|
/**
|
|
46
46
|
* Extracts the error type of a schema for error messages.
|
|
47
47
|
*
|
|
@@ -41,7 +41,7 @@ declare class TypeboxSchemaValidator implements SchemaValidator<(<T extends TObj
|
|
|
41
41
|
never: TNever;
|
|
42
42
|
binary: TTransform<TString, Uint8Array>;
|
|
43
43
|
file: TTransform<TString, (name: string, type: MimeType) => File>;
|
|
44
|
-
type: <T>() => T
|
|
44
|
+
type: <T>() => TTransform<TAny, T>;
|
|
45
45
|
/**
|
|
46
46
|
* Extracts the error type of a schema for error messages.
|
|
47
47
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TypeboxSchemaValidator } from '../../schema.types-
|
|
2
|
-
export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-
|
|
1
|
+
import { T as TypeboxSchemaValidator } from '../../schema.types-CDVoqb4z.mjs';
|
|
2
|
+
export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-CDVoqb4z.mjs';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TypeboxSchemaValidator } from '../../schema.types-
|
|
2
|
-
export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-
|
|
1
|
+
import { T as TypeboxSchemaValidator } from '../../schema.types-CDVoqb4z.js';
|
|
2
|
+
export { f as TCatchall, l as TIdiomaticSchema, i as TObject, h as TObjectShape, g as TOuterArray, o as TResolve, j as TSchemaTranslate, m as TUnionTupleContainer, k as UnboxedTObjectSchema, n as UnionTupleTResolve } from '../../schema.types-CDVoqb4z.js';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
package/lib/src/zod/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZodSchemaValidator } from '../../schema.types-
|
|
2
|
-
export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-
|
|
1
|
+
import { Z as ZodSchemaValidator } from '../../schema.types-CDVoqb4z.mjs';
|
|
2
|
+
export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-CDVoqb4z.mjs';
|
|
3
3
|
export { ZodArray, ZodEffects, ZodLiteral, ZodNever, ZodPipeline, ZodRawShape, ZodType, ZodTypeAny, ZodUnknown } from 'zod';
|
|
4
4
|
import '@forklaunch/common';
|
|
5
5
|
import 'openapi3-ts/oas31';
|
package/lib/src/zod/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZodSchemaValidator } from '../../schema.types-
|
|
2
|
-
export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-
|
|
1
|
+
import { Z as ZodSchemaValidator } from '../../schema.types-CDVoqb4z.js';
|
|
2
|
+
export { p as OriginalZodObject, x as TupleZodResolve, u as UnboxedZodObjectSchema, z as UnionZodResolve, q as ZodCatchall, v as ZodIdiomaticSchema, p as ZodObject, s as ZodObjectShape, r as ZodOuterArray, C as ZodRecordKey, B as ZodResolve, t as ZodSchemaTranslate, w as ZodTupleContainer, y as ZodUnionContainer } from '../../schema.types-CDVoqb4z.js';
|
|
3
3
|
export { ZodArray, ZodEffects, ZodLiteral, ZodNever, ZodPipeline, ZodRawShape, ZodType, ZodTypeAny, ZodUnknown } from 'zod';
|
|
4
4
|
import '@forklaunch/common';
|
|
5
5
|
import 'openapi3-ts/oas31';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/validator",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14",
|
|
4
4
|
"description": "Schema validator for ForkLaunch components.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -59,29 +59,29 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@anatine/zod-openapi": "^2.2.8",
|
|
62
|
-
"@sinclair/typebox": "^0.34.
|
|
63
|
-
"zod": "^3.25.
|
|
64
|
-
"@forklaunch/common": "0.3.
|
|
62
|
+
"@sinclair/typebox": "^0.34.35",
|
|
63
|
+
"zod": "^3.25.67",
|
|
64
|
+
"@forklaunch/common": "0.3.12"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@eslint/js": "^9.
|
|
68
|
-
"@types/jest": "^
|
|
69
|
-
"@types/node": "^24.0.
|
|
70
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
71
|
-
"@vitest/coverage-v8": "^3.2.
|
|
67
|
+
"@eslint/js": "^9.29.0",
|
|
68
|
+
"@types/jest": "^30.0.0",
|
|
69
|
+
"@types/node": "^24.0.3",
|
|
70
|
+
"@typescript/native-preview": "7.0.0-dev.20250618.1",
|
|
71
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
72
72
|
"eslint-config-prettier": "^10.1.5",
|
|
73
|
-
"eslint-plugin-prettier": "^5.
|
|
73
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
74
74
|
"globals": "^16.2.0",
|
|
75
75
|
"jest": "^30.0.0",
|
|
76
76
|
"openapi3-ts": "^4.4.0",
|
|
77
|
-
"ts-jest": "^29.
|
|
77
|
+
"ts-jest": "^29.4.0",
|
|
78
78
|
"ts-node": "^10.9.2",
|
|
79
79
|
"tsup": "^8.5.0",
|
|
80
80
|
"typedoc": "^0.28.5",
|
|
81
|
-
"typescript-eslint": "^8.34.
|
|
81
|
+
"typescript-eslint": "^8.34.1"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
|
-
"build": "
|
|
84
|
+
"build": "tsc --noEmit && tsup index.ts src/typebox/index.ts src/zod/index.ts __test__/utils/mockSchemaValidator.ts --format cjs,esm --no-splitting --tsconfig tsconfig.json --outDir lib --dts --clean",
|
|
85
85
|
"check": "depcheck",
|
|
86
86
|
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
87
87
|
"docs": "typedoc --out docs *",
|