@tinycloud/node-sdk 3.8.0-beta.15 → 3.8.0-beta.16
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/core.cjs +3 -2
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +3 -2
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/share-receive.cjs +775 -0
- package/dist/share-receive.cjs.map +1 -0
- package/dist/share-receive.d.cts +32 -0
- package/dist/share-receive.d.ts +32 -0
- package/dist/share-receive.js +777 -0
- package/dist/share-receive.js.map +1 -0
- package/package.json +11 -4
package/dist/index.cjs
CHANGED
|
@@ -19615,7 +19615,8 @@ var NodeUserAuthorization = class {
|
|
|
19615
19615
|
return true;
|
|
19616
19616
|
}
|
|
19617
19617
|
const parsed = entry.path.includes("/") ? (0, import_resource.parseEncryptionResource)(entry.path) : { ...(0, import_sdk_services3.parseNetworkId)(entry.path), kind: "network" };
|
|
19618
|
-
|
|
19618
|
+
const sharePrefix = parsed.kind === "prefix" && parsed.network === "default" && parsed.prefix === "share" && entry.actions.length === 1 && entry.actions[0] === DECRYPT_ACTION && didPrincipalMatches(parsed.ownerDid, currentDid);
|
|
19619
|
+
if (parsed.kind !== "network" && !sharePrefix) {
|
|
19619
19620
|
throw new import_sdk_core5.ManifestValidationError("named keys go in manifest.keys");
|
|
19620
19621
|
}
|
|
19621
19622
|
for (const action of entry.actions) {
|
|
@@ -25130,7 +25131,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25130
25131
|
graph.assertActive();
|
|
25131
25132
|
const signed2 = await this.signRawNetworkAuthorization({
|
|
25132
25133
|
targetNode: input.targetNode,
|
|
25133
|
-
networkId: input.networkId
|
|
25134
|
+
networkId: input.body.keyPath === void 0 ? input.networkId : `${input.networkId}/${input.body.keyPath}`,
|
|
25134
25135
|
action: DECRYPT_ACTION2,
|
|
25135
25136
|
facts: input.facts
|
|
25136
25137
|
}, { graph, session });
|