bililive-cli 1.6.0 → 1.6.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/README.md +1 -1
- package/lib/{chunked-exec-DzOIaGn1.js → chunked-exec-De50pd_R.js} +2 -2
- package/lib/{index-El6sDas6.js → index-0wA94Agk.js} +1768 -5347
- package/lib/{index-Dkt7D2TB.js → index-BZRzMMRb.js} +4 -4
- package/lib/{index--sFOOs5S.js → index-C8BJBjBO.js} +217 -238
- package/lib/index.cjs +265 -540
- package/lib/{linux-Tq1fWuR2.js → linux-ByVIOrvJ.js} +32 -38
- package/lib/{macos-CAOfJ0Q9.js → macos-Byot1QEF.js} +2 -2
- package/lib/{windows-DgdPRZEm.js → windows-DifqfaHn.js} +2 -2
- package/package.json +4 -4
|
@@ -3,15 +3,15 @@
|
|
|
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
|
|
7
|
-
var require$$0
|
|
8
|
-
var require$$
|
|
9
|
-
var require$$0$
|
|
10
|
-
var require$$1 = require('os');
|
|
11
|
-
var require$$1$
|
|
6
|
+
var index = require('./index-C8BJBjBO.js');
|
|
7
|
+
var require$$0 = require('fs');
|
|
8
|
+
var require$$1 = require('path');
|
|
9
|
+
var require$$0$1 = require('child_process');
|
|
10
|
+
var require$$1$1 = require('os');
|
|
11
|
+
var require$$1$2 = require('util');
|
|
12
12
|
var require$$5 = require('assert');
|
|
13
|
-
var require$$0$
|
|
14
|
-
var require$$0$
|
|
13
|
+
var require$$0$2 = require('events');
|
|
14
|
+
var require$$0$3 = require('buffer');
|
|
15
15
|
var stream$1 = require('stream');
|
|
16
16
|
var process$2 = require('node:process');
|
|
17
17
|
require('constants');
|
|
@@ -113,7 +113,7 @@ const isWindows = process.platform === 'win32' ||
|
|
|
113
113
|
process.env.OSTYPE === 'cygwin' ||
|
|
114
114
|
process.env.OSTYPE === 'msys';
|
|
115
115
|
|
|
116
|
-
const path$4 = require$$
|
|
116
|
+
const path$4 = require$$1;
|
|
117
117
|
const COLON = isWindows ? ';' : ':';
|
|
118
118
|
const isexe = index.isexe_1;
|
|
119
119
|
|
|
@@ -254,7 +254,7 @@ pathKey$1.exports.default = pathKey;
|
|
|
254
254
|
|
|
255
255
|
var pathKeyExports = pathKey$1.exports;
|
|
256
256
|
|
|
257
|
-
const path$3 = require$$
|
|
257
|
+
const path$3 = require$$1;
|
|
258
258
|
const which = which_1;
|
|
259
259
|
const getPathKey = pathKeyExports;
|
|
260
260
|
|
|
@@ -322,17 +322,15 @@ function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
|
322
322
|
arg = `${arg}`;
|
|
323
323
|
|
|
324
324
|
// Algorithm below is based on https://qntm.org/cmd
|
|
325
|
-
// It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
|
|
326
|
-
// Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
|
|
327
325
|
|
|
328
326
|
// Sequence of backslashes followed by a double quote:
|
|
329
327
|
// double up all the backslashes and escape the double quote
|
|
330
|
-
arg = arg.replace(/(
|
|
328
|
+
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
331
329
|
|
|
332
330
|
// Sequence of backslashes followed by the end of the string
|
|
333
331
|
// (which will become a double quote later):
|
|
334
332
|
// double up all the backslashes
|
|
335
|
-
arg = arg.replace(/(
|
|
333
|
+
arg = arg.replace(/(\\*)$/, '$1$1');
|
|
336
334
|
|
|
337
335
|
// All other backslashes occur literally
|
|
338
336
|
|
|
@@ -374,7 +372,7 @@ var shebangCommand$1 = (string = '') => {
|
|
|
374
372
|
return argument ? `${binary} ${argument}` : binary;
|
|
375
373
|
};
|
|
376
374
|
|
|
377
|
-
const fs$2 = require$$0
|
|
375
|
+
const fs$2 = require$$0;
|
|
378
376
|
const shebangCommand = shebangCommand$1;
|
|
379
377
|
|
|
380
378
|
function readShebang$1(command) {
|
|
@@ -396,7 +394,7 @@ function readShebang$1(command) {
|
|
|
396
394
|
|
|
397
395
|
var readShebang_1 = readShebang$1;
|
|
398
396
|
|
|
399
|
-
const path$2 = require$$
|
|
397
|
+
const path$2 = require$$1;
|
|
400
398
|
const resolveCommand = resolveCommand_1;
|
|
401
399
|
const escape = _escape;
|
|
402
400
|
const readShebang = readShebang_1;
|
|
@@ -544,7 +542,7 @@ var enoent$1 = {
|
|
|
544
542
|
notFoundError,
|
|
545
543
|
};
|
|
546
544
|
|
|
547
|
-
const cp = require$$0$
|
|
545
|
+
const cp = require$$0$1;
|
|
548
546
|
const parse = parse_1;
|
|
549
547
|
const enoent = enoent$1;
|
|
550
548
|
|
|
@@ -604,7 +602,7 @@ var npmRunPath$1 = {exports: {}};
|
|
|
604
602
|
npmRunPath$1.exports;
|
|
605
603
|
|
|
606
604
|
(function (module) {
|
|
607
|
-
const path = require$$
|
|
605
|
+
const path = require$$1;
|
|
608
606
|
const pathKey = pathKeyExports;
|
|
609
607
|
|
|
610
608
|
const npmRunPath = options => {
|
|
@@ -716,8 +714,8 @@ onetime$2.exports.callCount = function_ => {
|
|
|
716
714
|
|
|
717
715
|
var onetimeExports = onetime$2.exports;
|
|
718
716
|
|
|
719
|
-
const os$2 = require$$1;
|
|
720
|
-
const util = require$$1$
|
|
717
|
+
const os$2 = require$$1$1;
|
|
718
|
+
const util = require$$1$2;
|
|
721
719
|
|
|
722
720
|
const getCode = (error, code) => {
|
|
723
721
|
if (error && error.code) {
|
|
@@ -956,7 +954,7 @@ if (!processOk(process$1)) {
|
|
|
956
954
|
var signals = requireSignals();
|
|
957
955
|
var isWin = /^win/i.test(process$1.platform);
|
|
958
956
|
|
|
959
|
-
var EE = require$$0$
|
|
957
|
+
var EE = require$$0$2;
|
|
960
958
|
/* istanbul ignore if */
|
|
961
959
|
if (typeof EE !== 'function') {
|
|
962
960
|
EE = EE.EventEmitter;
|
|
@@ -1148,7 +1146,7 @@ var pFinally$1 = async (
|
|
|
1148
1146
|
return value;
|
|
1149
1147
|
};
|
|
1150
1148
|
|
|
1151
|
-
const os$1 = require$$1;
|
|
1149
|
+
const os$1 = require$$1$1;
|
|
1152
1150
|
const onExit = signalExitExports;
|
|
1153
1151
|
const pFinally = pFinally$1;
|
|
1154
1152
|
|
|
@@ -1378,11 +1376,7 @@ var endOfStream = eos$1;
|
|
|
1378
1376
|
|
|
1379
1377
|
var once = index.onceExports;
|
|
1380
1378
|
var eos = endOfStream;
|
|
1381
|
-
var fs$1;
|
|
1382
|
-
|
|
1383
|
-
try {
|
|
1384
|
-
fs$1 = require('fs'); // we only need fs to get the ReadStream and WriteStream prototypes
|
|
1385
|
-
} catch (e) {}
|
|
1379
|
+
var fs$1 = require$$0; // we only need fs to get the ReadStream and WriteStream prototypes
|
|
1386
1380
|
|
|
1387
1381
|
var noop = function () {};
|
|
1388
1382
|
var ancient = /^v?\.0/.test(process.version);
|
|
@@ -1515,7 +1509,7 @@ var bufferStream$1 = options => {
|
|
|
1515
1509
|
return stream;
|
|
1516
1510
|
};
|
|
1517
1511
|
|
|
1518
|
-
const {constants: BufferConstants} = require$$0$
|
|
1512
|
+
const {constants: BufferConstants} = require$$0$3;
|
|
1519
1513
|
const pump = pump_1;
|
|
1520
1514
|
const bufferStream = bufferStream$1;
|
|
1521
1515
|
|
|
@@ -1811,8 +1805,8 @@ var command = {
|
|
|
1811
1805
|
parseCommand: parseCommand$1
|
|
1812
1806
|
};
|
|
1813
1807
|
|
|
1814
|
-
const path$1 = require$$
|
|
1815
|
-
const childProcess$1 = require$$0$
|
|
1808
|
+
const path$1 = require$$1;
|
|
1809
|
+
const childProcess$1 = require$$0$1;
|
|
1816
1810
|
const crossSpawn = crossSpawnExports;
|
|
1817
1811
|
const stripFinalNewline = stripFinalNewline$1;
|
|
1818
1812
|
const npmRunPath = npmRunPathExports;
|
|
@@ -2164,7 +2158,7 @@ var dfExports$1 = df$5.exports;
|
|
|
2164
2158
|
|
|
2165
2159
|
var df$3 = {exports: {}};
|
|
2166
2160
|
|
|
2167
|
-
var childProcess = require$$0$
|
|
2161
|
+
var childProcess = require$$0$1;
|
|
2168
2162
|
|
|
2169
2163
|
function run(args, cb) {
|
|
2170
2164
|
childProcess.execFile('df', args, function (err, stdout) {
|
|
@@ -2614,7 +2608,7 @@ var mountPoint$1 = function (file) {
|
|
|
2614
2608
|
});
|
|
2615
2609
|
};
|
|
2616
2610
|
|
|
2617
|
-
var os = require$$1;
|
|
2611
|
+
var os = require$$1$1;
|
|
2618
2612
|
|
|
2619
2613
|
function homedir() {
|
|
2620
2614
|
var env = process.env;
|
|
@@ -2643,8 +2637,8 @@ var userHome$1 = osHomedir();
|
|
|
2643
2637
|
var xdgBasedir$1 = {};
|
|
2644
2638
|
|
|
2645
2639
|
(function (exports) {
|
|
2646
|
-
const os = require$$1;
|
|
2647
|
-
const path = require$$
|
|
2640
|
+
const os = require$$1$1;
|
|
2641
|
+
const path = require$$1;
|
|
2648
2642
|
|
|
2649
2643
|
const homeDirectory = os.homedir();
|
|
2650
2644
|
const {env} = process;
|
|
@@ -2672,8 +2666,8 @@ var xdgBasedir$1 = {};
|
|
|
2672
2666
|
}
|
|
2673
2667
|
} (xdgBasedir$1));
|
|
2674
2668
|
|
|
2675
|
-
const fs = require$$0
|
|
2676
|
-
const path = require$$
|
|
2669
|
+
const fs = require$$0.promises;
|
|
2670
|
+
const path = require$$1;
|
|
2677
2671
|
const df = dfExports$1;
|
|
2678
2672
|
const mountPoint = mountPoint$1;
|
|
2679
2673
|
const userHome = userHome$1;
|
|
@@ -2792,7 +2786,7 @@ function escapeStringRegexp(string) {
|
|
|
2792
2786
|
|
|
2793
2787
|
const extractPathRegex = /\s+at.*[(\s](.*)\)?/;
|
|
2794
2788
|
const pathRegex = /^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/;
|
|
2795
|
-
const homeDir = typeof require$$1.homedir === 'undefined' ? '' : require$$1.homedir().replace(/\\/g, '/');
|
|
2789
|
+
const homeDir = typeof require$$1$1.homedir === 'undefined' ? '' : require$$1$1.homedir().replace(/\\/g, '/');
|
|
2796
2790
|
|
|
2797
2791
|
function cleanStack(stack, {pretty = false, basePath} = {}) {
|
|
2798
2792
|
const basePathRegex = basePath && new RegExp(`(at | \\()${escapeStringRegexp(basePath.replace(/\\/g, '/'))}`, 'g');
|
|
@@ -3253,7 +3247,7 @@ const {
|
|
|
3253
3247
|
closeSync,
|
|
3254
3248
|
readFileSync,
|
|
3255
3249
|
existsSync,
|
|
3256
|
-
} = require$$0
|
|
3250
|
+
} = require$$0;
|
|
3257
3251
|
|
|
3258
3252
|
const tmpBufMinLen = 4096 * 2;
|
|
3259
3253
|
const tmpBufMaxLen = 4096 * 8;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var os = require('node:os');
|
|
4
|
-
var chunkedExec = require('./chunked-exec-
|
|
4
|
+
var chunkedExec = require('./chunked-exec-De50pd_R.js');
|
|
5
5
|
require('node:util');
|
|
6
6
|
require('node:child_process');
|
|
7
7
|
require('node:url');
|
|
@@ -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.
|
|
13
|
+
const binary = new URL('macos-trash', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('macos-Byot1QEF.js', document.baseURI).href)));
|
|
14
14
|
|
|
15
15
|
async function macOS(paths) {
|
|
16
16
|
if (isOlderThanMountainLion) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var chunkedExec = require('./chunked-exec-
|
|
3
|
+
var chunkedExec = require('./chunked-exec-De50pd_R.js');
|
|
4
4
|
require('node:util');
|
|
5
5
|
require('node:child_process');
|
|
6
6
|
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.
|
|
10
|
+
const binary = new URL('windows-trash.exe', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('windows-DifqfaHn.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.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "biliLive-tools的cli程序",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"commander": "^12.0.0",
|
|
36
36
|
"rimraf": "^6.0.1",
|
|
37
37
|
"tsx": "^4.7.2",
|
|
38
|
-
"@biliLive-tools/http": "1.6.
|
|
39
|
-
"@biliLive-tools/shared": "1.6.
|
|
40
|
-
"@biliLive-tools/types": "1.6.
|
|
38
|
+
"@biliLive-tools/http": "1.6.1",
|
|
39
|
+
"@biliLive-tools/shared": "1.6.1",
|
|
40
|
+
"@biliLive-tools/types": "1.6.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"start": "tsx src/index.ts",
|