@tinycloud/cli 1.5.0-beta.34 → 1.5.0-beta.36
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
CHANGED
|
@@ -31129,6 +31129,8 @@ function createShareAuthorityAdapters(input = {}) {
|
|
|
31129
31129
|
});
|
|
31130
31130
|
const targetAdapter = { async publish(targetInput) {
|
|
31131
31131
|
if (input.publishTarget !== void 0) return input.publishTarget(targetInput);
|
|
31132
|
+
const refusedKind = { emailDomain: "domain", recipientDid: "did" }[targetInput.target.kind];
|
|
31133
|
+
if (refusedKind !== void 0) throw new CLIError("UNAVAILABLE", `${refusedKind}-addressed shares are not available in this release; nothing was shared`, 4);
|
|
31132
31134
|
const node = await authenticatedNode();
|
|
31133
31135
|
const session = node.restorableSession;
|
|
31134
31136
|
const ownerSpaceId = session?.spaceId;
|
|
@@ -33241,6 +33243,7 @@ function registerShareCommand(program2) {
|
|
|
33241
33243
|
process.exitCode = 6;
|
|
33242
33244
|
return;
|
|
33243
33245
|
}
|
|
33246
|
+
if (result.method === "email-claim") throw new CLIError("CLAIM_REQUIRED", "email-addressed shares cannot be opened with this version of the CLI yet; open the link in a web browser", 6);
|
|
33244
33247
|
throw new CLIError(result.method === "openkey-device" ? "DEVICE_AUTH_REQUIRED" : "CLAIM_REQUIRED", "recipient authorization is required; resume through the configured authority adapter", 6);
|
|
33245
33248
|
}
|
|
33246
33249
|
if (options.stdout) {
|