ducsvg 3.2.0 → 3.2.1
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/index.js +6 -26
- package/dist/pdf2svg.js.br +0 -0
- package/dist/pdf2svg_bg.wasm.br +0 -0
- package/package.json +3 -2
- package/dist/wasm-DqzdVVdy.js +0 -87
package/dist/index.js
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
import { convertDucToPdf as
|
|
2
|
-
|
|
3
|
-
async
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const t = await import("./wasm-DqzdVVdy.js");
|
|
7
|
-
if (typeof t.default == "function")
|
|
8
|
-
await t.default();
|
|
9
|
-
else
|
|
10
|
-
throw new Error("WASM module does not have a default initialization function");
|
|
11
|
-
if (typeof t.convert_pdf_to_svg_rs != "function")
|
|
12
|
-
throw new Error("Required WASM function 'convert_pdf_to_svg_rs' not found");
|
|
13
|
-
return o = t, o;
|
|
14
|
-
} catch (t) {
|
|
15
|
-
throw console.error("Failed to initialize pdf2svg WASM module:", t), n = null, t;
|
|
16
|
-
}
|
|
17
|
-
})(), n);
|
|
18
|
-
}
|
|
19
|
-
async function u(t) {
|
|
20
|
-
const r = (await a()).convert_pdf_to_svg_rs(t);
|
|
21
|
-
return JSON.parse(r);
|
|
22
|
-
}
|
|
23
|
-
const f = async (t, e) => {
|
|
24
|
-
const r = await i(t, e);
|
|
25
|
-
return await u(r);
|
|
1
|
+
import { convertDucToPdf as n } from "ducpdf";
|
|
2
|
+
import { convertPdfToSvg as r } from "./pdf2svg";
|
|
3
|
+
const v = async (o, t) => {
|
|
4
|
+
const c = await n(o, t);
|
|
5
|
+
return await r(c);
|
|
26
6
|
};
|
|
27
7
|
export {
|
|
28
|
-
|
|
8
|
+
v as ducToSvg
|
|
29
9
|
};
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ducsvg",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Adapter for converting duc CAD documents to SVG. Built on top of ducjs.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"ducjs": "^2.2.2",
|
|
37
|
-
"ducpdf": "^3.2.
|
|
37
|
+
"ducpdf": "^3.2.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@xmldom/xmldom": "^0.8.11",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"semantic-release": "^24.1.2",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
44
|
"vite": "^6.0.0",
|
|
45
|
+
"vite-plugin-compression": "^0.5.1",
|
|
45
46
|
"vitest": "^3.2.4"
|
|
46
47
|
},
|
|
47
48
|
"files": [
|