bililive-cli 3.9.1 → 3.10.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/lib/{chunked-exec-wqkoyRnJ.cjs → chunked-exec-tHzxUWFk.cjs} +5 -5
- package/lib/{index-B4DHRkFJ.cjs → index-CuJEbURl.cjs} +52452 -10812
- package/lib/{index-Cba0EEtx.cjs → index-DOo0dewT.cjs} +202 -305
- package/lib/index.cjs +3 -3
- package/lib/{linux-CNe7K9Gx.cjs → linux-CINV_k6s.cjs} +13 -1
- package/lib/{macos-Dd90ykMt.cjs → macos-BYKwI9yg.cjs} +2 -2
- package/lib/{windows-CJCw0QtL.cjs → windows-OmnJ7a39.cjs} +2 -2
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var require$$1 = require('node:child_process');
|
|
5
|
-
var require$$
|
|
3
|
+
var require$$3 = require('node:util');
|
|
4
|
+
var require$$1$1 = require('node:child_process');
|
|
5
|
+
var require$$1 = require('node:url');
|
|
6
6
|
|
|
7
7
|
function chunkify(iterable, chunkSize) {
|
|
8
8
|
if (typeof iterable[Symbol.iterator] !== 'function') {
|
|
@@ -41,12 +41,12 @@ function chunkify(iterable, chunkSize) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const pExecFile =
|
|
44
|
+
const pExecFile = require$$3.promisify(require$$1$1.execFile);
|
|
45
45
|
|
|
46
46
|
async function chunkedExec(binary, paths, maxPaths) {
|
|
47
47
|
for (const chunk of chunkify(paths, maxPaths)) {
|
|
48
48
|
// eslint-disable-next-line no-await-in-loop
|
|
49
|
-
await pExecFile(require$$
|
|
49
|
+
await pExecFile(require$$1.fileURLToPath(binary).replace("app.asar", "app.asar.unpacked"), chunk);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|