@pmate/cli 0.29.3 → 0.29.4
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19472,7 +19472,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19472
19472
|
}
|
|
19473
19473
|
async fetchLogPage(namespace, appName, options) {
|
|
19474
19474
|
const baseUrl = (process.env.INDEXER_BASE_URL || "https://indexer.pmate.chat").replace(/\/$/, "");
|
|
19475
|
-
const chainId =
|
|
19475
|
+
const chainId = resolveLogChainId();
|
|
19476
19476
|
const hasSearch = Boolean(options.search?.trim());
|
|
19477
19477
|
const action = options.history || !hasSearch ? "list" : "search";
|
|
19478
19478
|
const url = new URL(
|
|
@@ -20181,6 +20181,9 @@ var ServiceRuntimeRunner = class {
|
|
|
20181
20181
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
20182
20182
|
}
|
|
20183
20183
|
};
|
|
20184
|
+
function resolveLogChainId(env = process.env) {
|
|
20185
|
+
return env.BLOCKCHAIN_CHAIN_ID?.trim() || "app-log";
|
|
20186
|
+
}
|
|
20184
20187
|
function shellQuote2(value) {
|
|
20185
20188
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
20186
20189
|
}
|