rterm-backend 2.8.7 → 2.8.9
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/bin/gybackend.js +10 -7
- package/package.json +1 -1
package/bin/gybackend.js
CHANGED
|
@@ -11731,8 +11731,10 @@ function loadBetterSqlite3() {
|
|
|
11731
11731
|
const exeDir = import_node_path3.default.dirname(process.execPath);
|
|
11732
11732
|
const candidate = import_node_path3.default.join(exeDir, "better_sqlite3.node");
|
|
11733
11733
|
if (import_node_fs.default.existsSync(candidate)) {
|
|
11734
|
-
|
|
11734
|
+
const m = require2(candidate);
|
|
11735
|
+
cachedConstructor = typeof m === "function" ? m : m.Database;
|
|
11735
11736
|
cachedPackageName = packageName2;
|
|
11737
|
+
nativeBindingIsConstructor = true;
|
|
11736
11738
|
return cachedConstructor;
|
|
11737
11739
|
}
|
|
11738
11740
|
} catch {
|
|
@@ -11740,6 +11742,7 @@ function loadBetterSqlite3() {
|
|
|
11740
11742
|
try {
|
|
11741
11743
|
cachedConstructor = require2(packageName2);
|
|
11742
11744
|
cachedPackageName = packageName2;
|
|
11745
|
+
nativeBindingIsConstructor = false;
|
|
11743
11746
|
return cachedConstructor;
|
|
11744
11747
|
} catch (e) {
|
|
11745
11748
|
const exeDir = import_node_path3.default.dirname(process.execPath);
|
|
@@ -11751,8 +11754,10 @@ function loadBetterSqlite3() {
|
|
|
11751
11754
|
let lastErr = e;
|
|
11752
11755
|
for (const candidate of candidates) {
|
|
11753
11756
|
try {
|
|
11754
|
-
|
|
11757
|
+
const m = require2(candidate);
|
|
11758
|
+
cachedConstructor = typeof m === "function" ? m : m.Database;
|
|
11755
11759
|
cachedPackageName = packageName2;
|
|
11760
|
+
nativeBindingIsConstructor = true;
|
|
11756
11761
|
return cachedConstructor;
|
|
11757
11762
|
} catch (e2) {
|
|
11758
11763
|
lastErr = e2;
|
|
@@ -11805,10 +11810,7 @@ function openBetterSqlite3Database(filePath, options) {
|
|
|
11805
11810
|
}
|
|
11806
11811
|
try {
|
|
11807
11812
|
const addon = require2(candidatePath);
|
|
11808
|
-
return new BetterSqlite3(filePath, {
|
|
11809
|
-
...options || {},
|
|
11810
|
-
nativeBinding: addon
|
|
11811
|
-
});
|
|
11813
|
+
return new BetterSqlite3(filePath, nativeBindingIsConstructor ? options || {} : { ...options || {}, nativeBinding: addon });
|
|
11812
11814
|
} catch (error40) {
|
|
11813
11815
|
if (!isNativeBindingLoadError(error40)) {
|
|
11814
11816
|
throw error40;
|
|
@@ -11832,7 +11834,7 @@ function openBetterSqlite3Database(filePath, options) {
|
|
|
11832
11834
|
);
|
|
11833
11835
|
}
|
|
11834
11836
|
}
|
|
11835
|
-
var import_node_fs, import_node_path3, import_node_module, import_meta3, require2, NODE_RUNTIME_PACKAGE_NAME, ELECTRON_RUNTIME_PACKAGE_NAME, cachedConstructor, cachedPackageName;
|
|
11837
|
+
var import_node_fs, import_node_path3, import_node_module, import_meta3, require2, NODE_RUNTIME_PACKAGE_NAME, ELECTRON_RUNTIME_PACKAGE_NAME, cachedConstructor, cachedPackageName, nativeBindingIsConstructor;
|
|
11836
11838
|
var init_betterSqlite3Runtime = __esm({
|
|
11837
11839
|
"../../packages/backend/src/services/history/betterSqlite3Runtime.ts"() {
|
|
11838
11840
|
"use strict";
|
|
@@ -11847,6 +11849,7 @@ var init_betterSqlite3Runtime = __esm({
|
|
|
11847
11849
|
ELECTRON_RUNTIME_PACKAGE_NAME = "better-sqlite3-electron";
|
|
11848
11850
|
cachedConstructor = null;
|
|
11849
11851
|
cachedPackageName = null;
|
|
11852
|
+
nativeBindingIsConstructor = false;
|
|
11850
11853
|
}
|
|
11851
11854
|
});
|
|
11852
11855
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rterm-backend",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.9",
|
|
4
4
|
"description": "RTerm headless backend — run RTerm-as-a-service (AI agent, SSH/WinRM/Serial/local terminals, fleet orchestration, advanced automation with event-driven triggers + NATS event mesh, scheduled automation, SRE observability, Netdata integration, AWS APerf performance deep-dive, plugin system) and drive it over a WebSocket JSON-RPC gateway. No desktop UI required.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|