ducpdf 3.2.0 → 3.3.0

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.
@@ -19,8 +19,11 @@ module.exports = {
19
19
  [
20
20
  "@semantic-release/exec",
21
21
  {
22
- // Prepare step: Set the crate version and build the project
23
- prepareCmd: "cargo set-version ${nextRelease.version} && cargo build --release",
22
+ // Prepare step:
23
+ // 1. Update duc dependency to use crates.io version (not development)
24
+ // 2. Set the crate version
25
+ // 3. Build the project
26
+ prepareCmd: "node ../../../../scripts/cargo-set-duc-dep-version.js . 2 && cargo set-version ${nextRelease.version} && cargo build --release",
24
27
  // Publish step: Publish the crate to crates.io
25
28
  publishCmd: "cargo publish --allow-dirty --token ${process.env.CARGO_REGISTRY_TOKEN}",
26
29
  },
@@ -1 +1 @@
1
- {"version":3,"file":"release.config.cjs","sourceRoot":"","sources":["../../src/duc2pdf/release.config.cjs"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACzF,OAAO,EAAE;QACP;YACE,OAAO,CAAC,OAAO,CAAC,4CAA4C,CAAC;YAC7D;gBACE,KAAK,EAAE;oBACL,6BAA6B;oBAC7B,gBAAgB;iBACjB;gBACD,QAAQ,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE;gBAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE;aACzC;SACF;QACD;YACE,0BAA0B;SAC3B;QACD;YACE,wBAAwB;YACxB;gBACE,4DAA4D;gBAC5D,UAAU,EACR,mEAAmE;gBAErE,+CAA+C;gBAC/C,UAAU,EACR,yEAAyE;aAC5E;SACF;KACF;IACD,SAAS,EAAE,oBAAoB;CAChC,CAAC"}
1
+ {"version":3,"file":"release.config.cjs","sourceRoot":"","sources":["../../src/duc2pdf/release.config.cjs"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACzF,OAAO,EAAE;QACP;YACE,OAAO,CAAC,OAAO,CAAC,4CAA4C,CAAC;YAC7D;gBACE,KAAK,EAAE;oBACL,6BAA6B;oBAC7B,gBAAgB;iBACjB;gBACD,QAAQ,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE;gBAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE;aACzC;SACF;QACD;YACE,0BAA0B;SAC3B;QACD;YACE,wBAAwB;YACxB;gBACE,iBAAiB;gBACjB,sEAAsE;gBACtE,4BAA4B;gBAC5B,uBAAuB;gBACvB,UAAU,EACR,gIAAgI;gBAElI,+CAA+C;gBAC/C,UAAU,EACR,yEAAyE;aAC5E;SACF;KACF;IACD,SAAS,EAAE,oBAAoB;CAChC,CAAC"}
package/dist/duc2pdf.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * WASM binding for crop conversion
5
5
  */
6
6
  export function convert_duc_to_pdf_crop_wasm(duc_data: Uint8Array, offset_x: number, offset_y: number, width?: number | null, height?: number | null, background_color?: string | null): Uint8Array;
7
+ export function init_logger(): void;
7
8
  /**
8
9
  * WASM binding for the main conversion function
9
10
  */
@@ -15,6 +16,7 @@ export interface InitOutput {
15
16
  readonly memory: WebAssembly.Memory;
16
17
  readonly convert_duc_to_pdf_crop_wasm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number];
17
18
  readonly convert_duc_to_pdf_rs: (a: number, b: number) => [number, number];
19
+ readonly init_logger: () => void;
18
20
  readonly __wbindgen_exn_store: (a: number) => void;
19
21
  readonly __externref_table_alloc: () => number;
20
22
  readonly __wbindgen_export_2: WebAssembly.Table;
package/dist/duc2pdf.js CHANGED
@@ -135,6 +135,10 @@ export function convert_duc_to_pdf_crop_wasm(duc_data, offset_x, offset_y, width
135
135
  return v3;
136
136
  }
137
137
 
138
+ export function init_logger() {
139
+ wasm.init_logger();
140
+ }
141
+
138
142
  /**
139
143
  * WASM binding for the main conversion function
140
144
  * @param {Uint8Array} duc_data
@@ -187,9 +191,18 @@ async function __wbg_load(module, imports) {
187
191
  function __wbg_get_imports() {
188
192
  const imports = {};
189
193
  imports.wbg = {};
194
+ imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) {
195
+ console.debug(arg0);
196
+ };
197
+ imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) {
198
+ console.error(arg0);
199
+ };
190
200
  imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
191
201
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
192
202
  }, arguments) };
203
+ imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) {
204
+ console.info(arg0);
205
+ };
193
206
  imports.wbg.__wbg_log_6c7b5f4f00b8ce3f = function(arg0) {
194
207
  console.log(arg0);
195
208
  };
Binary file
@@ -3,6 +3,7 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const convert_duc_to_pdf_crop_wasm: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number];
5
5
  export const convert_duc_to_pdf_rs: (a: number, b: number) => [number, number];
6
+ export const init_logger: () => void;
6
7
  export const __wbindgen_exn_store: (a: number) => void;
7
8
  export const __externref_table_alloc: () => number;
8
9
  export const __wbindgen_export_2: WebAssembly.Table;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ducpdf",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Library for converting between PDF and DUC formats.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "test:duc2pdf": "cd src/duc2pdf && cargo test"
49
49
  },
50
50
  "dependencies": {
51
- "ducjs": "^2.2.2"
51
+ "ducjs": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "typescript": "^5.4.5",