omnigateway 0.4.2 → 0.4.3
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/gateway.js +3 -3
- package/package.json +1 -1
package/gateway.js
CHANGED
|
@@ -5235,7 +5235,7 @@ var require_dist = __commonJS(function(exports) {
|
|
|
5235
5235
|
|
|
5236
5236
|
// apps/gateway/src/index.ts
|
|
5237
5237
|
import { existsSync as existsSync2 } from "fs";
|
|
5238
|
-
import { dirname as dirname5,
|
|
5238
|
+
import { dirname as dirname5, resolve as resolve6 } from "path";
|
|
5239
5239
|
|
|
5240
5240
|
// packages/control/src/adminAuth.ts
|
|
5241
5241
|
import { hash, verify } from "@node-rs/argon2";
|
|
@@ -48493,7 +48493,7 @@ async function loadPlugins(deps) {
|
|
|
48493
48493
|
return { plugins, failures };
|
|
48494
48494
|
}
|
|
48495
48495
|
for (const id of entries.sort()) {
|
|
48496
|
-
const home =
|
|
48496
|
+
const home = resolve5(deps.root, id);
|
|
48497
48497
|
const fail2 = (why) => {
|
|
48498
48498
|
failures.push({ id, reason: why });
|
|
48499
48499
|
logger2.warn("plugin skipped", { plugin: id, reason: why });
|
|
@@ -48686,7 +48686,7 @@ async function main() {
|
|
|
48686
48686
|
process.exit(1);
|
|
48687
48687
|
};
|
|
48688
48688
|
const installRoot = process.env.OMNI_ROOT ?? dirname5(config2.databasePath);
|
|
48689
|
-
const pluginRoot =
|
|
48689
|
+
const pluginRoot = resolve6(installRoot, "plugins");
|
|
48690
48690
|
const pluginEvents = createPluginEventBus({ logger: logger2 });
|
|
48691
48691
|
const loadedPlugins = await loadPlugins({
|
|
48692
48692
|
root: pluginRoot,
|
package/package.json
CHANGED