nitrogen 0.31.7 → 0.31.8

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.
@@ -923,7 +923,7 @@ __promise->resolve();
923
923
  case 'error':
924
924
  switch (language) {
925
925
  case 'c++':
926
- return `jni::JniException(${parameterName})`;
926
+ return `std::make_exception_ptr(jni::JniException(${parameterName}))`;
927
927
  default:
928
928
  return parameterName;
929
929
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitrogen",
3
- "version": "0.31.7",
3
+ "version": "0.31.8",
4
4
  "description": "The code-generator for react-native-nitro-modules.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "chalk": "^5.3.0",
39
- "react-native-nitro-modules": "^0.31.7",
39
+ "react-native-nitro-modules": "^0.31.8",
40
40
  "ts-morph": "^27.0.0",
41
41
  "yargs": "^18.0.0",
42
42
  "zod": "^4.0.5"
@@ -977,7 +977,7 @@ __promise->resolve();
977
977
  case 'error':
978
978
  switch (language) {
979
979
  case 'c++':
980
- return `jni::JniException(${parameterName})`
980
+ return `std::make_exception_ptr(jni::JniException(${parameterName}))`
981
981
  default:
982
982
  return parameterName
983
983
  }