rterm-backend 2.8.7 → 2.8.8

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.
Files changed (2) hide show
  1. package/bin/gybackend.js +4 -2
  2. package/package.json +1 -1
package/bin/gybackend.js CHANGED
@@ -11731,7 +11731,8 @@ 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
- cachedConstructor = require2(candidate);
11734
+ const m = require2(candidate);
11735
+ cachedConstructor = typeof m === "function" ? m : m.Database;
11735
11736
  cachedPackageName = packageName2;
11736
11737
  return cachedConstructor;
11737
11738
  }
@@ -11751,7 +11752,8 @@ function loadBetterSqlite3() {
11751
11752
  let lastErr = e;
11752
11753
  for (const candidate of candidates) {
11753
11754
  try {
11754
- cachedConstructor = require2(candidate);
11755
+ const m = require2(candidate);
11756
+ cachedConstructor = typeof m === "function" ? m : m.Database;
11755
11757
  cachedPackageName = packageName2;
11756
11758
  return cachedConstructor;
11757
11759
  } catch (e2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rterm-backend",
3
- "version": "2.8.7",
3
+ "version": "2.8.8",
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",