lakutata 2.0.18 → 2.0.20
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/package.json +1 -1
- package/src/components/docker/Docker.cjs +570 -563
- package/src/components/docker/Docker.mjs +595 -588
- package/src/decorators/orm/Column.cjs +1 -1
- package/src/decorators/orm/PrimaryColumn.cjs +1 -1
- package/vendor/Package.14.cjs +18 -20
- package/vendor/Package.16.cjs +208 -207
|
@@ -68,6 +68,8 @@ const O = require("./options/DockerPruneOptions.cjs");
|
|
|
68
68
|
|
|
69
69
|
const I = require("./options/auth/DockerAuthOptions.cjs");
|
|
70
70
|
|
|
71
|
+
const T = require("../../lib/helpers/DevNull.cjs");
|
|
72
|
+
|
|
71
73
|
require("../../../vendor/Package.3.cjs");
|
|
72
74
|
|
|
73
75
|
require("../../lib/base/async-constructor/AsyncConstructor.cjs");
|
|
@@ -178,8 +180,6 @@ require("../../lib/base/internal/ObjectInjection.cjs");
|
|
|
178
180
|
|
|
179
181
|
require("../../lib/base/internal/ObjectContainer.cjs");
|
|
180
182
|
|
|
181
|
-
require("../../lib/helpers/DevNull.cjs");
|
|
182
|
-
|
|
183
183
|
require("../../decorators/dto/Expect.cjs");
|
|
184
184
|
|
|
185
185
|
require("../../decorators/dto/IndexSignature.cjs");
|
|
@@ -282,30 +282,30 @@ require("../../decorators/di/Inject.cjs");
|
|
|
282
282
|
|
|
283
283
|
require("./types/ContainerCapability.cjs");
|
|
284
284
|
|
|
285
|
-
const
|
|
285
|
+
const C = e => e && e.__esModule ? e : {
|
|
286
286
|
default: e
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
const
|
|
289
|
+
const E = C(S);
|
|
290
290
|
|
|
291
|
-
var
|
|
292
|
-
|
|
293
|
-
var L;
|
|
291
|
+
var L = {};
|
|
294
292
|
|
|
295
293
|
var A;
|
|
296
294
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
295
|
+
var N;
|
|
296
|
+
|
|
297
|
+
function F() {
|
|
298
|
+
if (N) return A;
|
|
299
|
+
N = 1;
|
|
300
|
+
A = typeof queueMicrotask === "function" ? queueMicrotask : e => Promise.resolve().then(e);
|
|
301
|
+
return A;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
var
|
|
304
|
+
var B = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : F();
|
|
305
305
|
|
|
306
|
-
const
|
|
306
|
+
const z = x.getDefaultExportFromCjs(B);
|
|
307
307
|
|
|
308
|
-
var
|
|
308
|
+
var M = class FixedFIFO {
|
|
309
309
|
constructor(e) {
|
|
310
310
|
if (!(e > 0) || (e - 1 & e) !== 0) throw new Error("Max size for a FixedFIFO should be a power of two");
|
|
311
311
|
this.buffer = new Array(e);
|
|
@@ -340,14 +340,14 @@ var z = class FixedFIFO {
|
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
const
|
|
343
|
+
const R = x.getDefaultExportFromCjs(M);
|
|
344
344
|
|
|
345
|
-
const
|
|
345
|
+
const W = M;
|
|
346
346
|
|
|
347
|
-
var
|
|
347
|
+
var U = class FastFIFO {
|
|
348
348
|
constructor(e) {
|
|
349
349
|
this.hwm = e || 16;
|
|
350
|
-
this.head = new
|
|
350
|
+
this.head = new W(this.hwm);
|
|
351
351
|
this.tail = this.head;
|
|
352
352
|
this.length = 0;
|
|
353
353
|
}
|
|
@@ -360,7 +360,7 @@ var W = class FastFIFO {
|
|
|
360
360
|
this.length++;
|
|
361
361
|
if (!this.head.push(e)) {
|
|
362
362
|
const t = this.head;
|
|
363
|
-
this.head = t.next = new
|
|
363
|
+
this.head = t.next = new W(2 * this.head.buffer.length);
|
|
364
364
|
this.head.push(e);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -385,307 +385,307 @@ var W = class FastFIFO {
|
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
-
const
|
|
388
|
+
const H = x.getDefaultExportFromCjs(U);
|
|
389
389
|
|
|
390
|
-
const {EventEmitter:
|
|
390
|
+
const {EventEmitter: $} = E.default;
|
|
391
391
|
|
|
392
|
-
const
|
|
392
|
+
const Z = new Error("Stream was destroyed");
|
|
393
393
|
|
|
394
|
-
const
|
|
394
|
+
const G = new Error("Premature close");
|
|
395
395
|
|
|
396
|
-
const
|
|
396
|
+
const K = B;
|
|
397
397
|
|
|
398
|
-
const
|
|
398
|
+
const V = U;
|
|
399
399
|
|
|
400
|
-
const
|
|
400
|
+
const J = (1 << 28) - 1;
|
|
401
401
|
|
|
402
|
-
const
|
|
402
|
+
const Y = 1;
|
|
403
403
|
|
|
404
|
-
const
|
|
404
|
+
const X = 2;
|
|
405
405
|
|
|
406
|
-
const
|
|
406
|
+
const Q = 4;
|
|
407
407
|
|
|
408
|
-
const
|
|
408
|
+
const ee = 8;
|
|
409
409
|
|
|
410
|
-
const
|
|
410
|
+
const te = J ^ Y;
|
|
411
411
|
|
|
412
|
-
const
|
|
412
|
+
const re = J ^ X;
|
|
413
413
|
|
|
414
|
-
const
|
|
414
|
+
const ie = 1 << 4;
|
|
415
415
|
|
|
416
|
-
const
|
|
416
|
+
const ne = 2 << 4;
|
|
417
417
|
|
|
418
|
-
const
|
|
418
|
+
const se = 4 << 4;
|
|
419
419
|
|
|
420
|
-
const
|
|
420
|
+
const ae = 8 << 4;
|
|
421
421
|
|
|
422
|
-
const
|
|
422
|
+
const oe = 16 << 4;
|
|
423
423
|
|
|
424
|
-
const
|
|
424
|
+
const ue = 32 << 4;
|
|
425
425
|
|
|
426
|
-
const
|
|
426
|
+
const le = 64 << 4;
|
|
427
427
|
|
|
428
|
-
const
|
|
428
|
+
const ce = 128 << 4;
|
|
429
429
|
|
|
430
|
-
const
|
|
430
|
+
const he = 256 << 4;
|
|
431
431
|
|
|
432
|
-
const
|
|
432
|
+
const de = 512 << 4;
|
|
433
433
|
|
|
434
|
-
const
|
|
434
|
+
const fe = 1024 << 4;
|
|
435
435
|
|
|
436
|
-
const
|
|
436
|
+
const pe = 2048 << 4;
|
|
437
437
|
|
|
438
|
-
const
|
|
438
|
+
const _e = 4096 << 4;
|
|
439
439
|
|
|
440
|
-
const
|
|
440
|
+
const me = 8192 << 4;
|
|
441
441
|
|
|
442
|
-
const
|
|
442
|
+
const ge = oe | ue;
|
|
443
443
|
|
|
444
|
-
const
|
|
444
|
+
const be = ie | _e;
|
|
445
445
|
|
|
446
|
-
const
|
|
446
|
+
const ye = se | ie;
|
|
447
447
|
|
|
448
|
-
const
|
|
448
|
+
const xe = he | ae;
|
|
449
449
|
|
|
450
|
-
const
|
|
450
|
+
const Se = oe | me;
|
|
451
451
|
|
|
452
|
-
const
|
|
452
|
+
const we = J ^ ie;
|
|
453
453
|
|
|
454
|
-
const
|
|
454
|
+
const ke = J ^ se;
|
|
455
455
|
|
|
456
|
-
const
|
|
456
|
+
const qe = J ^ (se | _e);
|
|
457
457
|
|
|
458
|
-
const
|
|
458
|
+
const je = J ^ _e;
|
|
459
459
|
|
|
460
|
-
const
|
|
460
|
+
const ve = J ^ oe;
|
|
461
461
|
|
|
462
|
-
const
|
|
462
|
+
const De = J ^ (ae | de);
|
|
463
463
|
|
|
464
|
-
const
|
|
464
|
+
const Pe = J ^ le;
|
|
465
465
|
|
|
466
|
-
const
|
|
466
|
+
const Oe = J ^ ge;
|
|
467
467
|
|
|
468
|
-
const
|
|
468
|
+
const Ie = J ^ pe;
|
|
469
469
|
|
|
470
|
-
const
|
|
470
|
+
const Te = J ^ ne;
|
|
471
471
|
|
|
472
|
-
const
|
|
472
|
+
const Ce = J ^ me;
|
|
473
473
|
|
|
474
|
-
const
|
|
474
|
+
const Ee = J ^ Se;
|
|
475
475
|
|
|
476
|
-
const
|
|
476
|
+
const Le = 1 << 18;
|
|
477
477
|
|
|
478
|
-
const
|
|
478
|
+
const Ae = 2 << 18;
|
|
479
479
|
|
|
480
|
-
const
|
|
480
|
+
const Ne = 4 << 18;
|
|
481
481
|
|
|
482
|
-
const
|
|
482
|
+
const Fe = 8 << 18;
|
|
483
483
|
|
|
484
|
-
const
|
|
484
|
+
const Be = 16 << 18;
|
|
485
485
|
|
|
486
|
-
const
|
|
486
|
+
const ze = 32 << 18;
|
|
487
487
|
|
|
488
|
-
const
|
|
488
|
+
const Me = 64 << 18;
|
|
489
489
|
|
|
490
|
-
const
|
|
490
|
+
const Re = 128 << 18;
|
|
491
491
|
|
|
492
|
-
const
|
|
492
|
+
const We = 256 << 18;
|
|
493
493
|
|
|
494
|
-
const
|
|
494
|
+
const Ue = 512 << 18;
|
|
495
495
|
|
|
496
|
-
const
|
|
496
|
+
const He = J ^ (Le | We);
|
|
497
497
|
|
|
498
|
-
const
|
|
498
|
+
const $e = J ^ Ne;
|
|
499
499
|
|
|
500
|
-
const
|
|
500
|
+
const Ze = J ^ Ue;
|
|
501
501
|
|
|
502
|
-
const
|
|
502
|
+
const Ge = J ^ Be;
|
|
503
503
|
|
|
504
|
-
const
|
|
504
|
+
const Ke = J ^ Fe;
|
|
505
505
|
|
|
506
|
-
const
|
|
506
|
+
const Ve = J ^ Re;
|
|
507
507
|
|
|
508
|
-
const
|
|
508
|
+
const Je = J ^ Ae;
|
|
509
509
|
|
|
510
|
-
const
|
|
510
|
+
const Ye = ie | Le;
|
|
511
511
|
|
|
512
|
-
const
|
|
512
|
+
const Xe = J ^ Ye;
|
|
513
513
|
|
|
514
|
-
const
|
|
514
|
+
const Qe = fe | ze;
|
|
515
515
|
|
|
516
|
-
const
|
|
516
|
+
const et = Q | ee | X;
|
|
517
517
|
|
|
518
|
-
const
|
|
518
|
+
const tt = et | Y;
|
|
519
519
|
|
|
520
|
-
const
|
|
520
|
+
const rt = et | Qe;
|
|
521
521
|
|
|
522
|
-
const
|
|
522
|
+
const it = $e & ke;
|
|
523
523
|
|
|
524
|
-
const
|
|
524
|
+
const nt = Re | pe;
|
|
525
525
|
|
|
526
|
-
const
|
|
526
|
+
const st = nt & Xe;
|
|
527
527
|
|
|
528
|
-
const
|
|
528
|
+
const at = tt | st;
|
|
529
529
|
|
|
530
|
-
const
|
|
530
|
+
const ot = tt | le | fe;
|
|
531
531
|
|
|
532
|
-
const
|
|
532
|
+
const ut = tt | fe | ae;
|
|
533
533
|
|
|
534
|
-
const
|
|
534
|
+
const lt = tt | le | ae;
|
|
535
535
|
|
|
536
|
-
const
|
|
536
|
+
const ct = tt | he | ae | de;
|
|
537
537
|
|
|
538
|
-
const
|
|
538
|
+
const ht = tt | ie | le | fe | _e | me;
|
|
539
539
|
|
|
540
|
-
const
|
|
540
|
+
const dt = et | le | fe;
|
|
541
541
|
|
|
542
|
-
const
|
|
542
|
+
const ft = ne | tt | pe | se;
|
|
543
543
|
|
|
544
|
-
const
|
|
544
|
+
const pt = tt | Ue | ze;
|
|
545
545
|
|
|
546
|
-
const
|
|
546
|
+
const _t = Fe | Be;
|
|
547
547
|
|
|
548
|
-
const
|
|
548
|
+
const mt = Fe | Le;
|
|
549
549
|
|
|
550
|
-
const
|
|
550
|
+
const gt = Fe | Be | tt | Le;
|
|
551
551
|
|
|
552
|
-
const
|
|
552
|
+
const bt = tt | Le | Fe;
|
|
553
553
|
|
|
554
|
-
const
|
|
554
|
+
const yt = Ne | Le;
|
|
555
555
|
|
|
556
|
-
const
|
|
556
|
+
const xt = Le | We;
|
|
557
557
|
|
|
558
|
-
const
|
|
558
|
+
const St = tt | Ue | mt | ze;
|
|
559
559
|
|
|
560
|
-
const
|
|
560
|
+
const wt = Be | et | Ue | ze;
|
|
561
561
|
|
|
562
|
-
const
|
|
562
|
+
const kt = Ae | tt | Re | Ne;
|
|
563
563
|
|
|
564
|
-
const
|
|
564
|
+
const qt = Symbol.asyncIterator || Symbol("asyncIterator");
|
|
565
565
|
|
|
566
566
|
class WritableState {
|
|
567
567
|
constructor(e, {highWaterMark: t = 16384, map: r = null, mapWritable: i, byteLength: n, byteLengthWritable: s} = {}) {
|
|
568
568
|
this.stream = e;
|
|
569
|
-
this.queue = new
|
|
569
|
+
this.queue = new V;
|
|
570
570
|
this.highWaterMark = t;
|
|
571
571
|
this.buffered = 0;
|
|
572
572
|
this.error = null;
|
|
573
573
|
this.pipeline = null;
|
|
574
574
|
this.drains = null;
|
|
575
|
-
this.byteLength = s || n ||
|
|
575
|
+
this.byteLength = s || n || Zt;
|
|
576
576
|
this.map = i || r;
|
|
577
|
-
this.afterWrite =
|
|
578
|
-
this.afterUpdateNextTick =
|
|
577
|
+
this.afterWrite = Pt.bind(this);
|
|
578
|
+
this.afterUpdateNextTick = Tt.bind(this);
|
|
579
579
|
}
|
|
580
580
|
get ended() {
|
|
581
|
-
return (this.stream._duplexState &
|
|
581
|
+
return (this.stream._duplexState & ze) !== 0;
|
|
582
582
|
}
|
|
583
583
|
push(e) {
|
|
584
584
|
if (this.map !== null) e = this.map(e);
|
|
585
585
|
this.buffered += this.byteLength(e);
|
|
586
586
|
this.queue.push(e);
|
|
587
587
|
if (this.buffered < this.highWaterMark) {
|
|
588
|
-
this.stream._duplexState |=
|
|
588
|
+
this.stream._duplexState |= Fe;
|
|
589
589
|
return true;
|
|
590
590
|
}
|
|
591
|
-
this.stream._duplexState |=
|
|
591
|
+
this.stream._duplexState |= _t;
|
|
592
592
|
return false;
|
|
593
593
|
}
|
|
594
594
|
shift() {
|
|
595
595
|
const e = this.queue.shift();
|
|
596
596
|
this.buffered -= this.byteLength(e);
|
|
597
|
-
if (this.buffered === 0) this.stream._duplexState &=
|
|
597
|
+
if (this.buffered === 0) this.stream._duplexState &= Ke;
|
|
598
598
|
return e;
|
|
599
599
|
}
|
|
600
600
|
end(e) {
|
|
601
601
|
if (typeof e === "function") this.stream.once("finish", e); else if (e !== undefined && e !== null) this.push(e);
|
|
602
|
-
this.stream._duplexState = (this.stream._duplexState |
|
|
602
|
+
this.stream._duplexState = (this.stream._duplexState | Ue) & $e;
|
|
603
603
|
}
|
|
604
604
|
autoBatch(e, t) {
|
|
605
605
|
const r = [];
|
|
606
606
|
const i = this.stream;
|
|
607
607
|
r.push(e);
|
|
608
|
-
while ((i._duplexState &
|
|
608
|
+
while ((i._duplexState & bt) === mt) {
|
|
609
609
|
r.push(i._writableState.shift());
|
|
610
610
|
}
|
|
611
|
-
if ((i._duplexState &
|
|
611
|
+
if ((i._duplexState & tt) !== 0) return t(null);
|
|
612
612
|
i._writev(r, t);
|
|
613
613
|
}
|
|
614
614
|
update() {
|
|
615
615
|
const e = this.stream;
|
|
616
|
-
e._duplexState |=
|
|
616
|
+
e._duplexState |= Ae;
|
|
617
617
|
do {
|
|
618
|
-
while ((e._duplexState &
|
|
618
|
+
while ((e._duplexState & bt) === Fe) {
|
|
619
619
|
const t = this.shift();
|
|
620
|
-
e._duplexState |=
|
|
620
|
+
e._duplexState |= xt;
|
|
621
621
|
e._write(t, this.afterWrite);
|
|
622
622
|
}
|
|
623
|
-
if ((e._duplexState &
|
|
623
|
+
if ((e._duplexState & yt) === 0) this.updateNonPrimary();
|
|
624
624
|
} while (this.continueUpdate() === true);
|
|
625
|
-
e._duplexState &=
|
|
625
|
+
e._duplexState &= Je;
|
|
626
626
|
}
|
|
627
627
|
updateNonPrimary() {
|
|
628
628
|
const e = this.stream;
|
|
629
|
-
if ((e._duplexState &
|
|
630
|
-
e._duplexState = (e._duplexState |
|
|
631
|
-
e._final(
|
|
629
|
+
if ((e._duplexState & St) === Ue) {
|
|
630
|
+
e._duplexState = (e._duplexState | Le) & Ze;
|
|
631
|
+
e._final(vt.bind(this));
|
|
632
632
|
return;
|
|
633
633
|
}
|
|
634
|
-
if ((e._duplexState &
|
|
635
|
-
if ((e._duplexState &
|
|
636
|
-
e._duplexState |=
|
|
637
|
-
e._destroy(
|
|
634
|
+
if ((e._duplexState & et) === Q) {
|
|
635
|
+
if ((e._duplexState & nt) === 0) {
|
|
636
|
+
e._duplexState |= Ye;
|
|
637
|
+
e._destroy(Dt.bind(this));
|
|
638
638
|
}
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
|
-
if ((e._duplexState &
|
|
642
|
-
e._duplexState = (e._duplexState |
|
|
643
|
-
e._open(
|
|
641
|
+
if ((e._duplexState & at) === Y) {
|
|
642
|
+
e._duplexState = (e._duplexState | Ye) & te;
|
|
643
|
+
e._open(Et.bind(this));
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
continueUpdate() {
|
|
647
|
-
if ((this.stream._duplexState &
|
|
648
|
-
this.stream._duplexState &=
|
|
647
|
+
if ((this.stream._duplexState & Re) === 0) return false;
|
|
648
|
+
this.stream._duplexState &= Ve;
|
|
649
649
|
return true;
|
|
650
650
|
}
|
|
651
651
|
updateCallback() {
|
|
652
|
-
if ((this.stream._duplexState &
|
|
652
|
+
if ((this.stream._duplexState & kt) === Ne) this.update(); else this.updateNextTick();
|
|
653
653
|
}
|
|
654
654
|
updateNextTick() {
|
|
655
|
-
if ((this.stream._duplexState &
|
|
656
|
-
this.stream._duplexState |=
|
|
657
|
-
if ((this.stream._duplexState &
|
|
655
|
+
if ((this.stream._duplexState & Re) !== 0) return;
|
|
656
|
+
this.stream._duplexState |= Re;
|
|
657
|
+
if ((this.stream._duplexState & Ae) === 0) K(this.afterUpdateNextTick);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
class ReadableState {
|
|
662
662
|
constructor(e, {highWaterMark: t = 16384, map: r = null, mapReadable: i, byteLength: n, byteLengthReadable: s} = {}) {
|
|
663
663
|
this.stream = e;
|
|
664
|
-
this.queue = new
|
|
664
|
+
this.queue = new V;
|
|
665
665
|
this.highWaterMark = t === 0 ? 1 : t;
|
|
666
666
|
this.buffered = 0;
|
|
667
667
|
this.readAhead = t > 0;
|
|
668
668
|
this.error = null;
|
|
669
669
|
this.pipeline = null;
|
|
670
|
-
this.byteLength = s || n ||
|
|
670
|
+
this.byteLength = s || n || Zt;
|
|
671
671
|
this.map = i || r;
|
|
672
672
|
this.pipeTo = null;
|
|
673
|
-
this.afterRead =
|
|
674
|
-
this.afterUpdateNextTick =
|
|
673
|
+
this.afterRead = Ot.bind(this);
|
|
674
|
+
this.afterUpdateNextTick = It.bind(this);
|
|
675
675
|
}
|
|
676
676
|
get ended() {
|
|
677
|
-
return (this.stream._duplexState &
|
|
677
|
+
return (this.stream._duplexState & fe) !== 0;
|
|
678
678
|
}
|
|
679
679
|
pipe(e, t) {
|
|
680
680
|
if (this.pipeTo !== null) throw new Error("Can only pipe to one destination");
|
|
681
681
|
if (typeof t !== "function") t = null;
|
|
682
|
-
this.stream._duplexState |=
|
|
682
|
+
this.stream._duplexState |= ue;
|
|
683
683
|
this.pipeTo = e;
|
|
684
684
|
this.pipeline = new Pipeline(this.stream, e, t);
|
|
685
|
-
if (t) this.stream.on("error",
|
|
686
|
-
if (
|
|
685
|
+
if (t) this.stream.on("error", Gt);
|
|
686
|
+
if (Wt(e)) {
|
|
687
687
|
e._writableState.pipeline = this.pipeline;
|
|
688
|
-
if (t) e.on("error",
|
|
688
|
+
if (t) e.on("error", Gt);
|
|
689
689
|
e.on("finish", this.pipeline.finished.bind(this.pipeline));
|
|
690
690
|
} else {
|
|
691
691
|
const t = this.pipeline.done.bind(this.pipeline, e);
|
|
@@ -694,7 +694,7 @@ class ReadableState {
|
|
|
694
694
|
e.on("close", r);
|
|
695
695
|
e.on("finish", this.pipeline.finished.bind(this.pipeline));
|
|
696
696
|
}
|
|
697
|
-
e.on("drain",
|
|
697
|
+
e.on("drain", jt.bind(this));
|
|
698
698
|
this.stream.emit("piping", e);
|
|
699
699
|
e.emit("pipe", this.stream);
|
|
700
700
|
}
|
|
@@ -702,19 +702,19 @@ class ReadableState {
|
|
|
702
702
|
const t = this.stream;
|
|
703
703
|
if (e === null) {
|
|
704
704
|
this.highWaterMark = 0;
|
|
705
|
-
t._duplexState = (t._duplexState |
|
|
705
|
+
t._duplexState = (t._duplexState | le) & qe;
|
|
706
706
|
return false;
|
|
707
707
|
}
|
|
708
708
|
if (this.map !== null) e = this.map(e);
|
|
709
709
|
this.buffered += this.byteLength(e);
|
|
710
710
|
this.queue.push(e);
|
|
711
|
-
t._duplexState = (t._duplexState |
|
|
711
|
+
t._duplexState = (t._duplexState | ae) & je;
|
|
712
712
|
return this.buffered < this.highWaterMark;
|
|
713
713
|
}
|
|
714
714
|
shift() {
|
|
715
715
|
const e = this.queue.shift();
|
|
716
716
|
this.buffered -= this.byteLength(e);
|
|
717
|
-
if (this.buffered === 0) this.stream._duplexState &=
|
|
717
|
+
if (this.buffered === 0) this.stream._duplexState &= De;
|
|
718
718
|
return e;
|
|
719
719
|
}
|
|
720
720
|
unshift(e) {
|
|
@@ -729,83 +729,83 @@ class ReadableState {
|
|
|
729
729
|
}
|
|
730
730
|
read() {
|
|
731
731
|
const e = this.stream;
|
|
732
|
-
if ((e._duplexState &
|
|
732
|
+
if ((e._duplexState & ut) === ae) {
|
|
733
733
|
const t = this.shift();
|
|
734
|
-
if (this.pipeTo !== null && this.pipeTo.write(t) === false) e._duplexState &=
|
|
735
|
-
if ((e._duplexState &
|
|
734
|
+
if (this.pipeTo !== null && this.pipeTo.write(t) === false) e._duplexState &= Oe;
|
|
735
|
+
if ((e._duplexState & ce) !== 0) e.emit("data", t);
|
|
736
736
|
return t;
|
|
737
737
|
}
|
|
738
738
|
if (this.readAhead === false) {
|
|
739
|
-
e._duplexState |=
|
|
739
|
+
e._duplexState |= me;
|
|
740
740
|
this.updateNextTick();
|
|
741
741
|
}
|
|
742
742
|
return null;
|
|
743
743
|
}
|
|
744
744
|
drain() {
|
|
745
745
|
const e = this.stream;
|
|
746
|
-
while ((e._duplexState &
|
|
746
|
+
while ((e._duplexState & ut) === ae && (e._duplexState & ge) !== 0) {
|
|
747
747
|
const t = this.shift();
|
|
748
|
-
if (this.pipeTo !== null && this.pipeTo.write(t) === false) e._duplexState &=
|
|
749
|
-
if ((e._duplexState &
|
|
748
|
+
if (this.pipeTo !== null && this.pipeTo.write(t) === false) e._duplexState &= Oe;
|
|
749
|
+
if ((e._duplexState & ce) !== 0) e.emit("data", t);
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
752
|
update() {
|
|
753
753
|
const e = this.stream;
|
|
754
|
-
e._duplexState |=
|
|
754
|
+
e._duplexState |= ne;
|
|
755
755
|
do {
|
|
756
756
|
this.drain();
|
|
757
|
-
while (this.buffered < this.highWaterMark && (e._duplexState &
|
|
758
|
-
e._duplexState |=
|
|
757
|
+
while (this.buffered < this.highWaterMark && (e._duplexState & ht) === me) {
|
|
758
|
+
e._duplexState |= be;
|
|
759
759
|
e._read(this.afterRead);
|
|
760
760
|
this.drain();
|
|
761
761
|
}
|
|
762
|
-
if ((e._duplexState &
|
|
763
|
-
e._duplexState |=
|
|
762
|
+
if ((e._duplexState & ct) === xe) {
|
|
763
|
+
e._duplexState |= de;
|
|
764
764
|
e.emit("readable");
|
|
765
765
|
}
|
|
766
|
-
if ((e._duplexState &
|
|
766
|
+
if ((e._duplexState & ye) === 0) this.updateNonPrimary();
|
|
767
767
|
} while (this.continueUpdate() === true);
|
|
768
|
-
e._duplexState &=
|
|
768
|
+
e._duplexState &= Te;
|
|
769
769
|
}
|
|
770
770
|
updateNonPrimary() {
|
|
771
771
|
const e = this.stream;
|
|
772
|
-
if ((e._duplexState &
|
|
773
|
-
e._duplexState = (e._duplexState |
|
|
772
|
+
if ((e._duplexState & lt) === le) {
|
|
773
|
+
e._duplexState = (e._duplexState | fe) & Pe;
|
|
774
774
|
e.emit("end");
|
|
775
|
-
if ((e._duplexState &
|
|
775
|
+
if ((e._duplexState & rt) === Qe) e._duplexState |= Q;
|
|
776
776
|
if (this.pipeTo !== null) this.pipeTo.end();
|
|
777
777
|
}
|
|
778
|
-
if ((e._duplexState &
|
|
779
|
-
if ((e._duplexState &
|
|
780
|
-
e._duplexState |=
|
|
781
|
-
e._destroy(
|
|
778
|
+
if ((e._duplexState & et) === Q) {
|
|
779
|
+
if ((e._duplexState & nt) === 0) {
|
|
780
|
+
e._duplexState |= Ye;
|
|
781
|
+
e._destroy(Dt.bind(this));
|
|
782
782
|
}
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
785
|
-
if ((e._duplexState &
|
|
786
|
-
e._duplexState = (e._duplexState |
|
|
787
|
-
e._open(
|
|
785
|
+
if ((e._duplexState & at) === Y) {
|
|
786
|
+
e._duplexState = (e._duplexState | Ye) & te;
|
|
787
|
+
e._open(Et.bind(this));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
continueUpdate() {
|
|
791
|
-
if ((this.stream._duplexState &
|
|
792
|
-
this.stream._duplexState &=
|
|
791
|
+
if ((this.stream._duplexState & pe) === 0) return false;
|
|
792
|
+
this.stream._duplexState &= Ie;
|
|
793
793
|
return true;
|
|
794
794
|
}
|
|
795
795
|
updateCallback() {
|
|
796
|
-
if ((this.stream._duplexState &
|
|
796
|
+
if ((this.stream._duplexState & ft) === se) this.update(); else this.updateNextTick();
|
|
797
797
|
}
|
|
798
798
|
updateNextTick() {
|
|
799
|
-
if ((this.stream._duplexState &
|
|
800
|
-
this.stream._duplexState |=
|
|
801
|
-
if ((this.stream._duplexState &
|
|
799
|
+
if ((this.stream._duplexState & pe) !== 0) return;
|
|
800
|
+
this.stream._duplexState |= pe;
|
|
801
|
+
if ((this.stream._duplexState & ne) === 0) K(this.afterUpdateNextTick);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
class TransformState {
|
|
806
806
|
constructor(e) {
|
|
807
807
|
this.data = null;
|
|
808
|
-
this.afterTransform =
|
|
808
|
+
this.afterTransform = Lt.bind(e);
|
|
809
809
|
this.afterFinal = null;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
@@ -826,7 +826,7 @@ class Pipeline {
|
|
|
826
826
|
if (e === this.to) {
|
|
827
827
|
this.to = null;
|
|
828
828
|
if (this.from !== null) {
|
|
829
|
-
if ((this.from._duplexState &
|
|
829
|
+
if ((this.from._duplexState & fe) === 0 || !this.pipeToFinished) {
|
|
830
830
|
this.from.destroy(this.error || new Error("Writable stream closed prematurely"));
|
|
831
831
|
}
|
|
832
832
|
return;
|
|
@@ -835,7 +835,7 @@ class Pipeline {
|
|
|
835
835
|
if (e === this.from) {
|
|
836
836
|
this.from = null;
|
|
837
837
|
if (this.to !== null) {
|
|
838
|
-
if ((e._duplexState &
|
|
838
|
+
if ((e._duplexState & fe) === 0) {
|
|
839
839
|
this.to.destroy(this.error || new Error("Readable stream closed before ending"));
|
|
840
840
|
}
|
|
841
841
|
return;
|
|
@@ -846,30 +846,30 @@ class Pipeline {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
function
|
|
850
|
-
this.stream._duplexState |=
|
|
849
|
+
function jt() {
|
|
850
|
+
this.stream._duplexState |= ue;
|
|
851
851
|
this.updateCallback();
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
function
|
|
854
|
+
function vt(e) {
|
|
855
855
|
const t = this.stream;
|
|
856
856
|
if (e) t.destroy(e);
|
|
857
|
-
if ((t._duplexState &
|
|
858
|
-
t._duplexState |=
|
|
857
|
+
if ((t._duplexState & et) === 0) {
|
|
858
|
+
t._duplexState |= ze;
|
|
859
859
|
t.emit("finish");
|
|
860
860
|
}
|
|
861
|
-
if ((t._duplexState &
|
|
862
|
-
t._duplexState |=
|
|
861
|
+
if ((t._duplexState & rt) === Qe) {
|
|
862
|
+
t._duplexState |= Q;
|
|
863
863
|
}
|
|
864
|
-
t._duplexState &=
|
|
865
|
-
if ((t._duplexState &
|
|
864
|
+
t._duplexState &= He;
|
|
865
|
+
if ((t._duplexState & Ae) === 0) this.update(); else this.updateNextTick();
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
function
|
|
868
|
+
function Dt(e) {
|
|
869
869
|
const t = this.stream;
|
|
870
|
-
if (!e && this.error !==
|
|
870
|
+
if (!e && this.error !== Z) e = this.error;
|
|
871
871
|
if (e) t.emit("error", e);
|
|
872
|
-
t._duplexState |=
|
|
872
|
+
t._duplexState |= ee;
|
|
873
873
|
t.emit("close");
|
|
874
874
|
const r = t._readableState;
|
|
875
875
|
const i = t._writableState;
|
|
@@ -880,42 +880,42 @@ function vt(e) {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function
|
|
883
|
+
function Pt(e) {
|
|
884
884
|
const t = this.stream;
|
|
885
885
|
if (e) t.destroy(e);
|
|
886
|
-
t._duplexState &=
|
|
887
|
-
if (this.drains !== null)
|
|
888
|
-
if ((t._duplexState &
|
|
889
|
-
t._duplexState &=
|
|
890
|
-
if ((t._duplexState &
|
|
886
|
+
t._duplexState &= He;
|
|
887
|
+
if (this.drains !== null) Ct(this.drains);
|
|
888
|
+
if ((t._duplexState & gt) === Be) {
|
|
889
|
+
t._duplexState &= Ge;
|
|
890
|
+
if ((t._duplexState & Me) === Me) {
|
|
891
891
|
t.emit("drain");
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
this.updateCallback();
|
|
895
895
|
}
|
|
896
896
|
|
|
897
|
-
function
|
|
897
|
+
function Ot(e) {
|
|
898
898
|
if (e) this.stream.destroy(e);
|
|
899
|
-
this.stream._duplexState &=
|
|
900
|
-
if (this.readAhead === false && (this.stream._duplexState &
|
|
899
|
+
this.stream._duplexState &= we;
|
|
900
|
+
if (this.readAhead === false && (this.stream._duplexState & oe) === 0) this.stream._duplexState &= Ce;
|
|
901
901
|
this.updateCallback();
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
function
|
|
905
|
-
if ((this.stream._duplexState &
|
|
906
|
-
this.stream._duplexState &=
|
|
904
|
+
function It() {
|
|
905
|
+
if ((this.stream._duplexState & ne) === 0) {
|
|
906
|
+
this.stream._duplexState &= Ie;
|
|
907
907
|
this.update();
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
-
function
|
|
912
|
-
if ((this.stream._duplexState &
|
|
913
|
-
this.stream._duplexState &=
|
|
911
|
+
function Tt() {
|
|
912
|
+
if ((this.stream._duplexState & Ae) === 0) {
|
|
913
|
+
this.stream._duplexState &= Ve;
|
|
914
914
|
this.update();
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
-
function
|
|
918
|
+
function Ct(e) {
|
|
919
919
|
for (let t = 0; t < e.length; t++) {
|
|
920
920
|
if (--e[t].writes === 0) {
|
|
921
921
|
e.shift().resolve(true);
|
|
@@ -924,15 +924,15 @@ function Tt(e) {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
-
function
|
|
927
|
+
function Et(e) {
|
|
928
928
|
const t = this.stream;
|
|
929
929
|
if (e) t.destroy(e);
|
|
930
|
-
if ((t._duplexState &
|
|
931
|
-
if ((t._duplexState &
|
|
932
|
-
if ((t._duplexState &
|
|
930
|
+
if ((t._duplexState & Q) === 0) {
|
|
931
|
+
if ((t._duplexState & ot) === 0) t._duplexState |= se;
|
|
932
|
+
if ((t._duplexState & pt) === 0) t._duplexState |= Ne;
|
|
933
933
|
t.emit("open");
|
|
934
934
|
}
|
|
935
|
-
t._duplexState &=
|
|
935
|
+
t._duplexState &= Xe;
|
|
936
936
|
if (t._writableState !== null) {
|
|
937
937
|
t._writableState.updateCallback();
|
|
938
938
|
}
|
|
@@ -941,31 +941,31 @@ function Ct(e) {
|
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
function
|
|
944
|
+
function Lt(e, t) {
|
|
945
945
|
if (t !== undefined && t !== null) this.push(t);
|
|
946
946
|
this._writableState.afterWrite(e);
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
function
|
|
949
|
+
function At(e) {
|
|
950
950
|
if (this._readableState !== null) {
|
|
951
951
|
if (e === "data") {
|
|
952
|
-
this._duplexState |=
|
|
952
|
+
this._duplexState |= ce | Se;
|
|
953
953
|
this._readableState.updateNextTick();
|
|
954
954
|
}
|
|
955
955
|
if (e === "readable") {
|
|
956
|
-
this._duplexState |=
|
|
956
|
+
this._duplexState |= he;
|
|
957
957
|
this._readableState.updateNextTick();
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
if (this._writableState !== null) {
|
|
961
961
|
if (e === "drain") {
|
|
962
|
-
this._duplexState |=
|
|
962
|
+
this._duplexState |= Me;
|
|
963
963
|
this._writableState.updateNextTick();
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
|
|
968
|
-
class Stream extends
|
|
968
|
+
class Stream extends $ {
|
|
969
969
|
constructor(e) {
|
|
970
970
|
super();
|
|
971
971
|
this._duplexState = 0;
|
|
@@ -976,10 +976,10 @@ class Stream extends H {
|
|
|
976
976
|
if (e.destroy) this._destroy = e.destroy;
|
|
977
977
|
if (e.predestroy) this._predestroy = e.predestroy;
|
|
978
978
|
if (e.signal) {
|
|
979
|
-
e.signal.addEventListener("abort",
|
|
979
|
+
e.signal.addEventListener("abort", Kt.bind(this));
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
|
-
this.on("newListener",
|
|
982
|
+
this.on("newListener", At);
|
|
983
983
|
}
|
|
984
984
|
_open(e) {
|
|
985
985
|
e(null);
|
|
@@ -995,15 +995,15 @@ class Stream extends H {
|
|
|
995
995
|
return this._writableState !== null ? true : undefined;
|
|
996
996
|
}
|
|
997
997
|
get destroyed() {
|
|
998
|
-
return (this._duplexState &
|
|
998
|
+
return (this._duplexState & ee) !== 0;
|
|
999
999
|
}
|
|
1000
1000
|
get destroying() {
|
|
1001
|
-
return (this._duplexState &
|
|
1001
|
+
return (this._duplexState & et) !== 0;
|
|
1002
1002
|
}
|
|
1003
1003
|
destroy(e) {
|
|
1004
|
-
if ((this._duplexState &
|
|
1005
|
-
if (!e) e =
|
|
1006
|
-
this._duplexState = (this._duplexState |
|
|
1004
|
+
if ((this._duplexState & et) === 0) {
|
|
1005
|
+
if (!e) e = Z;
|
|
1006
|
+
this._duplexState = (this._duplexState | Q) & it;
|
|
1007
1007
|
if (this._readableState !== null) {
|
|
1008
1008
|
this._readableState.highWaterMark = 0;
|
|
1009
1009
|
this._readableState.error = e;
|
|
@@ -1012,22 +1012,22 @@ class Stream extends H {
|
|
|
1012
1012
|
this._writableState.highWaterMark = 0;
|
|
1013
1013
|
this._writableState.error = e;
|
|
1014
1014
|
}
|
|
1015
|
-
this._duplexState |=
|
|
1015
|
+
this._duplexState |= X;
|
|
1016
1016
|
this._predestroy();
|
|
1017
|
-
this._duplexState &=
|
|
1017
|
+
this._duplexState &= re;
|
|
1018
1018
|
if (this._readableState !== null) this._readableState.updateNextTick();
|
|
1019
1019
|
if (this._writableState !== null) this._writableState.updateNextTick();
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
|
-
let
|
|
1024
|
+
let Nt = class Readable extends Stream {
|
|
1025
1025
|
constructor(e) {
|
|
1026
1026
|
super(e);
|
|
1027
|
-
this._duplexState |=
|
|
1027
|
+
this._duplexState |= Y | ze | me;
|
|
1028
1028
|
this._readableState = new ReadableState(this, e);
|
|
1029
1029
|
if (e) {
|
|
1030
|
-
if (this._readableState.readAhead === false) this._duplexState &=
|
|
1030
|
+
if (this._readableState.readAhead === false) this._duplexState &= Ce;
|
|
1031
1031
|
if (e.read) this._read = e.read;
|
|
1032
1032
|
if (e.eagerOpen) this._readableState.updateNextTick();
|
|
1033
1033
|
}
|
|
@@ -1053,12 +1053,12 @@ let At = class Readable extends Stream {
|
|
|
1053
1053
|
return this._readableState.unshift(e);
|
|
1054
1054
|
}
|
|
1055
1055
|
resume() {
|
|
1056
|
-
this._duplexState |=
|
|
1056
|
+
this._duplexState |= Se;
|
|
1057
1057
|
this._readableState.updateNextTick();
|
|
1058
1058
|
return this;
|
|
1059
1059
|
}
|
|
1060
1060
|
pause() {
|
|
1061
|
-
this._duplexState &= this._readableState.readAhead === false ?
|
|
1061
|
+
this._duplexState &= this._readableState.readAhead === false ? Ee : ve;
|
|
1062
1062
|
return this;
|
|
1063
1063
|
}
|
|
1064
1064
|
static _fromAsyncIterator(e, t) {
|
|
@@ -1082,8 +1082,8 @@ let At = class Readable extends Stream {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
static from(e, t) {
|
|
1085
|
-
if (
|
|
1086
|
-
if (e[
|
|
1085
|
+
if (Ht(e)) return e;
|
|
1086
|
+
if (e[qt]) return this._fromAsyncIterator(e[qt](), t);
|
|
1087
1087
|
if (!Array.isArray(e)) e = e === undefined ? [] : [ e ];
|
|
1088
1088
|
let r = 0;
|
|
1089
1089
|
return new Readable({
|
|
@@ -1095,12 +1095,12 @@ let At = class Readable extends Stream {
|
|
|
1095
1095
|
});
|
|
1096
1096
|
}
|
|
1097
1097
|
static isBackpressured(e) {
|
|
1098
|
-
return (e._duplexState &
|
|
1098
|
+
return (e._duplexState & dt) !== 0 || e._readableState.buffered >= e._readableState.highWaterMark;
|
|
1099
1099
|
}
|
|
1100
1100
|
static isPaused(e) {
|
|
1101
|
-
return (e._duplexState &
|
|
1101
|
+
return (e._duplexState & oe) === 0;
|
|
1102
1102
|
}
|
|
1103
|
-
[
|
|
1103
|
+
[qt]() {
|
|
1104
1104
|
const e = this;
|
|
1105
1105
|
let t = null;
|
|
1106
1106
|
let r = null;
|
|
@@ -1111,7 +1111,7 @@ let At = class Readable extends Stream {
|
|
|
1111
1111
|
this.on("readable", n);
|
|
1112
1112
|
this.on("close", s);
|
|
1113
1113
|
return {
|
|
1114
|
-
[
|
|
1114
|
+
[qt]() {
|
|
1115
1115
|
return this;
|
|
1116
1116
|
},
|
|
1117
1117
|
next() {
|
|
@@ -1119,7 +1119,7 @@ let At = class Readable extends Stream {
|
|
|
1119
1119
|
r = t;
|
|
1120
1120
|
i = n;
|
|
1121
1121
|
const s = e.read();
|
|
1122
|
-
if (s !== null) a(s); else if ((e._duplexState &
|
|
1122
|
+
if (s !== null) a(s); else if ((e._duplexState & ee) !== 0) a(null);
|
|
1123
1123
|
}));
|
|
1124
1124
|
},
|
|
1125
1125
|
return() {
|
|
@@ -1137,7 +1137,7 @@ let At = class Readable extends Stream {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
function a(n) {
|
|
1139
1139
|
if (i === null) return;
|
|
1140
|
-
if (t) i(t); else if (n === null && (e._duplexState &
|
|
1140
|
+
if (t) i(t); else if (n === null && (e._duplexState & fe) === 0) i(Z); else r({
|
|
1141
1141
|
value: n,
|
|
1142
1142
|
done: n === null
|
|
1143
1143
|
});
|
|
@@ -1146,7 +1146,7 @@ let At = class Readable extends Stream {
|
|
|
1146
1146
|
function o(t) {
|
|
1147
1147
|
e.destroy(t);
|
|
1148
1148
|
return new Promise(((r, i) => {
|
|
1149
|
-
if (e._duplexState &
|
|
1149
|
+
if (e._duplexState & ee) return r({
|
|
1150
1150
|
value: undefined,
|
|
1151
1151
|
done: true
|
|
1152
1152
|
});
|
|
@@ -1161,10 +1161,10 @@ let At = class Readable extends Stream {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
|
|
1164
|
-
let
|
|
1164
|
+
let Ft = class Writable extends Stream {
|
|
1165
1165
|
constructor(e) {
|
|
1166
1166
|
super(e);
|
|
1167
|
-
this._duplexState |=
|
|
1167
|
+
this._duplexState |= Y | fe;
|
|
1168
1168
|
this._writableState = new WritableState(this, e);
|
|
1169
1169
|
if (e) {
|
|
1170
1170
|
if (e.writev) this._writev = e.writev;
|
|
@@ -1183,13 +1183,13 @@ let Nt = class Writable extends Stream {
|
|
|
1183
1183
|
e(null);
|
|
1184
1184
|
}
|
|
1185
1185
|
static isBackpressured(e) {
|
|
1186
|
-
return (e._duplexState &
|
|
1186
|
+
return (e._duplexState & wt) !== 0;
|
|
1187
1187
|
}
|
|
1188
1188
|
static drained(e) {
|
|
1189
1189
|
if (e.destroyed) return Promise.resolve(false);
|
|
1190
1190
|
const t = e._writableState;
|
|
1191
|
-
const r =
|
|
1192
|
-
const i = r + (e._duplexState &
|
|
1191
|
+
const r = Vt(e) ? Math.min(1, t.queue.length) : t.queue.length;
|
|
1192
|
+
const i = r + (e._duplexState & We ? 1 : 0);
|
|
1193
1193
|
if (i === 0) return Promise.resolve(true);
|
|
1194
1194
|
if (t.drains === null) t.drains = [];
|
|
1195
1195
|
return new Promise((e => {
|
|
@@ -1210,10 +1210,10 @@ let Nt = class Writable extends Stream {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
1212
|
|
|
1213
|
-
class Duplex extends
|
|
1213
|
+
class Duplex extends Nt {
|
|
1214
1214
|
constructor(e) {
|
|
1215
1215
|
super(e);
|
|
1216
|
-
this._duplexState =
|
|
1216
|
+
this._duplexState = Y | this._duplexState & me;
|
|
1217
1217
|
this._writableState = new WritableState(this, e);
|
|
1218
1218
|
if (e) {
|
|
1219
1219
|
if (e.writev) this._writev = e.writev;
|
|
@@ -1282,13 +1282,13 @@ class Transform extends Duplex {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
_final(e) {
|
|
1284
1284
|
this._transformState.afterFinal = e;
|
|
1285
|
-
this._flush(
|
|
1285
|
+
this._flush(Bt.bind(this));
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
1289
|
class PassThrough extends Transform {}
|
|
1290
1290
|
|
|
1291
|
-
function
|
|
1291
|
+
function Bt(e, t) {
|
|
1292
1292
|
const r = this._transformState.afterFinal;
|
|
1293
1293
|
if (e) return r(e);
|
|
1294
1294
|
if (t !== null && t !== undefined) this.push(t);
|
|
@@ -1296,14 +1296,14 @@ function Ft(e, t) {
|
|
|
1296
1296
|
r(null);
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
|
-
function
|
|
1300
|
-
return new Promise(((t, r) =>
|
|
1299
|
+
function zt(...e) {
|
|
1300
|
+
return new Promise(((t, r) => Mt(...e, (e => {
|
|
1301
1301
|
if (e) return r(e);
|
|
1302
1302
|
t();
|
|
1303
1303
|
}))));
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
-
function
|
|
1306
|
+
function Mt(e, ...t) {
|
|
1307
1307
|
const r = Array.isArray(e) ? [ ...e, ...t ] : [ e, ...t ];
|
|
1308
1308
|
const i = r.length && typeof r[r.length - 1] === "function" ? r.pop() : null;
|
|
1309
1309
|
if (r.length < 2) throw new Error("Pipeline requires at least 2 streams");
|
|
@@ -1312,7 +1312,7 @@ function zt(e, ...t) {
|
|
|
1312
1312
|
let a = null;
|
|
1313
1313
|
for (let e = 1; e < r.length; e++) {
|
|
1314
1314
|
s = r[e];
|
|
1315
|
-
if (
|
|
1315
|
+
if (Wt(n)) {
|
|
1316
1316
|
n.pipe(s, u);
|
|
1317
1317
|
} else {
|
|
1318
1318
|
o(n, true, e > 1, u);
|
|
@@ -1322,7 +1322,7 @@ function zt(e, ...t) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
if (i) {
|
|
1324
1324
|
let e = false;
|
|
1325
|
-
const t =
|
|
1325
|
+
const t = Wt(s) || !!(s._writableState && s._writableState.autoDestroy);
|
|
1326
1326
|
s.on("error", (e => {
|
|
1327
1327
|
if (a === null) a = e;
|
|
1328
1328
|
}));
|
|
@@ -1331,7 +1331,7 @@ function zt(e, ...t) {
|
|
|
1331
1331
|
if (!t) i(a);
|
|
1332
1332
|
}));
|
|
1333
1333
|
if (t) {
|
|
1334
|
-
s.on("close", (() => i(a || (e ? null :
|
|
1334
|
+
s.on("close", (() => i(a || (e ? null : G))));
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
return s;
|
|
@@ -1339,8 +1339,8 @@ function zt(e, ...t) {
|
|
|
1339
1339
|
e.on("error", i);
|
|
1340
1340
|
e.on("close", n);
|
|
1341
1341
|
function n() {
|
|
1342
|
-
if (t && e._readableState && !e._readableState.ended) return i(
|
|
1343
|
-
if (r && e._writableState && !e._writableState.ended) return i(
|
|
1342
|
+
if (t && e._readableState && !e._readableState.ended) return i(G);
|
|
1343
|
+
if (r && e._writableState && !e._writableState.ended) return i(G);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
function u(e) {
|
|
@@ -1352,257 +1352,257 @@ function zt(e, ...t) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
function Mt(e) {
|
|
1356
|
-
return !!e._readableState || !!e._writableState;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
1355
|
function Rt(e) {
|
|
1360
|
-
return
|
|
1356
|
+
return !!e._readableState || !!e._writableState;
|
|
1361
1357
|
}
|
|
1362
1358
|
|
|
1363
1359
|
function Wt(e) {
|
|
1364
|
-
|
|
1365
|
-
return t === $ ? null : t;
|
|
1360
|
+
return typeof e._duplexState === "number" && Rt(e);
|
|
1366
1361
|
}
|
|
1367
1362
|
|
|
1368
1363
|
function Ut(e) {
|
|
1369
|
-
|
|
1364
|
+
const t = e._readableState && e._readableState.error || e._writableState && e._writableState.error;
|
|
1365
|
+
return t === Z ? null : t;
|
|
1370
1366
|
}
|
|
1371
1367
|
|
|
1372
1368
|
function Ht(e) {
|
|
1373
|
-
return
|
|
1369
|
+
return Wt(e) && e.readable;
|
|
1374
1370
|
}
|
|
1375
1371
|
|
|
1376
1372
|
function $t(e) {
|
|
1377
|
-
return
|
|
1373
|
+
return typeof e === "object" && e !== null && typeof e.byteLength === "number";
|
|
1378
1374
|
}
|
|
1379
1375
|
|
|
1380
|
-
function Zt() {
|
|
1376
|
+
function Zt(e) {
|
|
1377
|
+
return $t(e) ? e.byteLength : 1024;
|
|
1378
|
+
}
|
|
1381
1379
|
|
|
1382
|
-
function Gt() {
|
|
1380
|
+
function Gt() {}
|
|
1381
|
+
|
|
1382
|
+
function Kt() {
|
|
1383
1383
|
this.destroy(new Error("Stream aborted."));
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
-
function
|
|
1387
|
-
return e._writev !==
|
|
1386
|
+
function Vt(e) {
|
|
1387
|
+
return e._writev !== Ft.prototype._writev && e._writev !== Duplex.prototype._writev;
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
var
|
|
1391
|
-
pipeline:
|
|
1392
|
-
pipelinePromise:
|
|
1393
|
-
isStream:
|
|
1394
|
-
isStreamx:
|
|
1395
|
-
getStreamError:
|
|
1390
|
+
var Jt = {
|
|
1391
|
+
pipeline: Mt,
|
|
1392
|
+
pipelinePromise: zt,
|
|
1393
|
+
isStream: Rt,
|
|
1394
|
+
isStreamx: Wt,
|
|
1395
|
+
getStreamError: Ut,
|
|
1396
1396
|
Stream: Stream,
|
|
1397
|
-
Writable:
|
|
1398
|
-
Readable:
|
|
1397
|
+
Writable: Ft,
|
|
1398
|
+
Readable: Nt,
|
|
1399
1399
|
Duplex: Duplex,
|
|
1400
1400
|
Transform: Transform,
|
|
1401
1401
|
PassThrough: PassThrough
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
|
-
const
|
|
1404
|
+
const Yt = x.getDefaultExportFromCjs(Jt);
|
|
1405
1405
|
|
|
1406
|
-
function
|
|
1406
|
+
function Xt(e) {
|
|
1407
1407
|
return Buffer.isBuffer(e) || e instanceof Uint8Array;
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
|
-
function
|
|
1410
|
+
function Qt(e) {
|
|
1411
1411
|
return Buffer.isEncoding(e);
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
function
|
|
1414
|
+
function er(e, t, r) {
|
|
1415
1415
|
return Buffer.alloc(e, t, r);
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
|
-
function
|
|
1418
|
+
function tr(e) {
|
|
1419
1419
|
return Buffer.allocUnsafe(e);
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
|
-
function
|
|
1422
|
+
function rr(e) {
|
|
1423
1423
|
return Buffer.allocUnsafeSlow(e);
|
|
1424
1424
|
}
|
|
1425
1425
|
|
|
1426
|
-
function
|
|
1426
|
+
function ir(e, t) {
|
|
1427
1427
|
return Buffer.byteLength(e, t);
|
|
1428
1428
|
}
|
|
1429
1429
|
|
|
1430
|
-
function
|
|
1430
|
+
function nr(e, t) {
|
|
1431
1431
|
return Buffer.compare(e, t);
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
|
-
function
|
|
1434
|
+
function sr(e, t) {
|
|
1435
1435
|
return Buffer.concat(e, t);
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
|
-
function
|
|
1439
|
-
return
|
|
1438
|
+
function ar(e, t, r, i, n) {
|
|
1439
|
+
return mr(e).copy(t, r, i, n);
|
|
1440
1440
|
}
|
|
1441
1441
|
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1442
|
+
function or(e, t) {
|
|
1443
|
+
return mr(e).equals(t);
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1446
|
+
function ur(e, t, r, i, n) {
|
|
1447
|
+
return mr(e).fill(t, r, i, n);
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
-
function
|
|
1450
|
+
function lr(e, t, r) {
|
|
1451
1451
|
return Buffer.from(e, t, r);
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
|
-
function lr(e, t, r, i) {
|
|
1455
|
-
return _r(e).includes(t, r, i);
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1454
|
function cr(e, t, r, i) {
|
|
1459
|
-
return
|
|
1455
|
+
return mr(e).includes(t, r, i);
|
|
1460
1456
|
}
|
|
1461
1457
|
|
|
1462
1458
|
function hr(e, t, r, i) {
|
|
1463
|
-
return
|
|
1459
|
+
return mr(e).indexOf(t, r, i);
|
|
1464
1460
|
}
|
|
1465
1461
|
|
|
1466
|
-
function dr(e) {
|
|
1467
|
-
return
|
|
1462
|
+
function dr(e, t, r, i) {
|
|
1463
|
+
return mr(e).lastIndexOf(t, r, i);
|
|
1468
1464
|
}
|
|
1469
1465
|
|
|
1470
1466
|
function fr(e) {
|
|
1471
|
-
return
|
|
1467
|
+
return mr(e).swap16();
|
|
1472
1468
|
}
|
|
1473
1469
|
|
|
1474
1470
|
function pr(e) {
|
|
1475
|
-
return
|
|
1471
|
+
return mr(e).swap32();
|
|
1476
1472
|
}
|
|
1477
1473
|
|
|
1478
1474
|
function _r(e) {
|
|
1479
|
-
|
|
1480
|
-
return Buffer.from(e.buffer, e.byteOffset, e.byteLength);
|
|
1475
|
+
return mr(e).swap64();
|
|
1481
1476
|
}
|
|
1482
1477
|
|
|
1483
|
-
function mr(e
|
|
1484
|
-
|
|
1478
|
+
function mr(e) {
|
|
1479
|
+
if (Buffer.isBuffer(e)) return e;
|
|
1480
|
+
return Buffer.from(e.buffer, e.byteOffset, e.byteLength);
|
|
1485
1481
|
}
|
|
1486
1482
|
|
|
1487
|
-
function gr(e, t, r, i
|
|
1488
|
-
return
|
|
1483
|
+
function gr(e, t, r, i) {
|
|
1484
|
+
return mr(e).toString(t, r, i);
|
|
1489
1485
|
}
|
|
1490
1486
|
|
|
1491
|
-
function br(e, t, r) {
|
|
1492
|
-
return
|
|
1487
|
+
function br(e, t, r, i, n) {
|
|
1488
|
+
return mr(e).write(t, r, i, n);
|
|
1493
1489
|
}
|
|
1494
1490
|
|
|
1495
1491
|
function yr(e, t, r) {
|
|
1496
|
-
return
|
|
1492
|
+
return mr(e).writeDoubleLE(t, r);
|
|
1497
1493
|
}
|
|
1498
1494
|
|
|
1499
1495
|
function xr(e, t, r) {
|
|
1500
|
-
return
|
|
1496
|
+
return mr(e).writeFloatLE(t, r);
|
|
1501
1497
|
}
|
|
1502
1498
|
|
|
1503
1499
|
function Sr(e, t, r) {
|
|
1504
|
-
return
|
|
1500
|
+
return mr(e).writeUInt32LE(t, r);
|
|
1505
1501
|
}
|
|
1506
1502
|
|
|
1507
|
-
function wr(e, t) {
|
|
1508
|
-
return
|
|
1503
|
+
function wr(e, t, r) {
|
|
1504
|
+
return mr(e).writeInt32LE(t, r);
|
|
1509
1505
|
}
|
|
1510
1506
|
|
|
1511
1507
|
function kr(e, t) {
|
|
1512
|
-
return
|
|
1508
|
+
return mr(e).readDoubleLE(t);
|
|
1513
1509
|
}
|
|
1514
1510
|
|
|
1515
1511
|
function qr(e, t) {
|
|
1516
|
-
return
|
|
1512
|
+
return mr(e).readFloatLE(t);
|
|
1517
1513
|
}
|
|
1518
1514
|
|
|
1519
1515
|
function jr(e, t) {
|
|
1520
|
-
return
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1516
|
+
return mr(e).readUInt32LE(t);
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
function vr(e, t) {
|
|
1520
|
+
return mr(e).readInt32LE(t);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
var Dr = {
|
|
1524
|
+
isBuffer: Xt,
|
|
1525
|
+
isEncoding: Qt,
|
|
1526
|
+
alloc: er,
|
|
1527
|
+
allocUnsafe: tr,
|
|
1528
|
+
allocUnsafeSlow: rr,
|
|
1529
|
+
byteLength: ir,
|
|
1530
|
+
compare: nr,
|
|
1531
|
+
concat: sr,
|
|
1532
|
+
copy: ar,
|
|
1533
|
+
equals: or,
|
|
1534
|
+
fill: ur,
|
|
1535
|
+
from: lr,
|
|
1536
|
+
includes: cr,
|
|
1537
|
+
indexOf: hr,
|
|
1538
|
+
lastIndexOf: dr,
|
|
1539
|
+
swap16: fr,
|
|
1540
|
+
swap32: pr,
|
|
1541
|
+
swap64: _r,
|
|
1542
|
+
toBuffer: mr,
|
|
1543
|
+
toString: gr,
|
|
1544
|
+
write: br,
|
|
1545
|
+
writeDoubleLE: yr,
|
|
1546
|
+
writeFloatLE: xr,
|
|
1547
|
+
writeUInt32LE: Sr,
|
|
1548
|
+
writeInt32LE: wr,
|
|
1549
|
+
readDoubleLE: kr,
|
|
1550
|
+
readFloatLE: qr,
|
|
1551
|
+
readUInt32LE: jr,
|
|
1552
|
+
readInt32LE: vr
|
|
1553
1553
|
};
|
|
1554
1554
|
|
|
1555
|
-
const
|
|
1555
|
+
const Pr = x.getDefaultExportFromCjs(Dr);
|
|
1556
1556
|
|
|
1557
|
-
var
|
|
1557
|
+
var Or = {};
|
|
1558
1558
|
|
|
1559
|
-
const
|
|
1559
|
+
const Ir = Dr;
|
|
1560
1560
|
|
|
1561
|
-
const
|
|
1561
|
+
const Tr = "0000000000000000000";
|
|
1562
1562
|
|
|
1563
|
-
const
|
|
1563
|
+
const Cr = "7777777777777777777";
|
|
1564
1564
|
|
|
1565
|
-
const
|
|
1565
|
+
const Er = "0".charCodeAt(0);
|
|
1566
1566
|
|
|
1567
|
-
const
|
|
1567
|
+
const Lr = Ir.from([ 117, 115, 116, 97, 114, 0 ]);
|
|
1568
1568
|
|
|
1569
|
-
const
|
|
1569
|
+
const Ar = Ir.from([ Er, Er ]);
|
|
1570
1570
|
|
|
1571
|
-
const
|
|
1571
|
+
const Nr = Ir.from([ 117, 115, 116, 97, 114, 32 ]);
|
|
1572
1572
|
|
|
1573
|
-
const
|
|
1573
|
+
const Fr = Ir.from([ 32, 0 ]);
|
|
1574
1574
|
|
|
1575
|
-
const
|
|
1575
|
+
const Br = 4095;
|
|
1576
1576
|
|
|
1577
|
-
const
|
|
1577
|
+
const zr = 257;
|
|
1578
1578
|
|
|
1579
|
-
const
|
|
1579
|
+
const Mr = 263;
|
|
1580
1580
|
|
|
1581
|
-
var
|
|
1582
|
-
return
|
|
1581
|
+
var Rr = Or.decodeLongPath = function e(t, r) {
|
|
1582
|
+
return ni(t, 0, t.length, r);
|
|
1583
1583
|
};
|
|
1584
1584
|
|
|
1585
|
-
var
|
|
1585
|
+
var Wr = Or.encodePax = function e(t) {
|
|
1586
1586
|
let r = "";
|
|
1587
|
-
if (t.name) r +=
|
|
1588
|
-
if (t.linkname) r +=
|
|
1587
|
+
if (t.name) r += si(" path=" + t.name + "\n");
|
|
1588
|
+
if (t.linkname) r += si(" linkpath=" + t.linkname + "\n");
|
|
1589
1589
|
const i = t.pax;
|
|
1590
1590
|
if (i) {
|
|
1591
1591
|
for (const e in i) {
|
|
1592
|
-
r +=
|
|
1592
|
+
r += si(" " + e + "=" + i[e] + "\n");
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
return
|
|
1595
|
+
return Ir.from(r);
|
|
1596
1596
|
};
|
|
1597
1597
|
|
|
1598
|
-
var
|
|
1598
|
+
var Ur = Or.decodePax = function e(t) {
|
|
1599
1599
|
const r = {};
|
|
1600
1600
|
while (t.length) {
|
|
1601
1601
|
let e = 0;
|
|
1602
1602
|
while (e < t.length && t[e] !== 32) e++;
|
|
1603
|
-
const i = parseInt(
|
|
1603
|
+
const i = parseInt(Ir.toString(t.subarray(0, e)), 10);
|
|
1604
1604
|
if (!i) return r;
|
|
1605
|
-
const n =
|
|
1605
|
+
const n = Ir.toString(t.subarray(e + 1, i - 1));
|
|
1606
1606
|
const s = n.indexOf("=");
|
|
1607
1607
|
if (s === -1) return r;
|
|
1608
1608
|
r[n.slice(0, s)] = n.slice(s + 1);
|
|
@@ -1611,59 +1611,59 @@ var Wr = Pr.decodePax = function e(t) {
|
|
|
1611
1611
|
return r;
|
|
1612
1612
|
};
|
|
1613
1613
|
|
|
1614
|
-
var
|
|
1615
|
-
const r =
|
|
1614
|
+
var Hr = Or.encode = function e(t) {
|
|
1615
|
+
const r = Ir.alloc(512);
|
|
1616
1616
|
let i = t.name;
|
|
1617
1617
|
let n = "";
|
|
1618
1618
|
if (t.typeflag === 5 && i[i.length - 1] !== "/") i += "/";
|
|
1619
|
-
if (
|
|
1620
|
-
while (
|
|
1619
|
+
if (Ir.byteLength(i) !== i.length) return null;
|
|
1620
|
+
while (Ir.byteLength(i) > 100) {
|
|
1621
1621
|
const e = i.indexOf("/");
|
|
1622
1622
|
if (e === -1) return null;
|
|
1623
1623
|
n += n ? "/" + i.slice(0, e) : i.slice(0, e);
|
|
1624
1624
|
i = i.slice(e + 1);
|
|
1625
1625
|
}
|
|
1626
|
-
if (
|
|
1627
|
-
if (t.linkname &&
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
r[156] =
|
|
1635
|
-
if (t.linkname)
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
if (t.uname)
|
|
1639
|
-
if (t.gname)
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
if (n)
|
|
1643
|
-
|
|
1626
|
+
if (Ir.byteLength(i) > 100 || Ir.byteLength(n) > 155) return null;
|
|
1627
|
+
if (t.linkname && Ir.byteLength(t.linkname) > 100) return null;
|
|
1628
|
+
Ir.write(r, i);
|
|
1629
|
+
Ir.write(r, Qr(t.mode & Br, 6), 100);
|
|
1630
|
+
Ir.write(r, Qr(t.uid, 6), 108);
|
|
1631
|
+
Ir.write(r, Qr(t.gid, 6), 116);
|
|
1632
|
+
ti(t.size, r, 124);
|
|
1633
|
+
Ir.write(r, Qr(t.mtime.getTime() / 1e3 | 0, 11), 136);
|
|
1634
|
+
r[156] = Er + Jr(t.type);
|
|
1635
|
+
if (t.linkname) Ir.write(r, t.linkname, 157);
|
|
1636
|
+
Ir.copy(Lr, r, zr);
|
|
1637
|
+
Ir.copy(Ar, r, Mr);
|
|
1638
|
+
if (t.uname) Ir.write(r, t.uname, 265);
|
|
1639
|
+
if (t.gname) Ir.write(r, t.gname, 297);
|
|
1640
|
+
Ir.write(r, Qr(t.devmajor || 0, 6), 329);
|
|
1641
|
+
Ir.write(r, Qr(t.devminor || 0, 6), 337);
|
|
1642
|
+
if (n) Ir.write(r, n, 345);
|
|
1643
|
+
Ir.write(r, Qr(Xr(r), 6), 148);
|
|
1644
1644
|
return r;
|
|
1645
1645
|
};
|
|
1646
1646
|
|
|
1647
|
-
var
|
|
1648
|
-
let n = t[156] === 0 ? 0 : t[156] -
|
|
1649
|
-
let s =
|
|
1650
|
-
const a =
|
|
1651
|
-
const o =
|
|
1652
|
-
const u =
|
|
1653
|
-
const l =
|
|
1654
|
-
const c =
|
|
1655
|
-
const h =
|
|
1656
|
-
const d = t[157] === 0 ? null :
|
|
1657
|
-
const f =
|
|
1658
|
-
const p =
|
|
1659
|
-
const _ =
|
|
1660
|
-
const m =
|
|
1661
|
-
const g =
|
|
1647
|
+
var $r = Or.decode = function e(t, r, i) {
|
|
1648
|
+
let n = t[156] === 0 ? 0 : t[156] - Er;
|
|
1649
|
+
let s = ni(t, 0, 100, r);
|
|
1650
|
+
const a = ii(t, 100, 8);
|
|
1651
|
+
const o = ii(t, 108, 8);
|
|
1652
|
+
const u = ii(t, 116, 8);
|
|
1653
|
+
const l = ii(t, 124, 12);
|
|
1654
|
+
const c = ii(t, 136, 12);
|
|
1655
|
+
const h = Vr(n);
|
|
1656
|
+
const d = t[157] === 0 ? null : ni(t, 157, 100, r);
|
|
1657
|
+
const f = ni(t, 265, 32);
|
|
1658
|
+
const p = ni(t, 297, 32);
|
|
1659
|
+
const _ = ii(t, 329, 8);
|
|
1660
|
+
const m = ii(t, 337, 8);
|
|
1661
|
+
const g = Xr(t);
|
|
1662
1662
|
if (g === 8 * 32) return null;
|
|
1663
|
-
if (g !==
|
|
1664
|
-
if (
|
|
1665
|
-
if (t[345]) s =
|
|
1666
|
-
} else if (
|
|
1663
|
+
if (g !== ii(t, 148, 8)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");
|
|
1664
|
+
if (Zr(t)) {
|
|
1665
|
+
if (t[345]) s = ni(t, 345, 155, r) + "/" + s;
|
|
1666
|
+
} else if (Gr(t)) {} else {
|
|
1667
1667
|
if (!i) {
|
|
1668
1668
|
throw new Error("Invalid tar header: unknown format.");
|
|
1669
1669
|
}
|
|
@@ -1686,15 +1686,15 @@ var Hr = Pr.decode = function e(t, r, i) {
|
|
|
1686
1686
|
};
|
|
1687
1687
|
};
|
|
1688
1688
|
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1689
|
+
function Zr(e) {
|
|
1690
|
+
return Ir.equals(Lr, e.subarray(zr, zr + 6));
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
function
|
|
1694
|
-
return
|
|
1693
|
+
function Gr(e) {
|
|
1694
|
+
return Ir.equals(Nr, e.subarray(zr, zr + 6)) && Ir.equals(Fr, e.subarray(Mr, Mr + 2));
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
|
-
function
|
|
1697
|
+
function Kr(e, t, r) {
|
|
1698
1698
|
if (typeof e !== "number") return r;
|
|
1699
1699
|
e = ~~e;
|
|
1700
1700
|
if (e >= t) return t;
|
|
@@ -1704,7 +1704,7 @@ function Gr(e, t, r) {
|
|
|
1704
1704
|
return 0;
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
function
|
|
1707
|
+
function Vr(e) {
|
|
1708
1708
|
switch (e) {
|
|
1709
1709
|
case 0:
|
|
1710
1710
|
return "file";
|
|
@@ -1746,7 +1746,7 @@ function Kr(e) {
|
|
|
1746
1746
|
return null;
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
function
|
|
1749
|
+
function Jr(e) {
|
|
1750
1750
|
switch (e) {
|
|
1751
1751
|
case "file":
|
|
1752
1752
|
return 0;
|
|
@@ -1778,27 +1778,27 @@ function Vr(e) {
|
|
|
1778
1778
|
return 0;
|
|
1779
1779
|
}
|
|
1780
1780
|
|
|
1781
|
-
function
|
|
1781
|
+
function Yr(e, t, r, i) {
|
|
1782
1782
|
for (;r < i; r++) {
|
|
1783
1783
|
if (e[r] === t) return r;
|
|
1784
1784
|
}
|
|
1785
1785
|
return i;
|
|
1786
1786
|
}
|
|
1787
1787
|
|
|
1788
|
-
function
|
|
1788
|
+
function Xr(e) {
|
|
1789
1789
|
let t = 8 * 32;
|
|
1790
1790
|
for (let r = 0; r < 148; r++) t += e[r];
|
|
1791
1791
|
for (let r = 156; r < 512; r++) t += e[r];
|
|
1792
1792
|
return t;
|
|
1793
1793
|
}
|
|
1794
1794
|
|
|
1795
|
-
function
|
|
1795
|
+
function Qr(e, t) {
|
|
1796
1796
|
e = e.toString(8);
|
|
1797
|
-
if (e.length > t) return
|
|
1798
|
-
return
|
|
1797
|
+
if (e.length > t) return Cr.slice(0, t) + " ";
|
|
1798
|
+
return Tr.slice(0, t - e.length) + e + " ";
|
|
1799
1799
|
}
|
|
1800
1800
|
|
|
1801
|
-
function
|
|
1801
|
+
function ei(e, t, r) {
|
|
1802
1802
|
t[r] = 128;
|
|
1803
1803
|
for (let i = 11; i > 0; i--) {
|
|
1804
1804
|
t[r + i] = e & 255;
|
|
@@ -1806,15 +1806,15 @@ function Qr(e, t, r) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
|
-
function
|
|
1809
|
+
function ti(e, t, r) {
|
|
1810
1810
|
if (e.toString(8).length > 11) {
|
|
1811
|
-
|
|
1811
|
+
ei(e, t, r);
|
|
1812
1812
|
} else {
|
|
1813
|
-
|
|
1813
|
+
Ir.write(t, Qr(e, 11), r);
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
|
|
1817
|
-
function
|
|
1817
|
+
function ri(e) {
|
|
1818
1818
|
let t;
|
|
1819
1819
|
if (e[0] === 128) t = true; else if (e[0] === 255) t = false; else return null;
|
|
1820
1820
|
const r = [];
|
|
@@ -1831,46 +1831,46 @@ function ti(e) {
|
|
|
1831
1831
|
return t ? n : -1 * n;
|
|
1832
1832
|
}
|
|
1833
1833
|
|
|
1834
|
-
function
|
|
1834
|
+
function ii(e, t, r) {
|
|
1835
1835
|
e = e.subarray(t, t + r);
|
|
1836
1836
|
t = 0;
|
|
1837
1837
|
if (e[t] & 128) {
|
|
1838
|
-
return
|
|
1838
|
+
return ri(e);
|
|
1839
1839
|
} else {
|
|
1840
1840
|
while (t < e.length && e[t] === 32) t++;
|
|
1841
|
-
const r =
|
|
1841
|
+
const r = Kr(Yr(e, 32, t, e.length), e.length, e.length);
|
|
1842
1842
|
while (t < r && e[t] === 0) t++;
|
|
1843
1843
|
if (r === t) return 0;
|
|
1844
|
-
return parseInt(
|
|
1844
|
+
return parseInt(Ir.toString(e.subarray(t, r)), 8);
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
|
|
1848
|
-
function
|
|
1849
|
-
return
|
|
1848
|
+
function ni(e, t, r, i) {
|
|
1849
|
+
return Ir.toString(e.subarray(t, Yr(e, 0, t, t + r)), i);
|
|
1850
1850
|
}
|
|
1851
1851
|
|
|
1852
|
-
function
|
|
1853
|
-
const t =
|
|
1852
|
+
function si(e) {
|
|
1853
|
+
const t = Ir.byteLength(e);
|
|
1854
1854
|
let r = Math.floor(Math.log(t) / Math.log(10)) + 1;
|
|
1855
1855
|
if (t + r >= Math.pow(10, r)) r++;
|
|
1856
1856
|
return t + r + e;
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
|
-
const {Writable:
|
|
1859
|
+
const {Writable: ai, Readable: oi, getStreamError: ui} = Jt;
|
|
1860
1860
|
|
|
1861
|
-
const
|
|
1861
|
+
const li = U;
|
|
1862
1862
|
|
|
1863
|
-
const
|
|
1863
|
+
const ci = Dr;
|
|
1864
1864
|
|
|
1865
|
-
const
|
|
1865
|
+
const hi = Or;
|
|
1866
1866
|
|
|
1867
|
-
const
|
|
1867
|
+
const di = ci.alloc(0);
|
|
1868
1868
|
|
|
1869
1869
|
class BufferList {
|
|
1870
1870
|
constructor() {
|
|
1871
1871
|
this.buffered = 0;
|
|
1872
1872
|
this.shifted = 0;
|
|
1873
|
-
this.queue = new
|
|
1873
|
+
this.queue = new li;
|
|
1874
1874
|
this._offset = 0;
|
|
1875
1875
|
}
|
|
1876
1876
|
push(e) {
|
|
@@ -1882,7 +1882,7 @@ class BufferList {
|
|
|
1882
1882
|
}
|
|
1883
1883
|
shift(e) {
|
|
1884
1884
|
if (e > this.buffered) return null;
|
|
1885
|
-
if (e === 0) return
|
|
1885
|
+
if (e === 0) return di;
|
|
1886
1886
|
let t = this._next(e);
|
|
1887
1887
|
if (e === t.byteLength) return t;
|
|
1888
1888
|
const r = [ t ];
|
|
@@ -1890,7 +1890,7 @@ class BufferList {
|
|
|
1890
1890
|
t = this._next(e);
|
|
1891
1891
|
r.push(t);
|
|
1892
1892
|
}
|
|
1893
|
-
return
|
|
1893
|
+
return ci.concat(r);
|
|
1894
1894
|
}
|
|
1895
1895
|
_next(e) {
|
|
1896
1896
|
const t = this.queue.peek();
|
|
@@ -1909,7 +1909,7 @@ class BufferList {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
1912
|
-
class Source extends
|
|
1912
|
+
class Source extends oi {
|
|
1913
1913
|
constructor(e, t, r) {
|
|
1914
1914
|
super();
|
|
1915
1915
|
this.header = t;
|
|
@@ -1926,12 +1926,12 @@ class Source extends ai {
|
|
|
1926
1926
|
e(null);
|
|
1927
1927
|
}
|
|
1928
1928
|
_predestroy() {
|
|
1929
|
-
this._parent.destroy(
|
|
1929
|
+
this._parent.destroy(ui(this));
|
|
1930
1930
|
}
|
|
1931
1931
|
_detach() {
|
|
1932
1932
|
if (this._parent._stream === this) {
|
|
1933
1933
|
this._parent._stream = null;
|
|
1934
|
-
this._parent._missing =
|
|
1934
|
+
this._parent._missing = _i(this.header.size);
|
|
1935
1935
|
this._parent._update();
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
@@ -1941,7 +1941,7 @@ class Source extends ai {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
|
-
class Extract extends
|
|
1944
|
+
class Extract extends ai {
|
|
1945
1945
|
constructor(e) {
|
|
1946
1946
|
super(e);
|
|
1947
1947
|
if (!e) e = {};
|
|
@@ -1951,7 +1951,7 @@ class Extract extends si {
|
|
|
1951
1951
|
this._stream = null;
|
|
1952
1952
|
this._missing = 0;
|
|
1953
1953
|
this._longHeader = false;
|
|
1954
|
-
this._callback =
|
|
1954
|
+
this._callback = pi;
|
|
1955
1955
|
this._locked = false;
|
|
1956
1956
|
this._finished = false;
|
|
1957
1957
|
this._pax = null;
|
|
@@ -1975,7 +1975,7 @@ class Extract extends si {
|
|
|
1975
1975
|
if (this._locked) return false;
|
|
1976
1976
|
this._offset = this._buffer.shifted;
|
|
1977
1977
|
try {
|
|
1978
|
-
this._header =
|
|
1978
|
+
this._header = hi.decode(this._buffer.shift(512), this._filenameEncoding, this._allowUnknownFormat);
|
|
1979
1979
|
} catch (e) {
|
|
1980
1980
|
this._continueWrite(e);
|
|
1981
1981
|
return false;
|
|
@@ -2021,25 +2021,25 @@ class Extract extends si {
|
|
|
2021
2021
|
_decodeLongHeader(e) {
|
|
2022
2022
|
switch (this._header.type) {
|
|
2023
2023
|
case "gnu-long-path":
|
|
2024
|
-
this._gnuLongPath =
|
|
2024
|
+
this._gnuLongPath = hi.decodeLongPath(e, this._filenameEncoding);
|
|
2025
2025
|
break;
|
|
2026
2026
|
|
|
2027
2027
|
case "gnu-long-link-path":
|
|
2028
|
-
this._gnuLongLinkPath =
|
|
2028
|
+
this._gnuLongLinkPath = hi.decodeLongPath(e, this._filenameEncoding);
|
|
2029
2029
|
break;
|
|
2030
2030
|
|
|
2031
2031
|
case "pax-global-header":
|
|
2032
|
-
this._paxGlobal =
|
|
2032
|
+
this._paxGlobal = hi.decodePax(e);
|
|
2033
2033
|
break;
|
|
2034
2034
|
|
|
2035
2035
|
case "pax-header":
|
|
2036
|
-
this._pax = this._paxGlobal === null ?
|
|
2036
|
+
this._pax = this._paxGlobal === null ? hi.decodePax(e) : Object.assign({}, this._paxGlobal, hi.decodePax(e));
|
|
2037
2037
|
break;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
_consumeLongHeader() {
|
|
2041
2041
|
this._longHeader = false;
|
|
2042
|
-
this._missing =
|
|
2042
|
+
this._missing = _i(this._header.size);
|
|
2043
2043
|
const e = this._buffer.shift(this._header.size);
|
|
2044
2044
|
try {
|
|
2045
2045
|
this._decodeLongHeader(e);
|
|
@@ -2087,7 +2087,7 @@ class Extract extends si {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
_continueWrite(e) {
|
|
2089
2089
|
const t = this._callback;
|
|
2090
|
-
this._callback =
|
|
2090
|
+
this._callback = pi;
|
|
2091
2091
|
t(e);
|
|
2092
2092
|
}
|
|
2093
2093
|
_write(e, t) {
|
|
@@ -2103,7 +2103,7 @@ class Extract extends si {
|
|
|
2103
2103
|
this._continueWrite(null);
|
|
2104
2104
|
}
|
|
2105
2105
|
_destroy(e) {
|
|
2106
|
-
if (this._stream) this._stream.destroy(
|
|
2106
|
+
if (this._stream) this._stream.destroy(ui(this));
|
|
2107
2107
|
e(null);
|
|
2108
2108
|
}
|
|
2109
2109
|
[Symbol.asyncIterator]() {
|
|
@@ -2163,7 +2163,7 @@ class Extract extends si {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
function u(e, s, a) {
|
|
2165
2165
|
n = a;
|
|
2166
|
-
s.on("error",
|
|
2166
|
+
s.on("error", pi);
|
|
2167
2167
|
if (t) {
|
|
2168
2168
|
t({
|
|
2169
2169
|
value: s,
|
|
@@ -2202,26 +2202,26 @@ class Extract extends si {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
|
|
2205
|
-
var
|
|
2205
|
+
var fi = function e(t) {
|
|
2206
2206
|
return new Extract(t);
|
|
2207
2207
|
};
|
|
2208
2208
|
|
|
2209
|
-
function
|
|
2209
|
+
function pi() {}
|
|
2210
2210
|
|
|
2211
|
-
function
|
|
2211
|
+
function _i(e) {
|
|
2212
2212
|
e &= 511;
|
|
2213
2213
|
return e && 512 - e;
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
|
-
const
|
|
2216
|
+
const mi = x.getDefaultExportFromCjs(fi);
|
|
2217
2217
|
|
|
2218
|
-
var
|
|
2218
|
+
var gi = {
|
|
2219
2219
|
exports: {}
|
|
2220
2220
|
};
|
|
2221
2221
|
|
|
2222
|
-
var
|
|
2222
|
+
var bi = gi.exports;
|
|
2223
2223
|
|
|
2224
|
-
const
|
|
2224
|
+
const yi = {
|
|
2225
2225
|
S_IFMT: 61440,
|
|
2226
2226
|
S_IFDIR: 16384,
|
|
2227
2227
|
S_IFCHR: 8192,
|
|
@@ -2231,33 +2231,33 @@ const bi = {
|
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
2233
|
try {
|
|
2234
|
-
|
|
2234
|
+
gi.exports = require("fs").constants || yi;
|
|
2235
2235
|
} catch {
|
|
2236
|
-
|
|
2236
|
+
gi.exports = yi;
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
|
-
var
|
|
2239
|
+
var xi = gi.exports;
|
|
2240
2240
|
|
|
2241
|
-
const
|
|
2241
|
+
const Si = x.getDefaultExportFromCjs(xi);
|
|
2242
2242
|
|
|
2243
|
-
const {Readable:
|
|
2243
|
+
const {Readable: wi, Writable: ki, getStreamError: qi} = Jt;
|
|
2244
2244
|
|
|
2245
|
-
const
|
|
2245
|
+
const ji = Dr;
|
|
2246
2246
|
|
|
2247
|
-
const
|
|
2247
|
+
const vi = xi;
|
|
2248
2248
|
|
|
2249
|
-
const
|
|
2249
|
+
const Di = Or;
|
|
2250
2250
|
|
|
2251
|
-
const
|
|
2251
|
+
const Pi = 493;
|
|
2252
2252
|
|
|
2253
|
-
const
|
|
2253
|
+
const Oi = 420;
|
|
2254
2254
|
|
|
2255
|
-
const
|
|
2255
|
+
const Ii = ji.alloc(1024);
|
|
2256
2256
|
|
|
2257
|
-
class Sink extends
|
|
2257
|
+
class Sink extends ki {
|
|
2258
2258
|
constructor(e, t, r) {
|
|
2259
2259
|
super({
|
|
2260
|
-
mapWritable:
|
|
2260
|
+
mapWritable: Ai,
|
|
2261
2261
|
eagerOpen: true
|
|
2262
2262
|
});
|
|
2263
2263
|
this.written = 0;
|
|
@@ -2300,7 +2300,7 @@ class Sink extends wi {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
_write(e, t) {
|
|
2302
2302
|
if (this._isLinkname) {
|
|
2303
|
-
this._linkname = this._linkname ?
|
|
2303
|
+
this._linkname = this._linkname ? ji.concat([ this._linkname, e ]) : e;
|
|
2304
2304
|
return t(null);
|
|
2305
2305
|
}
|
|
2306
2306
|
if (this._isVoid) {
|
|
@@ -2317,10 +2317,10 @@ class Sink extends wi {
|
|
|
2317
2317
|
if (this._finished) return;
|
|
2318
2318
|
this._finished = true;
|
|
2319
2319
|
if (this._isLinkname) {
|
|
2320
|
-
this.header.linkname = this._linkname ?
|
|
2320
|
+
this.header.linkname = this._linkname ? ji.toString(this._linkname, "utf-8") : "";
|
|
2321
2321
|
this._pack._encode(this.header);
|
|
2322
2322
|
}
|
|
2323
|
-
|
|
2323
|
+
Li(this._pack, this.header.size);
|
|
2324
2324
|
this._pack._done(this);
|
|
2325
2325
|
}
|
|
2326
2326
|
_final(e) {
|
|
@@ -2331,7 +2331,7 @@ class Sink extends wi {
|
|
|
2331
2331
|
e(null);
|
|
2332
2332
|
}
|
|
2333
2333
|
_getError() {
|
|
2334
|
-
return
|
|
2334
|
+
return qi(this) || new Error("tar entry destroyed");
|
|
2335
2335
|
}
|
|
2336
2336
|
_predestroy() {
|
|
2337
2337
|
this._pack.destroy(this._getError());
|
|
@@ -2343,10 +2343,10 @@ class Sink extends wi {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
}
|
|
2345
2345
|
|
|
2346
|
-
class Pack extends
|
|
2346
|
+
class Pack extends wi {
|
|
2347
2347
|
constructor(e) {
|
|
2348
2348
|
super(e);
|
|
2349
|
-
this._drain =
|
|
2349
|
+
this._drain = Ei;
|
|
2350
2350
|
this._finalized = false;
|
|
2351
2351
|
this._finalizing = false;
|
|
2352
2352
|
this._pending = [];
|
|
@@ -2358,16 +2358,16 @@ class Pack extends Si {
|
|
|
2358
2358
|
r = t;
|
|
2359
2359
|
t = null;
|
|
2360
2360
|
}
|
|
2361
|
-
if (!r) r =
|
|
2361
|
+
if (!r) r = Ei;
|
|
2362
2362
|
if (!e.size || e.type === "symlink") e.size = 0;
|
|
2363
|
-
if (!e.type) e.type =
|
|
2364
|
-
if (!e.mode) e.mode = e.type === "directory" ?
|
|
2363
|
+
if (!e.type) e.type = Ci(e.mode);
|
|
2364
|
+
if (!e.mode) e.mode = e.type === "directory" ? Pi : Oi;
|
|
2365
2365
|
if (!e.uid) e.uid = 0;
|
|
2366
2366
|
if (!e.gid) e.gid = 0;
|
|
2367
2367
|
if (!e.mtime) e.mtime = new Date;
|
|
2368
|
-
if (typeof t === "string") t =
|
|
2368
|
+
if (typeof t === "string") t = ji.from(t);
|
|
2369
2369
|
const i = new Sink(this, e, r);
|
|
2370
|
-
if (
|
|
2370
|
+
if (ji.isBuffer(t)) {
|
|
2371
2371
|
e.size = t.byteLength;
|
|
2372
2372
|
i.write(t);
|
|
2373
2373
|
i.end();
|
|
@@ -2385,7 +2385,7 @@ class Pack extends Si {
|
|
|
2385
2385
|
}
|
|
2386
2386
|
if (this._finalized) return;
|
|
2387
2387
|
this._finalized = true;
|
|
2388
|
-
this.push(
|
|
2388
|
+
this.push(Ii);
|
|
2389
2389
|
this.push(null);
|
|
2390
2390
|
}
|
|
2391
2391
|
_done(e) {
|
|
@@ -2396,7 +2396,7 @@ class Pack extends Si {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
_encode(e) {
|
|
2398
2398
|
if (!e.pax) {
|
|
2399
|
-
const t =
|
|
2399
|
+
const t = Di.encode(e);
|
|
2400
2400
|
if (t) {
|
|
2401
2401
|
this.push(t);
|
|
2402
2402
|
return;
|
|
@@ -2405,7 +2405,7 @@ class Pack extends Si {
|
|
|
2405
2405
|
this._encodePax(e);
|
|
2406
2406
|
}
|
|
2407
2407
|
_encodePax(e) {
|
|
2408
|
-
const t =
|
|
2408
|
+
const t = Di.encodePax({
|
|
2409
2409
|
name: e.name,
|
|
2410
2410
|
linkname: e.linkname,
|
|
2411
2411
|
pax: e.pax
|
|
@@ -2424,20 +2424,20 @@ class Pack extends Si {
|
|
|
2424
2424
|
devmajor: e.devmajor,
|
|
2425
2425
|
devminor: e.devminor
|
|
2426
2426
|
};
|
|
2427
|
-
this.push(
|
|
2427
|
+
this.push(Di.encode(r));
|
|
2428
2428
|
this.push(t);
|
|
2429
|
-
|
|
2429
|
+
Li(this, t.byteLength);
|
|
2430
2430
|
r.size = e.size;
|
|
2431
2431
|
r.type = e.type;
|
|
2432
|
-
this.push(
|
|
2432
|
+
this.push(Di.encode(r));
|
|
2433
2433
|
}
|
|
2434
2434
|
_doDrain() {
|
|
2435
2435
|
const e = this._drain;
|
|
2436
|
-
this._drain =
|
|
2436
|
+
this._drain = Ei;
|
|
2437
2437
|
e();
|
|
2438
2438
|
}
|
|
2439
2439
|
_predestroy() {
|
|
2440
|
-
const e =
|
|
2440
|
+
const e = qi(this);
|
|
2441
2441
|
if (this._stream) this._stream.destroy(e);
|
|
2442
2442
|
while (this._pending.length) {
|
|
2443
2443
|
const t = this._pending.shift();
|
|
@@ -2452,52 +2452,52 @@ class Pack extends Si {
|
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
|
-
var
|
|
2455
|
+
var Ti = function e(t) {
|
|
2456
2456
|
return new Pack(t);
|
|
2457
2457
|
};
|
|
2458
2458
|
|
|
2459
|
-
function
|
|
2460
|
-
switch (e &
|
|
2461
|
-
case
|
|
2459
|
+
function Ci(e) {
|
|
2460
|
+
switch (e & vi.S_IFMT) {
|
|
2461
|
+
case vi.S_IFBLK:
|
|
2462
2462
|
return "block-device";
|
|
2463
2463
|
|
|
2464
|
-
case
|
|
2464
|
+
case vi.S_IFCHR:
|
|
2465
2465
|
return "character-device";
|
|
2466
2466
|
|
|
2467
|
-
case
|
|
2467
|
+
case vi.S_IFDIR:
|
|
2468
2468
|
return "directory";
|
|
2469
2469
|
|
|
2470
|
-
case
|
|
2470
|
+
case vi.S_IFIFO:
|
|
2471
2471
|
return "fifo";
|
|
2472
2472
|
|
|
2473
|
-
case
|
|
2473
|
+
case vi.S_IFLNK:
|
|
2474
2474
|
return "symlink";
|
|
2475
2475
|
}
|
|
2476
2476
|
return "file";
|
|
2477
2477
|
}
|
|
2478
2478
|
|
|
2479
|
-
function
|
|
2479
|
+
function Ei() {}
|
|
2480
2480
|
|
|
2481
|
-
function
|
|
2481
|
+
function Li(e, t) {
|
|
2482
2482
|
t &= 511;
|
|
2483
|
-
if (t) e.push(
|
|
2483
|
+
if (t) e.push(Ii.subarray(0, 512 - t));
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
|
-
function
|
|
2487
|
-
return
|
|
2486
|
+
function Ai(e) {
|
|
2487
|
+
return ji.isBuffer(e) ? e : ji.from(e);
|
|
2488
2488
|
}
|
|
2489
2489
|
|
|
2490
|
-
const
|
|
2490
|
+
const Ni = x.getDefaultExportFromCjs(Ti);
|
|
2491
2491
|
|
|
2492
|
-
var
|
|
2492
|
+
var Fi = L.extract = fi;
|
|
2493
2493
|
|
|
2494
|
-
var
|
|
2494
|
+
var Bi = L.pack = Ti;
|
|
2495
2495
|
|
|
2496
|
-
var
|
|
2496
|
+
var zi = {
|
|
2497
2497
|
exports: {}
|
|
2498
2498
|
};
|
|
2499
2499
|
|
|
2500
|
-
var
|
|
2500
|
+
var Mi = zi.exports;
|
|
2501
2501
|
|
|
2502
2502
|
(function(e, t) {
|
|
2503
2503
|
(function(r) {
|
|
@@ -2537,28 +2537,28 @@ var zi = Bi.exports;
|
|
|
2537
2537
|
r.isBase64 = i;
|
|
2538
2538
|
}
|
|
2539
2539
|
})(x.commonjsGlobal);
|
|
2540
|
-
})(
|
|
2540
|
+
})(zi, zi.exports);
|
|
2541
2541
|
|
|
2542
|
-
var
|
|
2542
|
+
var Ri = zi.exports;
|
|
2543
2543
|
|
|
2544
|
-
const
|
|
2544
|
+
const Wi = x.getDefaultExportFromCjs(Ri);
|
|
2545
2545
|
|
|
2546
|
-
function
|
|
2546
|
+
function Ui({onlyFirst: e = false} = {}) {
|
|
2547
2547
|
const t = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
2548
2548
|
const r = [ `[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${t})`, "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))" ].join("|");
|
|
2549
2549
|
return new RegExp(r, e ? undefined : "g");
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
|
-
const
|
|
2552
|
+
const Hi = Ui();
|
|
2553
2553
|
|
|
2554
|
-
function
|
|
2554
|
+
function $i(e) {
|
|
2555
2555
|
if (typeof e !== "string") {
|
|
2556
2556
|
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
|
2557
2557
|
}
|
|
2558
|
-
return e.replace(
|
|
2558
|
+
return e.replace(Hi, "");
|
|
2559
2559
|
}
|
|
2560
2560
|
|
|
2561
|
-
function
|
|
2561
|
+
function Zi(e) {
|
|
2562
2562
|
if (typeof e !== "string") {
|
|
2563
2563
|
throw new TypeError(`Expected a string, got ${typeof e}`);
|
|
2564
2564
|
}
|
|
@@ -2708,31 +2708,38 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2708
2708
|
f.createInterface({
|
|
2709
2709
|
input: i
|
|
2710
2710
|
}).on("line", (t => {
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
if (r.aux
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2711
|
+
try {
|
|
2712
|
+
const r = JSON.parse(t);
|
|
2713
|
+
if (r.error) s = new g.DockerImageBuildException(r.error);
|
|
2714
|
+
if (typeof r.aux !== "string") {
|
|
2715
|
+
if (r.aux) n = r.aux.ID;
|
|
2716
|
+
} else if (Wi(r.aux) && !r.stream) {
|
|
2717
|
+
r.stream = Buffer.from(r.aux, "base64").toString();
|
|
2718
|
+
}
|
|
2719
|
+
if (r.stream) {
|
|
2720
|
+
a = `${a}${r.stream}`;
|
|
2721
|
+
} else if (Wi(r.aux)) {
|
|
2722
|
+
a = `${a}${Buffer.from(r.aux, "base64").toString("ascii")}`;
|
|
2723
|
+
}
|
|
2724
|
+
const i = Zi($i(a));
|
|
2725
|
+
i.replace(/[\f\n\r\t\v]/g, "\n").split("\n").forEach((t => {
|
|
2726
|
+
const i = Buffer.from(t).toString("ascii");
|
|
2727
|
+
if (i.startsWith(Buffer.from([ 8, 239 ]).toString("ascii"))) return;
|
|
2728
|
+
let n = t.replace(/[^\u4e00-\u9fa5^a-z^A-Z^0-9^\[^\]^\/^:^\s+^\-^\\^&^\.^@^|^"^*^_\\n]/g, "").trim();
|
|
2729
|
+
if (!n || n.length < 2) return;
|
|
2730
|
+
if (n.startsWith("Gsha256")) n = n.substring(72);
|
|
2731
|
+
if (n.startsWith("r")) n = n.substring(1);
|
|
2732
|
+
if (n.startsWith("Uwriting")) n = n.substring(1);
|
|
2733
|
+
if (n.startsWith("Gsha256")) n = n.substring(72);
|
|
2734
|
+
if (n.substring(1, 2) === "[") n = n.substring(1);
|
|
2735
|
+
if (/[A-Z]/.test(n.substring(1, 2)) && !/[A-Z]/.test(n.substring(0, 1))) n = n.substring(1);
|
|
2736
|
+
r.stream = n;
|
|
2737
|
+
if (e.outputCallback) e.outputCallback(r);
|
|
2738
|
+
}));
|
|
2739
|
+
a = "";
|
|
2740
|
+
} catch (e) {
|
|
2741
|
+
T.DevNull(e);
|
|
2722
2742
|
}
|
|
2723
|
-
const i = $i(Hi(a));
|
|
2724
|
-
i.replace(/[\f\n\r\t\v]/g, "\n").split("\n").forEach((t => {
|
|
2725
|
-
const i = Buffer.from(t).toString("ascii");
|
|
2726
|
-
if (i.startsWith(Buffer.from([ 8, 239 ]).toString("ascii"))) return;
|
|
2727
|
-
let n = t.replace(/[^\u4e00-\u9fa5^a-z^A-Z^0-9^\[^\]^\/^:^\s+^\\n]/g, "").trim();
|
|
2728
|
-
if (!n || n.length < 2) return;
|
|
2729
|
-
if (n.startsWith("Gsha256")) n = n.substring(72);
|
|
2730
|
-
if (n.startsWith("r")) n = n.substring(1);
|
|
2731
|
-
if (n.startsWith("Uwriting")) n = n.substring(1);
|
|
2732
|
-
if (n.startsWith("Gsha256")) n = n.substring(72);
|
|
2733
|
-
r.stream = n;
|
|
2734
|
-
if (e.outputCallback) e.outputCallback(r);
|
|
2735
|
-
}));
|
|
2736
2743
|
})).once("close", (() => {
|
|
2737
2744
|
if (s) return r(s);
|
|
2738
2745
|
if (!n) return r(new g.DockerImageBuildException("Build image failed"));
|
|
@@ -2750,7 +2757,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2750
2757
|
const i = new k.PassThrough;
|
|
2751
2758
|
t.pipe(r);
|
|
2752
2759
|
t.pipe(i);
|
|
2753
|
-
const n =
|
|
2760
|
+
const n = Fi();
|
|
2754
2761
|
let s;
|
|
2755
2762
|
n.on("entry", ((e, t, r) => {
|
|
2756
2763
|
if (e.name === "manifest.json") {
|