takumi-pdf 0.14.0 → 0.14.2
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/browser.mjs +7 -0
- package/bundlers/vite.mjs +1 -1
- package/package.json +7 -3
- package/pkg/takumi_pdf_wasm_bg.wasm +0 -0
package/bundlers/vite.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import * as wasm from "../dist/export.mjs";
|
|
|
5
5
|
// importing server chunk, so resolve relative to import.meta.url, not the framework output dir.
|
|
6
6
|
async function resolveWasm() {
|
|
7
7
|
if (typeof process !== "undefined" && process.versions?.node != null) {
|
|
8
|
-
const { readFile } =
|
|
8
|
+
const { readFile } = process.getBuiltinModule("node:fs/promises");
|
|
9
9
|
const path = decodeURIComponent(url.replace(/[?#].*$/, ""));
|
|
10
10
|
|
|
11
11
|
// Dev SSR serves an `/@fs/<abs-path>` URL.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "takumi-pdf",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Render paged PDFs from JSX, HTML, and CSS. No headless browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chromium-free",
|
|
@@ -75,6 +75,10 @@
|
|
|
75
75
|
"default": "./bundlers/vite.mjs"
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
"browser": {
|
|
79
|
+
"types": "./bundlers/node.d.ts",
|
|
80
|
+
"default": "./bundlers/browser.mjs"
|
|
81
|
+
},
|
|
78
82
|
"module": {
|
|
79
83
|
"types": "./bundlers/node.d.ts",
|
|
80
84
|
"default": "./bundlers/vite.mjs"
|
|
@@ -139,7 +143,7 @@
|
|
|
139
143
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
140
144
|
},
|
|
141
145
|
"dependencies": {
|
|
142
|
-
"@takumi-rs/helpers": "2.13.
|
|
146
|
+
"@takumi-rs/helpers": "2.13.6"
|
|
143
147
|
},
|
|
144
148
|
"devDependencies": {
|
|
145
149
|
"@types/bun": "^1.4.0",
|
|
@@ -155,7 +159,7 @@
|
|
|
155
159
|
}
|
|
156
160
|
},
|
|
157
161
|
"engines": {
|
|
158
|
-
"node": ">=
|
|
162
|
+
"node": ">=20.19"
|
|
159
163
|
},
|
|
160
164
|
"readme": "README.md"
|
|
161
165
|
}
|
|
Binary file
|