fix
This commit is contained in:
parent
3690e87245
commit
13a13ee6ba
|
|
@ -1,7 +1,7 @@
|
||||||
import brotliPromise from "brotli-wasm";
|
import brotliPromise from "brotli-wasm";
|
||||||
import { apiContext } from "service-srv";
|
import { apiContext } from "service-srv";
|
||||||
import { gzipAsync } from "utils/diff/diff";
|
import { gzipAsync } from "utils/diff/diff";
|
||||||
|
import { decompress } from "@cloudpss/zstd";
|
||||||
const brotli = await brotliPromise;
|
const brotli = await brotliPromise;
|
||||||
|
|
||||||
export const _ = {
|
export const _ = {
|
||||||
|
|
@ -38,9 +38,9 @@ export const _ = {
|
||||||
res_body = await res.arrayBuffer();
|
res_body = await res.arrayBuffer();
|
||||||
if (res_headers["content-encoding"] === "gzip") {
|
if (res_headers["content-encoding"] === "gzip") {
|
||||||
res_body = await gzipAsync(new Uint8Array(res_body));
|
res_body = await gzipAsync(new Uint8Array(res_body));
|
||||||
} else {
|
|
||||||
delete res_headers["content-encoding"];
|
delete res_headers["content-encoding"];
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(res_body, { headers: res_headers });
|
return new Response(res_body, { headers: res_headers });
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
new Response(
|
new Response(
|
||||||
|
|
|
||||||
|
|
@ -2,20 +2,21 @@
|
||||||
"name": "core",
|
"name": "core",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@cloudpss/zstd": "^0.3.0",
|
||||||
"@surfy/multipart-parser": "^1.0.2",
|
"@surfy/multipart-parser": "^1.0.2",
|
||||||
"@swc/core": "^1.4.17",
|
"@swc/core": "^1.4.17",
|
||||||
|
"@swc/types": "^0.1.8",
|
||||||
"@types/mime": "^3.0.3",
|
"@types/mime": "^3.0.3",
|
||||||
"@types/unzipper": "^0.10.8",
|
"@types/unzipper": "^0.10.8",
|
||||||
"esbuild": "^0.21.5",
|
|
||||||
"@swc/types": "^0.1.8",
|
|
||||||
"acorn-walk": "^8.3.3",
|
"acorn-walk": "^8.3.3",
|
||||||
"brotli-wasm": "^3.0.1",
|
"brotli-wasm": "^3.0.1",
|
||||||
|
"esbuild": "^0.21.5",
|
||||||
"execa": "^8.0.1",
|
"execa": "^8.0.1",
|
||||||
"fs-jetpack": "^5.1.0",
|
"fs-jetpack": "^5.1.0",
|
||||||
"lmdb": "^2.8.5",
|
"lmdb": "^2.8.5",
|
||||||
"mime": "^3.0.0",
|
"mime": "^3.0.0",
|
||||||
"pino": "^8.16.1",
|
|
||||||
"msgpackr": "^1.10.1",
|
"msgpackr": "^1.10.1",
|
||||||
|
"pino": "^8.16.1",
|
||||||
"pino-pretty": "^10.2.3",
|
"pino-pretty": "^10.2.3",
|
||||||
"radash": "^11.0.0",
|
"radash": "^11.0.0",
|
||||||
"radix3": "^1.1.0",
|
"radix3": "^1.1.0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue