@tinycloud/sdk-core 3.12.0-beta.3 → 3.12.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 +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -20762,8 +20762,9 @@ async function lookupOwnerRegistryVerdict(subject, options2 = {}) {
|
|
|
20762
20762
|
message: "no location registry is configured"
|
|
20763
20763
|
});
|
|
20764
20764
|
}
|
|
20765
|
+
let verdict;
|
|
20765
20766
|
try {
|
|
20766
|
-
|
|
20767
|
+
verdict = await resolveOwnerHosts(subject, {
|
|
20767
20768
|
registryUrl: options2.registryUrl,
|
|
20768
20769
|
sequenceStore: options2.sequenceStore,
|
|
20769
20770
|
cacheStore: options2.cacheStore,
|
|
@@ -20777,6 +20778,12 @@ async function lookupOwnerRegistryVerdict(subject, options2 = {}) {
|
|
|
20777
20778
|
cause: error
|
|
20778
20779
|
});
|
|
20779
20780
|
}
|
|
20781
|
+
if (verdict.status === "unregistered" && verdict.offline) {
|
|
20782
|
+
throw Object.assign(new RegistryUnavailableError(subject, void 0, {
|
|
20783
|
+
message: "Couldn't reach your storage settings, and none are saved on this computer yet, so this didn't run. Try again in a few minutes."
|
|
20784
|
+
}), { meta: { reason: "no-saved-settings" } });
|
|
20785
|
+
}
|
|
20786
|
+
return verdict;
|
|
20780
20787
|
}
|
|
20781
20788
|
async function resolveRegistryResource(subject, resource, access, options2) {
|
|
20782
20789
|
const verdict = await lookupOwnerRegistryVerdict(subject, options2);
|