bililive-cli 1.3.0 → 1.5.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.
@@ -3,101 +3,35 @@
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('./index.cjs');
7
- var require$$0 = require('fs');
8
- var require$$1 = require('path');
9
- var require$$0$1 = require('child_process');
10
- var require$$0$2 = require('os');
11
- var require$$1$1 = require('util');
6
+ var index = require('./bili-BLevGPF2.js');
7
+ var require$$0$1 = require('fs');
8
+ var require$$0 = require('path');
9
+ var require$$0$2 = require('child_process');
10
+ var require$$0$3 = require('os');
11
+ var require$$1 = require('util');
12
12
  var require$$5 = require('assert');
13
- var require$$0$3 = require('events');
14
- var require$$0$5 = require('buffer');
15
- var require$$0$4 = require('stream');
13
+ var require$$0$4 = require('events');
14
+ var require$$0$6 = require('buffer');
15
+ var require$$0$5 = require('stream');
16
16
  var process$2 = require('node:process');
17
- require('process');
17
+ var v4 = require('./v4-D4KzFnn8.js');
18
+ require('node:crypto');
19
+ require('node:child_process');
20
+ require('http');
21
+ require('https');
22
+ require('url');
18
23
  require('tty');
19
24
  require('zlib');
20
- require('url');
25
+ require('node:events');
21
26
  require('crypto');
22
- require('http');
23
- require('net');
24
- require('querystring');
25
- require('async_hooks');
26
- require('string_decoder');
27
+ require('node:url');
27
28
  require('constants');
28
- require('https');
29
- require('node:events');
30
29
  require('node:module');
30
+ require('net');
31
31
  require('dns');
32
32
  require('tls');
33
- require('node:crypto');
34
- require('node:child_process');
35
- require('node:url');
36
- require('@napi-rs/canvas');
37
-
38
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
39
- // require the crypto API and do not support built-in fallback to lower quality random number
40
- // generators (like Math.random()).
41
- var getRandomValues;
42
- var rnds8 = new Uint8Array(16);
43
- function rng() {
44
- // lazy load so that environments that need to polyfill have a chance to do so
45
- if (!getRandomValues) {
46
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
47
- // find the complete implementation of crypto (msCrypto) on IE11.
48
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
49
-
50
- if (!getRandomValues) {
51
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
52
- }
53
- }
54
-
55
- return getRandomValues(rnds8);
56
- }
57
-
58
- var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
59
-
60
- function validate(uuid) {
61
- return typeof uuid === 'string' && REGEX.test(uuid);
62
- }
63
-
64
- /**
65
- * Convert array of 16 byte values to UUID string format of the form:
66
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
67
- */
68
-
69
- var byteToHex = [];
70
-
71
- for (var i = 0; i < 256; ++i) {
72
- byteToHex.push((i + 0x100).toString(16).substr(1));
73
- }
74
-
75
- function stringify(arr) {
76
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
77
- // Note: Be careful editing this code! It's been tuned for performance
78
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
79
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
80
- // of the following:
81
- // - One or more input array values don't map to a hex octet (leading to
82
- // "undefined" in the uuid)
83
- // - Invalid input values for the RFC `version` or `variant` fields
84
-
85
- if (!validate(uuid)) {
86
- throw TypeError('Stringified UUID is invalid');
87
- }
88
-
89
- return uuid;
90
- }
91
-
92
- function v4(options, buf, offset) {
93
- options = options || {};
94
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
95
-
96
- rnds[6] = rnds[6] & 0x0f | 0x40;
97
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
98
-
99
- return stringify(rnds);
100
- }
33
+ require('@autorecord/manager');
34
+ require('@autorecord/douyu-recorder');
101
35
 
102
36
  var xdgTrashdir$1 = {exports: {}};
103
37
 
@@ -111,7 +45,7 @@ const isWindows = process.platform === 'win32' ||
111
45
  process.env.OSTYPE === 'cygwin' ||
112
46
  process.env.OSTYPE === 'msys';
113
47
 
114
- const path$4 = require$$1;
48
+ const path$4 = require$$0;
115
49
  const COLON = isWindows ? ';' : ':';
116
50
  const isexe = index.isexe_1;
117
51
 
@@ -252,7 +186,7 @@ pathKey$1.exports.default = pathKey;
252
186
 
253
187
  var pathKeyExports = pathKey$1.exports;
254
188
 
255
- const path$3 = require$$1;
189
+ const path$3 = require$$0;
256
190
  const which = which_1;
257
191
  const getPathKey = pathKeyExports;
258
192
 
@@ -370,7 +304,7 @@ var shebangCommand$1 = (string = '') => {
370
304
  return argument ? `${binary} ${argument}` : binary;
371
305
  };
372
306
 
373
- const fs$2 = require$$0;
307
+ const fs$2 = require$$0$1;
374
308
  const shebangCommand = shebangCommand$1;
375
309
 
376
310
  function readShebang$1(command) {
@@ -392,7 +326,7 @@ function readShebang$1(command) {
392
326
 
393
327
  var readShebang_1 = readShebang$1;
394
328
 
395
- const path$2 = require$$1;
329
+ const path$2 = require$$0;
396
330
  const resolveCommand = resolveCommand_1;
397
331
  const escape = _escape;
398
332
  const readShebang = readShebang_1;
@@ -540,7 +474,7 @@ var enoent$1 = {
540
474
  notFoundError,
541
475
  };
542
476
 
543
- const cp = require$$0$1;
477
+ const cp = require$$0$2;
544
478
  const parse = parse_1;
545
479
  const enoent = enoent$1;
546
480
 
@@ -600,7 +534,7 @@ var npmRunPath$1 = {exports: {}};
600
534
  npmRunPath$1.exports;
601
535
 
602
536
  (function (module) {
603
- const path = require$$1;
537
+ const path = require$$0;
604
538
  const pathKey = pathKeyExports;
605
539
 
606
540
  const npmRunPath = options => {
@@ -712,8 +646,8 @@ onetime$2.exports.callCount = function_ => {
712
646
 
713
647
  var onetimeExports = onetime$2.exports;
714
648
 
715
- const os$2 = require$$0$2;
716
- const util = require$$1$1;
649
+ const os$2 = require$$0$3;
650
+ const util = require$$1;
717
651
 
718
652
  const getCode = (error, code) => {
719
653
  if (error && error.code) {
@@ -952,7 +886,7 @@ if (!processOk(process$1)) {
952
886
  var signals = requireSignals();
953
887
  var isWin = /^win/i.test(process$1.platform);
954
888
 
955
- var EE = require$$0$3;
889
+ var EE = require$$0$4;
956
890
  /* istanbul ignore if */
957
891
  if (typeof EE !== 'function') {
958
892
  EE = EE.EventEmitter;
@@ -1144,7 +1078,7 @@ var pFinally$1 = async (
1144
1078
  return value;
1145
1079
  };
1146
1080
 
1147
- const os$1 = require$$0$2;
1081
+ const os$1 = require$$0$3;
1148
1082
  const onExit = signalExitExports;
1149
1083
  const pFinally = pFinally$1;
1150
1084
 
@@ -1374,7 +1308,7 @@ var endOfStream = eos$1;
1374
1308
 
1375
1309
  var once = index.onceExports;
1376
1310
  var eos = endOfStream;
1377
- var fs$1 = require$$0; // we only need fs to get the ReadStream and WriteStream prototypes
1311
+ var fs$1 = require$$0$1; // we only need fs to get the ReadStream and WriteStream prototypes
1378
1312
 
1379
1313
  var noop = function () {};
1380
1314
  var ancient = /^v?\.0/.test(process.version);
@@ -1455,7 +1389,7 @@ var pump$1 = function () {
1455
1389
 
1456
1390
  var pump_1 = pump$1;
1457
1391
 
1458
- const {PassThrough: PassThroughStream} = require$$0$4;
1392
+ const {PassThrough: PassThroughStream} = require$$0$5;
1459
1393
 
1460
1394
  var bufferStream$1 = options => {
1461
1395
  options = {...options};
@@ -1507,7 +1441,7 @@ var bufferStream$1 = options => {
1507
1441
  return stream;
1508
1442
  };
1509
1443
 
1510
- const {constants: BufferConstants} = require$$0$5;
1444
+ const {constants: BufferConstants} = require$$0$6;
1511
1445
  const pump = pump_1;
1512
1446
  const bufferStream = bufferStream$1;
1513
1447
 
@@ -1569,7 +1503,7 @@ getStream$2.exports.MaxBufferError = MaxBufferError;
1569
1503
 
1570
1504
  var getStreamExports = getStream$2.exports;
1571
1505
 
1572
- const { PassThrough } = require$$0$4;
1506
+ const { PassThrough } = require$$0$5;
1573
1507
 
1574
1508
  var mergeStream$1 = function (/*streams...*/) {
1575
1509
  var sources = [];
@@ -1803,8 +1737,8 @@ var command = {
1803
1737
  parseCommand: parseCommand$1
1804
1738
  };
1805
1739
 
1806
- const path$1 = require$$1;
1807
- const childProcess$1 = require$$0$1;
1740
+ const path$1 = require$$0;
1741
+ const childProcess$1 = require$$0$2;
1808
1742
  const crossSpawn = crossSpawnExports;
1809
1743
  const stripFinalNewline = stripFinalNewline$1;
1810
1744
  const npmRunPath = npmRunPathExports;
@@ -2156,7 +2090,7 @@ var dfExports$1 = df$5.exports;
2156
2090
 
2157
2091
  var df$3 = {exports: {}};
2158
2092
 
2159
- var childProcess = require$$0$1;
2093
+ var childProcess = require$$0$2;
2160
2094
 
2161
2095
  function run(args, cb) {
2162
2096
  childProcess.execFile('df', args, function (err, stdout) {
@@ -2606,7 +2540,7 @@ var mountPoint$1 = function (file) {
2606
2540
  });
2607
2541
  };
2608
2542
 
2609
- var os = require$$0$2;
2543
+ var os = require$$0$3;
2610
2544
 
2611
2545
  function homedir() {
2612
2546
  var env = process.env;
@@ -2635,8 +2569,8 @@ var userHome$1 = osHomedir();
2635
2569
  var xdgBasedir$1 = {};
2636
2570
 
2637
2571
  (function (exports) {
2638
- const os = require$$0$2;
2639
- const path = require$$1;
2572
+ const os = require$$0$3;
2573
+ const path = require$$0;
2640
2574
 
2641
2575
  const homeDirectory = os.homedir();
2642
2576
  const {env} = process;
@@ -2664,8 +2598,8 @@ var xdgBasedir$1 = {};
2664
2598
  }
2665
2599
  } (xdgBasedir$1));
2666
2600
 
2667
- const fs = require$$0.promises;
2668
- const path = require$$1;
2601
+ const fs = require$$0$1.promises;
2602
+ const path = require$$0;
2669
2603
  const df = dfExports$1;
2670
2604
  const mountPoint = mountPoint$1;
2671
2605
  const userHome = userHome$1;
@@ -2784,7 +2718,7 @@ function escapeStringRegexp(string) {
2784
2718
 
2785
2719
  const extractPathRegex = /\s+at.*[(\s](.*)\)?/;
2786
2720
  const pathRegex = /^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;
2787
- const homeDir = typeof require$$0$2.homedir === 'undefined' ? '' : require$$0$2.homedir().replace(/\\/g, '/');
2721
+ const homeDir = typeof require$$0$3.homedir === 'undefined' ? '' : require$$0$3.homedir().replace(/\\/g, '/');
2788
2722
 
2789
2723
  function cleanStack(stack, {pretty = false, basePath} = {}) {
2790
2724
  const basePathRegex = basePath && new RegExp(`(at | \\()${escapeStringRegexp(basePath.replace(/\\/g, '/'))}`, 'g');
@@ -3245,7 +3179,7 @@ const {
3245
3179
  closeSync,
3246
3180
  readFileSync,
3247
3181
  existsSync,
3248
- } = require$$0;
3182
+ } = require$$0$1;
3249
3183
 
3250
3184
  const tmpBufMinLen = 4096 * 2;
3251
3185
  const tmpBufMaxLen = 4096 * 8;
@@ -3520,7 +3454,7 @@ const getDeletionDate = date => date.getFullYear()
3520
3454
  + ':' + pad(date.getSeconds());
3521
3455
 
3522
3456
  const trash = async (filePath, trashPaths) => {
3523
- const name = v4();
3457
+ const name = v4.v4();
3524
3458
  const destination = path$5.join(trashPaths.filesPath, name);
3525
3459
  const trashInfoPath = path$5.join(trashPaths.infoPath, `${name}.trashinfo`);
3526
3460