openfox 1.6.41 → 1.6.42
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-VW5I25YS.js → chunk-K3CI5UEC.js} +13 -8
- package/dist/{chunk-KYRCBDPU.js → chunk-MIG4XMTI.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-PT3WTJEB.js → serve-HFJLUGA3.js} +2 -2
- package/dist/server/index.js +1 -1
- package/dist/web/assets/{index-B-B_fsu6.js → index-BqUNWNpD.js} +62 -62
- package/dist/web/assets/index-CuARFUOg.css +32 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-CWMlzyzM.css +0 -32
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// src/cli/main.ts
|
|
2
2
|
import { parseArgs } from "util";
|
|
3
3
|
import { spawnSync } from "child_process";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
import { dirname, join } from "path";
|
|
4
6
|
import { select, password, isCancel, cancel } from "@clack/prompts";
|
|
5
7
|
import { generateKeyPairSync } from "crypto";
|
|
6
8
|
import { writeFile } from "fs/promises";
|
|
@@ -127,11 +129,11 @@ async function runCli(options) {
|
|
|
127
129
|
const [command] = positionals;
|
|
128
130
|
if (values.version && !command) {
|
|
129
131
|
const { readFileSync } = await import("fs");
|
|
130
|
-
const { fileURLToPath } = await import("url");
|
|
131
|
-
const { dirname, join } = await import("path");
|
|
132
|
-
const __filename =
|
|
133
|
-
const __dirname =
|
|
134
|
-
const packageJsonPath =
|
|
132
|
+
const { fileURLToPath: fileURLToPath2 } = await import("url");
|
|
133
|
+
const { dirname: dirname2, join: join2 } = await import("path");
|
|
134
|
+
const __filename = fileURLToPath2(import.meta.url);
|
|
135
|
+
const __dirname = dirname2(__filename);
|
|
136
|
+
const packageJsonPath = join2(__dirname, "../package.json");
|
|
135
137
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
136
138
|
console.log(packageJson.version);
|
|
137
139
|
process.exit(0);
|
|
@@ -162,7 +164,10 @@ async function runCli(options) {
|
|
|
162
164
|
break;
|
|
163
165
|
}
|
|
164
166
|
case "update": {
|
|
165
|
-
const
|
|
167
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
168
|
+
const __dirname = dirname(__filename);
|
|
169
|
+
const updateScriptPath = join(__dirname, "cli", "update.sh");
|
|
170
|
+
const result = spawnSync(updateScriptPath, [], { shell: true, stdio: "inherit" });
|
|
166
171
|
if (result.status !== 0) {
|
|
167
172
|
process.exit(result.status ?? 1);
|
|
168
173
|
}
|
|
@@ -174,7 +179,7 @@ async function runCli(options) {
|
|
|
174
179
|
if (!configExists) {
|
|
175
180
|
await runNetworkSetup(mode);
|
|
176
181
|
}
|
|
177
|
-
const { runServe } = await import("./serve-
|
|
182
|
+
const { runServe } = await import("./serve-HFJLUGA3.js");
|
|
178
183
|
await runServe({
|
|
179
184
|
mode,
|
|
180
185
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -187,4 +192,4 @@ async function runCli(options) {
|
|
|
187
192
|
export {
|
|
188
193
|
runCli
|
|
189
194
|
};
|
|
190
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-K3CI5UEC.js.map
|
|
@@ -5479,7 +5479,7 @@ function createTerminalRoutes() {
|
|
|
5479
5479
|
}
|
|
5480
5480
|
|
|
5481
5481
|
// src/constants.ts
|
|
5482
|
-
var VERSION = "1.6.
|
|
5482
|
+
var VERSION = "1.6.42";
|
|
5483
5483
|
|
|
5484
5484
|
// src/server/index.ts
|
|
5485
5485
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -6375,4 +6375,4 @@ export {
|
|
|
6375
6375
|
createServerHandle,
|
|
6376
6376
|
createServer
|
|
6377
6377
|
};
|
|
6378
|
-
//# sourceMappingURL=chunk-
|
|
6378
|
+
//# sourceMappingURL=chunk-MIG4XMTI.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MIG4XMTI.js";
|
|
10
10
|
import "./chunk-BHSTSA7U.js";
|
|
11
11
|
import "./chunk-VCVHYZZS.js";
|
|
12
12
|
import "./chunk-QFOT3J6I.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-HFJLUGA3.js.map
|