cpp.js 1.0.1 → 1.0.4

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
@@ -1,10 +1,16 @@
1
1
  # cpp.js
2
2
 
3
+ ## 1.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: workaround for race condition with turbomodule in android.
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - fix: include prebuilt/*/{config.general.name}/*.h in dependency header search paths
13
+ - fix: include prebuilt/_/{config.general.name}/_.h in dependency header search paths
8
14
 
9
15
  ## 1.0.0
10
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cpp.js",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://cpp.js.org",
6
6
  "repository": "https://github.com/bugra9/cpp.js.git",
@@ -51,9 +51,9 @@ function getReactNativeScript(env, modulePrefix) {
51
51
  }
52
52
 
53
53
  export function initCppJs(config = {}) {
54
- return new Promise((resolve, reject) => {
54
+ return new Promise(async (resolve, reject) => {
55
55
  if (RNJsiLib && RNJsiLib.start) {
56
- RNJsiLib.start();
56
+ await RNJsiLib.start();
57
57
  setEnv();
58
58
  const m = Module;
59
59
  ${modulePrefix}