bililive-cli 3.16.0 → 3.17.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.
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$3 = require('node:util');
4
- var require$$1$1 = require('node:child_process');
5
- var require$$1 = require('node:url');
4
+ var require$$1 = require('node:child_process');
5
+ var require$$0 = require('node:url');
6
6
 
7
7
  function chunkify(iterable, chunkSize) {
8
8
  if (typeof iterable[Symbol.iterator] !== 'function') {
@@ -41,12 +41,12 @@ function chunkify(iterable, chunkSize) {
41
41
  };
42
42
  }
43
43
 
44
- const pExecFile = require$$3.promisify(require$$1$1.execFile);
44
+ const pExecFile = require$$3.promisify(require$$1.execFile);
45
45
 
46
46
  async function chunkedExec(binary, paths, maxPaths) {
47
47
  for (const chunk of chunkify(paths, maxPaths)) {
48
48
  // eslint-disable-next-line no-await-in-loop
49
- await pExecFile(require$$1.fileURLToPath(binary).replace("app.asar", "app.asar.unpacked"), chunk);
49
+ await pExecFile(require$$0.fileURLToPath(binary).replace("app.asar", "app.asar.unpacked"), chunk);
50
50
  }
51
51
  }
52
52
 
@@ -0,0 +1,171 @@
1
+ 'use strict';
2
+
3
+ var require$$0 = require('fs');
4
+ var require$$0$1 = require('path');
5
+ var index$1 = require('./index-BZBJd-mI.cjs');
6
+ var index = require('./index-cBdgazGf.cjs');
7
+ require('node:dns');
8
+ require('constants');
9
+ require('stream');
10
+ require('util');
11
+ require('assert');
12
+ require('os');
13
+ require('events');
14
+ require('url');
15
+ require('node:child_process');
16
+ require('node:fs/promises');
17
+ require('node:os');
18
+ require('node:path');
19
+ require('node:process');
20
+ require('node:util');
21
+ require('node:events');
22
+ require('node:fs');
23
+ require('node:stream');
24
+ require('better-sqlite3');
25
+ require('http');
26
+ require('https');
27
+ require('crypto');
28
+ require('http2');
29
+ require('tty');
30
+ require('zlib');
31
+ require('child_process');
32
+ require('ntsuspend');
33
+ require('node:readline');
34
+ require('node:crypto');
35
+ require('node:https');
36
+ require('node:url');
37
+ require('net');
38
+ require('node:http');
39
+ require('dns');
40
+ require('tls');
41
+ require('punycode');
42
+ require('@napi-rs/canvas');
43
+ require('vm');
44
+ require('node:stream/promises');
45
+ require('fs/promises');
46
+ require('node:assert');
47
+ require('node:net');
48
+ require('node:querystring');
49
+ require('node:diagnostics_channel');
50
+ require('node:tls');
51
+ require('node:buffer');
52
+ require('node:zlib');
53
+ require('node:perf_hooks');
54
+ require('node:util/types');
55
+ require('node:worker_threads');
56
+ require('node:sqlite');
57
+ require('node:async_hooks');
58
+ require('node:console');
59
+ require('node:timers');
60
+ require('buffer');
61
+ require('querystring');
62
+ require('async_hooks');
63
+ require('string_decoder');
64
+ require('music-segment-detector');
65
+ require('node:stream/web');
66
+ require('shazamio-core');
67
+
68
+ /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
69
+
70
+ if (!globalThis.DOMException) {
71
+ try {
72
+ const { MessageChannel } = require('worker_threads'),
73
+ port = new MessageChannel().port1,
74
+ ab = new ArrayBuffer();
75
+ port.postMessage(ab, [ab, ab]);
76
+ } catch (err) {
77
+ err.constructor.name === 'DOMException' && (
78
+ globalThis.DOMException = err.constructor
79
+ );
80
+ }
81
+ }
82
+
83
+ var nodeDomexception = globalThis.DOMException;
84
+
85
+ var DOMException = /*@__PURE__*/index$1.getDefaultExportFromCjs(nodeDomexception);
86
+
87
+ const getType = (value) => (Object.prototype.toString.call(value).slice(8, -1).toLowerCase());
88
+ function isPlainObject(value) {
89
+ if (getType(value) !== "object") {
90
+ return false;
91
+ }
92
+ const pp = Object.getPrototypeOf(value);
93
+ if (pp === null || pp === undefined) {
94
+ return true;
95
+ }
96
+ const Ctor = pp.constructor && pp.constructor.toString();
97
+ return Ctor === Object.toString();
98
+ }
99
+
100
+ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
101
+ if (kind === "m") throw new TypeError("Private method is not writable");
102
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
103
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
104
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
105
+ };
106
+ var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
107
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
108
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
109
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
110
+ };
111
+ var _FileFromPath_path, _FileFromPath_start;
112
+ const MESSAGE = "The requested file could not be read, "
113
+ + "typically due to permission problems that have occurred after a reference "
114
+ + "to a file was acquired.";
115
+ class FileFromPath {
116
+ constructor(input) {
117
+ _FileFromPath_path.set(this, void 0);
118
+ _FileFromPath_start.set(this, void 0);
119
+ __classPrivateFieldSet(this, _FileFromPath_path, input.path, "f");
120
+ __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, "f");
121
+ this.name = require$$0$1.basename(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
122
+ this.size = input.size;
123
+ this.lastModified = input.lastModified;
124
+ }
125
+ slice(start, end) {
126
+ return new FileFromPath({
127
+ path: __classPrivateFieldGet(this, _FileFromPath_path, "f"),
128
+ lastModified: this.lastModified,
129
+ size: end - start,
130
+ start
131
+ });
132
+ }
133
+ async *stream() {
134
+ const { mtimeMs } = await require$$0.promises.stat(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
135
+ if (mtimeMs > this.lastModified) {
136
+ throw new DOMException(MESSAGE, "NotReadableError");
137
+ }
138
+ if (this.size) {
139
+ yield* require$$0.createReadStream(__classPrivateFieldGet(this, _FileFromPath_path, "f"), {
140
+ start: __classPrivateFieldGet(this, _FileFromPath_start, "f"),
141
+ end: __classPrivateFieldGet(this, _FileFromPath_start, "f") + this.size - 1
142
+ });
143
+ }
144
+ }
145
+ get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)]() {
146
+ return "File";
147
+ }
148
+ }
149
+ function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {
150
+ let filename;
151
+ if (isPlainObject(filenameOrOptions)) {
152
+ [options, filename] = [filenameOrOptions, undefined];
153
+ }
154
+ else {
155
+ filename = filenameOrOptions;
156
+ }
157
+ const file = new FileFromPath({ path, size, lastModified: mtimeMs });
158
+ if (!filename) {
159
+ filename = file.name;
160
+ }
161
+ return new index.File([file], filename, {
162
+ ...options, lastModified: file.lastModified
163
+ });
164
+ }
165
+ async function fileFromPath(path, filenameOrOptions, options) {
166
+ const stats = await require$$0.promises.stat(path);
167
+ return createFileFromPath(path, stats, filenameOrOptions, options);
168
+ }
169
+
170
+ exports.isFile = index.isFile;
171
+ exports.fileFromPath = fileFromPath;