@tinycloud/node-sdk 3.8.0-beta.15 → 3.8.0-beta.17
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/core.cjs
CHANGED
|
@@ -1101,7 +1101,8 @@ var NodeUserAuthorization = class {
|
|
|
1101
1101
|
return true;
|
|
1102
1102
|
}
|
|
1103
1103
|
const parsed = entry.path.includes("/") ? (0, import_resource.parseEncryptionResource)(entry.path) : { ...(0, import_sdk_services2.parseNetworkId)(entry.path), kind: "network" };
|
|
1104
|
-
|
|
1104
|
+
const sharePrefix = parsed.kind === "prefix" && parsed.network === "default" && parsed.prefix === "share" && entry.actions.length === 1 && entry.actions[0] === DECRYPT_ACTION && didPrincipalMatches(parsed.ownerDid, currentDid);
|
|
1105
|
+
if (parsed.kind !== "network" && !sharePrefix) {
|
|
1105
1106
|
throw new import_sdk_core5.ManifestValidationError("named keys go in manifest.keys");
|
|
1106
1107
|
}
|
|
1107
1108
|
for (const action of entry.actions) {
|
|
@@ -7306,7 +7307,7 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
7306
7307
|
graph.assertActive();
|
|
7307
7308
|
const signed = await this.signRawNetworkAuthorization({
|
|
7308
7309
|
targetNode: input.targetNode,
|
|
7309
|
-
networkId: input.networkId
|
|
7310
|
+
networkId: input.body.keyPath === void 0 ? input.networkId : `${input.networkId}/${input.body.keyPath}`,
|
|
7310
7311
|
action: DECRYPT_ACTION2,
|
|
7311
7312
|
facts: input.facts
|
|
7312
7313
|
}, { graph, session });
|