lakutata 2.0.17 → 2.0.18
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 +6 -2
- package/src/components/docker/Docker.cjs +217 -174
- package/src/components/docker/Docker.mjs +187 -144
- package/vendor/Package.16.cjs +411 -401
|
@@ -30,9 +30,9 @@ const h = require("./options/image/ImagePullOptions.cjs");
|
|
|
30
30
|
|
|
31
31
|
const d = require("../../decorators/dto/Accept.cjs");
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const f = require("node:readline");
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const p = require("./exceptions/DockerImagePullException.cjs");
|
|
36
36
|
|
|
37
37
|
const _ = require("../../lib/helpers/IsAbortError.cjs");
|
|
38
38
|
|
|
@@ -50,17 +50,17 @@ require("../../../vendor/Package.10.cjs");
|
|
|
50
50
|
|
|
51
51
|
const S = require("events");
|
|
52
52
|
|
|
53
|
-
const
|
|
53
|
+
const w = require("node:fs");
|
|
54
54
|
|
|
55
|
-
const
|
|
55
|
+
const k = require("node:stream");
|
|
56
56
|
|
|
57
57
|
const q = require("./options/network/NetworkCreateOptions.cjs");
|
|
58
58
|
|
|
59
59
|
const j = require("../../lib/helpers/As.cjs");
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const v = require("../../lib/core/Time.cjs");
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const D = require("./exceptions/DockerNetworkNotFoundException.cjs");
|
|
64
64
|
|
|
65
65
|
const P = require("./options/container/ContainerSettingOptions.cjs");
|
|
66
66
|
|
|
@@ -303,9 +303,9 @@ function N() {
|
|
|
303
303
|
|
|
304
304
|
var F = typeof process !== "undefined" && typeof process.nextTick === "function" ? process.nextTick.bind(process) : N();
|
|
305
305
|
|
|
306
|
-
const
|
|
306
|
+
const B = x.getDefaultExportFromCjs(F);
|
|
307
307
|
|
|
308
|
-
var
|
|
308
|
+
var z = 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,9 +340,9 @@ var B = class FixedFIFO {
|
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
|
|
343
|
-
const
|
|
343
|
+
const M = x.getDefaultExportFromCjs(z);
|
|
344
344
|
|
|
345
|
-
const R =
|
|
345
|
+
const R = z;
|
|
346
346
|
|
|
347
347
|
var W = class FastFIFO {
|
|
348
348
|
constructor(e) {
|
|
@@ -391,13 +391,13 @@ const {EventEmitter: H} = C.default;
|
|
|
391
391
|
|
|
392
392
|
const $ = new Error("Stream was destroyed");
|
|
393
393
|
|
|
394
|
-
const
|
|
394
|
+
const Z = new Error("Premature close");
|
|
395
395
|
|
|
396
|
-
const
|
|
396
|
+
const G = F;
|
|
397
397
|
|
|
398
|
-
const
|
|
398
|
+
const K = W;
|
|
399
399
|
|
|
400
|
-
const
|
|
400
|
+
const V = (1 << 28) - 1;
|
|
401
401
|
|
|
402
402
|
const J = 1;
|
|
403
403
|
|
|
@@ -407,9 +407,9 @@ const X = 4;
|
|
|
407
407
|
|
|
408
408
|
const Q = 8;
|
|
409
409
|
|
|
410
|
-
const ee =
|
|
410
|
+
const ee = V ^ J;
|
|
411
411
|
|
|
412
|
-
const te =
|
|
412
|
+
const te = V ^ Y;
|
|
413
413
|
|
|
414
414
|
const re = 1 << 4;
|
|
415
415
|
|
|
@@ -433,15 +433,15 @@ const he = 512 << 4;
|
|
|
433
433
|
|
|
434
434
|
const de = 1024 << 4;
|
|
435
435
|
|
|
436
|
-
const
|
|
436
|
+
const fe = 2048 << 4;
|
|
437
437
|
|
|
438
|
-
const
|
|
438
|
+
const pe = 4096 << 4;
|
|
439
439
|
|
|
440
440
|
const _e = 8192 << 4;
|
|
441
441
|
|
|
442
442
|
const me = ae | oe;
|
|
443
443
|
|
|
444
|
-
const ge = re |
|
|
444
|
+
const ge = re | pe;
|
|
445
445
|
|
|
446
446
|
const be = ne | re;
|
|
447
447
|
|
|
@@ -449,29 +449,29 @@ const ye = ce | se;
|
|
|
449
449
|
|
|
450
450
|
const xe = ae | _e;
|
|
451
451
|
|
|
452
|
-
const Se =
|
|
452
|
+
const Se = V ^ re;
|
|
453
453
|
|
|
454
|
-
const
|
|
454
|
+
const we = V ^ ne;
|
|
455
455
|
|
|
456
|
-
const
|
|
456
|
+
const ke = V ^ (ne | pe);
|
|
457
457
|
|
|
458
|
-
const qe =
|
|
458
|
+
const qe = V ^ pe;
|
|
459
459
|
|
|
460
|
-
const je =
|
|
460
|
+
const je = V ^ ae;
|
|
461
461
|
|
|
462
|
-
const
|
|
462
|
+
const ve = V ^ (se | he);
|
|
463
463
|
|
|
464
|
-
const
|
|
464
|
+
const De = V ^ ue;
|
|
465
465
|
|
|
466
|
-
const Pe =
|
|
466
|
+
const Pe = V ^ me;
|
|
467
467
|
|
|
468
|
-
const Oe =
|
|
468
|
+
const Oe = V ^ fe;
|
|
469
469
|
|
|
470
|
-
const Ie =
|
|
470
|
+
const Ie = V ^ ie;
|
|
471
471
|
|
|
472
|
-
const Te =
|
|
472
|
+
const Te = V ^ _e;
|
|
473
473
|
|
|
474
|
-
const Ce =
|
|
474
|
+
const Ce = V ^ xe;
|
|
475
475
|
|
|
476
476
|
const Ee = 1 << 18;
|
|
477
477
|
|
|
@@ -483,35 +483,35 @@ const Ne = 8 << 18;
|
|
|
483
483
|
|
|
484
484
|
const Fe = 16 << 18;
|
|
485
485
|
|
|
486
|
-
const
|
|
486
|
+
const Be = 32 << 18;
|
|
487
487
|
|
|
488
|
-
const
|
|
488
|
+
const ze = 64 << 18;
|
|
489
489
|
|
|
490
|
-
const
|
|
490
|
+
const Me = 128 << 18;
|
|
491
491
|
|
|
492
492
|
const Re = 256 << 18;
|
|
493
493
|
|
|
494
494
|
const We = 512 << 18;
|
|
495
495
|
|
|
496
|
-
const Ue =
|
|
496
|
+
const Ue = V ^ (Ee | Re);
|
|
497
497
|
|
|
498
|
-
const He =
|
|
498
|
+
const He = V ^ Ae;
|
|
499
499
|
|
|
500
|
-
const $e =
|
|
500
|
+
const $e = V ^ We;
|
|
501
501
|
|
|
502
|
-
const
|
|
502
|
+
const Ze = V ^ Fe;
|
|
503
503
|
|
|
504
|
-
const
|
|
504
|
+
const Ge = V ^ Ne;
|
|
505
505
|
|
|
506
|
-
const
|
|
506
|
+
const Ke = V ^ Me;
|
|
507
507
|
|
|
508
|
-
const
|
|
508
|
+
const Ve = V ^ Le;
|
|
509
509
|
|
|
510
510
|
const Je = re | Ee;
|
|
511
511
|
|
|
512
|
-
const Ye =
|
|
512
|
+
const Ye = V ^ Je;
|
|
513
513
|
|
|
514
|
-
const Xe = de |
|
|
514
|
+
const Xe = de | Be;
|
|
515
515
|
|
|
516
516
|
const Qe = X | Q | Y;
|
|
517
517
|
|
|
@@ -519,9 +519,9 @@ const et = Qe | J;
|
|
|
519
519
|
|
|
520
520
|
const tt = Qe | Xe;
|
|
521
521
|
|
|
522
|
-
const rt = He &
|
|
522
|
+
const rt = He & we;
|
|
523
523
|
|
|
524
|
-
const it =
|
|
524
|
+
const it = Me | fe;
|
|
525
525
|
|
|
526
526
|
const nt = it & Ye;
|
|
527
527
|
|
|
@@ -535,15 +535,15 @@ const ut = et | ue | se;
|
|
|
535
535
|
|
|
536
536
|
const lt = et | ce | se | he;
|
|
537
537
|
|
|
538
|
-
const ct = et | re | ue | de |
|
|
538
|
+
const ct = et | re | ue | de | pe | _e;
|
|
539
539
|
|
|
540
540
|
const ht = Qe | ue | de;
|
|
541
541
|
|
|
542
|
-
const dt = ie | et |
|
|
542
|
+
const dt = ie | et | fe | ne;
|
|
543
543
|
|
|
544
|
-
const
|
|
544
|
+
const ft = et | We | Be;
|
|
545
545
|
|
|
546
|
-
const
|
|
546
|
+
const pt = Ne | Fe;
|
|
547
547
|
|
|
548
548
|
const _t = Ne | Ee;
|
|
549
549
|
|
|
@@ -555,18 +555,18 @@ const bt = Ae | Ee;
|
|
|
555
555
|
|
|
556
556
|
const yt = Ee | Re;
|
|
557
557
|
|
|
558
|
-
const xt = et | We | _t |
|
|
558
|
+
const xt = et | We | _t | Be;
|
|
559
559
|
|
|
560
|
-
const St = Fe | Qe | We |
|
|
560
|
+
const St = Fe | Qe | We | Be;
|
|
561
561
|
|
|
562
|
-
const
|
|
562
|
+
const wt = Le | et | Me | Ae;
|
|
563
563
|
|
|
564
|
-
const
|
|
564
|
+
const kt = 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 K;
|
|
570
570
|
this.highWaterMark = t;
|
|
571
571
|
this.buffered = 0;
|
|
572
572
|
this.error = null;
|
|
@@ -574,11 +574,11 @@ class WritableState {
|
|
|
574
574
|
this.drains = null;
|
|
575
575
|
this.byteLength = s || n || $t;
|
|
576
576
|
this.map = i || r;
|
|
577
|
-
this.afterWrite =
|
|
577
|
+
this.afterWrite = Dt.bind(this);
|
|
578
578
|
this.afterUpdateNextTick = It.bind(this);
|
|
579
579
|
}
|
|
580
580
|
get ended() {
|
|
581
|
-
return (this.stream._duplexState &
|
|
581
|
+
return (this.stream._duplexState & Be) !== 0;
|
|
582
582
|
}
|
|
583
583
|
push(e) {
|
|
584
584
|
if (this.map !== null) e = this.map(e);
|
|
@@ -588,13 +588,13 @@ class WritableState {
|
|
|
588
588
|
this.stream._duplexState |= Ne;
|
|
589
589
|
return true;
|
|
590
590
|
}
|
|
591
|
-
this.stream._duplexState |=
|
|
591
|
+
this.stream._duplexState |= pt;
|
|
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 &= Ge;
|
|
598
598
|
return e;
|
|
599
599
|
}
|
|
600
600
|
end(e) {
|
|
@@ -622,7 +622,7 @@ class WritableState {
|
|
|
622
622
|
}
|
|
623
623
|
if ((e._duplexState & bt) === 0) this.updateNonPrimary();
|
|
624
624
|
} while (this.continueUpdate() === true);
|
|
625
|
-
e._duplexState &=
|
|
625
|
+
e._duplexState &= Ve;
|
|
626
626
|
}
|
|
627
627
|
updateNonPrimary() {
|
|
628
628
|
const e = this.stream;
|
|
@@ -634,7 +634,7 @@ class WritableState {
|
|
|
634
634
|
if ((e._duplexState & Qe) === X) {
|
|
635
635
|
if ((e._duplexState & it) === 0) {
|
|
636
636
|
e._duplexState |= Je;
|
|
637
|
-
e._destroy(
|
|
637
|
+
e._destroy(vt.bind(this));
|
|
638
638
|
}
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
@@ -644,24 +644,24 @@ class WritableState {
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
continueUpdate() {
|
|
647
|
-
if ((this.stream._duplexState &
|
|
648
|
-
this.stream._duplexState &=
|
|
647
|
+
if ((this.stream._duplexState & Me) === 0) return false;
|
|
648
|
+
this.stream._duplexState &= Ke;
|
|
649
649
|
return true;
|
|
650
650
|
}
|
|
651
651
|
updateCallback() {
|
|
652
|
-
if ((this.stream._duplexState &
|
|
652
|
+
if ((this.stream._duplexState & wt) === Ae) this.update(); else this.updateNextTick();
|
|
653
653
|
}
|
|
654
654
|
updateNextTick() {
|
|
655
|
-
if ((this.stream._duplexState &
|
|
656
|
-
this.stream._duplexState |=
|
|
657
|
-
if ((this.stream._duplexState & Le) === 0)
|
|
655
|
+
if ((this.stream._duplexState & Me) !== 0) return;
|
|
656
|
+
this.stream._duplexState |= Me;
|
|
657
|
+
if ((this.stream._duplexState & Le) === 0) G(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 K;
|
|
665
665
|
this.highWaterMark = t === 0 ? 1 : t;
|
|
666
666
|
this.buffered = 0;
|
|
667
667
|
this.readAhead = t > 0;
|
|
@@ -682,10 +682,10 @@ class ReadableState {
|
|
|
682
682
|
this.stream._duplexState |= oe;
|
|
683
683
|
this.pipeTo = e;
|
|
684
684
|
this.pipeline = new Pipeline(this.stream, e, t);
|
|
685
|
-
if (t) this.stream.on("error",
|
|
685
|
+
if (t) this.stream.on("error", Zt);
|
|
686
686
|
if (Rt(e)) {
|
|
687
687
|
e._writableState.pipeline = this.pipeline;
|
|
688
|
-
if (t) e.on("error",
|
|
688
|
+
if (t) e.on("error", Zt);
|
|
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);
|
|
@@ -702,7 +702,7 @@ class ReadableState {
|
|
|
702
702
|
const t = this.stream;
|
|
703
703
|
if (e === null) {
|
|
704
704
|
this.highWaterMark = 0;
|
|
705
|
-
t._duplexState = (t._duplexState | ue) &
|
|
705
|
+
t._duplexState = (t._duplexState | ue) & ke;
|
|
706
706
|
return false;
|
|
707
707
|
}
|
|
708
708
|
if (this.map !== null) e = this.map(e);
|
|
@@ -714,7 +714,7 @@ class ReadableState {
|
|
|
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 &= ve;
|
|
718
718
|
return e;
|
|
719
719
|
}
|
|
720
720
|
unshift(e) {
|
|
@@ -770,7 +770,7 @@ class ReadableState {
|
|
|
770
770
|
updateNonPrimary() {
|
|
771
771
|
const e = this.stream;
|
|
772
772
|
if ((e._duplexState & ut) === ue) {
|
|
773
|
-
e._duplexState = (e._duplexState | de) &
|
|
773
|
+
e._duplexState = (e._duplexState | de) & De;
|
|
774
774
|
e.emit("end");
|
|
775
775
|
if ((e._duplexState & tt) === Xe) e._duplexState |= X;
|
|
776
776
|
if (this.pipeTo !== null) this.pipeTo.end();
|
|
@@ -778,7 +778,7 @@ class ReadableState {
|
|
|
778
778
|
if ((e._duplexState & Qe) === X) {
|
|
779
779
|
if ((e._duplexState & it) === 0) {
|
|
780
780
|
e._duplexState |= Je;
|
|
781
|
-
e._destroy(
|
|
781
|
+
e._destroy(vt.bind(this));
|
|
782
782
|
}
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
@@ -788,7 +788,7 @@ class ReadableState {
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
continueUpdate() {
|
|
791
|
-
if ((this.stream._duplexState &
|
|
791
|
+
if ((this.stream._duplexState & fe) === 0) return false;
|
|
792
792
|
this.stream._duplexState &= Oe;
|
|
793
793
|
return true;
|
|
794
794
|
}
|
|
@@ -796,9 +796,9 @@ class ReadableState {
|
|
|
796
796
|
if ((this.stream._duplexState & dt) === ne) this.update(); else this.updateNextTick();
|
|
797
797
|
}
|
|
798
798
|
updateNextTick() {
|
|
799
|
-
if ((this.stream._duplexState &
|
|
800
|
-
this.stream._duplexState |=
|
|
801
|
-
if ((this.stream._duplexState & ie) === 0)
|
|
799
|
+
if ((this.stream._duplexState & fe) !== 0) return;
|
|
800
|
+
this.stream._duplexState |= fe;
|
|
801
|
+
if ((this.stream._duplexState & ie) === 0) G(this.afterUpdateNextTick);
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
|
|
@@ -855,7 +855,7 @@ function jt(e) {
|
|
|
855
855
|
const t = this.stream;
|
|
856
856
|
if (e) t.destroy(e);
|
|
857
857
|
if ((t._duplexState & Qe) === 0) {
|
|
858
|
-
t._duplexState |=
|
|
858
|
+
t._duplexState |= Be;
|
|
859
859
|
t.emit("finish");
|
|
860
860
|
}
|
|
861
861
|
if ((t._duplexState & tt) === Xe) {
|
|
@@ -865,7 +865,7 @@ function jt(e) {
|
|
|
865
865
|
if ((t._duplexState & Le) === 0) this.update(); else this.updateNextTick();
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
function
|
|
868
|
+
function vt(e) {
|
|
869
869
|
const t = this.stream;
|
|
870
870
|
if (!e && this.error !== $) e = this.error;
|
|
871
871
|
if (e) t.emit("error", e);
|
|
@@ -880,14 +880,14 @@ function Dt(e) {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
function
|
|
883
|
+
function Dt(e) {
|
|
884
884
|
const t = this.stream;
|
|
885
885
|
if (e) t.destroy(e);
|
|
886
886
|
t._duplexState &= Ue;
|
|
887
887
|
if (this.drains !== null) Tt(this.drains);
|
|
888
888
|
if ((t._duplexState & mt) === Fe) {
|
|
889
|
-
t._duplexState &=
|
|
890
|
-
if ((t._duplexState &
|
|
889
|
+
t._duplexState &= Ze;
|
|
890
|
+
if ((t._duplexState & ze) === ze) {
|
|
891
891
|
t.emit("drain");
|
|
892
892
|
}
|
|
893
893
|
}
|
|
@@ -910,7 +910,7 @@ function Ot() {
|
|
|
910
910
|
|
|
911
911
|
function It() {
|
|
912
912
|
if ((this.stream._duplexState & Le) === 0) {
|
|
913
|
-
this.stream._duplexState &=
|
|
913
|
+
this.stream._duplexState &= Ke;
|
|
914
914
|
this.update();
|
|
915
915
|
}
|
|
916
916
|
}
|
|
@@ -929,7 +929,7 @@ function Ct(e) {
|
|
|
929
929
|
if (e) t.destroy(e);
|
|
930
930
|
if ((t._duplexState & X) === 0) {
|
|
931
931
|
if ((t._duplexState & at) === 0) t._duplexState |= ne;
|
|
932
|
-
if ((t._duplexState &
|
|
932
|
+
if ((t._duplexState & ft) === 0) t._duplexState |= Ae;
|
|
933
933
|
t.emit("open");
|
|
934
934
|
}
|
|
935
935
|
t._duplexState &= Ye;
|
|
@@ -959,7 +959,7 @@ function Lt(e) {
|
|
|
959
959
|
}
|
|
960
960
|
if (this._writableState !== null) {
|
|
961
961
|
if (e === "drain") {
|
|
962
|
-
this._duplexState |=
|
|
962
|
+
this._duplexState |= ze;
|
|
963
963
|
this._writableState.updateNextTick();
|
|
964
964
|
}
|
|
965
965
|
}
|
|
@@ -976,7 +976,7 @@ 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", Gt.bind(this));
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
this.on("newListener", Lt);
|
|
@@ -1024,7 +1024,7 @@ class Stream extends H {
|
|
|
1024
1024
|
let At = class Readable extends Stream {
|
|
1025
1025
|
constructor(e) {
|
|
1026
1026
|
super(e);
|
|
1027
|
-
this._duplexState |= J |
|
|
1027
|
+
this._duplexState |= J | Be | _e;
|
|
1028
1028
|
this._readableState = new ReadableState(this, e);
|
|
1029
1029
|
if (e) {
|
|
1030
1030
|
if (this._readableState.readAhead === false) this._duplexState &= Te;
|
|
@@ -1083,7 +1083,7 @@ let At = class Readable extends Stream {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
static from(e, t) {
|
|
1085
1085
|
if (Ut(e)) return e;
|
|
1086
|
-
if (e[
|
|
1086
|
+
if (e[kt]) return this._fromAsyncIterator(e[kt](), t);
|
|
1087
1087
|
if (!Array.isArray(e)) e = e === undefined ? [] : [ e ];
|
|
1088
1088
|
let r = 0;
|
|
1089
1089
|
return new Readable({
|
|
@@ -1100,7 +1100,7 @@ let At = class Readable extends Stream {
|
|
|
1100
1100
|
static isPaused(e) {
|
|
1101
1101
|
return (e._duplexState & ae) === 0;
|
|
1102
1102
|
}
|
|
1103
|
-
[
|
|
1103
|
+
[kt]() {
|
|
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
|
+
[kt]() {
|
|
1115
1115
|
return this;
|
|
1116
1116
|
},
|
|
1117
1117
|
next() {
|
|
@@ -1188,7 +1188,7 @@ let Nt = class Writable extends Stream {
|
|
|
1188
1188
|
static drained(e) {
|
|
1189
1189
|
if (e.destroyed) return Promise.resolve(false);
|
|
1190
1190
|
const t = e._writableState;
|
|
1191
|
-
const r =
|
|
1191
|
+
const r = Kt(e) ? Math.min(1, t.queue.length) : t.queue.length;
|
|
1192
1192
|
const i = r + (e._duplexState & Re ? 1 : 0);
|
|
1193
1193
|
if (i === 0) return Promise.resolve(true);
|
|
1194
1194
|
if (t.drains === null) t.drains = [];
|
|
@@ -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 Bt(...e) {
|
|
1300
|
+
return new Promise(((t, r) => zt(...e, (e => {
|
|
1301
1301
|
if (e) return r(e);
|
|
1302
1302
|
t();
|
|
1303
1303
|
}))));
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
|
-
function
|
|
1306
|
+
function zt(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");
|
|
@@ -1331,7 +1331,7 @@ function Bt(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 : Z))));
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
return s;
|
|
@@ -1339,8 +1339,8 @@ function Bt(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(Z);
|
|
1343
|
+
if (r && e._writableState && !e._writableState.ended) return i(Z);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
function u(e) {
|
|
@@ -1352,12 +1352,12 @@ function Bt(e, ...t) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
function
|
|
1355
|
+
function Mt(e) {
|
|
1356
1356
|
return !!e._readableState || !!e._writableState;
|
|
1357
1357
|
}
|
|
1358
1358
|
|
|
1359
1359
|
function Rt(e) {
|
|
1360
|
-
return typeof e._duplexState === "number" &&
|
|
1360
|
+
return typeof e._duplexState === "number" && Mt(e);
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
1363
1363
|
function Wt(e) {
|
|
@@ -1377,20 +1377,20 @@ function $t(e) {
|
|
|
1377
1377
|
return Ht(e) ? e.byteLength : 1024;
|
|
1378
1378
|
}
|
|
1379
1379
|
|
|
1380
|
-
function
|
|
1380
|
+
function Zt() {}
|
|
1381
1381
|
|
|
1382
|
-
function
|
|
1382
|
+
function Gt() {
|
|
1383
1383
|
this.destroy(new Error("Stream aborted."));
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
-
function
|
|
1386
|
+
function Kt(e) {
|
|
1387
1387
|
return e._writev !== Nt.prototype._writev && e._writev !== Duplex.prototype._writev;
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
|
-
var
|
|
1391
|
-
pipeline:
|
|
1392
|
-
pipelinePromise:
|
|
1393
|
-
isStream:
|
|
1390
|
+
var Vt = {
|
|
1391
|
+
pipeline: zt,
|
|
1392
|
+
pipelinePromise: Bt,
|
|
1393
|
+
isStream: Mt,
|
|
1394
1394
|
isStreamx: Rt,
|
|
1395
1395
|
getStreamError: Wt,
|
|
1396
1396
|
Stream: Stream,
|
|
@@ -1401,7 +1401,7 @@ var Zt = {
|
|
|
1401
1401
|
PassThrough: PassThrough
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
|
-
const Jt = x.getDefaultExportFromCjs(
|
|
1404
|
+
const Jt = x.getDefaultExportFromCjs(Vt);
|
|
1405
1405
|
|
|
1406
1406
|
function Yt(e) {
|
|
1407
1407
|
return Buffer.isBuffer(e) || e instanceof Uint8Array;
|
|
@@ -1467,11 +1467,11 @@ function dr(e) {
|
|
|
1467
1467
|
return _r(e).swap16();
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
function
|
|
1470
|
+
function fr(e) {
|
|
1471
1471
|
return _r(e).swap32();
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
-
function
|
|
1474
|
+
function pr(e) {
|
|
1475
1475
|
return _r(e).swap64();
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
@@ -1504,11 +1504,11 @@ function Sr(e, t, r) {
|
|
|
1504
1504
|
return _r(e).writeInt32LE(t, r);
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
-
function
|
|
1507
|
+
function wr(e, t) {
|
|
1508
1508
|
return _r(e).readDoubleLE(t);
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
|
-
function
|
|
1511
|
+
function kr(e, t) {
|
|
1512
1512
|
return _r(e).readFloatLE(t);
|
|
1513
1513
|
}
|
|
1514
1514
|
|
|
@@ -1520,7 +1520,7 @@ function jr(e, t) {
|
|
|
1520
1520
|
return _r(e).readInt32LE(t);
|
|
1521
1521
|
}
|
|
1522
1522
|
|
|
1523
|
-
var
|
|
1523
|
+
var vr = {
|
|
1524
1524
|
isBuffer: Yt,
|
|
1525
1525
|
isEncoding: Xt,
|
|
1526
1526
|
alloc: Qt,
|
|
@@ -1537,8 +1537,8 @@ var Dr = {
|
|
|
1537
1537
|
indexOf: cr,
|
|
1538
1538
|
lastIndexOf: hr,
|
|
1539
1539
|
swap16: dr,
|
|
1540
|
-
swap32:
|
|
1541
|
-
swap64:
|
|
1540
|
+
swap32: fr,
|
|
1541
|
+
swap64: pr,
|
|
1542
1542
|
toBuffer: _r,
|
|
1543
1543
|
toString: mr,
|
|
1544
1544
|
write: gr,
|
|
@@ -1546,17 +1546,17 @@ var Dr = {
|
|
|
1546
1546
|
writeFloatLE: yr,
|
|
1547
1547
|
writeUInt32LE: xr,
|
|
1548
1548
|
writeInt32LE: Sr,
|
|
1549
|
-
readDoubleLE:
|
|
1550
|
-
readFloatLE:
|
|
1549
|
+
readDoubleLE: wr,
|
|
1550
|
+
readFloatLE: kr,
|
|
1551
1551
|
readUInt32LE: qr,
|
|
1552
1552
|
readInt32LE: jr
|
|
1553
1553
|
};
|
|
1554
1554
|
|
|
1555
|
-
const
|
|
1555
|
+
const Dr = x.getDefaultExportFromCjs(vr);
|
|
1556
1556
|
|
|
1557
1557
|
var Pr = {};
|
|
1558
1558
|
|
|
1559
|
-
const Or =
|
|
1559
|
+
const Or = vr;
|
|
1560
1560
|
|
|
1561
1561
|
const Ir = "0000000000000000000";
|
|
1562
1562
|
|
|
@@ -1574,11 +1574,11 @@ const Nr = Or.from([ 32, 0 ]);
|
|
|
1574
1574
|
|
|
1575
1575
|
const Fr = 4095;
|
|
1576
1576
|
|
|
1577
|
-
const
|
|
1577
|
+
const Br = 257;
|
|
1578
1578
|
|
|
1579
|
-
const
|
|
1579
|
+
const zr = 263;
|
|
1580
1580
|
|
|
1581
|
-
var
|
|
1581
|
+
var Mr = Pr.decodeLongPath = function e(t, r) {
|
|
1582
1582
|
return ii(t, 0, t.length, r);
|
|
1583
1583
|
};
|
|
1584
1584
|
|
|
@@ -1631,10 +1631,10 @@ var Ur = Pr.encode = function e(t) {
|
|
|
1631
1631
|
Or.write(r, Xr(t.gid, 6), 116);
|
|
1632
1632
|
ei(t.size, r, 124);
|
|
1633
1633
|
Or.write(r, Xr(t.mtime.getTime() / 1e3 | 0, 11), 136);
|
|
1634
|
-
r[156] = Cr +
|
|
1634
|
+
r[156] = Cr + Vr(t.type);
|
|
1635
1635
|
if (t.linkname) Or.write(r, t.linkname, 157);
|
|
1636
|
-
Or.copy(Er, r,
|
|
1637
|
-
Or.copy(Lr, r,
|
|
1636
|
+
Or.copy(Er, r, Br);
|
|
1637
|
+
Or.copy(Lr, r, zr);
|
|
1638
1638
|
if (t.uname) Or.write(r, t.uname, 265);
|
|
1639
1639
|
if (t.gname) Or.write(r, t.gname, 297);
|
|
1640
1640
|
Or.write(r, Xr(t.devmajor || 0, 6), 329);
|
|
@@ -1652,10 +1652,10 @@ var Hr = Pr.decode = function e(t, r, i) {
|
|
|
1652
1652
|
const u = ri(t, 116, 8);
|
|
1653
1653
|
const l = ri(t, 124, 12);
|
|
1654
1654
|
const c = ri(t, 136, 12);
|
|
1655
|
-
const h =
|
|
1655
|
+
const h = Kr(n);
|
|
1656
1656
|
const d = t[157] === 0 ? null : ii(t, 157, 100, r);
|
|
1657
|
-
const
|
|
1658
|
-
const
|
|
1657
|
+
const f = ii(t, 265, 32);
|
|
1658
|
+
const p = ii(t, 297, 32);
|
|
1659
1659
|
const _ = ri(t, 329, 8);
|
|
1660
1660
|
const m = ri(t, 337, 8);
|
|
1661
1661
|
const g = Yr(t);
|
|
@@ -1663,7 +1663,7 @@ var Hr = Pr.decode = function e(t, r, i) {
|
|
|
1663
1663
|
if (g !== ri(t, 148, 8)) throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");
|
|
1664
1664
|
if ($r(t)) {
|
|
1665
1665
|
if (t[345]) s = ii(t, 345, 155, r) + "/" + s;
|
|
1666
|
-
} else if (
|
|
1666
|
+
} else if (Zr(t)) {} else {
|
|
1667
1667
|
if (!i) {
|
|
1668
1668
|
throw new Error("Invalid tar header: unknown format.");
|
|
1669
1669
|
}
|
|
@@ -1678,8 +1678,8 @@ var Hr = Pr.decode = function e(t, r, i) {
|
|
|
1678
1678
|
mtime: new Date(1e3 * c),
|
|
1679
1679
|
type: h,
|
|
1680
1680
|
linkname: d,
|
|
1681
|
-
uname:
|
|
1682
|
-
gname:
|
|
1681
|
+
uname: f,
|
|
1682
|
+
gname: p,
|
|
1683
1683
|
devmajor: _,
|
|
1684
1684
|
devminor: m,
|
|
1685
1685
|
pax: null
|
|
@@ -1687,14 +1687,14 @@ var Hr = Pr.decode = function e(t, r, i) {
|
|
|
1687
1687
|
};
|
|
1688
1688
|
|
|
1689
1689
|
function $r(e) {
|
|
1690
|
-
return Or.equals(Er, e.subarray(
|
|
1690
|
+
return Or.equals(Er, e.subarray(Br, Br + 6));
|
|
1691
1691
|
}
|
|
1692
1692
|
|
|
1693
|
-
function
|
|
1694
|
-
return Or.equals(Ar, e.subarray(
|
|
1693
|
+
function Zr(e) {
|
|
1694
|
+
return Or.equals(Ar, e.subarray(Br, Br + 6)) && Or.equals(Nr, e.subarray(zr, zr + 2));
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
|
-
function
|
|
1697
|
+
function Gr(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 Vr(e, t, r) {
|
|
|
1704
1704
|
return 0;
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
function
|
|
1707
|
+
function Kr(e) {
|
|
1708
1708
|
switch (e) {
|
|
1709
1709
|
case 0:
|
|
1710
1710
|
return "file";
|
|
@@ -1746,7 +1746,7 @@ function Gr(e) {
|
|
|
1746
1746
|
return null;
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
|
-
function
|
|
1749
|
+
function Vr(e) {
|
|
1750
1750
|
switch (e) {
|
|
1751
1751
|
case "file":
|
|
1752
1752
|
return 0;
|
|
@@ -1838,7 +1838,7 @@ function ri(e, t, r) {
|
|
|
1838
1838
|
return ti(e);
|
|
1839
1839
|
} else {
|
|
1840
1840
|
while (t < e.length && e[t] === 32) t++;
|
|
1841
|
-
const r =
|
|
1841
|
+
const r = Gr(Jr(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
1844
|
return parseInt(Or.toString(e.subarray(t, r)), 8);
|
|
@@ -1856,11 +1856,11 @@ function ni(e) {
|
|
|
1856
1856
|
return t + r + e;
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
|
-
const {Writable: si, Readable: ai, getStreamError: oi} =
|
|
1859
|
+
const {Writable: si, Readable: ai, getStreamError: oi} = Vt;
|
|
1860
1860
|
|
|
1861
1861
|
const ui = W;
|
|
1862
1862
|
|
|
1863
|
-
const li =
|
|
1863
|
+
const li = vr;
|
|
1864
1864
|
|
|
1865
1865
|
const ci = Pr;
|
|
1866
1866
|
|
|
@@ -1931,7 +1931,7 @@ class Source extends ai {
|
|
|
1931
1931
|
_detach() {
|
|
1932
1932
|
if (this._parent._stream === this) {
|
|
1933
1933
|
this._parent._stream = null;
|
|
1934
|
-
this._parent._missing =
|
|
1934
|
+
this._parent._missing = pi(this.header.size);
|
|
1935
1935
|
this._parent._update();
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
@@ -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 = fi;
|
|
1955
1955
|
this._locked = false;
|
|
1956
1956
|
this._finished = false;
|
|
1957
1957
|
this._pax = null;
|
|
@@ -2039,7 +2039,7 @@ class Extract extends si {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
_consumeLongHeader() {
|
|
2041
2041
|
this._longHeader = false;
|
|
2042
|
-
this._missing =
|
|
2042
|
+
this._missing = pi(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 = fi;
|
|
2091
2091
|
t(e);
|
|
2092
2092
|
}
|
|
2093
2093
|
_write(e, t) {
|
|
@@ -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", fi);
|
|
2167
2167
|
if (t) {
|
|
2168
2168
|
t({
|
|
2169
2169
|
value: s,
|
|
@@ -2206,9 +2206,9 @@ var di = function e(t) {
|
|
|
2206
2206
|
return new Extract(t);
|
|
2207
2207
|
};
|
|
2208
2208
|
|
|
2209
|
-
function
|
|
2209
|
+
function fi() {}
|
|
2210
2210
|
|
|
2211
|
-
function
|
|
2211
|
+
function pi(e) {
|
|
2212
2212
|
e &= 511;
|
|
2213
2213
|
return e && 512 - e;
|
|
2214
2214
|
}
|
|
@@ -2240,21 +2240,21 @@ var yi = mi.exports;
|
|
|
2240
2240
|
|
|
2241
2241
|
const xi = x.getDefaultExportFromCjs(yi);
|
|
2242
2242
|
|
|
2243
|
-
const {Readable: Si, Writable:
|
|
2243
|
+
const {Readable: Si, Writable: wi, getStreamError: ki} = Vt;
|
|
2244
2244
|
|
|
2245
|
-
const qi =
|
|
2245
|
+
const qi = vr;
|
|
2246
2246
|
|
|
2247
2247
|
const ji = yi;
|
|
2248
2248
|
|
|
2249
|
-
const
|
|
2249
|
+
const vi = Pr;
|
|
2250
2250
|
|
|
2251
|
-
const
|
|
2251
|
+
const Di = 493;
|
|
2252
2252
|
|
|
2253
2253
|
const Pi = 420;
|
|
2254
2254
|
|
|
2255
2255
|
const Oi = qi.alloc(1024);
|
|
2256
2256
|
|
|
2257
|
-
class Sink extends
|
|
2257
|
+
class Sink extends wi {
|
|
2258
2258
|
constructor(e, t, r) {
|
|
2259
2259
|
super({
|
|
2260
2260
|
mapWritable: Li,
|
|
@@ -2331,7 +2331,7 @@ class Sink extends ki {
|
|
|
2331
2331
|
e(null);
|
|
2332
2332
|
}
|
|
2333
2333
|
_getError() {
|
|
2334
|
-
return
|
|
2334
|
+
return ki(this) || new Error("tar entry destroyed");
|
|
2335
2335
|
}
|
|
2336
2336
|
_predestroy() {
|
|
2337
2337
|
this._pack.destroy(this._getError());
|
|
@@ -2361,7 +2361,7 @@ class Pack extends Si {
|
|
|
2361
2361
|
if (!r) r = Ci;
|
|
2362
2362
|
if (!e.size || e.type === "symlink") e.size = 0;
|
|
2363
2363
|
if (!e.type) e.type = Ti(e.mode);
|
|
2364
|
-
if (!e.mode) e.mode = e.type === "directory" ?
|
|
2364
|
+
if (!e.mode) e.mode = e.type === "directory" ? Di : Pi;
|
|
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;
|
|
@@ -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 = vi.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 = vi.encodePax({
|
|
2409
2409
|
name: e.name,
|
|
2410
2410
|
linkname: e.linkname,
|
|
2411
2411
|
pax: e.pax
|
|
@@ -2424,12 +2424,12 @@ class Pack extends Si {
|
|
|
2424
2424
|
devmajor: e.devmajor,
|
|
2425
2425
|
devminor: e.devminor
|
|
2426
2426
|
};
|
|
2427
|
-
this.push(
|
|
2427
|
+
this.push(vi.encode(r));
|
|
2428
2428
|
this.push(t);
|
|
2429
2429
|
Ei(this, t.byteLength);
|
|
2430
2430
|
r.size = e.size;
|
|
2431
2431
|
r.type = e.type;
|
|
2432
|
-
this.push(
|
|
2432
|
+
this.push(vi.encode(r));
|
|
2433
2433
|
}
|
|
2434
2434
|
_doDrain() {
|
|
2435
2435
|
const e = this._drain;
|
|
@@ -2437,7 +2437,7 @@ class Pack extends Si {
|
|
|
2437
2437
|
e();
|
|
2438
2438
|
}
|
|
2439
2439
|
_predestroy() {
|
|
2440
|
-
const e =
|
|
2440
|
+
const e = ki(this);
|
|
2441
2441
|
if (this._stream) this._stream.destroy(e);
|
|
2442
2442
|
while (this._pending.length) {
|
|
2443
2443
|
const t = this._pending.shift();
|
|
@@ -2493,11 +2493,11 @@ var Ni = E.extract = di;
|
|
|
2493
2493
|
|
|
2494
2494
|
var Fi = E.pack = Ii;
|
|
2495
2495
|
|
|
2496
|
-
var
|
|
2496
|
+
var Bi = {
|
|
2497
2497
|
exports: {}
|
|
2498
2498
|
};
|
|
2499
2499
|
|
|
2500
|
-
var
|
|
2500
|
+
var zi = Bi.exports;
|
|
2501
2501
|
|
|
2502
2502
|
(function(e, t) {
|
|
2503
2503
|
(function(r) {
|
|
@@ -2537,11 +2537,36 @@ var Bi = Mi.exports;
|
|
|
2537
2537
|
r.isBase64 = i;
|
|
2538
2538
|
}
|
|
2539
2539
|
})(x.commonjsGlobal);
|
|
2540
|
-
})(
|
|
2540
|
+
})(Bi, Bi.exports);
|
|
2541
2541
|
|
|
2542
|
-
var
|
|
2542
|
+
var Mi = Bi.exports;
|
|
2543
2543
|
|
|
2544
|
-
const Ri = x.getDefaultExportFromCjs(
|
|
2544
|
+
const Ri = x.getDefaultExportFromCjs(Mi);
|
|
2545
|
+
|
|
2546
|
+
function Wi({onlyFirst: e = false} = {}) {
|
|
2547
|
+
const t = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
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
|
+
return new RegExp(r, e ? undefined : "g");
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
const Ui = Wi();
|
|
2553
|
+
|
|
2554
|
+
function Hi(e) {
|
|
2555
|
+
if (typeof e !== "string") {
|
|
2556
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);
|
|
2557
|
+
}
|
|
2558
|
+
return e.replace(Ui, "");
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
function $i(e) {
|
|
2562
|
+
if (typeof e !== "string") {
|
|
2563
|
+
throw new TypeError(`Expected a string, got ${typeof e}`);
|
|
2564
|
+
}
|
|
2565
|
+
if (e.charCodeAt(0) === 65279) {
|
|
2566
|
+
return e.slice(1);
|
|
2567
|
+
}
|
|
2568
|
+
return e;
|
|
2569
|
+
}
|
|
2545
2570
|
|
|
2546
2571
|
exports.Docker = class Docker extends t.Component {
|
|
2547
2572
|
#e;
|
|
@@ -2640,7 +2665,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2640
2665
|
try {
|
|
2641
2666
|
const n = t ? await this.#e.createImage(t, i) : await this.#e.createImage(i);
|
|
2642
2667
|
await new Promise(((t, r) => {
|
|
2643
|
-
|
|
2668
|
+
f.createInterface({
|
|
2644
2669
|
input: n
|
|
2645
2670
|
}).on("line", (t => {
|
|
2646
2671
|
const i = JSON.parse(t);
|
|
@@ -2650,7 +2675,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2650
2675
|
}));
|
|
2651
2676
|
return await this.getImage(`${e.repo}:${r}`);
|
|
2652
2677
|
} catch (e) {
|
|
2653
|
-
if (!_.IsAbortError(e)) throw new
|
|
2678
|
+
if (!_.IsAbortError(e)) throw new p.DockerImagePullException(e.message);
|
|
2654
2679
|
return undefined;
|
|
2655
2680
|
}
|
|
2656
2681
|
}
|
|
@@ -2679,7 +2704,8 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2679
2704
|
return new Promise(((t, r) => {
|
|
2680
2705
|
let n = undefined;
|
|
2681
2706
|
let s = undefined;
|
|
2682
|
-
|
|
2707
|
+
let a = "";
|
|
2708
|
+
f.createInterface({
|
|
2683
2709
|
input: i
|
|
2684
2710
|
}).on("line", (t => {
|
|
2685
2711
|
const r = JSON.parse(t);
|
|
@@ -2689,7 +2715,24 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2689
2715
|
} else if (Ri(r.aux) && !r.stream) {
|
|
2690
2716
|
r.stream = Buffer.from(r.aux, "base64").toString();
|
|
2691
2717
|
}
|
|
2692
|
-
if (
|
|
2718
|
+
if (r.stream) {
|
|
2719
|
+
a = `${a}${r.stream}`;
|
|
2720
|
+
} else if (Ri(r.aux)) {
|
|
2721
|
+
a = `${a}${Buffer.from(r.aux, "base64").toString("ascii")}`;
|
|
2722
|
+
}
|
|
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
|
+
}));
|
|
2693
2736
|
})).once("close", (() => {
|
|
2694
2737
|
if (s) return r(s);
|
|
2695
2738
|
if (!n) return r(new g.DockerImageBuildException("Build image failed"));
|
|
@@ -2702,16 +2745,16 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2702
2745
|
}
|
|
2703
2746
|
}
|
|
2704
2747
|
async importImage(e) {
|
|
2705
|
-
const t = typeof e.source === "string" ?
|
|
2706
|
-
const r = new
|
|
2707
|
-
const i = new
|
|
2748
|
+
const t = typeof e.source === "string" ? w.createReadStream(e.source) : e.source;
|
|
2749
|
+
const r = new k.PassThrough;
|
|
2750
|
+
const i = new k.PassThrough;
|
|
2708
2751
|
t.pipe(r);
|
|
2709
2752
|
t.pipe(i);
|
|
2710
2753
|
const n = Ni();
|
|
2711
2754
|
let s;
|
|
2712
2755
|
n.on("entry", ((e, t, r) => {
|
|
2713
2756
|
if (e.name === "manifest.json") {
|
|
2714
|
-
|
|
2757
|
+
f.createInterface({
|
|
2715
2758
|
input: t
|
|
2716
2759
|
}).on("line", (e => {
|
|
2717
2760
|
const t = JSON.parse(e)[0];
|
|
@@ -2727,7 +2770,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2727
2770
|
});
|
|
2728
2771
|
return new Promise(((e, t) => {
|
|
2729
2772
|
let r = undefined;
|
|
2730
|
-
|
|
2773
|
+
f.createInterface({
|
|
2731
2774
|
input: a
|
|
2732
2775
|
}).on("line", (e => {
|
|
2733
2776
|
const t = JSON.parse(e);
|
|
@@ -2873,7 +2916,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2873
2916
|
range: e.IPRange,
|
|
2874
2917
|
gateway: e.Gateway
|
|
2875
2918
|
}))) : [],
|
|
2876
|
-
createdAt: new
|
|
2919
|
+
createdAt: new v.Time(e.Created)
|
|
2877
2920
|
})));
|
|
2878
2921
|
} catch (e) {
|
|
2879
2922
|
if (!_.IsAbortError(e)) throw e;
|
|
@@ -2883,7 +2926,7 @@ exports.Docker = class Docker extends t.Component {
|
|
|
2883
2926
|
async getNetwork(e) {
|
|
2884
2927
|
const t = await this.listNetworks();
|
|
2885
2928
|
const r = t.find((t => t.id === e));
|
|
2886
|
-
if (!r) throw new
|
|
2929
|
+
if (!r) throw new D.DockerNetworkNotFoundException("Network {0} not found", [ e ]);
|
|
2887
2930
|
return r;
|
|
2888
2931
|
}
|
|
2889
2932
|
};
|