@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
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -12518,6 +12518,12 @@ var getLearnCardNetworkPlugin = /* @__PURE__ */ __name(async (learnCard, url) =>
|
|
|
12518
12518
|
resolveFromLCN: async (_learnCard, uri) => {
|
|
12519
12519
|
const result = await client.storage.resolve.query({ uri });
|
|
12520
12520
|
return UnsignedVCValidator.or(VCValidator).or(VPValidator).or(JWEValidator).parseAsync(result);
|
|
12521
|
+
},
|
|
12522
|
+
registerDeviceForPush: async (_learnCard, deviceToken) => {
|
|
12523
|
+
return client.profile.registerDeviceForPush.mutate({ deviceToken });
|
|
12524
|
+
},
|
|
12525
|
+
unregisterDeviceForPush: async (_learnCard, deviceToken) => {
|
|
12526
|
+
return client.profile.unregisterDeviceForPush.mutate({ deviceToken });
|
|
12521
12527
|
}
|
|
12522
12528
|
}
|
|
12523
12529
|
};
|