fix(deps): update dependency content-disposition to v2 (#880)
* fix(deps): update dependency content-disposition to v2 * refactor(content-disposition): use new named export --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nicolas Meienberger <github@thisprops.com>
This commit is contained in:
parent
575e01cab9
commit
970a7fa42f
4 changed files with 12 additions and 15 deletions
|
|
@ -2,7 +2,7 @@ import { Readable } from "node:stream";
|
|||
import { Hono } from "hono";
|
||||
import { validator } from "hono-openapi";
|
||||
import { streamSSE } from "hono/streaming";
|
||||
import contentDisposition from "content-disposition";
|
||||
import { create } from "content-disposition";
|
||||
import {
|
||||
createRepositoryBody,
|
||||
createRepositoryDto,
|
||||
|
|
@ -223,7 +223,7 @@ export const repositoriesController = new Hono()
|
|||
status: 200,
|
||||
headers: {
|
||||
"Content-Type": dumpStream.contentType,
|
||||
"Content-Disposition": contentDisposition(filename, {
|
||||
"Content-Disposition": create(filename, {
|
||||
fallback: filename.replace(/[^\x20-\x7E]/g, "?"),
|
||||
}),
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
|
|
|
|||
7
bun.lock
7
bun.lock
|
|
@ -41,7 +41,7 @@
|
|||
"clsx": "^2.1.1",
|
||||
"commander": "^14.0.3",
|
||||
"consola": "^3.4.2",
|
||||
"content-disposition": "^1.1.0",
|
||||
"content-disposition": "^2.0.0",
|
||||
"cron-parser": "^5.5.0",
|
||||
"date-fns": "^4.1.0",
|
||||
"dither-plugin": "^1.1.1",
|
||||
|
|
@ -97,6 +97,7 @@
|
|||
"happy-dom": "^20.9.0",
|
||||
"msw": "^2.14.6",
|
||||
"nitro": "^3.0.1-alpha.2",
|
||||
"oxfmt": "0.48.0",
|
||||
"tailwindcss": "^4.3.0",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"typescript": "^6.0.3",
|
||||
|
|
@ -1372,7 +1373,7 @@
|
|||
|
||||
"consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
|
||||
|
||||
"content-disposition": ["content-disposition@1.1.0", "", {}, "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g=="],
|
||||
"content-disposition": ["content-disposition@2.0.0", "", {}, "sha512-qqGFOrKmFP1lTfG24opOJFcTMza1BqyTSUKVbMGUP5uRsBH+C00Q1loOk+JSFshyRE0ji4HtCJeNN2WHWd6PGw=="],
|
||||
|
||||
"content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
|
||||
|
||||
|
|
@ -2650,6 +2651,8 @@
|
|||
|
||||
"encoding-sniffer/iconv-lite": ["iconv-lite@0.6.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw=="],
|
||||
|
||||
"express/content-disposition": ["content-disposition@1.1.0", "", {}, "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g=="],
|
||||
|
||||
"express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
|
||||
|
||||
"fumadocs-mdx/chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="],
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
"clsx": "^2.1.1",
|
||||
"commander": "^14.0.3",
|
||||
"consola": "^3.4.2",
|
||||
"content-disposition": "^1.1.0",
|
||||
"content-disposition": "^2.0.0",
|
||||
"cron-parser": "^5.5.0",
|
||||
"date-fns": "^4.1.0",
|
||||
"dither-plugin": "^1.1.1",
|
||||
|
|
@ -128,6 +128,7 @@
|
|||
"happy-dom": "^20.9.0",
|
||||
"msw": "^2.14.6",
|
||||
"nitro": "^3.0.1-alpha.2",
|
||||
"oxfmt": "0.48.0",
|
||||
"tailwindcss": "^4.3.0",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"typescript": "^6.0.3",
|
||||
|
|
|
|||
|
|
@ -9,17 +9,10 @@ export default defineConfig({
|
|||
plugins: [
|
||||
tanstackStart({
|
||||
srcDirectory: "app",
|
||||
router: {
|
||||
routesDirectory: "routes",
|
||||
},
|
||||
importProtection: {
|
||||
behavior: "error",
|
||||
},
|
||||
}),
|
||||
nitro({
|
||||
preset: "bun",
|
||||
plugins: ["./app/server/plugins/bootstrap.ts"],
|
||||
router: { routesDirectory: "routes" },
|
||||
importProtection: { behavior: "error" },
|
||||
}),
|
||||
nitro({ preset: "bun", plugins: ["./app/server/plugins/bootstrap.ts"] }),
|
||||
viteReact(),
|
||||
babel({ presets: [reactCompilerPreset()] }),
|
||||
tailwindcss(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue