takumi-js 2.0.0-beta.13 → 2.0.0-beta.14
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/dist/backend/node.cjs +3 -1
- package/dist/backend/node.mjs +3 -1
- package/package.json +4 -4
package/dist/backend/node.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/backend/node.ts
|
|
3
|
-
const loadBackend = () => import("@takumi-rs/core")
|
|
3
|
+
const loadBackend = () => import("@takumi-rs/core").catch((cause) => {
|
|
4
|
+
throw new Error("Failed to load the native @takumi-rs/core backend. On a runtime without the native addon, pass a `module` (a WASM binary) to render with the WASM backend instead.", { cause });
|
|
5
|
+
});
|
|
4
6
|
//#endregion
|
|
5
7
|
exports.loadBackend = loadBackend;
|
package/dist/backend/node.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
//#region src/backend/node.ts
|
|
2
|
-
const loadBackend = () => import("@takumi-rs/core")
|
|
2
|
+
const loadBackend = () => import("@takumi-rs/core").catch((cause) => {
|
|
3
|
+
throw new Error("Failed to load the native @takumi-rs/core backend. On a runtime without the native addon, pass a `module` (a WASM binary) to render with the WASM backend instead.", { cause });
|
|
4
|
+
});
|
|
3
5
|
//#endregion
|
|
4
6
|
export { loadBackend };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "takumi-js",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.14",
|
|
4
4
|
"description": "All-in-one Takumi package for Node.js and WebAssembly runtimes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -202,9 +202,9 @@
|
|
|
202
202
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
203
203
|
},
|
|
204
204
|
"dependencies": {
|
|
205
|
-
"@takumi-rs/core": "2.0.0-beta.
|
|
206
|
-
"@takumi-rs/helpers": "2.0.0-beta.
|
|
207
|
-
"@takumi-rs/wasm": "2.0.0-beta.
|
|
205
|
+
"@takumi-rs/core": "2.0.0-beta.14",
|
|
206
|
+
"@takumi-rs/helpers": "2.0.0-beta.14",
|
|
207
|
+
"@takumi-rs/wasm": "2.0.0-beta.14"
|
|
208
208
|
},
|
|
209
209
|
"devDependencies": {
|
|
210
210
|
"@types/bun": "^1.3.14",
|