@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.js
CHANGED
|
@@ -19613,7 +19613,8 @@ var NodeUserAuthorization = class {
|
|
|
19613
19613
|
return true;
|
|
19614
19614
|
}
|
|
19615
19615
|
const parsed = entry.path.includes("/") ? parseEncryptionResource(entry.path) : { ...parseNetworkId(entry.path), kind: "network" };
|
|
19616
|
-
|
|
19616
|
+
const sharePrefix = parsed.kind === "prefix" && parsed.network === "default" && parsed.prefix === "share" && entry.actions.length === 1 && entry.actions[0] === DECRYPT_ACTION && didPrincipalMatches(parsed.ownerDid, currentDid);
|
|
19617
|
+
if (parsed.kind !== "network" && !sharePrefix) {
|
|
19617
19618
|
throw new ManifestValidationError("named keys go in manifest.keys");
|
|
19618
19619
|
}
|
|
19619
19620
|
for (const action of entry.actions) {
|
|
@@ -25143,7 +25144,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
25143
25144
|
graph.assertActive();
|
|
25144
25145
|
const signed2 = await this.signRawNetworkAuthorization({
|
|
25145
25146
|
targetNode: input.targetNode,
|
|
25146
|
-
networkId: input.networkId
|
|
25147
|
+
networkId: input.body.keyPath === void 0 ? input.networkId : `${input.networkId}/${input.body.keyPath}`,
|
|
25147
25148
|
action: DECRYPT_ACTION2,
|
|
25148
25149
|
facts: input.facts
|
|
25149
25150
|
}, { graph, session });
|