erdbpro 2.4.2 → 2.4.4
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/package.json +4 -1
- package/src/cli.mjs +10 -4
- package/dist-server/node_modules/better-sqlite3/build/Release/.deps/Release/obj.target/better_sqlite3/src/better_sqlite3.o.d.raw +0 -82
- package/dist-server/node_modules/better-sqlite3/build/Release/.deps/Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o.d +0 -4
- package/dist-server/node_modules/better-sqlite3/build/Release/.deps/Release/sqlite3.a.d +0 -1
- package/dist-server/node_modules/better-sqlite3/build/Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o +0 -0
- package/dist-server/node_modules/better-sqlite3/build/Release/sqlite3.a +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erdbpro",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "ERD Builder Pro CLI — one command to start your database design workspace.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"postinstall": "cd dist-server/node_modules/better-sqlite3 && npx --yes prebuild-install 2>/dev/null || true"
|
|
25
|
+
},
|
|
23
26
|
"keywords": [
|
|
24
27
|
"erd",
|
|
25
28
|
"database",
|
package/src/cli.mjs
CHANGED
|
@@ -8,16 +8,22 @@ import { spawn } from 'node:child_process';
|
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
|
|
10
10
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
// Dev: cli/src/cli.mjs → pkg at ../.. Prod: src/cli.mjs → pkg at ..
|
|
12
|
+
const ROOT = (() => {
|
|
13
|
+
const a = path.resolve(__dirname, '../..'); // dev (cli/)
|
|
14
|
+
const b = path.resolve(__dirname, '..'); // prod (pkg root)
|
|
15
|
+
return fs.existsSync(path.join(b, 'dist-server', 'index.js')) ? b
|
|
16
|
+
: fs.existsSync(path.join(a, 'dist-server', 'index.js')) ? a
|
|
17
|
+
: b;
|
|
18
|
+
})();
|
|
19
|
+
const PKG_ROOT = ROOT;
|
|
14
20
|
const DATA_DIR = path.join(os.homedir(), '.erdbpro');
|
|
15
21
|
const DB_PATH = path.join(DATA_DIR, 'data.db');
|
|
16
22
|
const PID_FILE = path.join(DATA_DIR, 'server.pid');
|
|
17
23
|
const DEFAULT_PORT = 3101;
|
|
18
24
|
|
|
19
25
|
// Read version from package.json
|
|
20
|
-
const pkgJson = JSON.parse(fs.readFileSync(path.join(
|
|
26
|
+
const pkgJson = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8'));
|
|
21
27
|
const VERSION = pkgJson.version;
|
|
22
28
|
const UPDATE_URL = 'https://registry.npmjs.org/erdbpro/latest';
|
|
23
29
|
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
Release/obj.target/better_sqlite3/src/better_sqlite3.o: \
|
|
2
|
-
../src/better_sqlite3.cpp Release/obj/gen/sqlite3/sqlite3.h \
|
|
3
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node.h \
|
|
4
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8.h \
|
|
5
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/common.h \
|
|
6
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8config.h \
|
|
7
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-array-buffer.h \
|
|
8
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-local-handle.h \
|
|
9
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-handle-base.h \
|
|
10
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-internal.h \
|
|
11
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-memory-span.h \
|
|
12
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-object.h \
|
|
13
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/garbage-collected.h \
|
|
14
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/internal/api-constants.h \
|
|
15
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/platform.h \
|
|
16
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/source-location.h \
|
|
17
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-source-location.h \
|
|
18
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-platform.h \
|
|
19
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/trace-trait.h \
|
|
20
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/type-traits.h \
|
|
21
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/name-provider.h \
|
|
22
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-maybe.h \
|
|
23
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/internal/conditional-stack-allocated.h \
|
|
24
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/macros.h \
|
|
25
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/cppgc/internal/compiler-specific.h \
|
|
26
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-persistent-handle.h \
|
|
27
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-weak-callback-info.h \
|
|
28
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-primitive.h \
|
|
29
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-data.h \
|
|
30
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-value.h \
|
|
31
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-sandbox.h \
|
|
32
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-traced-handle.h \
|
|
33
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-container.h \
|
|
34
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-context.h \
|
|
35
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-snapshot.h \
|
|
36
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-isolate.h \
|
|
37
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-callbacks.h \
|
|
38
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-promise.h \
|
|
39
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-debug.h \
|
|
40
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-script.h \
|
|
41
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-message.h \
|
|
42
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-embedder-heap.h \
|
|
43
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-exception.h \
|
|
44
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-function-callback.h \
|
|
45
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-microtask.h \
|
|
46
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-statistics.h \
|
|
47
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-unwinder.h \
|
|
48
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-embedder-state-scope.h \
|
|
49
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-date.h \
|
|
50
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-extension.h \
|
|
51
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-external.h \
|
|
52
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-function.h \
|
|
53
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-template.h \
|
|
54
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-initialization.h \
|
|
55
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-json.h \
|
|
56
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-locker.h \
|
|
57
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-microtask-queue.h \
|
|
58
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-primitive-object.h \
|
|
59
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-proxy.h \
|
|
60
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-regexp.h \
|
|
61
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-typed-array.h \
|
|
62
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-value-serializer.h \
|
|
63
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-version.h \
|
|
64
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/v8-wasm.h \
|
|
65
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node_version.h \
|
|
66
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node_api.h \
|
|
67
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/js_native_api.h \
|
|
68
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/js_native_api_types.h \
|
|
69
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node_api_types.h \
|
|
70
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node_object_wrap.h \
|
|
71
|
-
/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node/node_buffer.h \
|
|
72
|
-
../src/util/macros.cpp ../src/util/helpers.cpp \
|
|
73
|
-
../src/util/constants.cpp ../src/util/bind-map.cpp \
|
|
74
|
-
../src/util/data-converter.cpp ../src/util/data.cpp \
|
|
75
|
-
../src/util/row-builder.cpp ../src/objects/backup.hpp \
|
|
76
|
-
../src/objects/statement.hpp ../src/objects/database.hpp \
|
|
77
|
-
../src/addon.cpp ../src/objects/statement-iterator.hpp \
|
|
78
|
-
../src/util/query-macros.cpp ../src/util/custom-function.cpp \
|
|
79
|
-
../src/util/custom-aggregate.cpp ../src/util/custom-table.cpp \
|
|
80
|
-
../src/util/binder.cpp ../src/objects/backup.cpp \
|
|
81
|
-
../src/objects/statement.cpp ../src/objects/database.cpp \
|
|
82
|
-
../src/objects/statement-iterator.cpp
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
cmd_Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o := cc -o Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o Release/obj/gen/sqlite3/sqlite3.c '-DNODE_GYP_MODULE_NAME=sqlite3' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-DHAVE_INT16_T=1' '-DHAVE_INT32_T=1' '-DHAVE_INT8_T=1' '-DHAVE_STDINT_H=1' '-DHAVE_UINT16_T=1' '-DHAVE_UINT32_T=1' '-DHAVE_UINT8_T=1' '-DHAVE_USLEEP=1' '-DSQLITE_DEFAULT_CACHE_SIZE=-16000' '-DSQLITE_DEFAULT_FOREIGN_KEYS=1' '-DSQLITE_DEFAULT_MEMSTATUS=0' '-DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1' '-DSQLITE_DQS=0' '-DSQLITE_ENABLE_COLUMN_METADATA' '-DSQLITE_ENABLE_DBSTAT_VTAB' '-DSQLITE_ENABLE_DESERIALIZE' '-DSQLITE_ENABLE_FTS3' '-DSQLITE_ENABLE_FTS3_PARENTHESIS' '-DSQLITE_ENABLE_FTS4' '-DSQLITE_ENABLE_FTS5' '-DSQLITE_ENABLE_GEOPOLY' '-DSQLITE_ENABLE_JSON1' '-DSQLITE_ENABLE_MATH_FUNCTIONS' '-DSQLITE_ENABLE_PERCENTILE' '-DSQLITE_ENABLE_RTREE' '-DSQLITE_ENABLE_STAT4' '-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT' '-DSQLITE_LIKE_DOESNT_MATCH_BLOBS' '-DSQLITE_OMIT_DEPRECATED' '-DSQLITE_OMIT_PROGRESS_CALLBACK' '-DSQLITE_OMIT_SHARED_CACHE' '-DSQLITE_OMIT_TCL_VARIABLE' '-DSQLITE_SOUNDEX' '-DSQLITE_THREADSAFE=2' '-DSQLITE_TRACE_SIZE_LIMIT=32' '-DSQLITE_USE_URI=0' '-DNDEBUG' -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/include/node -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/src -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/deps/openssl/config -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/deps/openssl/openssl/include -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/deps/uv/include -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/deps/zlib -I/Users/meowpush/Library/Caches/node-gyp/25.9.0/deps/v8/include -I./Release/obj/gen/sqlite3 -O3 -fno-strict-aliasing -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -w -std=c99 -MMD -MF ./Release/.deps/Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o.d.raw -c
|
|
2
|
-
Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o: \
|
|
3
|
-
Release/obj/gen/sqlite3/sqlite3.c
|
|
4
|
-
Release/obj/gen/sqlite3/sqlite3.c:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cmd_Release/sqlite3.a := rm -f Release/sqlite3.a && /Library/Developer/CommandLineTools/usr/bin/python3 gyp-mac-tool filter-libtool libtool -static -o Release/sqlite3.a Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
|
|
Binary file
|
|
Binary file
|