Merged in fix/unpin-zod-version (pull request #1419)

Unpin zod version

Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-02-26 12:46:26 +00:00
parent d5e5b9a526
commit 15fa01cbb2
3 changed files with 8 additions and 9 deletions

View File

@@ -100,7 +100,7 @@
"superjson": "^2.2.1",
"usehooks-ts": "3.1.0",
"uuid": "^11.0.5",
"zod": "3.22.4",
"zod": "^3.22.4",
"zustand": "^4.5.2"
},
"devDependencies": {

View File

@@ -44,7 +44,6 @@ const getVerifiedUserSuccessCounter = meter.createCounter(
"trpc.user.get-success"
)
const getVerifiedUserFailCounter = meter.createCounter("trpc.user.get-fail")
const getProfileCounter = meter.createCounter("trpc.user.profile")
const getProfileSuccessCounter = meter.createCounter(
"trpc.user.profile-success"
)
@@ -275,7 +274,7 @@ const getCreditCards = cache(
const expirationDate = dt(card.expirationDate).startOf("day")
const currentDate = dt().startOf("day")
return expirationDate > currentDate
} catch (error) {
} catch (_) {
return false
}
}
@@ -303,7 +302,7 @@ export const userQueryRouter = router({
return null
}
if ("error" in data) {
if ("error" in data && data.error) {
return data
}

View File

@@ -6382,7 +6382,7 @@ __metadata:
typescript-plugin-css-modules: "npm:^5.1.0"
usehooks-ts: "npm:3.1.0"
uuid: "npm:^11.0.5"
zod: "npm:3.22.4"
zod: "npm:^3.22.4"
zustand: "npm:^4.5.2"
languageName: unknown
linkType: soft
@@ -22285,10 +22285,10 @@ __metadata:
languageName: node
linkType: hard
"zod@npm:3.22.4":
version: 3.22.4
resolution: "zod@npm:3.22.4"
checksum: 10c0/7578ab283dac0eee66a0ad0fc4a7f28c43e6745aadb3a529f59a4b851aa10872b3890398b3160f257f4b6817b4ce643debdda4fb21a2c040adda7862cab0a587
"zod@npm:^3.22.4":
version: 3.24.2
resolution: "zod@npm:3.24.2"
checksum: 10c0/c638c7220150847f13ad90635b3e7d0321b36cce36f3fc6050ed960689594c949c326dfe2c6fa87c14b126ee5d370ccdebd6efb304f41ef5557a4aaca2824565
languageName: node
linkType: hard