@blazediff/core-wasm 4.3.1 → 4.3.3

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/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- [![npm bundle size](https://img.shields.io/npm/unpacked-size/%40blazediff%2Fcore-wasm?style=flat-square)](https://www.npmjs.com/package/@blazediff/core-wasm)
6
- [![NPM Downloads](https://img.shields.io/npm/dy/%40blazediff%2Fcore-wasm?style=flat-square)](https://www.npmjs.com/package/@blazediff/core-wasm)
7
- [![Crates.io](https://img.shields.io/crates/v/blazediff.svg?style=flat-square)](https://crates.io/crates/blazediff)
5
+ [![npm bundle size](https://img.shields.io/npm/unpacked-size/%40blazediff%2Fcore-wasm)](https://www.npmjs.com/package/@blazediff/core-wasm)
6
+ [![NPM Downloads](https://img.shields.io/npm/dy/%40blazediff%2Fcore-wasm)](https://www.npmjs.com/package/@blazediff/core-wasm)
7
+ [![Crates.io](https://img.shields.io/crates/v/blazediff.svg)](https://crates.io/crates/blazediff)
8
8
 
9
9
  </div>
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/core-wasm",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
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.2"
47
+ "@blazediff/core-native": "4.3.3"
48
48
  },
49
49
  "scripts": {
50
50
  "typecheck": "tsc --noEmit",
@@ -1,6 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function _start(): void;
4
3
  /**
5
4
  * Diff two RGBA buffers. Returns the count of differing pixels.
6
5
  *
@@ -9,6 +8,7 @@ export function _start(): void;
9
8
  * visualization and just get a count.
10
9
  */
11
10
  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,10 +112,6 @@ function takeObject(idx) {
112
112
  return ret;
113
113
  }
114
114
 
115
- export function _start() {
116
- wasm._start();
117
- }
118
-
119
115
  function passArray8ToWasm0(arg, malloc) {
120
116
  const ptr = malloc(arg.length * 1, 1) >>> 0;
121
117
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -162,6 +158,10 @@ export function diffRgba(rgba_a, rgba_b, width, height, threshold, include_aa, d
162
158
  }
163
159
  }
164
160
 
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