ghc-proxy 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.mjs
CHANGED
|
@@ -6216,7 +6216,7 @@ const checkUsage = defineCommand({
|
|
|
6216
6216
|
|
|
6217
6217
|
//#endregion
|
|
6218
6218
|
//#region src/lib/version.ts
|
|
6219
|
-
const VERSION = "0.4.
|
|
6219
|
+
const VERSION = "0.4.2";
|
|
6220
6220
|
|
|
6221
6221
|
//#endregion
|
|
6222
6222
|
//#region src/debug.ts
|
|
@@ -13717,10 +13717,10 @@ var require_client_h2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
|
|
|
13717
13717
|
return;
|
|
13718
13718
|
}
|
|
13719
13719
|
if (request.onHeaders(Number(statusCode), parseH2Headers(realHeaders), stream.resume.bind(stream), "") === false) stream.pause();
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13720
|
+
stream.on("data", (chunk) => {
|
|
13721
|
+
if (request.aborted || request.completed) return;
|
|
13722
|
+
if (request.onData(chunk) === false) stream.pause();
|
|
13723
|
+
});
|
|
13724
13724
|
});
|
|
13725
13725
|
stream.once("end", () => {
|
|
13726
13726
|
stream.removeAllListeners("data");
|
|
@@ -34895,7 +34895,7 @@ const compile = (schema) => {
|
|
|
34895
34895
|
let _fileTypeFromBlobWarn = !1;
|
|
34896
34896
|
const warnIfFileTypeIsNotInstalled = () => {
|
|
34897
34897
|
_fileTypeFromBlobWarn || (console.warn("[Elysia] Attempt to validate file type without 'file-type'. This may lead to security risks. We recommend installing 'file-type' to properly validate file extension."), _fileTypeFromBlobWarn = !0);
|
|
34898
|
-
}, loadFileType = async () => import("./file-type-
|
|
34898
|
+
}, loadFileType = async () => import("./file-type-DlzWawJh.mjs").then((x) => (_fileTypeFromBlob = x.fileTypeFromBlob, _fileTypeFromBlob)).catch(warnIfFileTypeIsNotInstalled);
|
|
34899
34899
|
let _fileTypeFromBlob;
|
|
34900
34900
|
const fileTypeFromBlob = (file) => _fileTypeFromBlob ? _fileTypeFromBlob(file) : loadFileType().then((mod) => {
|
|
34901
34901
|
if (mod) return mod(file);
|