Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies (v1) #874

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/2.utils/1.request.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ Captures a stream from a request.

Reads request body and tries to safely parse using [destr](https://github.com/unjs/destr).

Be aware that this utility is not restricted to `application/json` and will parse `application/x-www-form-urlencoded` content types. Because of this, authenticated `GET`/`POST` handlers may be at risk of a [CSRF](https://owasp.org/www-community/attacks/csrf) attack, and must check the `content-type` header manually.

**Example:**

```ts
Expand Down
Binary file modified docs/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dev": "undocs dev"
},
"devDependencies": {
"undocs": "^0.2.26"
"undocs": "^0.2.29"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"cookie-es": "^1.2.2",
"crossws": "^0.2.4",
"crossws": "^0.3.1",
"defu": "^6.1.4",
"destr": "^2.0.3",
"iron-webcrypto": "^1.2.1",
Expand Down Expand Up @@ -68,5 +68,5 @@
"vitest": "^2.1.2",
"zod": "^3.23.8"
},
"packageManager": "pnpm@9.7.1"
"packageManager": "pnpm@9.12.0"
}
11 changes: 9 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/utils/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ export function readRawBody<E extends Encoding = "utf8">(

/**
* Reads request body and tries to safely parse using [destr](https://github.com/unjs/destr).
*
* Be aware that this utility is not restricted to `application/json` and will parse `application/x-www-form-urlencoded` content types.
*
* Be aware that this utility is not restricted to `application/json` and will parse `application/x-www-form-urlencoded` content types.
* Because of this, authenticated `GET`/`POST` handlers may be at risk of a [CSRF](https://owasp.org/www-community/attacks/csrf) attack, and must check the `content-type` header manually.
*
*
* @example
* export default defineEventHandler(async (event) => {
* const body = await readBody(event);
Expand Down
Loading