@tanstack/valibot-adapter 1.166.7 → 1.166.9
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/cjs/index.cjs +13 -11
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +13 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
let valibot = require("valibot");
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var valibotValidator = (options) => {
|
|
5
|
+
return {
|
|
6
|
+
types: {
|
|
7
|
+
input: null,
|
|
8
|
+
output: null
|
|
9
|
+
},
|
|
10
|
+
parse: (input) => (0, valibot.parse)(options, input)
|
|
11
|
+
};
|
|
12
12
|
};
|
|
13
|
+
//#endregion
|
|
13
14
|
exports.valibotValidator = valibotValidator;
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"mappings":";;;AAOA,IAAa,oBACX,YACsC;AACtC,QAAO;EACL,OAAO;GACL,OAAO;GACP,QAAQ;GACT;EACD,QAAQ,WAAA,GAAA,QAAA,OAAgB,SAAS,MAAM;EACxC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { parse } from "valibot";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
//#region src/index.ts
|
|
3
|
+
var valibotValidator = (options) => {
|
|
4
|
+
return {
|
|
5
|
+
types: {
|
|
6
|
+
input: null,
|
|
7
|
+
output: null
|
|
8
|
+
},
|
|
9
|
+
parse: (input) => parse(options, input)
|
|
10
|
+
};
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
12
|
+
//#endregion
|
|
13
|
+
export { valibotValidator };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"mappings":";;AAOA,IAAa,oBACX,YACsC;AACtC,QAAO;EACL,OAAO;GACL,OAAO;GACP,QAAQ;GACT;EACD,QAAQ,UAAU,MAAM,SAAS,MAAM;EACxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/valibot-adapter",
|
|
3
|
-
"version": "1.166.
|
|
3
|
+
"version": "1.166.9",
|
|
4
4
|
"description": "Modern and scalable routing for React applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^19.0.0",
|
|
56
56
|
"react-dom": "^19.0.0",
|
|
57
57
|
"vite": "*",
|
|
58
|
-
"@tanstack/react-router": "1.
|
|
58
|
+
"@tanstack/react-router": "1.167.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"valibot": "^1.0.0 || ^1.0.0-beta.5 || ^1.0.0-rc",
|