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/index.cjs CHANGED
@@ -3440,7 +3440,7 @@ const {
3440
3440
  Help
3441
3441
  } = commander;
3442
3442
 
3443
- var version = "1.5.0";
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-BVMD1wRX.js'); });
3473
- const { init } = await Promise.resolve().then(function () { return require('./bili-CQgv-F-q.js'); }).then(function (n) { return n.index; });
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-BLevGPF2.js');
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 = require$$0$1; // we only need fs to get the ReadStream and WriteStream prototypes
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-BaatW38k.js', document.baseURI).href)));
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-B0oX8Um0.js', document.baseURI).href)));
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.0",
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.0",
35
- "@biliLive-tools/shared": "1.5.0",
36
- "@biliLive-tools/types": "1.5.0"
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",