@enclave-e3/wasm 0.0.7-test → 0.0.9-test

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/init.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ //
3
+ // This file is provided WITHOUT ANY WARRANTY;
4
+ // without even the implied warranty of MERCHANTABILITY
5
+ // or FITNESS FOR A PARTICULAR PURPOSE.
6
+
7
+ type Params = { module_or_path?: any };
8
+ declare function init(param?: Params): Promise<void>;
9
+ export default init;
package/init_node.cjs ADDED
@@ -0,0 +1,9 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ //
3
+ // This file is provided WITHOUT ANY WARRANTY;
4
+ // without even the implied warranty of MERCHANTABILITY
5
+ // or FITNESS FOR A PARTICULAR PURPOSE.
6
+
7
+ module.exports = async function initializeWasm() {
8
+ // Node does not need to be loaded async
9
+ }
package/init_node.js ADDED
@@ -0,0 +1,9 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ //
3
+ // This file is provided WITHOUT ANY WARRANTY;
4
+ // without even the implied warranty of MERCHANTABILITY
5
+ // or FITNESS FOR A PARTICULAR PURPOSE.
6
+
7
+ export default async function initializeWasm() {
8
+ // Node does not need to be loaded async
9
+ }
package/init_web.js ADDED
@@ -0,0 +1,10 @@
1
+ // SPDX-License-Identifier: LGPL-3.0-only
2
+ //
3
+ // This file is provided WITHOUT ANY WARRANTY;
4
+ // without even the implied warranty of MERCHANTABILITY
5
+ // or FITNESS FOR A PARTICULAR PURPOSE.
6
+
7
+ import init from "./dist/web/e3_wasm.js";
8
+ export default async function initializeWasm(initParams) {
9
+ return await init(initParams);
10
+ }
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@enclave-e3/wasm",
3
- "version": "0.0.7-test",
3
+ "version": "0.0.9-test",
4
4
  "description": "Wasm modules for enclave.",
5
5
  "main": "dist/nodejs/e3_wasm.js",
6
6
  "module": "dist/web/e3_wasm.js",
7
7
  "types": "dist/web/e3_wasm.d.ts",
8
8
  "files": [
9
9
  "dist/",
10
- "dist/**/*"
10
+ "dist/nodejs/**",
11
+ "dist/web/**",
12
+ "init_node.js",
13
+ "init_node.cjs",
14
+ "init_web.js",
15
+ "init.d.ts"
11
16
  ],
12
17
  "publishConfig": {
13
18
  "access": "public",