@blazediff/core-wasm 4.3.0 → 4.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/core-wasm",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "WebAssembly build of blazediff for browsers, edge runtimes, and any wasm host. Same algorithm as @blazediff/core-native.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -44,7 +44,7 @@
44
44
  "tsup": "8.5.0",
45
45
  "typescript": "5.9.2",
46
46
  "vitest": "^3.2.4",
47
- "@blazediff/core-native": "4.3.0"
47
+ "@blazediff/core-native": "4.3.2"
48
48
  },
49
49
  "scripts": {
50
50
  "typecheck": "tsc --noEmit",
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function _start(): void;
3
4
  /**
4
5
  * Diff two RGBA buffers. Returns the count of differing pixels.
5
6
  *
@@ -8,7 +9,6 @@
8
9
  * visualization and just get a count.
9
10
  */
10
11
  export function diffRgba(rgba_a: Uint8Array, rgba_b: Uint8Array, width: number, height: number, threshold: number, include_aa: boolean, diff_mask: boolean, out_diff?: Uint8Array | null): number;
11
- export function _start(): void;
12
12
 
13
13
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
14
14
 
package/wasm/blazediff.js CHANGED
@@ -112,6 +112,10 @@ function takeObject(idx) {
112
112
  return ret;
113
113
  }
114
114
 
115
+ export function _start() {
116
+ wasm._start();
117
+ }
118
+
115
119
  function passArray8ToWasm0(arg, malloc) {
116
120
  const ptr = malloc(arg.length * 1, 1) >>> 0;
117
121
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -158,10 +162,6 @@ export function diffRgba(rgba_a, rgba_b, width, height, threshold, include_aa, d
158
162
  }
159
163
  }
160
164
 
161
- export function _start() {
162
- wasm._start();
163
- }
164
-
165
165
  async function __wbg_load(module, imports) {
166
166
  if (typeof Response === 'function' && module instanceof Response) {
167
167
  if (typeof WebAssembly.instantiateStreaming === 'function') {
Binary file