File tree Expand file tree Collapse file tree 4 files changed +1918
-2160
lines changed
packages/treeshake-server/src Expand file tree Collapse file tree 4 files changed +1918
-2160
lines changed Original file line number Diff line number Diff line change 157157 "adm-zip" : " 0.5.16" ,
158158 "ansi-colors" : " 4.1.3" ,
159159 "antd" : " 5.19.1" ,
160- "axios" : " ^1.12.0 " ,
160+ "axios" : " ^1.13.6 " ,
161161 "core-js" : " 3.36.1" ,
162162 "encoding" : " ^0.1.13" ,
163- "express" : " 4.21.2 " ,
164- "fast-glob" : " 3.3.2 " ,
163+ "express" : " 5.2.1 " ,
164+ "fast-glob" : " 3.3.3 " ,
165165 "glob" : " ^11.0.0" ,
166166 "lodash.get" : " 4.4.2" ,
167- "openai" : " ^4.72 .0" ,
168- "rambda" : " 7.5 .0" ,
167+ "openai" : " ^6.27 .0" ,
168+ "rambda" : " 11.1 .0" ,
169169 "regenerator-runtime" : " 0.14.1" ,
170- "sharp" : " ^0.33.4 " ,
170+ "sharp" : " ^0.34.5 " ,
171171 "storybook" : " 8.6.17" ,
172- "tapable" : " 2.2.1 " ,
173- "typedoc" : " 0.25.8 " ,
172+ "tapable" : " 2.3.0 " ,
173+ "typedoc" : " 0.28.17 " ,
174174 "undici" : " 7.18.2" ,
175- "unplugin" : " 1.9 .0"
175+ "unplugin" : " 3.0 .0"
176176 },
177177 "devDependencies" : {
178178 "@babel/core" : " ^7.28.0" ,
253253 "css-loader" : " ^6.11.0" ,
254254 "cypress" : " 14.3.3" ,
255255 "directory-tree" : " 3.5.2" ,
256- "esbuild" : " 0.25.0 " ,
256+ "esbuild" : " 0.27.3 " ,
257257 "eslint" : " 9.39.3" ,
258258 "eslint-config-prettier" : " 10.1.5" ,
259259 "eslint-plugin-cypress" : " ^2.13.4" ,
271271 "jest-cli" : " 29.7.0" ,
272272 "jest-environment-jsdom" : " 29.7.0" ,
273273 "jest-environment-node" : " 29.7.0" ,
274- "jiti" : " 2.4.2 " ,
274+ "jiti" : " 2.6.1 " ,
275275 "js-yaml" : " 4.1.0" ,
276276 "kill-port" : " ^2.0.1" ,
277277 "mime-types" : " 2.1.35" ,
283283 "postcss-custom-properties" : " 13.3.12" ,
284284 "postcss-import" : " 15.1.0" ,
285285 "postcss-url" : " 10.1.3" ,
286- "prettier" : " 3.3.3 " ,
286+ "prettier" : " 3.8.1 " ,
287287 "prettier-eslint" : " 16.3.0" ,
288288 "prettier-plugin-tailwindcss" : " 0.5.14" ,
289289 "publint" : " ^0.3.13" ,
303303 "tsdown" : " 0.20.3" ,
304304 "tslib" : " 2.8.1" ,
305305 "tsup" : " 7.3.0" ,
306- "typescript" : " 5.8.2 " ,
306+ "typescript" : " 5.9.3 " ,
307307 "url-loader" : " 4.1.1" ,
308- "vite" : " 5.4.21 " ,
308+ "vite" : " 7.3.1 " ,
309309 "vite-tsconfig-paths" : " 4.2.3" ,
310310 "vitest" : " 1.6.0" ,
311311 "vitest-fetch-mock" : " ^0.2.2" ,
316316 "webpack-node-externals" : " ^3.0.0" ,
317317 "webpack-virtual-modules" : " 0.6.2" ,
318318 "whatwg-fetch" : " ^3.6.20" ,
319- "yargs" : " ^17.7.2 "
319+ "yargs" : " ^18.0.0 "
320320 },
321321 "config" : {
322322 "commitizen" : {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export function createEmbeddedFrontendAdapter(
6969 const stat = await fs . promises . stat ( filePath ) ;
7070 if ( stat . isFile ( ) ) {
7171 const buf = await fs . promises . readFile ( filePath ) ;
72- return new Response ( buf , {
72+ return new Response ( new Uint8Array ( buf ) , {
7373 status : 200 ,
7474 headers : { 'Content-Type' : contentTypeByExt ( filePath ) } ,
7575 } ) ;
@@ -89,7 +89,7 @@ export function createEmbeddedFrontendAdapter(
8989 }
9090 try {
9191 const buf = await fs . promises . readFile ( fallbackPath ) ;
92- return new Response ( buf , {
92+ return new Response ( new Uint8Array ( buf ) , {
9393 status : 200 ,
9494 headers : { 'Content-Type' : contentTypeByExt ( fallbackPath ) } ,
9595 } ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async function serveLocalFile(c: any, rootDir: string) {
2828 }
2929 try {
3030 const buf = await fs . promises . readFile ( filePath ) ;
31- return new Response ( buf , {
31+ return new Response ( new Uint8Array ( buf ) , {
3232 status : 200 ,
3333 headers : { 'Content-Type' : contentTypeByExt ( filePath ) } ,
3434 } ) ;
You can’t perform that action at this time.
0 commit comments