openfox 1.1.1 → 1.2.0
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/{chunk-FB5JCN4B.js → chunk-2CK3CWOE.js} +5 -2
- package/dist/{chunk-G46Q4CAR.js → chunk-KQRQXKH2.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{serve-JIUQYVME.js → serve-XGOABBXJ.js} +3 -3
- package/dist/server/index.js +1 -1
- package/dist/web/assets/{index-KunKrk_l.js → index-BY3Xdvmg.js} +71 -70
- package/dist/web/assets/{index-ChlQHL9c.css → index-Cy5J_s_s.css} +1 -1
- package/dist/web/assets/openfox-192.png +0 -0
- package/dist/web/assets/openfox-512.png +0 -0
- package/dist/web/index.html +3 -3
- package/dist/web/manifest.webmanifest +1 -0
- package/dist/web/registerSW.js +1 -0
- package/dist/web/sw.js +1 -0
- package/dist/web/workbox-8c29f6e4.js +1 -0
- package/package.json +1 -1
|
@@ -6017,6 +6017,9 @@ async function createServerHandle(config) {
|
|
|
6017
6017
|
}
|
|
6018
6018
|
})
|
|
6019
6019
|
);
|
|
6020
|
+
app.use("/manifest.webmanifest", express.static(join4(distWebDir, "manifest.webmanifest")));
|
|
6021
|
+
app.use("/registerSW.js", express.static(join4(distWebDir, "registerSW.js")));
|
|
6022
|
+
app.use("/sw.js", express.static(join4(distWebDir, "sw.js")));
|
|
6020
6023
|
app.get("/fox.svg", (_req, res) => {
|
|
6021
6024
|
readFile3(join4(distWebDir, "fox.svg")).then((content) => {
|
|
6022
6025
|
res.set("Content-Type", "image/svg+xml");
|
|
@@ -6039,7 +6042,7 @@ async function createServerHandle(config) {
|
|
|
6039
6042
|
});
|
|
6040
6043
|
});
|
|
6041
6044
|
app.get("/*path", (req, res) => {
|
|
6042
|
-
if (req.path.startsWith("/api/") || req.path.startsWith("/assets/") || req.path.startsWith("/sounds/") || req.path === "/fox.svg") {
|
|
6045
|
+
if (req.path.startsWith("/api/") || req.path.startsWith("/assets/") || req.path.startsWith("/sounds/") || req.path.startsWith("/manifest.webmanifest") || req.path.startsWith("/registerSW.js") || req.path.startsWith("/sw.js") || req.path === "/fox.svg") {
|
|
6043
6046
|
return;
|
|
6044
6047
|
}
|
|
6045
6048
|
readFile3(join4(distWebDir, "index.html"), "utf-8").then((content) => res.send(content)).catch(() => {
|
|
@@ -6127,4 +6130,4 @@ export {
|
|
|
6127
6130
|
createServerHandle,
|
|
6128
6131
|
createServer
|
|
6129
6132
|
};
|
|
6130
|
-
//# sourceMappingURL=chunk-
|
|
6133
|
+
//# sourceMappingURL=chunk-2CK3CWOE.js.map
|
|
@@ -129,7 +129,7 @@ async function runCli(options) {
|
|
|
129
129
|
await runInitWithSelect(mode);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
const { runServe } = await import("./serve-
|
|
132
|
+
const { runServe } = await import("./serve-XGOABBXJ.js");
|
|
133
133
|
await runServe({
|
|
134
134
|
mode,
|
|
135
135
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -142,4 +142,4 @@ async function runCli(options) {
|
|
|
142
142
|
export {
|
|
143
143
|
runCli
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-KQRQXKH2.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2CK3CWOE.js";
|
|
4
4
|
import "./chunk-AOHPSZIW.js";
|
|
5
5
|
import "./chunk-CUXZUI2X.js";
|
|
6
6
|
import "./chunk-QDEKU5RL.js";
|
|
@@ -39,7 +39,7 @@ import os from "os";
|
|
|
39
39
|
import { statSync } from "fs";
|
|
40
40
|
|
|
41
41
|
// src/constants.ts
|
|
42
|
-
var VERSION = "1.
|
|
42
|
+
var VERSION = "1.2.0";
|
|
43
43
|
|
|
44
44
|
// src/server/utils/network.ts
|
|
45
45
|
function getNetworkInterfaces() {
|
|
@@ -190,4 +190,4 @@ async function runServe(options) {
|
|
|
190
190
|
export {
|
|
191
191
|
runServe
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=serve-
|
|
193
|
+
//# sourceMappingURL=serve-XGOABBXJ.js.map
|