{"_id":"@typeschema/fastest-validator","_rev":"1-28f4293467f15ca968cc9a41295b743c","name":"@typeschema/fastest-validator","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@typeschema/fastest-validator","version":"0.1.0","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","_id":"@typeschema/fastest-validator@0.1.0","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"homepage":"https://typeschema.com","bugs":{"url":"https://github.com/decs/typeschema/issues"},"//":"This file is partially generated. Only some fields can be modified manually!","dist":{"shasum":"c42e12ff2f58aa31ed00585fbe0eb64a86e06037","tarball":"https://registry.npmjs.org/@typeschema/fastest-validator/-/fastest-validator-0.1.0.tgz","fileCount":7,"integrity":"sha512-D0kLQWM7driMeDP97zyK2wSU+RA+br7Iw5PL3l3Ykw72ALv61hbA+icJ0r0XFiF4YTxvmccYcOVBlSgAAKzRFQ==","signatures":[{"sig":"MEUCIQCH3qP+i6B6TdX0cHLMZn25s7Ze0zuvzClnna4U3cLqWwIgBUNtOWMXRErLM9CACYVc3XHAD+yAG+H8Eb460OVwbJ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11253},"main":"dist/index.js","_from":"file:typeschema-fastest-validator-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"lint":"eslint src --fix","test":"vitest --config ../../vitest.config.ts","build":"tsup --config ../../tsup.config.ts","lint:package":"publint && attw --pack","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"//version":"This field is manually maintained.","_resolved":"/tmp/44a0d00043c0eac1dab3d9ac802a82cf/typeschema-fastest-validator-0.1.0.tgz","_integrity":"sha512-D0kLQWM7driMeDP97zyK2wSU+RA+br7Iw5PL3l3Ykw72ALv61hbA+icJ0r0XFiF4YTxvmccYcOVBlSgAAKzRFQ==","repository":{"url":"git+https://github.com/decs/typeschema.git","type":"git"},"_npmVersion":"10.2.4","description":"Reusable adapter for fastest-validator schemas","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"@typeschema/core":"0.13.2"},"//description":"This field is manually maintained.","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"fastest-validator":"^1.17.0"},"peerDependencies":{"fastest-validator":"^1.17.0"},"//devDependencies":"This field is manually maintained.","//peerDependencies":"This field is manually maintained.","peerDependenciesMeta":{"fastest-validator":{"optional":true}},"//peerDependenciesMeta":"This field is manually maintained.","_npmOperationalInternal":{"tmp":"tmp/fastest-validator_0.1.0_1710574979299_0.41482885492379085","host":"s3://npm-registry-packages"}},"0.2.0":{"//":"This file is partially generated. Only some fields can be modified manually!","name":"@typeschema/fastest-validator","//version":"This field is manually maintained.","version":"0.2.0","//description":"This field is manually maintained.","description":"Reusable adapter for fastest-validator schemas","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"homepage":"https://typeschema.com","license":"MIT","author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"dependencies":{"@typeschema/core":"0.14.0"},"//devDependencies":"This field is manually maintained.","devDependencies":{"fastest-validator":"^1.19.0"},"//peerDependencies":"This field is manually maintained.","peerDependencies":{"fastest-validator":"^1.19.0"},"//peerDependenciesMeta":"This field is manually maintained.","peerDependenciesMeta":{"fastest-validator":{"optional":true}},"scripts":{"build":"tsup --config ../../tsup.config.ts","lint":"eslint src --fix","lint:package":"publint && attw --pack","test":"vitest --config ../../vitest.config.ts","upgrade:deps":"ncu -u --dep=dev,peer --reject ow"},"_id":"@typeschema/fastest-validator@0.2.0","bugs":{"url":"https://github.com/decs/typeschema/issues"},"_integrity":"sha512-NJT9eIw19RJ5pkhX6yGT0S46Lout5XlgwIL70Bwiv5iDcBKq3Wh5qRKfxcjP5KwB3CkeP25MmcXmVm9ruE75Mg==","_resolved":"/tmp/8a1fff8ae52a7f8724feadff729f8c95/typeschema-fastest-validator-0.2.0.tgz","_from":"file:typeschema-fastest-validator-0.2.0.tgz","_nodeVersion":"20.16.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-NJT9eIw19RJ5pkhX6yGT0S46Lout5XlgwIL70Bwiv5iDcBKq3Wh5qRKfxcjP5KwB3CkeP25MmcXmVm9ruE75Mg==","shasum":"33940e09fd5c092eed26a5d03d1250fdaa31db21","tarball":"https://registry.npmjs.org/@typeschema/fastest-validator/-/fastest-validator-0.2.0.tgz","fileCount":7,"unpackedSize":11253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpH7Nz8JWnkfSKiu2jAlKtNRTjyWSATREfgpUCXhUFDQIgVifgne5yGooUvSc64De7oJBqpjhR246DAYstmMr67JE="}]},"_npmUser":{"name":"decs","email":"andrefonsecacosta@gmail.com"},"directories":{},"maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fastest-validator_0.2.0_1724625235366_0.5858157110141615"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-16T07:42:59.224Z","modified":"2024-08-25T22:33:55.752Z","0.1.0":"2024-03-16T07:42:59.492Z","0.2.0":"2024-08-25T22:33:55.544Z"},"bugs":{"url":"https://github.com/decs/typeschema/issues"},"author":{"name":"André Costa","email":"andrefonsecacosta@gmail.com"},"license":"MIT","homepage":"https://typeschema.com","keywords":["typescript","type","schema","adapter","validation","inference","assert"],"repository":{"type":"git","url":"git+https://github.com/decs/typeschema.git"},"description":"Reusable adapter for fastest-validator schemas","maintainers":[{"name":"decs","email":"andrefonsecacosta@gmail.com"}],"readme":"<!-- This file is generated. Do not modify it manually! -->\n\n<img src=\"https://typeschema.com/assets/logo.png\" width=\"64px\" alt=\"TypeSchema\" />\n<h1>@typeschema/fastest-validator</h1>\n<p>\n  <a href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/license/decs/typeschema\" alt=\"License\"></a>\n  <a href=\"https://bundlephobia.com/package/@typeschema/fastest-validator\" rel=\"nofollow\"><img src=\"https://img.shields.io/bundlephobia/minzip/%40typeschema%2Ffastest-validator\" alt=\"Bundle size\"></a>\n  <a href=\"https://www.npmjs.com/package/@typeschema/fastest-validator\" rel=\"nofollow\"><img src=\"https://img.shields.io/npm/dw/@typeschema/fastest-validator.svg\" alt=\"npm downloads\"></a>\n  <a href=\"https://github.com/decs/typeschema/stargazers\" rel=\"nofollow\"><img src=\"https://img.shields.io/github/stars/decs/typeschema\" alt=\"GitHub stars\"></a>\n</p>\n<p>\n  Reusable adapter for fastest-validator schemas\n  <br />\n  <a href=\"https://typeschema.com\">https://typeschema.com</a> ✨\n</p>\n\n```ts\nimport {initTRPC} from '@trpc/server';\n\nimport {wrap} from '@typeschema/fastest-validator';\n\nconst schema = {name: 'string'};\n\nconst t = initTRPC.create();\nconst appRouter = t.router({\n  hello: t.procedure\n    .input(wrap(schema))\n    .query(({input}) => `Hello, ${(input as any).name}!`),\n  //         ^? unknown\n});\n\n```\n\nUse it directly or through [`@typeschema/main`](https://github.com/decs/typeschema/tree/main/packages/main)\n\n## Dependencies\n- [`fastest-validator`](https://www.npmjs.com/package/fastest-validator):  (`^1.19.0`)\n\n## API\n\n### Validation\n- `wrap(schema)`: Returns the wrapped schema with access to its operations\n- `validate(schema, data)`: Returns the validated data or a list of validation issues\n- `assert(schema, data)`: Returns the validated data or throws an `AggregateError`\n","readmeFilename":"README.md"}