react-native-zano 0.2.4 → 0.2.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.2.5 (2025-11-17)
6
+
7
+ - fixed: Show proper messages for C++ errors.
8
+
5
9
  ## 0.2.4 (2025-09-19)
6
10
 
7
11
  - fixed: Re-publish with correctly-built binaries.
package/ios/ZanoModule.mm CHANGED
@@ -41,7 +41,7 @@ RCT_REMAP_METHOD(
41
41
  resolve(
42
42
  [NSString stringWithCString:out.c_str() encoding:NSUTF8StringEncoding]
43
43
  );
44
- } catch (std::exception e) {
44
+ } catch (std::exception &e) {
45
45
  reject(
46
46
  @"Error",
47
47
  [NSString stringWithCString:e.what() encoding:NSUTF8StringEncoding],
@@ -68,16 +68,16 @@ RCT_REMAP_METHOD(
68
68
  encoding:NSUTF8StringEncoding];
69
69
  out[i] = name;
70
70
  }
71
-
71
+
72
72
  NSFileManager *fileManager = [NSFileManager defaultManager];
73
- NSURL *docsDir = [fileManager URLForDirectory:NSDocumentDirectory
74
- inDomain:NSUserDomainMask
75
- appropriateForURL:nil
76
- create:YES
73
+ NSURL *docsDir = [fileManager URLForDirectory:NSDocumentDirectory
74
+ inDomain:NSUserDomainMask
75
+ appropriateForURL:nil
76
+ create:YES
77
77
  error:nil];
78
78
  NSString *docsPath = [docsDir path];
79
-
80
- return @{
79
+
80
+ return @{
81
81
  @"methodNames": out,
82
82
  @"documentDirectory": docsPath
83
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zano",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "React Native bindings for the Zano blockchain",
5
5
  "homepage": "https://github.com/EdgeApp/react-native-zano",
6
6
  "repository": {