metamap-capacitor-plugin 4.7.10 → 4.7.11

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.
@@ -24,23 +24,25 @@ public class MetaMapCapacitorPlugin: CAPPlugin {
24
24
  }
25
25
 
26
26
  extension MetaMapCapacitorPlugin: MetaMapButtonResultDelegate {
27
- public func verificationSuccess(identityId: String?, verificationID: String?) {
28
- debugPrint("✅ verificationSuccess: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
29
-
30
- output?.resolve([
31
- "identityId": identityId ?? "",
32
- "verificationId": verificationID ?? ""
33
- ])
34
- }
27
+ public func verificationSuccess(identityId: String?, verificationID: String?) {
28
+ debugPrint("✅ verificationSuccess: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
29
+
30
+ output?.resolve([
31
+ "identityId": identityId ?? "",
32
+ "verificationId": verificationID ?? "",
33
+ "status": "success"
34
+ ])
35
+ }
35
36
 
36
- public func verificationCancelled(identityId: String?, verificationID: String?) {
37
- debugPrint("❌ verificationCancelled: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
37
+ public func verificationCancelled(identityId: String?, verificationID: String?) {
38
+ debugPrint("❌ verificationCancelled: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
38
39
 
39
- output?.reject("verificationCancelled", nil, [
40
- "identityId": identityId ?? "",
41
- "verificationId": verificationID ?? ""
42
- ])
43
- }
40
+ output?.resolve([
41
+ "identityId": identityId ?? "",
42
+ "verificationId": verificationID ?? "",
43
+ "status": "cancelled"
44
+ ])
45
+ }
44
46
 
45
47
  public func verificationCreated(identityId: String?, verificationID: String?) {
46
48
  debugPrint("ℹ️ verificationCreated: identityId = \(identityId ?? "nil"), verificationID = \(verificationID ?? "nil")")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metamap-capacitor-plugin",
3
- "version": "4.7.10",
3
+ "version": "4.7.11",
4
4
  "description": "Capacitor plugin for MetaMap SDK",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",