@learncard/learn-cloud-plugin 2.1.1 → 2.1.2
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/learn-cloud-plugin.cjs.development.js +2 -2
- package/dist/learn-cloud-plugin.cjs.development.js.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.js +14 -14
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +2 -2
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -15693,7 +15693,7 @@ var getLearnCloudClient = /* @__PURE__ */ __name(async (url, learnCard) => {
|
|
|
15693
15693
|
return jwt;
|
|
15694
15694
|
});
|
|
15695
15695
|
}, "getLearnCloudClient");
|
|
15696
|
-
var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, unencryptedFields = [], unencryptedCustomFields = []) => {
|
|
15696
|
+
var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, unencryptedFields = [], unencryptedCustomFields = [], automaticallyAssociateDids = true) => {
|
|
15697
15697
|
let learnCard = initialLearnCard;
|
|
15698
15698
|
learnCard.debug?.("Adding LearnCloud Plugin");
|
|
15699
15699
|
let client = await getLearnCloudClient(url, learnCard);
|
|
@@ -15710,7 +15710,7 @@ var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, u
|
|
|
15710
15710
|
const oldDid = learnCard.id.did();
|
|
15711
15711
|
const newDid = _learnCard.id.did();
|
|
15712
15712
|
if (oldDid !== newDid) {
|
|
15713
|
-
if (!dids.includes(newDid)) {
|
|
15713
|
+
if (!dids.includes(newDid) && automaticallyAssociateDids) {
|
|
15714
15714
|
const presentation = await _learnCard.invoke.getDidAuthVp();
|
|
15715
15715
|
await client.user.addDid.mutate({ presentation });
|
|
15716
15716
|
if (newDid.split(":")[1] === "web") {
|