@tinycloud/cli 0.9.1-beta.6 → 0.9.1-beta.7
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/legacy-entry.js +3 -2
- package/dist/legacy-entry.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
tinycloudConfigPath,
|
|
38
38
|
tinycloudHomePath
|
|
39
39
|
} from "@tinycloud/operations/state";
|
|
40
|
-
var CONFIG_DIR, PROFILES_DIR, CONFIG_FILE, DEFAULT_HOST,
|
|
40
|
+
var CONFIG_DIR, PROFILES_DIR, CONFIG_FILE, DEFAULT_HOST, DEFAULT_OPENKEY_DEVICE_API_HOST, DEFAULT_PROFILE, DEFAULT_CHAIN_ID, ExitCode;
|
|
41
41
|
var init_constants = __esm({
|
|
42
42
|
"src/config/constants.ts"() {
|
|
43
43
|
"use strict";
|
|
@@ -45,7 +45,7 @@ var init_constants = __esm({
|
|
|
45
45
|
PROFILES_DIR = profilesPath();
|
|
46
46
|
CONFIG_FILE = tinycloudConfigPath();
|
|
47
47
|
DEFAULT_HOST = "https://node.tinycloud.xyz";
|
|
48
|
-
|
|
48
|
+
DEFAULT_OPENKEY_DEVICE_API_HOST = "https://api.openkey.so";
|
|
49
49
|
DEFAULT_PROFILE = "default";
|
|
50
50
|
DEFAULT_CHAIN_ID = 1;
|
|
51
51
|
ExitCode = {
|
|
@@ -30891,7 +30891,7 @@ function assertApprovedBinding(input) {
|
|
|
30891
30891
|
if (invalid) throw new Error(`OpenKey returned an invalid delegation: ${invalid}`);
|
|
30892
30892
|
}
|
|
30893
30893
|
async function acquireShareDeviceDelegation(input) {
|
|
30894
|
-
const openkeyHost = canonicalOrigin(input.openkeyHost ??
|
|
30894
|
+
const openkeyHost = canonicalOrigin(input.openkeyHost ?? DEFAULT_OPENKEY_DEVICE_API_HOST, "OpenKey host");
|
|
30895
30895
|
const nodeOrigin = canonicalOrigin(input.nodeOrigin, "TinyCloud node origin");
|
|
30896
30896
|
const shareOrigin = canonicalOrigin(input.shareOrigin, "Share origin");
|
|
30897
30897
|
const fetchFn = input.fetchFn ?? globalThis.fetch;
|