@xdarkicex/openclaw-memory-libravdb 1.6.1 → 1.6.2
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/dist/index.js +2 -2
- package/dist/libravdb-client.d.ts +1 -0
- package/dist/libravdb-client.js +3 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36525,12 +36525,12 @@ function extractHost(target) {
|
|
|
36525
36525
|
return sep > 0 ? withoutDns.slice(0, sep) : withoutDns;
|
|
36526
36526
|
}
|
|
36527
36527
|
function loadSecretFromEnv() {
|
|
36528
|
-
const secret = process.env.LIBRAVDB_AUTH_SECRET;
|
|
36528
|
+
const secret = process.env.LIBRAVDB_AUTH_SECRET?.trim();
|
|
36529
36529
|
if (secret) return secret;
|
|
36530
36530
|
const secretPath = process.env.LIBRAVDB_AUTH_SECRET_FILE;
|
|
36531
36531
|
if (secretPath) {
|
|
36532
36532
|
try {
|
|
36533
|
-
return fs3.readFileSync(secretPath, "utf8").trim();
|
|
36533
|
+
return fs3.readFileSync(secretPath, "utf8").trim() || void 0;
|
|
36534
36534
|
} catch {
|
|
36535
36535
|
return void 0;
|
|
36536
36536
|
}
|
package/dist/libravdb-client.js
CHANGED
|
@@ -279,14 +279,14 @@ function extractHost(target) {
|
|
|
279
279
|
const sep = withoutDns.lastIndexOf(":");
|
|
280
280
|
return sep > 0 ? withoutDns.slice(0, sep) : withoutDns;
|
|
281
281
|
}
|
|
282
|
-
function loadSecretFromEnv() {
|
|
283
|
-
const secret = process.env.LIBRAVDB_AUTH_SECRET;
|
|
282
|
+
export function loadSecretFromEnv() {
|
|
283
|
+
const secret = process.env.LIBRAVDB_AUTH_SECRET?.trim();
|
|
284
284
|
if (secret)
|
|
285
285
|
return secret;
|
|
286
286
|
const secretPath = process.env.LIBRAVDB_AUTH_SECRET_FILE;
|
|
287
287
|
if (secretPath) {
|
|
288
288
|
try {
|
|
289
|
-
return fs.readFileSync(secretPath, "utf8").trim();
|
|
289
|
+
return fs.readFileSync(secretPath, "utf8").trim() || undefined;
|
|
290
290
|
}
|
|
291
291
|
catch {
|
|
292
292
|
return undefined;
|
package/openclaw.plugin.json
CHANGED