@learncard/network-plugin 1.2.2 → 1.3.0
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 +6 -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 +6 -0
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +2 -0
- package/package.json +4 -4
|
@@ -12522,6 +12522,12 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
12522
12522
|
resolveFromLCN: async (_learnCard, uri) => {
|
|
12523
12523
|
const result = await client.storage.resolve.query({ uri });
|
|
12524
12524
|
return UnsignedVCValidator.or(VCValidator).or(VPValidator).or(JWEValidator).parseAsync(result);
|
|
12525
|
+
},
|
|
12526
|
+
registerDeviceForPush: async (_learnCard, deviceToken) => {
|
|
12527
|
+
return client.profile.registerDeviceForPush.mutate({ deviceToken });
|
|
12528
|
+
},
|
|
12529
|
+
unregisterDeviceForPush: async (_learnCard, deviceToken) => {
|
|
12530
|
+
return client.profile.unregisterDeviceForPush.mutate({ deviceToken });
|
|
12525
12531
|
}
|
|
12526
12532
|
}
|
|
12527
12533
|
};
|