New:Socket for Asana Is Now Available.Learn more
Get Started

@tanstack/valibot-adapter

Package Overview
Dependencies
Maintainers
6
Versions
487
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tanstack/valibot-adapter - npm Package Compare versions

Comparing version
1.166.8
to
1.166.9
+13
-11
dist/cjs/index.cjs

@@ -1,14 +0,16 @@

"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const valibot = require("valibot");
const valibotValidator = (options) => {
return {
types: {
input: null,
output: null
},
parse: (input) => valibot.parse(options, input)
};
let valibot = require("valibot");
//#region src/index.ts
var valibotValidator = (options) => {
return {
types: {
input: null,
output: null
},
parse: (input) => (0, valibot.parse)(options, input)
};
};
//#endregion
exports.valibotValidator = valibotValidator;
//# sourceMappingURL=index.cjs.map
//# sourceMappingURL=index.cjs.map

@@ -1,1 +0,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;;"}
{"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"}
import { parse } from "valibot";
const valibotValidator = (options) => {
return {
types: {
input: null,
output: null
},
parse: (input) => parse(options, input)
};
//#region src/index.ts
var valibotValidator = (options) => {
return {
types: {
input: null,
output: null
},
parse: (input) => parse(options, input)
};
};
export {
valibotValidator
};
//# sourceMappingURL=index.js.map
//#endregion
export { valibotValidator };
//# sourceMappingURL=index.js.map

@@ -1,1 +0,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;"}
{"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"}
{
"name": "@tanstack/valibot-adapter",
"version": "1.166.8",
"version": "1.166.9",
"description": "Modern and scalable routing for React applications",

@@ -58,3 +58,3 @@ "author": "Tanner Linsley",

"vite": "*",
"@tanstack/react-router": "1.167.1"
"@tanstack/react-router": "1.167.2"
},

@@ -61,0 +61,0 @@ "peerDependencies": {