@blazediff/bin 2.0.0 → 2.0.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/README.md CHANGED
@@ -177,11 +177,10 @@ Options:
177
177
 
178
178
  Benchmarked on Apple M1 Pro with 5600x3200 4K images:
179
179
 
180
- | Tool | Time | vs blazediff |
180
+ | Tool | Benchmark Time | vs blazediff |
181
181
  |------|------|--------------|
182
- | **blazediff** | ~35ms | - |
183
- | odiff | ~120ms | 3.4x slower |
184
- | pixelmatch | ~280ms | 8x slower |
182
+ | **blazediff** | ~327ms | - |
183
+ | odiff | ~1215ms | 3.4x slower |
185
184
 
186
185
  Binary sizes (stripped, LTO optimized) - **~3x smaller than odiff**:
187
186
 
package/dist/index.mjs CHANGED
@@ -1,9 +1,16 @@
1
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.6.0_postcss@8.5.6_tsx@4.20.6_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+ var getFilename = () => fileURLToPath(import.meta.url);
5
+ var getDirname = () => path.dirname(getFilename());
6
+ var __dirname = /* @__PURE__ */ getDirname();
7
+
1
8
  // src/index.ts
2
9
  import { execFile } from "child_process";
3
- import path from "path";
10
+ import path2 from "path";
4
11
  import { promisify } from "util";
5
12
  var execFileAsync = promisify(execFile);
6
- var BINARY_PATH = path.join(__dirname, "..", "bin", "blazediff.exe");
13
+ var BINARY_PATH = path2.join(__dirname, "..", "bin", "blazediff.exe");
7
14
  function buildArgs(diffOutput, options) {
8
15
  const args = [diffOutput, "--output-format=json"];
9
16
  if (!options) return args;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/bin",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Native Rust binaries for blazediff - the fastest image diff in the world",
5
5
  "private": false,
6
6
  "publishConfig": {