metamap-capacitor-plugin 4.7.13 → 4.7.14

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.
@@ -37,11 +37,16 @@ extension MetaMapCapacitorPlugin: MetaMapButtonResultDelegate {
37
37
  public func verificationCancelled(identityId: String?, verificationID: String?) {
38
38
  debugPrint("❌ verificationCancelled: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
39
39
 
40
- output?.reject([
41
- "identityId": identityId ?? "",
42
- "verificationId": verificationID ?? ""
43
- "status": "cancelled"
44
- ])
40
+ output?.reject(
41
+ "Verification was cancelled by the user", // message
42
+ "verificationCancelled", // code
43
+ nil, // error
44
+ [ // data (PluginCallResultData)
45
+ "identityId": identityId ?? "",
46
+ "verificationId": verificationID ?? "",
47
+ "status": "cancelled"
48
+ ]
49
+ )
45
50
  }
46
51
 
47
52
  public func verificationCreated(identityId: String?, verificationID: String?) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metamap-capacitor-plugin",
3
- "version": "4.7.13",
3
+ "version": "4.7.14",
4
4
  "description": "Capacitor plugin for MetaMap SDK",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",