From bcfadc8f604527e433746e39707696160de00b18 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Sat, 16 Mar 2024 17:51:10 +0000 Subject: [PATCH] Add zod - for validation of uploaded settings --- package.json | 1 + pnpm-lock.yaml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4eb7951a..2a5cdd8b 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "semver": "^7.5.4", "slugify": "^1.6.6", "subsrt-ts": "^2.1.2", + "zod": "^3.22.4", "zustand": "^4.4.7" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 313fae85..20d11713 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -138,6 +138,9 @@ dependencies: subsrt-ts: specifier: ^2.1.2 version: 2.1.2 + zod: + specifier: ^3.22.4 + version: 3.22.4 zustand: specifier: ^4.4.7 version: 4.4.7(@types/react@18.2.45)(immer@10.0.3)(react@18.2.0) @@ -7370,7 +7373,6 @@ packages: /workbox-google-analytics@7.0.0: resolution: {integrity: sha512-MEYM1JTn/qiC3DbpvP2BVhyIH+dV/5BjHk756u9VbwuAhu0QHyKscTnisQuz21lfRpOwiS9z4XdqeVAKol0bzg==} - deprecated: It is not compatible with newer versions of GA starting with v4, as long as you are using GAv3 it should be ok, but the package is not longer being maintained dependencies: workbox-background-sync: 7.0.0 workbox-core: 7.0.0 @@ -7527,6 +7529,10 @@ packages: engines: {node: '>=12.20'} dev: true + /zod@3.22.4: + resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} + dev: false + /zustand@4.4.7(@types/react@18.2.45)(immer@10.0.3)(react@18.2.0): resolution: {integrity: sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==} engines: {node: '>=12.7.0'}