roxify 1.14.8 → 1.15.0
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 +5 -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.
|
|
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
|
-
|
|
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