@jeffusion/bungee 5.21.0 → 5.21.1
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 +5 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3397,7 +3397,7 @@ import { createInterface } from "node:readline";
|
|
|
3397
3397
|
// package.json
|
|
3398
3398
|
var package_default = {
|
|
3399
3399
|
name: "@jeffusion/bungee",
|
|
3400
|
-
version: "5.21.
|
|
3400
|
+
version: "5.21.1",
|
|
3401
3401
|
description: "High-performance reverse proxy server CLI",
|
|
3402
3402
|
type: "module",
|
|
3403
3403
|
bin: {
|
|
@@ -5805,7 +5805,7 @@ async function recoverCommand(options = {}) {
|
|
|
5805
5805
|
file = await openRecoveryInputFile(options.file);
|
|
5806
5806
|
}
|
|
5807
5807
|
await new Promise((accept, reject) => {
|
|
5808
|
-
const child = spawn3(launch.executable, [...launch.entrypoint === null ? [] : [launch.entrypoint], "--recover", db], { cwd: ConfigPaths.DATA_DIR, stdio: [file?.fd ?? "inherit", "inherit", "inherit"], env: { ...process.env, BUNGEE_ROLE: "master" } });
|
|
5808
|
+
const child = spawn3(launch.executable, [...launch.entrypoint === null ? [] : [launch.entrypoint], "--recover", db], { cwd: ConfigPaths.DATA_DIR, stdio: [file?.fd ?? "inherit", "inherit", "inherit"], env: { ...process.env, BUNGEE_ROLE: "master", BUNGEE_ACCESS_DB_PATH: process.env.BUNGEE_ACCESS_DB_PATH ?? join7(ConfigPaths.LOGS_DIR, "access.db") } });
|
|
5809
5809
|
child.once("error", reject);
|
|
5810
5810
|
child.once("exit", (code) => code === 0 ? accept() : reject(new Error("Offline recovery failed")));
|
|
5811
5811
|
});
|
|
@@ -5815,7 +5815,7 @@ async function recoverCommand(options = {}) {
|
|
|
5815
5815
|
}
|
|
5816
5816
|
|
|
5817
5817
|
// src/commands/init.ts
|
|
5818
|
-
import { resolve as resolve5, join as join8 } from "node:path";
|
|
5818
|
+
import { resolve as resolve5, join as join8, dirname as dirname2 } from "node:path";
|
|
5819
5819
|
import { spawn as spawn4 } from "node:child_process";
|
|
5820
5820
|
async function initCommand(options = {}) {
|
|
5821
5821
|
ConfigPaths.ensureDataDir();
|
|
@@ -5823,12 +5823,13 @@ async function initCommand(options = {}) {
|
|
|
5823
5823
|
const configDbPath = resolve5(process.env.BUNGEE_CONFIG_DB_PATH ?? join8(ConfigPaths.DATA_DIR, "bungee.db"));
|
|
5824
5824
|
const launch = await resolveCoreLaunchDescriptor(options);
|
|
5825
5825
|
await new Promise((accept, reject) => {
|
|
5826
|
-
const child = spawn4(launch.executable, [...launch.entrypoint === null ? [] : [launch.entrypoint], "--initialize-config", configDbPath], { cwd: ConfigPaths.DATA_DIR, stdio: "inherit", env: { ...process.env, BUNGEE_ROLE: "master" } });
|
|
5826
|
+
const child = spawn4(launch.executable, [...launch.entrypoint === null ? [] : [launch.entrypoint], "--initialize-config", configDbPath], { cwd: ConfigPaths.DATA_DIR, stdio: "inherit", env: { ...process.env, BUNGEE_ROLE: "master", BUNGEE_ACCESS_DB_PATH: process.env.BUNGEE_ACCESS_DB_PATH ?? join8(ConfigPaths.LOGS_DIR, "access.db") } });
|
|
5827
5827
|
child.once("error", reject);
|
|
5828
5828
|
child.once("exit", (code) => code === 0 ? accept() : reject(new Error(`Configuration initialization failed (${code})`)));
|
|
5829
5829
|
});
|
|
5830
5830
|
console.log(`Bungee data directory initialized at: ${ConfigPaths.DATA_DIR}`);
|
|
5831
5831
|
console.log(`Configuration database: ${configDbPath}`);
|
|
5832
|
+
console.log(`Plugin state database: ${join8(dirname2(configDbPath), "plugin-state.db")}`);
|
|
5832
5833
|
console.log(`Telemetry database: ${ConfigPaths.LOGS_DIR}/access.db`);
|
|
5833
5834
|
console.log("Start Bungee with: bungee start");
|
|
5834
5835
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffusion/bungee",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.1",
|
|
4
4
|
"description": "High-performance reverse proxy server CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test": "bun test"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@jeffusion/bungee-core": "^5.21.
|
|
17
|
-
"@jeffusion/bungee-types": "^5.21.
|
|
16
|
+
"@jeffusion/bungee-core": "^5.21.1",
|
|
17
|
+
"@jeffusion/bungee-types": "^5.21.1",
|
|
18
18
|
"cli-progress": "^3.12.0",
|
|
19
19
|
"commander": "^14.0.1"
|
|
20
20
|
},
|