bililive-cli 1.5.0 → 1.5.2
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/{bili-CQgv-F-q.js → bili-D3J1MVEe.js} +12148 -10253
- package/lib/{index-BVMD1wRX.js → index-ClJgJB5w.js} +8543 -24330
- package/lib/index.cjs +3 -3
- package/lib/{linux-BGjRnnAR.js → linux-D-VDnP7t.js} +6 -2
- package/lib/{macos-BaatW38k.js → macos-DVOnmFU5.js} +1 -1
- package/lib/{windows-B0oX8Um0.js → windows-wcJYLyu-.js} +1 -1
- package/package.json +4 -4
- package/lib/bili-BLevGPF2.js +0 -76000
- package/lib/index-vxC6dSfO.js +0 -43797
- package/lib/linux-C6SziuFt.js +0 -3515
package/lib/index.cjs
CHANGED
|
@@ -3440,7 +3440,7 @@ const {
|
|
|
3440
3440
|
Help
|
|
3441
3441
|
} = commander;
|
|
3442
3442
|
|
|
3443
|
-
var version = "1.5.
|
|
3443
|
+
var version = "1.5.2";
|
|
3444
3444
|
|
|
3445
3445
|
const program = new Command();
|
|
3446
3446
|
program.name("biliLive").description("biliLive-tools命令行").version(version);
|
|
@@ -3469,8 +3469,8 @@ program
|
|
|
3469
3469
|
if (!fs$1.existsSync(path$1.join(c.configFolder, "danmu_presets.json"))) {
|
|
3470
3470
|
console.warn(`${c.configFolder}文件夹中的 danmu_presets.json 文件不存在`);
|
|
3471
3471
|
}
|
|
3472
|
-
const { serverStart } = await Promise.resolve().then(function () { return require('./index-
|
|
3473
|
-
const { init } = await Promise.resolve().then(function () { return require('./bili-
|
|
3472
|
+
const { serverStart } = await Promise.resolve().then(function () { return require('./index-ClJgJB5w.js'); });
|
|
3473
|
+
const { init } = await Promise.resolve().then(function () { return require('./bili-D3J1MVEe.js'); }).then(function (n) { return n.index; });
|
|
3474
3474
|
const globalConfig = {
|
|
3475
3475
|
ffmpegPresetPath: path$1.join(c.configFolder, "ffmpeg_presets.json"),
|
|
3476
3476
|
videoPresetPath: path$1.join(c.configFolder, "presets.json"),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var os$3 = require('node:os');
|
|
4
4
|
var path$5 = require('node:path');
|
|
5
5
|
var fs$3 = require('node:fs');
|
|
6
|
-
var index = require('./bili-
|
|
6
|
+
var index = require('./bili-D3J1MVEe.js');
|
|
7
7
|
var require$$0$1 = require('fs');
|
|
8
8
|
var require$$0 = require('path');
|
|
9
9
|
var require$$0$2 = require('child_process');
|
|
@@ -1308,7 +1308,11 @@ var endOfStream = eos$1;
|
|
|
1308
1308
|
|
|
1309
1309
|
var once = index.onceExports;
|
|
1310
1310
|
var eos = endOfStream;
|
|
1311
|
-
var fs$1
|
|
1311
|
+
var fs$1;
|
|
1312
|
+
|
|
1313
|
+
try {
|
|
1314
|
+
fs$1 = require('fs'); // we only need fs to get the ReadStream and WriteStream prototypes
|
|
1315
|
+
} catch (e) {}
|
|
1312
1316
|
|
|
1313
1317
|
var noop = function () {};
|
|
1314
1318
|
var ancient = /^v?\.0/.test(process.version);
|
|
@@ -10,7 +10,7 @@ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentS
|
|
|
10
10
|
const isOlderThanMountainLion = Number(os.release().split('.')[0]) < 12;
|
|
11
11
|
|
|
12
12
|
// Binary source: https://github.com/sindresorhus/macos-trash
|
|
13
|
-
const binary = new URL('macos-trash', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('macos-
|
|
13
|
+
const binary = new URL('macos-trash', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('macos-DVOnmFU5.js', document.baseURI).href)));
|
|
14
14
|
|
|
15
15
|
async function macOS(paths) {
|
|
16
16
|
if (isOlderThanMountainLion) {
|
|
@@ -7,7 +7,7 @@ require('node:url');
|
|
|
7
7
|
|
|
8
8
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
9
9
|
// Binary source: https://github.com/sindresorhus/recycle-bin
|
|
10
|
-
const binary = new URL('windows-trash.exe', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('windows-
|
|
10
|
+
const binary = new URL('windows-trash.exe', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('windows-wcJYLyu-.js', document.baseURI).href)));
|
|
11
11
|
|
|
12
12
|
async function windows(paths) {
|
|
13
13
|
await chunkedExec.chunkedExec(binary, paths, 200);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bililive-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "biliLive-tools的cli程序",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"tsx": "^4.7.2",
|
|
32
32
|
"cli-progress": "^3.12.0",
|
|
33
33
|
"commander": "^12.0.0",
|
|
34
|
-
"@biliLive-tools/http": "1.5.
|
|
35
|
-
"@biliLive-tools/shared": "1.5.
|
|
36
|
-
"@biliLive-tools/types": "1.5.
|
|
34
|
+
"@biliLive-tools/http": "1.5.2",
|
|
35
|
+
"@biliLive-tools/shared": "1.5.2",
|
|
36
|
+
"@biliLive-tools/types": "1.5.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"start": "tsx src/index.ts",
|