@sqaitech/mcp 0.30.10

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.
@@ -0,0 +1 @@
1
+ /*! For license information please see jimp.js.LICENSE.txt */
package/dist/328.js ADDED
@@ -0,0 +1,456 @@
1
+ exports.ids = [
2
+ "328"
3
+ ];
4
+ exports.modules = {
5
+ "../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
6
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
7
+ var noop = function() {};
8
+ var isRequest = function(stream) {
9
+ return stream.setHeader && 'function' == typeof stream.abort;
10
+ };
11
+ var isChildProcess = function(stream) {
12
+ return stream.stdio && Array.isArray(stream.stdio) && 3 === stream.stdio.length;
13
+ };
14
+ var eos = function(stream, opts, callback) {
15
+ if ('function' == typeof opts) return eos(stream, null, opts);
16
+ if (!opts) opts = {};
17
+ callback = once(callback || noop);
18
+ var ws = stream._writableState;
19
+ var rs = stream._readableState;
20
+ var readable = opts.readable || false !== opts.readable && stream.readable;
21
+ var writable = opts.writable || false !== opts.writable && stream.writable;
22
+ var cancelled = false;
23
+ var onlegacyfinish = function() {
24
+ if (!stream.writable) onfinish();
25
+ };
26
+ var onfinish = function() {
27
+ writable = false;
28
+ if (!readable) callback.call(stream);
29
+ };
30
+ var onend = function() {
31
+ readable = false;
32
+ if (!writable) callback.call(stream);
33
+ };
34
+ var onexit = function(exitCode) {
35
+ callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null);
36
+ };
37
+ var onerror = function(err) {
38
+ callback.call(stream, err);
39
+ };
40
+ var onclose = function() {
41
+ process.nextTick(onclosenexttick);
42
+ };
43
+ var onclosenexttick = function() {
44
+ if (cancelled) return;
45
+ if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream, new Error('premature close'));
46
+ if (writable && !(ws && ws.ended && !ws.destroyed)) return callback.call(stream, new Error('premature close'));
47
+ };
48
+ var onrequest = function() {
49
+ stream.req.on('finish', onfinish);
50
+ };
51
+ if (isRequest(stream)) {
52
+ stream.on('complete', onfinish);
53
+ stream.on('abort', onclose);
54
+ if (stream.req) onrequest();
55
+ else stream.on('request', onrequest);
56
+ } else if (writable && !ws) {
57
+ stream.on('end', onlegacyfinish);
58
+ stream.on('close', onlegacyfinish);
59
+ }
60
+ if (isChildProcess(stream)) stream.on('exit', onexit);
61
+ stream.on('end', onend);
62
+ stream.on('finish', onfinish);
63
+ if (false !== opts.error) stream.on('error', onerror);
64
+ stream.on('close', onclose);
65
+ return function() {
66
+ cancelled = true;
67
+ stream.removeListener('complete', onfinish);
68
+ stream.removeListener('abort', onclose);
69
+ stream.removeListener('request', onrequest);
70
+ if (stream.req) stream.req.removeListener('finish', onfinish);
71
+ stream.removeListener('end', onlegacyfinish);
72
+ stream.removeListener('close', onlegacyfinish);
73
+ stream.removeListener('finish', onfinish);
74
+ stream.removeListener('exit', onexit);
75
+ stream.removeListener('end', onend);
76
+ stream.removeListener('error', onerror);
77
+ stream.removeListener('close', onclose);
78
+ };
79
+ };
80
+ module.exports = eos;
81
+ },
82
+ "../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
83
+ var once = __webpack_require__("../../node_modules/.pnpm/once@1.4.0/node_modules/once/once.js");
84
+ var eos = __webpack_require__("../../node_modules/.pnpm/end-of-stream@1.4.4/node_modules/end-of-stream/index.js");
85
+ var fs;
86
+ try {
87
+ fs = __webpack_require__("fs");
88
+ } catch (e) {}
89
+ var noop = function() {};
90
+ var ancient = /^v?\.0/.test(process.version);
91
+ var isFn = function(fn) {
92
+ return 'function' == typeof fn;
93
+ };
94
+ var isFS = function(stream) {
95
+ if (!ancient) return false;
96
+ if (!fs) return false;
97
+ return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close);
98
+ };
99
+ var isRequest = function(stream) {
100
+ return stream.setHeader && isFn(stream.abort);
101
+ };
102
+ var destroyer = function(stream, reading, writing, callback) {
103
+ callback = once(callback);
104
+ var closed = false;
105
+ stream.on('close', function() {
106
+ closed = true;
107
+ });
108
+ eos(stream, {
109
+ readable: reading,
110
+ writable: writing
111
+ }, function(err) {
112
+ if (err) return callback(err);
113
+ closed = true;
114
+ callback();
115
+ });
116
+ var destroyed = false;
117
+ return function(err) {
118
+ if (closed) return;
119
+ if (destroyed) return;
120
+ destroyed = true;
121
+ if (isFS(stream)) return stream.close(noop);
122
+ if (isRequest(stream)) return stream.abort();
123
+ if (isFn(stream.destroy)) return stream.destroy();
124
+ callback(err || new Error('stream was destroyed'));
125
+ };
126
+ };
127
+ var call = function(fn) {
128
+ fn();
129
+ };
130
+ var pipe = function(from, to) {
131
+ return from.pipe(to);
132
+ };
133
+ var pump = function() {
134
+ var streams = Array.prototype.slice.call(arguments);
135
+ var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
136
+ if (Array.isArray(streams[0])) streams = streams[0];
137
+ if (streams.length < 2) throw new Error('pump requires two streams per minimum');
138
+ var error;
139
+ var destroys = streams.map(function(stream, i) {
140
+ var reading = i < streams.length - 1;
141
+ var writing = i > 0;
142
+ return destroyer(stream, reading, writing, function(err) {
143
+ if (!error) error = err;
144
+ if (err) destroys.forEach(call);
145
+ if (reading) return;
146
+ destroys.forEach(call);
147
+ callback(error);
148
+ });
149
+ });
150
+ return streams.reduce(pipe);
151
+ };
152
+ module.exports = pump;
153
+ },
154
+ "../../node_modules/.pnpm/tar-fs@3.0.8/node_modules/tar-fs/index.js": function(__unused_webpack_module, exports1, __webpack_require__) {
155
+ const tar = __webpack_require__("../../node_modules/.pnpm/tar-stream@3.1.7/node_modules/tar-stream/index.js");
156
+ const pump = __webpack_require__("../../node_modules/.pnpm/pump@3.0.2/node_modules/pump/index.js");
157
+ const fs = __webpack_require__("fs");
158
+ const path = __webpack_require__("path");
159
+ const win32 = 'win32' === (global.Bare?.platform || process.platform);
160
+ exports1.pack = function(cwd, opts) {
161
+ if (!cwd) cwd = '.';
162
+ if (!opts) opts = {};
163
+ const xfs = opts.fs || fs;
164
+ const ignore = opts.ignore || opts.filter || noop;
165
+ const mapStream = opts.mapStream || echo;
166
+ const statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd, ignore, opts.entries, opts.sort);
167
+ const strict = false !== opts.strict;
168
+ const umask = 'number' == typeof opts.umask ? ~opts.umask : ~processUmask();
169
+ const pack = opts.pack || tar.pack();
170
+ const finish = opts.finish || noop;
171
+ let map = opts.map || noop;
172
+ let dmode = 'number' == typeof opts.dmode ? opts.dmode : 0;
173
+ let fmode = 'number' == typeof opts.fmode ? opts.fmode : 0;
174
+ if (opts.strip) map = strip(map, opts.strip);
175
+ if (opts.readable) {
176
+ dmode |= parseInt(555, 8);
177
+ fmode |= parseInt(444, 8);
178
+ }
179
+ if (opts.writable) {
180
+ dmode |= parseInt(333, 8);
181
+ fmode |= parseInt(222, 8);
182
+ }
183
+ onnextentry();
184
+ function onsymlink(filename, header) {
185
+ xfs.readlink(path.join(cwd, filename), function(err, linkname) {
186
+ if (err) return pack.destroy(err);
187
+ header.linkname = normalize(linkname);
188
+ pack.entry(header, onnextentry);
189
+ });
190
+ }
191
+ function onstat(err, filename, stat) {
192
+ if (pack.destroyed) return;
193
+ if (err) return pack.destroy(err);
194
+ if (!filename) {
195
+ if (false !== opts.finalize) pack.finalize();
196
+ return finish(pack);
197
+ }
198
+ if (stat.isSocket()) return onnextentry();
199
+ let header = {
200
+ name: normalize(filename),
201
+ mode: (stat.mode | (stat.isDirectory() ? dmode : fmode)) & umask,
202
+ mtime: stat.mtime,
203
+ size: stat.size,
204
+ type: 'file',
205
+ uid: stat.uid,
206
+ gid: stat.gid
207
+ };
208
+ if (stat.isDirectory()) {
209
+ header.size = 0;
210
+ header.type = 'directory';
211
+ header = map(header) || header;
212
+ return pack.entry(header, onnextentry);
213
+ }
214
+ if (stat.isSymbolicLink()) {
215
+ header.size = 0;
216
+ header.type = 'symlink';
217
+ header = map(header) || header;
218
+ return onsymlink(filename, header);
219
+ }
220
+ header = map(header) || header;
221
+ if (!stat.isFile()) {
222
+ if (strict) return pack.destroy(new Error('unsupported type for ' + filename));
223
+ return onnextentry();
224
+ }
225
+ const entry = pack.entry(header, onnextentry);
226
+ const rs = mapStream(xfs.createReadStream(path.join(cwd, filename), {
227
+ start: 0,
228
+ end: header.size > 0 ? header.size - 1 : header.size
229
+ }), header);
230
+ rs.on('error', function(err) {
231
+ entry.destroy(err);
232
+ });
233
+ pump(rs, entry);
234
+ }
235
+ function onnextentry(err) {
236
+ if (err) return pack.destroy(err);
237
+ statNext(onstat);
238
+ }
239
+ return pack;
240
+ };
241
+ function head(list) {
242
+ return list.length ? list[list.length - 1] : null;
243
+ }
244
+ function processGetuid() {
245
+ return process.getuid ? process.getuid() : -1;
246
+ }
247
+ function processUmask() {
248
+ return process.umask ? process.umask() : 0;
249
+ }
250
+ exports1.extract = function(cwd, opts) {
251
+ if (!cwd) cwd = '.';
252
+ if (!opts) opts = {};
253
+ cwd = path.resolve(cwd);
254
+ const xfs = opts.fs || fs;
255
+ const ignore = opts.ignore || opts.filter || noop;
256
+ const mapStream = opts.mapStream || echo;
257
+ const own = false !== opts.chown && !win32 && 0 === processGetuid();
258
+ const extract = opts.extract || tar.extract();
259
+ const stack = [];
260
+ const now = new Date();
261
+ const umask = 'number' == typeof opts.umask ? ~opts.umask : ~processUmask();
262
+ const strict = false !== opts.strict;
263
+ let map = opts.map || noop;
264
+ let dmode = 'number' == typeof opts.dmode ? opts.dmode : 0;
265
+ let fmode = 'number' == typeof opts.fmode ? opts.fmode : 0;
266
+ if (opts.strip) map = strip(map, opts.strip);
267
+ if (opts.readable) {
268
+ dmode |= parseInt(555, 8);
269
+ fmode |= parseInt(444, 8);
270
+ }
271
+ if (opts.writable) {
272
+ dmode |= parseInt(333, 8);
273
+ fmode |= parseInt(222, 8);
274
+ }
275
+ extract.on('entry', onentry);
276
+ if (opts.finish) extract.on('finish', opts.finish);
277
+ return extract;
278
+ function onentry(header, stream, next) {
279
+ header = map(header) || header;
280
+ header.name = normalize(header.name);
281
+ const name = path.join(cwd, path.join('/', header.name));
282
+ if (ignore(name, header)) {
283
+ stream.resume();
284
+ return next();
285
+ }
286
+ if ('directory' === header.type) {
287
+ stack.push([
288
+ name,
289
+ header.mtime
290
+ ]);
291
+ return mkdirfix(name, {
292
+ fs: xfs,
293
+ own,
294
+ uid: header.uid,
295
+ gid: header.gid,
296
+ mode: header.mode
297
+ }, stat);
298
+ }
299
+ const dir = path.dirname(name);
300
+ validate(xfs, dir, path.join(cwd, '.'), function(err, valid) {
301
+ if (err) return next(err);
302
+ if (!valid) return next(new Error(dir + ' is not a valid path'));
303
+ mkdirfix(dir, {
304
+ fs: xfs,
305
+ own,
306
+ uid: header.uid,
307
+ gid: header.gid,
308
+ mode: 493
309
+ }, function(err) {
310
+ if (err) return next(err);
311
+ switch(header.type){
312
+ case 'file':
313
+ return onfile();
314
+ case 'link':
315
+ return onlink();
316
+ case 'symlink':
317
+ return onsymlink();
318
+ }
319
+ if (strict) return next(new Error('unsupported type for ' + name + ' (' + header.type + ')'));
320
+ stream.resume();
321
+ next();
322
+ });
323
+ });
324
+ function stat(err) {
325
+ if (err) return next(err);
326
+ utimes(name, header, function(err) {
327
+ if (err) return next(err);
328
+ if (win32) return next();
329
+ chperm(name, header, next);
330
+ });
331
+ }
332
+ function onsymlink() {
333
+ if (win32) return next();
334
+ xfs.unlink(name, function() {
335
+ const dst = path.resolve(path.dirname(name), header.linkname);
336
+ if (!inCwd(dst)) return next(new Error(name + ' is not a valid symlink'));
337
+ xfs.symlink(header.linkname, name, stat);
338
+ });
339
+ }
340
+ function onlink() {
341
+ if (win32) return next();
342
+ xfs.unlink(name, function() {
343
+ const dst = path.join(cwd, path.join('/', header.linkname));
344
+ xfs.link(dst, name, function(err) {
345
+ if (err && 'EPERM' === err.code && opts.hardlinkAsFilesFallback) {
346
+ stream = xfs.createReadStream(dst);
347
+ return onfile();
348
+ }
349
+ stat(err);
350
+ });
351
+ });
352
+ }
353
+ function inCwd(dst) {
354
+ return dst.startsWith(cwd);
355
+ }
356
+ function onfile() {
357
+ const ws = xfs.createWriteStream(name);
358
+ const rs = mapStream(stream, header);
359
+ ws.on('error', function(err) {
360
+ rs.destroy(err);
361
+ });
362
+ pump(rs, ws, function(err) {
363
+ if (err) return next(err);
364
+ ws.on('close', stat);
365
+ });
366
+ }
367
+ }
368
+ function utimesParent(name, cb) {
369
+ let top;
370
+ while((top = head(stack)) && name.slice(0, top[0].length) !== top[0])stack.pop();
371
+ if (!top) return cb();
372
+ xfs.utimes(top[0], now, top[1], cb);
373
+ }
374
+ function utimes(name, header, cb) {
375
+ if (false === opts.utimes) return cb();
376
+ if ('directory' === header.type) return xfs.utimes(name, now, header.mtime, cb);
377
+ if ('symlink' === header.type) return utimesParent(name, cb);
378
+ xfs.utimes(name, now, header.mtime, function(err) {
379
+ if (err) return cb(err);
380
+ utimesParent(name, cb);
381
+ });
382
+ }
383
+ function chperm(name, header, cb) {
384
+ const link = 'symlink' === header.type;
385
+ const chmod = link ? xfs.lchmod : xfs.chmod;
386
+ const chown = link ? xfs.lchown : xfs.chown;
387
+ if (!chmod) return cb();
388
+ const mode = (header.mode | ('directory' === header.type ? dmode : fmode)) & umask;
389
+ if (chown && own) chown.call(xfs, name, header.uid, header.gid, onchown);
390
+ else onchown(null);
391
+ function onchown(err) {
392
+ if (err) return cb(err);
393
+ if (!chmod) return cb();
394
+ chmod.call(xfs, name, mode, cb);
395
+ }
396
+ }
397
+ function mkdirfix(name, opts, cb) {
398
+ xfs.stat(name, function(err) {
399
+ if (!err) return cb(null);
400
+ if ('ENOENT' !== err.code) return cb(err);
401
+ xfs.mkdir(name, {
402
+ mode: opts.mode,
403
+ recursive: true
404
+ }, function(err, made) {
405
+ if (err) return cb(err);
406
+ chperm(name, opts, cb);
407
+ });
408
+ });
409
+ }
410
+ };
411
+ function validate(fs, name, root, cb) {
412
+ if (name === root) return cb(null, true);
413
+ fs.lstat(name, function(err, st) {
414
+ if (err && 'ENOENT' === err.code) return validate(fs, path.join(name, '..'), root, cb);
415
+ if (err) return cb(err);
416
+ cb(null, st.isDirectory());
417
+ });
418
+ }
419
+ function noop() {}
420
+ function echo(name) {
421
+ return name;
422
+ }
423
+ function normalize(name) {
424
+ return win32 ? name.replace(/\\/g, '/').replace(/[:?<>|]/g, '_') : name;
425
+ }
426
+ function statAll(fs, stat, cwd, ignore, entries, sort) {
427
+ if (!entries) entries = [
428
+ '.'
429
+ ];
430
+ const queue = entries.slice(0);
431
+ return function(callback) {
432
+ if (!queue.length) return callback(null);
433
+ const next = queue.shift();
434
+ const nextAbs = path.join(cwd, next);
435
+ stat.call(fs, nextAbs, function(err, stat) {
436
+ if (err) return callback(-1 === entries.indexOf(next) && 'ENOENT' === err.code ? null : err);
437
+ if (!stat.isDirectory()) return callback(null, next, stat);
438
+ fs.readdir(nextAbs, function(err, files) {
439
+ if (err) return callback(err);
440
+ if (sort) files.sort();
441
+ for(let i = 0; i < files.length; i++)if (!ignore(path.join(cwd, next, files[i]))) queue.push(path.join(next, files[i]));
442
+ callback(null, next, stat);
443
+ });
444
+ });
445
+ };
446
+ }
447
+ function strip(map, level) {
448
+ return function(header) {
449
+ header.name = header.name.split('/').slice(level).join('/');
450
+ const linkname = header.linkname;
451
+ if (linkname && ('link' === header.type || path.isAbsolute(linkname))) header.linkname = linkname.split('/').slice(level).join('/');
452
+ return map(header);
453
+ };
454
+ }
455
+ }
456
+ };
package/dist/663.js ADDED
@@ -0,0 +1,105 @@
1
+ /*! For license information please see 663.js.LICENSE.txt */
2
+ exports.ids = [
3
+ "663"
4
+ ];
5
+ exports.modules = {
6
+ "../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
7
+ /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ if (!globalThis.DOMException) try {
8
+ const { MessageChannel } = __webpack_require__("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
9
+ port.postMessage(ab, [
10
+ ab,
11
+ ab
12
+ ]);
13
+ } catch (err) {
14
+ 'DOMException' === err.constructor.name && (globalThis.DOMException = err.constructor);
15
+ }
16
+ module.exports = globalThis.DOMException;
17
+ },
18
+ "../../node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/fileFromPath.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
19
+ "use strict";
20
+ __webpack_require__.d(__webpack_exports__, {
21
+ fileFromPath: ()=>fileFromPath
22
+ });
23
+ var external_fs_ = __webpack_require__("fs");
24
+ var external_path_ = __webpack_require__("path");
25
+ var node_domexception = __webpack_require__("../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js");
26
+ var File = __webpack_require__("../../node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/File.js");
27
+ const getType = (value)=>Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
28
+ function isPlainObject(value) {
29
+ if ("object" !== getType(value)) return false;
30
+ const pp = Object.getPrototypeOf(value);
31
+ if (null == pp) return true;
32
+ const Ctor = pp.constructor && pp.constructor.toString();
33
+ return Ctor === Object.toString();
34
+ }
35
+ const esm_isPlainObject = isPlainObject;
36
+ __webpack_require__("../../node_modules/.pnpm/formdata-node@4.4.1/node_modules/formdata-node/lib/esm/isFile.js");
37
+ var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
38
+ if ("m" === kind) throw new TypeError("Private method is not writable");
39
+ if ("a" === kind && !f) throw new TypeError("Private accessor was defined without a setter");
40
+ if ("function" == typeof state ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
41
+ return "a" === kind ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
42
+ };
43
+ var __classPrivateFieldGet = function(receiver, state, kind, f) {
44
+ if ("a" === kind && !f) throw new TypeError("Private accessor was defined without a getter");
45
+ if ("function" == typeof state ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
46
+ return "m" === kind ? f : "a" === kind ? f.call(receiver) : f ? f.value : state.get(receiver);
47
+ };
48
+ var _FileFromPath_path, _FileFromPath_start;
49
+ const MESSAGE = "The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.";
50
+ class FileFromPath {
51
+ constructor(input){
52
+ _FileFromPath_path.set(this, void 0);
53
+ _FileFromPath_start.set(this, void 0);
54
+ __classPrivateFieldSet(this, _FileFromPath_path, input.path, "f");
55
+ __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, "f");
56
+ this.name = (0, external_path_.basename)(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
57
+ this.size = input.size;
58
+ this.lastModified = input.lastModified;
59
+ }
60
+ slice(start, end) {
61
+ return new FileFromPath({
62
+ path: __classPrivateFieldGet(this, _FileFromPath_path, "f"),
63
+ lastModified: this.lastModified,
64
+ size: end - start,
65
+ start
66
+ });
67
+ }
68
+ async *stream() {
69
+ const { mtimeMs } = await external_fs_.promises.stat(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
70
+ if (mtimeMs > this.lastModified) throw new node_domexception(MESSAGE, "NotReadableError");
71
+ if (this.size) yield* (0, external_fs_.createReadStream)(__classPrivateFieldGet(this, _FileFromPath_path, "f"), {
72
+ start: __classPrivateFieldGet(this, _FileFromPath_start, "f"),
73
+ end: __classPrivateFieldGet(this, _FileFromPath_start, "f") + this.size - 1
74
+ });
75
+ }
76
+ get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)]() {
77
+ return "File";
78
+ }
79
+ }
80
+ function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {
81
+ let filename;
82
+ if (esm_isPlainObject(filenameOrOptions)) [options, filename] = [
83
+ filenameOrOptions,
84
+ void 0
85
+ ];
86
+ else filename = filenameOrOptions;
87
+ const file = new FileFromPath({
88
+ path,
89
+ size,
90
+ lastModified: mtimeMs
91
+ });
92
+ if (!filename) filename = file.name;
93
+ return new File.$([
94
+ file
95
+ ], filename, {
96
+ ...options,
97
+ lastModified: file.lastModified
98
+ });
99
+ }
100
+ async function fileFromPath(path, filenameOrOptions, options) {
101
+ const stats = await external_fs_.promises.stat(path);
102
+ return createFileFromPath(path, stats, filenameOrOptions, options);
103
+ }
104
+ }
105
+ };
@@ -0,0 +1 @@
1
+ /*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
package/dist/79.js ADDED
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ exports.ids = [
3
+ "79"
4
+ ];
5
+ exports.modules = {
6
+ "../../node_modules/.pnpm/puppeteer-core@24.2.0_bufferutil@4.0.9_utf-8-validate@6.0.5/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
7
+ __webpack_require__.r(__webpack_exports__);
8
+ __webpack_require__.d(__webpack_exports__, {
9
+ BrowserWebSocketTransport: ()=>BrowserWebSocketTransport
10
+ });
11
+ class BrowserWebSocketTransport {
12
+ static create(url) {
13
+ return new Promise((resolve, reject)=>{
14
+ const ws = new WebSocket(url);
15
+ ws.addEventListener('open', ()=>resolve(new BrowserWebSocketTransport(ws)));
16
+ ws.addEventListener('error', reject);
17
+ });
18
+ }
19
+ #ws;
20
+ onmessage;
21
+ onclose;
22
+ constructor(ws){
23
+ this.#ws = ws;
24
+ this.#ws.addEventListener('message', (event)=>{
25
+ if (this.onmessage) this.onmessage.call(null, event.data);
26
+ });
27
+ this.#ws.addEventListener('close', ()=>{
28
+ if (this.onclose) this.onclose.call(null);
29
+ });
30
+ this.#ws.addEventListener('error', ()=>{});
31
+ }
32
+ send(message) {
33
+ this.#ws.send(message);
34
+ }
35
+ close() {
36
+ this.#ws.close();
37
+ }
38
+ }
39
+ }
40
+ };