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