roxify 1.14.7 → 1.14.9

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ async function loadJsEngine() {
20
20
  VFSIndexEntry: undefined,
21
21
  };
22
22
  }
23
- const VERSION = '1.14.6';
23
+ const VERSION = '1.14.9';
24
24
  function getDirectorySize(dirPath) {
25
25
  let totalSize = 0;
26
26
  try {
@@ -323,7 +323,10 @@ async function encodeCommand(args) {
323
323
  encodeBar.start(100, 0, { step: 'Encoding', elapsed: '0' });
324
324
  const encryptType = parsed.encrypt === 'xor' ? 'xor' : 'aes';
325
325
  const fileName = basename(inputPaths[0]);
326
- await encodeWithRustCLI(inputPaths.length === 1 ? resolvedInputs[0] : resolvedInputs[0], resolvedOutput, 19, parsed.passphrase, encryptType, fileName, parsed.ramBudgetMb, (current, total, step) => {
326
+ const encodeLevel = parsed.level
327
+ ? Number(parsed.level)
328
+ : 3;
329
+ await encodeWithRustCLI(inputPaths.length === 1 ? resolvedInputs[0] : resolvedInputs[0], resolvedOutput, encodeLevel, parsed.passphrase, encryptType, fileName, parsed.ramBudgetMb, (current, total, step) => {
327
330
  const pct = total > 0 ? Math.floor((current / total) * 100) : 0;
328
331
  const elapsed = Math.floor((Date.now() - startTime) / 1000);
329
332
  encodeBar.update(Math.min(pct, 99), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roxify",
3
- "version": "1.14.7",
3
+ "version": "1.14.9",
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",