routstrd 0.2.5 → 0.2.6
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/daemon/index.js
CHANGED
|
@@ -34900,7 +34900,7 @@ init_cashu_ts_es();
|
|
|
34900
34900
|
|
|
34901
34901
|
// src/daemon/wallet/cocod-client.ts
|
|
34902
34902
|
import { createHash } from "crypto";
|
|
34903
|
-
var DEFAULT_CONFIG_DIR = `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
|
34903
|
+
var DEFAULT_CONFIG_DIR = process.env.COCOD_DIR || `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
|
34904
34904
|
var DEFAULT_SOCKET_PATH = process.env.COCOD_SOCKET || `${DEFAULT_CONFIG_DIR}/cocod.sock`;
|
|
34905
34905
|
|
|
34906
34906
|
class CocodHttpError extends Error {
|
package/dist/index.js
CHANGED
|
@@ -36915,7 +36915,7 @@ var $toString = function toString(text, opts, cb) {
|
|
|
36915
36915
|
|
|
36916
36916
|
// src/daemon/wallet/cocod-client.ts
|
|
36917
36917
|
import { existsSync as existsSync8 } from "fs";
|
|
36918
|
-
var DEFAULT_CONFIG_DIR = `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
|
36918
|
+
var DEFAULT_CONFIG_DIR = process.env.COCOD_DIR || `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
|
36919
36919
|
var DEFAULT_SOCKET_PATH = process.env.COCOD_SOCKET || `${DEFAULT_CONFIG_DIR}/cocod.sock`;
|
|
36920
36920
|
function resolveCocodExecutable(cocodPath) {
|
|
36921
36921
|
const trimmed = cocodPath?.trim();
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@ import { existsSync } from "fs";
|
|
|
2
2
|
import { createHash } from "crypto";
|
|
3
3
|
import { logger } from "../../utils/logger";
|
|
4
4
|
|
|
5
|
-
const DEFAULT_CONFIG_DIR =
|
|
5
|
+
const DEFAULT_CONFIG_DIR =
|
|
6
|
+
process.env.COCOD_DIR || `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
|
6
7
|
const DEFAULT_SOCKET_PATH =
|
|
7
8
|
process.env.COCOD_SOCKET || `${DEFAULT_CONFIG_DIR}/cocod.sock`;
|
|
8
9
|
|