Skip to content

Commit

Permalink
Ez 22 beta4 (#2004)
Browse files Browse the repository at this point in the history
* Using EZ 22 Beta 4.

* Adjusting the client name.
  • Loading branch information
RobinTail authored Jan 15, 2025
1 parent f75569f commit 45d2561
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@octokit/core": "^6.1.3",
"compression": "^1.7.5",
"express": "^5.0.1",
"express-zod-api": "^22.0.0-beta.3",
"express-zod-api": "^22.0.0-beta.4",
"fast-memory-cache": "^2.0.4",
"http-errors": "^2.0.0",
"mongoose": "^8.9.4",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExpressZodAPIClient, Input } from "./generated/api-client.ts";
import { Client, Input } from "./generated/api-client.ts";
const host = "https://api.incaseofmy.de:443";

const client = new ExpressZodAPIClient(async (method, path, params) => {
const client = new Client(async (method, path, params) => {
const hasBody = !["get", "delete"].includes(method);
const searchParams = hasBody ? "" : `?${new URLSearchParams(params)}`;
const response = await fetch(`${host}${path}${searchParams}`, {
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": "1.0.0",
"license": "MIT",
"private": true,
"workspaces": ["backend", "frontend"],
"workspaces": [
"backend",
"frontend"
],
"type": "module",
"devDependencies": {
"@types/node": "^22.10.5",
Expand All @@ -24,5 +27,6 @@
"**/react-dom": "^18.3.1",
"**/@types/react": "^18.3.1",
"**/@types/react-dom": "^18.3.0"
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2500,10 +2500,10 @@ expect-type@^1.1.0:
resolved "https://registry.yarnpkg.com/expect-type/-/expect-type-1.1.0.tgz#a146e414250d13dfc49eafcfd1344a4060fa4c75"
integrity sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==

express-zod-api@^22.0.0-beta.3:
version "22.0.0-beta.3"
resolved "https://registry.yarnpkg.com/express-zod-api/-/express-zod-api-22.0.0-beta.3.tgz#9442fa6013f8cc0e11baed51a15406bffacb0d43"
integrity sha512-XyxbYJ1hncWhVKoQpgp/XUtzOWUTiRGYwEkzJiBv7rjSBLaAjzBSDkhkKR5vlrLmbZk0IHqVR4/1aM/9546kWg==
express-zod-api@^22.0.0-beta.4:
version "22.0.0-beta.4"
resolved "https://registry.yarnpkg.com/express-zod-api/-/express-zod-api-22.0.0-beta.4.tgz#728d194d1504b669b28e98c091208447ba09e218"
integrity sha512-RGFVyjeA5pTyh/VbX7sVNnYk0mJf1zJV+nRoFZ/1tOQZbm4nK3/NswzQa9mNVvu1cUj2YlTohAIwiLsW5VaNJA==
dependencies:
ansis "^3.2.0"
node-mocks-http "^1.16.2"
Expand Down

0 comments on commit 45d2561

Please sign in to comment.