From 0089cf96b15eecf2a0331fab5ca0374c6b6da420 Mon Sep 17 00:00:00 2001 From: hywax Date: Fri, 5 Jan 2024 20:29:45 +0500 Subject: [PATCH] chore: zod validation --- package.json | 6 ++++-- yarn.lock | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9ede747..6b68f28 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "@vueuse/nuxt": "^10.7.0", "consola": "^3.2.3", "defu": "^6.1.3", - "yaml": "^2.3.4" + "h3-zod": "^0.5.2", + "yaml": "^2.3.4", + "zod": "^3.22.4" }, "devDependencies": { "@antfu/eslint-config": "^2.6.1", @@ -49,4 +51,4 @@ "lint-staged": { "*.ts": "yarn run lint" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 33df54d..1a85fb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5312,6 +5312,11 @@ gzip-size@^7.0.0: dependencies: duplexer "^0.1.2" +h3-zod@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/h3-zod/-/h3-zod-0.5.2.tgz#8c107271f40ff23a2a0602833e05c4da98f8241b" + integrity sha512-yBfMqF04n+WgSjgR0gxi/Z7/NUPIet/3mJ56aOTB9xEKAx0r3tJcJW74qMuqr4t+uxlIaCfzwr4XPLRHES55iw== + h3@^1.8.1, h3@^1.8.2, h3@^1.9.0: version "1.9.0" resolved "https://registry.yarnpkg.com/h3/-/h3-1.9.0.tgz#c5f512a93026df9837db6f30c9ef51135dd46752" @@ -10014,3 +10019,8 @@ zip-stream@^5.0.1: archiver-utils "^4.0.1" compress-commons "^5.0.1" readable-stream "^3.6.0" + +zod@^3.22.4: + version "3.22.4" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.4.tgz#f31c3a9386f61b1f228af56faa9255e845cf3fff" + integrity sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==