roxify 1.6.0 → 1.6.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/cli.js CHANGED
@@ -6,7 +6,7 @@ import { DataFormatError, decodePngToBinary, encodeBinaryToPng, hasPassphraseInP
6
6
  import { packPathsGenerator, unpackBuffer } from './pack.js';
7
7
  import * as cliProgress from './stub-progress.js';
8
8
  import { encodeWithRustCLI, isRustBinaryAvailable, } from './utils/rust-cli-wrapper.js';
9
- const VERSION = '1.4.0';
9
+ const VERSION = '1.6.1';
10
10
  function getDirectorySize(dirPath) {
11
11
  let totalSize = 0;
12
12
  try {
@@ -72,25 +72,20 @@ function getNativeModule() {
72
72
  const prebuiltLibNode = resolve(moduleDir, '../../libroxify_native.node');
73
73
  const prebuiltNodeWithTarget = resolve(moduleDir, `../../roxify_native-${target}.node`);
74
74
  const prebuiltLibNodeWithTarget = resolve(moduleDir, `../../libroxify_native-${target}.node`);
75
- const candidates = [
76
- bundleLibNodeWithTarget,
77
- bundleNodeWithTarget,
78
- bundleLibNode,
79
- bundleNode,
80
- repoLibNodeWithTarget,
81
- repoNodeWithTarget,
82
- repoLibNode,
83
- repoNode,
84
- targetNode,
85
- targetLibSo,
86
- targetSo,
87
- nodeModulesNodeWithTarget,
88
- nodeModulesNode,
89
- prebuiltLibNodeWithTarget,
90
- prebuiltNodeWithTarget,
91
- prebuiltLibNode,
92
- prebuiltNode,
93
- ];
75
+ // Support multiple possible OS triples (e.g. windows-gnu and windows-msvc)
76
+ const targets = targetAlt ? [target, targetAlt] : [target];
77
+ const candidates = [];
78
+ for (const t of targets) {
79
+ const bundleNodeWithT = resolve(moduleDir, `../roxify_native-${t}.node`);
80
+ const bundleLibNodeWithT = resolve(moduleDir, `../libroxify_native-${t}.node`);
81
+ const repoNodeWithT = resolve(root, `roxify_native-${t}.node`);
82
+ const repoLibNodeWithT = resolve(root, `libroxify_native-${t}.node`);
83
+ const nodeModulesNodeWithT = resolve(root, `node_modules/roxify/roxify_native-${t}.node`);
84
+ const prebuiltNodeWithT = resolve(moduleDir, `../../roxify_native-${t}.node`);
85
+ const prebuiltLibNodeWithT = resolve(moduleDir, `../../libroxify_native-${t}.node`);
86
+ candidates.push(bundleLibNodeWithT, bundleNodeWithT, repoLibNodeWithT, repoNodeWithT, nodeModulesNodeWithT, prebuiltLibNodeWithT, prebuiltNodeWithT);
87
+ }
88
+ candidates.push(bundleLibNode, bundleNode, repoLibNode, repoNode, targetNode, targetLibSo, targetSo, nodeModulesNode, prebuiltLibNode, prebuiltNode);
94
89
  for (const c of candidates) {
95
90
  try {
96
91
  if (!existsSync(c))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roxify",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "description": "Ultra-lightweight PNG steganography with native Rust acceleration. Encode binary data into PNG images with zstd compression.",
6
6
  "main": "dist/index.js",
@@ -14,6 +14,7 @@
14
14
  "roxify_native.node",
15
15
  "libroxify_native.node",
16
16
  "roxify_native-x86_64-pc-windows-gnu.node",
17
+ "roxify_native-x86_64-pc-windows-msvc.node",
17
18
  "roxify_native-x86_64-unknown-linux-gnu.node",
18
19
  "libroxify_native-x86_64-unknown-linux-gnu.node",
19
20
  "README.md",
Binary file