@sunasteriskrnd/takumi 1.0.0-dev.34 → 1.0.0-dev.35
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/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19815,7 +19815,7 @@ var package_default;
|
|
|
19815
19815
|
var init_package = __esm(() => {
|
|
19816
19816
|
package_default = {
|
|
19817
19817
|
name: "@sunasteriskrnd/takumi",
|
|
19818
|
-
version: "1.0.0-dev.
|
|
19818
|
+
version: "1.0.0-dev.35",
|
|
19819
19819
|
description: "CLI tool for bootstrapping and managing Takumi projects",
|
|
19820
19820
|
type: "module",
|
|
19821
19821
|
repository: {
|
|
@@ -54890,11 +54890,15 @@ async function route(req, res, version3) {
|
|
|
54890
54890
|
const pathname = url.pathname;
|
|
54891
54891
|
applyCorsHeaders(req, res);
|
|
54892
54892
|
if (req.method === "OPTIONS") {
|
|
54893
|
-
|
|
54893
|
+
const headers = {
|
|
54894
54894
|
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
|
54895
54895
|
"Access-Control-Allow-Headers": "content-type",
|
|
54896
54896
|
"Access-Control-Max-Age": "600"
|
|
54897
|
-
}
|
|
54897
|
+
};
|
|
54898
|
+
if (req.headers["access-control-request-private-network"] === "true") {
|
|
54899
|
+
headers["Access-Control-Allow-Private-Network"] = "true";
|
|
54900
|
+
}
|
|
54901
|
+
res.writeHead(204, headers);
|
|
54898
54902
|
res.end();
|
|
54899
54903
|
return;
|
|
54900
54904
|
}
|