@learncard/network-plugin 2.4.7 → 2.4.9
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 +15 -5
- package/dist/lcn-plugin.cjs.development.js.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +2 -2
- package/dist/lcn-plugin.esm.js +15 -5
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/types.d.ts +4 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -9960,10 +9960,10 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
9960
9960
|
const credential = await _learnCard.invoke.getDIDObject().createDagJWE(vc, [userData.did, target.did]);
|
|
9961
9961
|
return client.credential.sendCredential.mutate({ profileId, credential });
|
|
9962
9962
|
},
|
|
9963
|
-
acceptCredential: async (_learnCard, uri) => {
|
|
9963
|
+
acceptCredential: async (_learnCard, uri, options) => {
|
|
9964
9964
|
if (!userData)
|
|
9965
9965
|
throw new Error("Please make an account first!");
|
|
9966
|
-
return client.credential.acceptCredential.mutate({ uri });
|
|
9966
|
+
return client.credential.acceptCredential.mutate({ uri, options });
|
|
9967
9967
|
},
|
|
9968
9968
|
getReceivedCredentials: async (_learnCard, from) => {
|
|
9969
9969
|
if (!userData)
|
|
@@ -10200,7 +10200,7 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
10200
10200
|
throw new Error("Please make an account first!");
|
|
10201
10201
|
return client.boost.deleteBoost.mutate({ uri });
|
|
10202
10202
|
},
|
|
10203
|
-
sendBoost: async (_learnCard, profileId, boostUri, options = { encrypt: true }) => {
|
|
10203
|
+
sendBoost: async (_learnCard, profileId, boostUri, options = { encrypt: true, skipNotification: false }) => {
|
|
10204
10204
|
if (!userData)
|
|
10205
10205
|
throw new Error("Please make an account first!");
|
|
10206
10206
|
const result = await _learnCard.invoke.resolveFromLCN(boostUri);
|
|
@@ -10231,12 +10231,22 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
10231
10231
|
return client.boost.sendBoost.mutate({
|
|
10232
10232
|
profileId,
|
|
10233
10233
|
uri: boostUri,
|
|
10234
|
-
credential: vc
|
|
10234
|
+
credential: vc,
|
|
10235
|
+
options: {
|
|
10236
|
+
skipNotification: typeof options === "object" && options.skipNotification
|
|
10237
|
+
}
|
|
10235
10238
|
});
|
|
10236
10239
|
}
|
|
10237
10240
|
const lcnDid = await client.utilities.getDid.query();
|
|
10238
10241
|
const credential = await _learnCard.invoke.getDIDObject().createDagJWE(vc, [userData.did, targetProfile.did, lcnDid]);
|
|
10239
|
-
return client.boost.sendBoost.mutate({
|
|
10242
|
+
return client.boost.sendBoost.mutate({
|
|
10243
|
+
profileId,
|
|
10244
|
+
uri: boostUri,
|
|
10245
|
+
credential,
|
|
10246
|
+
options: {
|
|
10247
|
+
skipNotification: typeof options === "object" && options.skipNotification
|
|
10248
|
+
}
|
|
10249
|
+
});
|
|
10240
10250
|
},
|
|
10241
10251
|
registerSigningAuthority: async (_learnCard, endpoint, name, _did) => {
|
|
10242
10252
|
if (!userData)
|