@tinycloud/node-sdk 2.7.0-beta.4 → 2.7.0
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-D_KNrE_y.d.cts → core-aXks8jFT.d.cts} +4 -1
- package/dist/{core-D_KNrE_y.d.ts → core-aXks8jFT.d.ts} +4 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -23762,7 +23762,11 @@ async function activateValidatedRuntimeDelegation(node, delegation, options) {
|
|
|
23762
23762
|
delegateDID: signed2.audience,
|
|
23763
23763
|
host
|
|
23764
23764
|
};
|
|
23765
|
-
|
|
23765
|
+
if (node.isSessionOnly === true && typeof node.did === "string" && (0, import_sdk_core9.principalDidEquals)(node.did, node.sessionDid) && typeof node.useDelegation === "function") {
|
|
23766
|
+
await node.useDelegation(installedCandidate);
|
|
23767
|
+
} else {
|
|
23768
|
+
await node.useRuntimeDelegation(installedCandidate);
|
|
23769
|
+
}
|
|
23766
23770
|
const installed = node.getRuntimePermissionDelegations().find((candidate) => candidate.cid === cid);
|
|
23767
23771
|
if (!installed) {
|
|
23768
23772
|
throw new Error("Runtime delegation activation did not install the validated authority.");
|