@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.
@@ -1,14 +1,16 @@
1
- "use strict";
2
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const valibot = require("valibot");
4
- const valibotValidator = (options) => {
5
- return {
6
- types: {
7
- input: null,
8
- output: null
9
- },
10
- parse: (input) => valibot.parse(options, input)
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
- //# sourceMappingURL=index.cjs.map
15
+
16
+ //# sourceMappingURL=index.cjs.map
@@ -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"],"names":["parse"],"mappings":";;;AAOO,MAAM,mBAAmB,CAC9B,YACsC;AACtC,SAAO;AAAA,IACL,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,IAAA;AAAA,IAEV,OAAO,CAAC,UAAUA,QAAAA,MAAM,SAAS,KAAK;AAAA,EAAA;AAE1C;;"}
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
- const valibotValidator = (options) => {
3
- return {
4
- types: {
5
- input: null,
6
- output: null
7
- },
8
- parse: (input) => parse(options, input)
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
- export {
12
- valibotValidator
13
- };
14
- //# sourceMappingURL=index.js.map
12
+ //#endregion
13
+ export { valibotValidator };
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -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"],"names":[],"mappings":";AAOO,MAAM,mBAAmB,CAC9B,YACsC;AACtC,SAAO;AAAA,IACL,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,IAAA;AAAA,IAEV,OAAO,CAAC,UAAU,MAAM,SAAS,KAAK;AAAA,EAAA;AAE1C;"}
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.7",
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.166.7"
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",