@takumi-rs/wasm 2.0.0-beta.8 → 2.0.0-beta.9
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/bundlers/bun.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as wasm from "../dist/export";
|
|
1
|
+
import * as wasm from "../dist/export.mjs";
|
|
2
2
|
import wasmPath from "../pkg/takumi_wasm_bg.wasm";
|
|
3
3
|
|
|
4
4
|
const wasmBytes = await Bun.file(new URL(wasmPath, import.meta.url)).arrayBuffer();
|
|
5
5
|
|
|
6
6
|
wasm.initSync({ module: wasmBytes });
|
|
7
7
|
|
|
8
|
-
export * from "../dist/export";
|
|
8
|
+
export * from "../dist/export.mjs";
|
|
9
9
|
export default wasm.default;
|
package/bundlers/node.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
-
import * as wasm from "../dist/export";
|
|
2
|
+
import * as wasm from "../dist/export.mjs";
|
|
3
3
|
|
|
4
4
|
const wasmBytes = readFileSync(new URL("../pkg/takumi_wasm_bg.wasm", import.meta.url));
|
|
5
5
|
|
|
6
6
|
wasm.initSync({ module: wasmBytes });
|
|
7
7
|
|
|
8
|
-
export * from "../dist/export";
|
|
8
|
+
export * from "../dist/export.mjs";
|
|
9
9
|
export default wasm.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/wasm",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.9",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"css",
|
|
6
6
|
"image",
|
|
@@ -61,20 +61,43 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"./auto": {
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
"bun": {
|
|
65
|
+
"types": "./bundlers/bun.d.ts",
|
|
66
|
+
"default": "./bundlers/bun.mjs"
|
|
67
|
+
},
|
|
68
|
+
"workerd": {
|
|
69
|
+
"types": "./bundlers/wasm-module.d.ts",
|
|
70
|
+
"default": "./bundlers/workerd.js"
|
|
71
|
+
},
|
|
72
|
+
"unwasm": {
|
|
73
|
+
"types": "./bundlers/wasm-module.d.ts",
|
|
74
|
+
"default": "./bundlers/next.mjs"
|
|
75
|
+
},
|
|
76
|
+
"module": {
|
|
77
|
+
"types": "./bundlers/vite.d.ts",
|
|
78
|
+
"default": "./bundlers/vite.mjs"
|
|
79
|
+
},
|
|
80
|
+
"node": {
|
|
81
|
+
"require": {
|
|
82
|
+
"types": "./bundlers/node.d.cts",
|
|
83
|
+
"default": "./bundlers/node.cjs"
|
|
84
|
+
},
|
|
85
|
+
"default": {
|
|
86
|
+
"types": "./bundlers/node.d.ts",
|
|
87
|
+
"default": "./bundlers/node.mjs"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"default": {
|
|
91
|
+
"types": "./bundlers/wasm-module.d.ts",
|
|
92
|
+
"default": "./bundlers/vite.mjs"
|
|
93
|
+
}
|
|
71
94
|
},
|
|
72
95
|
"./takumi_wasm_bg.wasm": {
|
|
73
96
|
"types": "./pkg/takumi_wasm_bg.wasm.d.ts",
|
|
74
97
|
"default": "./pkg/takumi_wasm_bg.wasm"
|
|
75
98
|
},
|
|
76
99
|
"./next": {
|
|
77
|
-
"types": "./bundlers/
|
|
100
|
+
"types": "./bundlers/wasm-module.d.ts",
|
|
78
101
|
"default": "./bundlers/next.mjs"
|
|
79
102
|
},
|
|
80
103
|
"./vite": {
|
|
@@ -89,7 +112,7 @@
|
|
|
89
112
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
90
113
|
},
|
|
91
114
|
"dependencies": {
|
|
92
|
-
"@takumi-rs/helpers": "2.0.0-beta.
|
|
115
|
+
"@takumi-rs/helpers": "2.0.0-beta.9"
|
|
93
116
|
},
|
|
94
117
|
"devDependencies": {
|
|
95
118
|
"@types/bun": "^1.3.14",
|
|
@@ -97,5 +120,8 @@
|
|
|
97
120
|
"tsdown": "^0.22.3",
|
|
98
121
|
"unrun": "^0.3.1"
|
|
99
122
|
},
|
|
123
|
+
"engines": {
|
|
124
|
+
"node": ">=18"
|
|
125
|
+
},
|
|
100
126
|
"readme": "README.md"
|
|
101
127
|
}
|
package/pkg/takumi_wasm_bg.wasm
CHANGED
|
Binary file
|
package/bundlers/type.d.ts
DELETED
|
File without changes
|