react-native-ariel 0.1.0-dev.25 → 0.1.0-dev.27
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/lib/module/index.web.js +4 -6
- package/package.json +1 -1
package/lib/module/index.web.js
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
// Generated by uniffi-bindgen-react-native
|
|
4
4
|
// Export the generated bindings to the app.
|
|
5
5
|
export * from "./generated/web/mermaid_wrapper.js";
|
|
6
|
+
|
|
7
|
+
// Now import the bindings so we can:
|
|
8
|
+
// - intialize them
|
|
9
|
+
// - export them as namespaced objects as the default export.
|
|
6
10
|
import * as mermaid_wrapper from "./generated/web/mermaid_wrapper.js";
|
|
7
11
|
import initAsync from './generated/web/wasm-bindgen/react_native_ariel.js';
|
|
8
12
|
import wasmPath from './generated/web/wasm-bindgen/react_native_ariel_bg.wasm';
|
|
@@ -10,12 +14,6 @@ export async function uniffiInitAsync() {
|
|
|
10
14
|
await initAsync({
|
|
11
15
|
module_or_path: wasmPath
|
|
12
16
|
});
|
|
13
|
-
mermaid_wrapper.default.initialize();
|
|
14
|
-
}
|
|
15
|
-
export default {
|
|
16
|
-
mermaid_wrapper
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=index.web.js.map});
|
|
19
17
|
|
|
20
18
|
// Initialize the generated bindings: mostly checksums, but also callbacks.
|
|
21
19
|
// - the boolean flag ensures this loads exactly once, even if the JS code
|
package/package.json
CHANGED