@learncard/network-plugin 2.4.19 → 2.4.20
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/lcn-plugin.cjs.development.js +8 -0
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.js +1 -1
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +8 -0
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -10496,6 +10496,14 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
10496
10496
|
verifyConsent: async (_learnCard, uri, profileId) => {
|
|
10497
10497
|
return client.contracts.verifyConsent.query({ uri, profileId });
|
|
10498
10498
|
},
|
|
10499
|
+
syncCredentialsToContract: async (_learnCard, termsUri, categories) => {
|
|
10500
|
+
if (!userData)
|
|
10501
|
+
throw new Error("Please make an account first!");
|
|
10502
|
+
return client.contracts.syncCredentialsToContract.mutate({
|
|
10503
|
+
termsUri,
|
|
10504
|
+
categories
|
|
10505
|
+
});
|
|
10506
|
+
},
|
|
10499
10507
|
addDidMetadata: async (_learnCard, metadata) => {
|
|
10500
10508
|
if (!userData)
|
|
10501
10509
|
throw new Error("Please make an account first!");
|