@learncard/learn-cloud-plugin 1.1.9 → 1.1.10
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 +14 -0
- package/dist/learn-cloud-plugin.cjs.development.js.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.js +5 -5
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +2 -2
- package/dist/learn-cloud-plugin.esm.js +14 -0
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -14791,6 +14791,20 @@ var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, u
|
|
|
14791
14791
|
}),
|
|
14792
14792
|
includeAssociatedDids
|
|
14793
14793
|
});
|
|
14794
|
+
},
|
|
14795
|
+
learnCloudBatchResolve: async (_learnCard, uris) => {
|
|
14796
|
+
const results = await client.storage.batchResolve.query({ uris });
|
|
14797
|
+
return Promise.all(results.map(async (result) => {
|
|
14798
|
+
if (!result)
|
|
14799
|
+
return null;
|
|
14800
|
+
try {
|
|
14801
|
+
const decryptedResult = await _learnCard.invoke.getDIDObject().decryptDagJWE(result);
|
|
14802
|
+
return await VCValidator.or(VPValidator).parseAsync(decryptedResult);
|
|
14803
|
+
} catch (error) {
|
|
14804
|
+
_learnCard.debug?.(error);
|
|
14805
|
+
return null;
|
|
14806
|
+
}
|
|
14807
|
+
}));
|
|
14794
14808
|
}
|
|
14795
14809
|
},
|
|
14796
14810
|
read: {
|