@betterdb/monitor 0.4.6 → 0.4.7
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/assets/build-info.json +2 -2
- package/dist/index.js +2 -71
- package/package.json +1 -1
package/assets/build-info.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __copyProps = (to, from, except, desc) => {
|
|
12
9
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
10
|
for (let key of __getOwnPropNames(from))
|
|
@@ -25,70 +22,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
22
|
mod
|
|
26
23
|
));
|
|
27
24
|
|
|
28
|
-
// package.json
|
|
29
|
-
var require_package = __commonJS({
|
|
30
|
-
"package.json"(exports2, module2) {
|
|
31
|
-
module2.exports = {
|
|
32
|
-
name: "@betterdb/monitor",
|
|
33
|
-
version: "0.4.6",
|
|
34
|
-
description: "Monitor and observe your Valkey/Redis databases",
|
|
35
|
-
bin: {
|
|
36
|
-
betterdb: "./bin/betterdb.js"
|
|
37
|
-
},
|
|
38
|
-
publishConfig: {
|
|
39
|
-
access: "public"
|
|
40
|
-
},
|
|
41
|
-
files: [
|
|
42
|
-
"bin/",
|
|
43
|
-
"dist/",
|
|
44
|
-
"assets/"
|
|
45
|
-
],
|
|
46
|
-
engines: {
|
|
47
|
-
node: ">=20.0.0"
|
|
48
|
-
},
|
|
49
|
-
scripts: {
|
|
50
|
-
build: "node scripts/build.mjs",
|
|
51
|
-
prepublishOnly: "pnpm run build"
|
|
52
|
-
},
|
|
53
|
-
dependencies: {
|
|
54
|
-
"@inquirer/prompts": "^7.0.0",
|
|
55
|
-
commander: "^12.0.0",
|
|
56
|
-
picocolors: "^1.0.0"
|
|
57
|
-
},
|
|
58
|
-
devDependencies: {
|
|
59
|
-
"@betterdb/shared": "workspace:*",
|
|
60
|
-
"@vercel/ncc": "^0.38.0",
|
|
61
|
-
typescript: "^5.7.0",
|
|
62
|
-
esbuild: "^0.25.0",
|
|
63
|
-
"@types/node": "^22.0.0"
|
|
64
|
-
},
|
|
65
|
-
peerDependencies: {
|
|
66
|
-
"better-sqlite3": ">=11.0.0"
|
|
67
|
-
},
|
|
68
|
-
peerDependenciesMeta: {
|
|
69
|
-
"better-sqlite3": {
|
|
70
|
-
optional: true
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
keywords: [
|
|
74
|
-
"valkey",
|
|
75
|
-
"redis",
|
|
76
|
-
"monitor",
|
|
77
|
-
"database",
|
|
78
|
-
"cli",
|
|
79
|
-
"observability"
|
|
80
|
-
],
|
|
81
|
-
author: "BetterDB",
|
|
82
|
-
license: "SEE LICENSE IN LICENSE",
|
|
83
|
-
repository: {
|
|
84
|
-
type: "git",
|
|
85
|
-
url: "https://github.com/BetterDB-inc/monitor.git"
|
|
86
|
-
},
|
|
87
|
-
homepage: "https://betterdb.com"
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
25
|
// src/index.ts
|
|
93
26
|
var import_commander = require("commander");
|
|
94
27
|
var import_fs2 = require("fs");
|
|
@@ -572,8 +505,7 @@ async function promptConfiguration() {
|
|
|
572
505
|
// src/runner.ts
|
|
573
506
|
var import_child_process = require("child_process");
|
|
574
507
|
var import_path3 = require("path");
|
|
575
|
-
var
|
|
576
|
-
var VERSION = packageJson.version;
|
|
508
|
+
var VERSION = true ? "0.4.7" : null.version;
|
|
577
509
|
var serverProcess = null;
|
|
578
510
|
var isShuttingDown = false;
|
|
579
511
|
function mapConfigToEnv(config, staticDir) {
|
|
@@ -685,8 +617,7 @@ function setupSignalHandlers() {
|
|
|
685
617
|
}
|
|
686
618
|
|
|
687
619
|
// src/index.ts
|
|
688
|
-
var
|
|
689
|
-
var VERSION2 = packageJson2.version;
|
|
620
|
+
var VERSION2 = true ? "0.4.7" : null.version;
|
|
690
621
|
var program = new import_commander.Command();
|
|
691
622
|
program.name("betterdb").description("Monitor and observe your Valkey/Redis databases").version(VERSION2, "-v, --version", "Display version number").option("-s, --setup", "Run the setup wizard").option("--no-setup", "Skip setup wizard even if no config exists").option("-p, --port <port>", "Server port", parseInt).option("--db-host <host>", "Database host").option("--db-port <port>", "Database port", parseInt).option("--storage-type <type>", "Storage type (sqlite, postgres, memory)").action(runCli);
|
|
692
623
|
program.command("setup").description("Run the interactive setup wizard (without starting server)").action(async () => {
|