@learncard/learn-cloud-plugin 1.1.8 → 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.
@@ -14803,6 +14803,20 @@ var getLearnCloudPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url, u
14803
14803
  }),
14804
14804
  includeAssociatedDids
14805
14805
  });
14806
+ },
14807
+ learnCloudBatchResolve: async (_learnCard, uris) => {
14808
+ const results = await client.storage.batchResolve.query({ uris });
14809
+ return Promise.all(results.map(async (result) => {
14810
+ if (!result)
14811
+ return null;
14812
+ try {
14813
+ const decryptedResult = await _learnCard.invoke.getDIDObject().decryptDagJWE(result);
14814
+ return await VCValidator.or(VPValidator).parseAsync(decryptedResult);
14815
+ } catch (error) {
14816
+ _learnCard.debug?.(error);
14817
+ return null;
14818
+ }
14819
+ }));
14806
14820
  }
14807
14821
  },
14808
14822
  read: {