@tinycloud/sdk-core 2.11.0-beta.3 → 2.11.0-beta.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.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15350,13 +15350,14 @@ async function discoverLocalTinyCloudNode(options2 = {}) {
|
|
|
15350
15350
|
}
|
|
15351
15351
|
const fetchFn = options2.fetch ?? globalThis.fetch;
|
|
15352
15352
|
const identityStore = options2.identityStore ?? defaultLocalNodeIdentityStore;
|
|
15353
|
-
const staticCandidates = [
|
|
15354
|
-
|
|
15353
|
+
const staticCandidates = [];
|
|
15354
|
+
if (options2.localNodeUrl) {
|
|
15355
|
+
staticCandidates.push({
|
|
15355
15356
|
source: "local-loopback",
|
|
15356
|
-
url: options2.localNodeUrl
|
|
15357
|
+
url: options2.localNodeUrl,
|
|
15357
15358
|
timeoutMs: LOCAL_LOOPBACK_PROBE_TIMEOUT_MS
|
|
15358
|
-
}
|
|
15359
|
-
|
|
15359
|
+
});
|
|
15360
|
+
}
|
|
15360
15361
|
if (options2.localLinkName) {
|
|
15361
15362
|
if (isValidDnsLabel(options2.localLinkName)) {
|
|
15362
15363
|
staticCandidates.push({
|