react-native-shield-fraud-plugin 1.0.0 → 1.0.1

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.
@@ -70,7 +70,8 @@ RCT_EXPORT_METHOD(setDeviceResultStateListener:(RCTResponseSenderBlock)callback)
70
70
 
71
71
  - (void)didErrorWithError:(NSError *)error
72
72
  {
73
- [self sendEventWithName:@"error" body: error];
73
+ NSDictionary *errorInfo = @{@"error": [error localizedDescription]};
74
+ [self sendEventWithName:@"error" body:errorInfo];
74
75
  }
75
76
 
76
77
  - (void)didSuccessWithResult:(NSDictionary<NSString *,id> *)result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-shield-fraud-plugin",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "React Native Shield Fraud Plugin helps developers to assess malicious activities performed on mobile devices and return risk intelligence based on user's behaviour. It collects device's fingerprint, social metrics and network information.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -44,13 +44,10 @@
44
44
  "device-intelligence",
45
45
  "mobile-fingerprint"
46
46
  ],
47
- "repository": "https://github.com/rajdeepak27/react-native-shield-fraud-plugin",
48
- "author": "shield.com <deepakraj.m@shield.com> (https://github.com/rajdeepak27)",
47
+ "repository": "https://github.com/shield-ai-technology/react-native-shield-fraud-plugin",
48
+ "author": "www.shield.com",
49
49
  "license": "MIT",
50
- "bugs": {
51
- "url": "https://github.com/rajdeepak27/react-native-shield-fraud-plugin/issues"
52
- },
53
- "homepage": "https://github.com/rajdeepak27/react-native-shield-fraud-plugin#readme",
50
+ "homepage": "https://github.com/shield-ai-technology/react-native-shield-fraud-plugin#readme",
54
51
  "devDependencies": {
55
52
  "@evilmartians/lefthook": "^1.2.2",
56
53
  "@commitlint/config-conventional": "^17.0.2",