@jsii/runtime 1.76.0 → 1.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsii/runtime",
3
- "version": "1.76.0",
3
+ "version": "1.78.0",
4
4
  "description": "jsii runtime kernel process",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -34,14 +34,14 @@
34
34
  "package": "package-js"
35
35
  },
36
36
  "dependencies": {
37
- "@jsii/kernel": "^1.76.0",
38
- "@jsii/check-node": "1.76.0",
39
- "@jsii/spec": "^1.76.0"
37
+ "@jsii/kernel": "^1.78.0",
38
+ "@jsii/check-node": "1.78.0",
39
+ "@jsii/spec": "^1.78.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@scope/jsii-calc-base": "^1.76.0",
43
- "@scope/jsii-calc-lib": "^1.76.0",
44
- "jsii-build-tools": "^1.76.0",
42
+ "@scope/jsii-calc-base": "^1.78.0",
43
+ "@scope/jsii-calc-lib": "^1.78.0",
44
+ "jsii-build-tools": "^1.78.0",
45
45
  "jsii-calc": "^3.20.120",
46
46
  "source-map-loader": "^4.0.1",
47
47
  "webpack": "^5.75.0",
@@ -1448,252 +1448,6 @@ var __webpack_modules__ = {
1448
1448
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1449
1449
  };
1450
1450
  },
1451
- 3437: (module, __unused_webpack_exports, __webpack_require__) => {
1452
- "use strict";
1453
- const Yallist = __webpack_require__(1455);
1454
- const MAX = Symbol("max");
1455
- const LENGTH = Symbol("length");
1456
- const LENGTH_CALCULATOR = Symbol("lengthCalculator");
1457
- const ALLOW_STALE = Symbol("allowStale");
1458
- const MAX_AGE = Symbol("maxAge");
1459
- const DISPOSE = Symbol("dispose");
1460
- const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
1461
- const LRU_LIST = Symbol("lruList");
1462
- const CACHE = Symbol("cache");
1463
- const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
1464
- const naiveLength = () => 1;
1465
- class LRUCache {
1466
- constructor(options) {
1467
- if (typeof options === "number") options = {
1468
- max: options
1469
- };
1470
- if (!options) options = {};
1471
- if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
1472
- const max = this[MAX] = options.max || Infinity;
1473
- const lc = options.length || naiveLength;
1474
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
1475
- this[ALLOW_STALE] = options.stale || false;
1476
- if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
1477
- this[MAX_AGE] = options.maxAge || 0;
1478
- this[DISPOSE] = options.dispose;
1479
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
1480
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
1481
- this.reset();
1482
- }
1483
- set max(mL) {
1484
- if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
1485
- this[MAX] = mL || Infinity;
1486
- trim(this);
1487
- }
1488
- get max() {
1489
- return this[MAX];
1490
- }
1491
- set allowStale(allowStale) {
1492
- this[ALLOW_STALE] = !!allowStale;
1493
- }
1494
- get allowStale() {
1495
- return this[ALLOW_STALE];
1496
- }
1497
- set maxAge(mA) {
1498
- if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
1499
- this[MAX_AGE] = mA;
1500
- trim(this);
1501
- }
1502
- get maxAge() {
1503
- return this[MAX_AGE];
1504
- }
1505
- set lengthCalculator(lC) {
1506
- if (typeof lC !== "function") lC = naiveLength;
1507
- if (lC !== this[LENGTH_CALCULATOR]) {
1508
- this[LENGTH_CALCULATOR] = lC;
1509
- this[LENGTH] = 0;
1510
- this[LRU_LIST].forEach((hit => {
1511
- hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
1512
- this[LENGTH] += hit.length;
1513
- }));
1514
- }
1515
- trim(this);
1516
- }
1517
- get lengthCalculator() {
1518
- return this[LENGTH_CALCULATOR];
1519
- }
1520
- get length() {
1521
- return this[LENGTH];
1522
- }
1523
- get itemCount() {
1524
- return this[LRU_LIST].length;
1525
- }
1526
- rforEach(fn, thisp) {
1527
- thisp = thisp || this;
1528
- for (let walker = this[LRU_LIST].tail; walker !== null; ) {
1529
- const prev = walker.prev;
1530
- forEachStep(this, fn, walker, thisp);
1531
- walker = prev;
1532
- }
1533
- }
1534
- forEach(fn, thisp) {
1535
- thisp = thisp || this;
1536
- for (let walker = this[LRU_LIST].head; walker !== null; ) {
1537
- const next = walker.next;
1538
- forEachStep(this, fn, walker, thisp);
1539
- walker = next;
1540
- }
1541
- }
1542
- keys() {
1543
- return this[LRU_LIST].toArray().map((k => k.key));
1544
- }
1545
- values() {
1546
- return this[LRU_LIST].toArray().map((k => k.value));
1547
- }
1548
- reset() {
1549
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
1550
- this[LRU_LIST].forEach((hit => this[DISPOSE](hit.key, hit.value)));
1551
- }
1552
- this[CACHE] = new Map;
1553
- this[LRU_LIST] = new Yallist;
1554
- this[LENGTH] = 0;
1555
- }
1556
- dump() {
1557
- return this[LRU_LIST].map((hit => isStale(this, hit) ? false : {
1558
- k: hit.key,
1559
- v: hit.value,
1560
- e: hit.now + (hit.maxAge || 0)
1561
- })).toArray().filter((h => h));
1562
- }
1563
- dumpLru() {
1564
- return this[LRU_LIST];
1565
- }
1566
- set(key, value, maxAge) {
1567
- maxAge = maxAge || this[MAX_AGE];
1568
- if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
1569
- const now = maxAge ? Date.now() : 0;
1570
- const len = this[LENGTH_CALCULATOR](value, key);
1571
- if (this[CACHE].has(key)) {
1572
- if (len > this[MAX]) {
1573
- del(this, this[CACHE].get(key));
1574
- return false;
1575
- }
1576
- const node = this[CACHE].get(key);
1577
- const item = node.value;
1578
- if (this[DISPOSE]) {
1579
- if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
1580
- }
1581
- item.now = now;
1582
- item.maxAge = maxAge;
1583
- item.value = value;
1584
- this[LENGTH] += len - item.length;
1585
- item.length = len;
1586
- this.get(key);
1587
- trim(this);
1588
- return true;
1589
- }
1590
- const hit = new Entry(key, value, len, now, maxAge);
1591
- if (hit.length > this[MAX]) {
1592
- if (this[DISPOSE]) this[DISPOSE](key, value);
1593
- return false;
1594
- }
1595
- this[LENGTH] += hit.length;
1596
- this[LRU_LIST].unshift(hit);
1597
- this[CACHE].set(key, this[LRU_LIST].head);
1598
- trim(this);
1599
- return true;
1600
- }
1601
- has(key) {
1602
- if (!this[CACHE].has(key)) return false;
1603
- const hit = this[CACHE].get(key).value;
1604
- return !isStale(this, hit);
1605
- }
1606
- get(key) {
1607
- return get(this, key, true);
1608
- }
1609
- peek(key) {
1610
- return get(this, key, false);
1611
- }
1612
- pop() {
1613
- const node = this[LRU_LIST].tail;
1614
- if (!node) return null;
1615
- del(this, node);
1616
- return node.value;
1617
- }
1618
- del(key) {
1619
- del(this, this[CACHE].get(key));
1620
- }
1621
- load(arr) {
1622
- this.reset();
1623
- const now = Date.now();
1624
- for (let l = arr.length - 1; l >= 0; l--) {
1625
- const hit = arr[l];
1626
- const expiresAt = hit.e || 0;
1627
- if (expiresAt === 0) this.set(hit.k, hit.v); else {
1628
- const maxAge = expiresAt - now;
1629
- if (maxAge > 0) {
1630
- this.set(hit.k, hit.v, maxAge);
1631
- }
1632
- }
1633
- }
1634
- }
1635
- prune() {
1636
- this[CACHE].forEach(((value, key) => get(this, key, false)));
1637
- }
1638
- }
1639
- const get = (self, key, doUse) => {
1640
- const node = self[CACHE].get(key);
1641
- if (node) {
1642
- const hit = node.value;
1643
- if (isStale(self, hit)) {
1644
- del(self, node);
1645
- if (!self[ALLOW_STALE]) return undefined;
1646
- } else {
1647
- if (doUse) {
1648
- if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
1649
- self[LRU_LIST].unshiftNode(node);
1650
- }
1651
- }
1652
- return hit.value;
1653
- }
1654
- };
1655
- const isStale = (self, hit) => {
1656
- if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
1657
- const diff = Date.now() - hit.now;
1658
- return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
1659
- };
1660
- const trim = self => {
1661
- if (self[LENGTH] > self[MAX]) {
1662
- for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
1663
- const prev = walker.prev;
1664
- del(self, walker);
1665
- walker = prev;
1666
- }
1667
- }
1668
- };
1669
- const del = (self, node) => {
1670
- if (node) {
1671
- const hit = node.value;
1672
- if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
1673
- self[LENGTH] -= hit.length;
1674
- self[CACHE].delete(hit.key);
1675
- self[LRU_LIST].removeNode(node);
1676
- }
1677
- };
1678
- class Entry {
1679
- constructor(key, value, length, now, maxAge) {
1680
- this.key = key;
1681
- this.value = value;
1682
- this.length = length;
1683
- this.now = now;
1684
- this.maxAge = maxAge || 0;
1685
- }
1686
- }
1687
- const forEachStep = (self, fn, node, thisp) => {
1688
- let hit = node.value;
1689
- if (isStale(self, hit)) {
1690
- del(self, node);
1691
- if (!self[ALLOW_STALE]) hit = undefined;
1692
- }
1693
- if (hit) fn.call(thisp, hit.value, hit.key, self);
1694
- };
1695
- module.exports = LRUCache;
1696
- },
1697
1451
  7706: (module, __unused_webpack_exports, __webpack_require__) => {
1698
1452
  const ANY = Symbol("SemVer ANY");
1699
1453
  class Comparator {
@@ -1905,7 +1659,7 @@ var __webpack_modules__ = {
1905
1659
  }
1906
1660
  }
1907
1661
  module.exports = Range;
1908
- const LRU = __webpack_require__(3437);
1662
+ const LRU = __webpack_require__(6923);
1909
1663
  const cache = new LRU({
1910
1664
  max: 1e3
1911
1665
  });
@@ -2813,6 +2567,252 @@ var __webpack_modules__ = {
2813
2567
  createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
2814
2568
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2815
2569
  },
2570
+ 6923: (module, __unused_webpack_exports, __webpack_require__) => {
2571
+ "use strict";
2572
+ const Yallist = __webpack_require__(1455);
2573
+ const MAX = Symbol("max");
2574
+ const LENGTH = Symbol("length");
2575
+ const LENGTH_CALCULATOR = Symbol("lengthCalculator");
2576
+ const ALLOW_STALE = Symbol("allowStale");
2577
+ const MAX_AGE = Symbol("maxAge");
2578
+ const DISPOSE = Symbol("dispose");
2579
+ const NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
2580
+ const LRU_LIST = Symbol("lruList");
2581
+ const CACHE = Symbol("cache");
2582
+ const UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
2583
+ const naiveLength = () => 1;
2584
+ class LRUCache {
2585
+ constructor(options) {
2586
+ if (typeof options === "number") options = {
2587
+ max: options
2588
+ };
2589
+ if (!options) options = {};
2590
+ if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
2591
+ const max = this[MAX] = options.max || Infinity;
2592
+ const lc = options.length || naiveLength;
2593
+ this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
2594
+ this[ALLOW_STALE] = options.stale || false;
2595
+ if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
2596
+ this[MAX_AGE] = options.maxAge || 0;
2597
+ this[DISPOSE] = options.dispose;
2598
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
2599
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
2600
+ this.reset();
2601
+ }
2602
+ set max(mL) {
2603
+ if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
2604
+ this[MAX] = mL || Infinity;
2605
+ trim(this);
2606
+ }
2607
+ get max() {
2608
+ return this[MAX];
2609
+ }
2610
+ set allowStale(allowStale) {
2611
+ this[ALLOW_STALE] = !!allowStale;
2612
+ }
2613
+ get allowStale() {
2614
+ return this[ALLOW_STALE];
2615
+ }
2616
+ set maxAge(mA) {
2617
+ if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
2618
+ this[MAX_AGE] = mA;
2619
+ trim(this);
2620
+ }
2621
+ get maxAge() {
2622
+ return this[MAX_AGE];
2623
+ }
2624
+ set lengthCalculator(lC) {
2625
+ if (typeof lC !== "function") lC = naiveLength;
2626
+ if (lC !== this[LENGTH_CALCULATOR]) {
2627
+ this[LENGTH_CALCULATOR] = lC;
2628
+ this[LENGTH] = 0;
2629
+ this[LRU_LIST].forEach((hit => {
2630
+ hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
2631
+ this[LENGTH] += hit.length;
2632
+ }));
2633
+ }
2634
+ trim(this);
2635
+ }
2636
+ get lengthCalculator() {
2637
+ return this[LENGTH_CALCULATOR];
2638
+ }
2639
+ get length() {
2640
+ return this[LENGTH];
2641
+ }
2642
+ get itemCount() {
2643
+ return this[LRU_LIST].length;
2644
+ }
2645
+ rforEach(fn, thisp) {
2646
+ thisp = thisp || this;
2647
+ for (let walker = this[LRU_LIST].tail; walker !== null; ) {
2648
+ const prev = walker.prev;
2649
+ forEachStep(this, fn, walker, thisp);
2650
+ walker = prev;
2651
+ }
2652
+ }
2653
+ forEach(fn, thisp) {
2654
+ thisp = thisp || this;
2655
+ for (let walker = this[LRU_LIST].head; walker !== null; ) {
2656
+ const next = walker.next;
2657
+ forEachStep(this, fn, walker, thisp);
2658
+ walker = next;
2659
+ }
2660
+ }
2661
+ keys() {
2662
+ return this[LRU_LIST].toArray().map((k => k.key));
2663
+ }
2664
+ values() {
2665
+ return this[LRU_LIST].toArray().map((k => k.value));
2666
+ }
2667
+ reset() {
2668
+ if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
2669
+ this[LRU_LIST].forEach((hit => this[DISPOSE](hit.key, hit.value)));
2670
+ }
2671
+ this[CACHE] = new Map;
2672
+ this[LRU_LIST] = new Yallist;
2673
+ this[LENGTH] = 0;
2674
+ }
2675
+ dump() {
2676
+ return this[LRU_LIST].map((hit => isStale(this, hit) ? false : {
2677
+ k: hit.key,
2678
+ v: hit.value,
2679
+ e: hit.now + (hit.maxAge || 0)
2680
+ })).toArray().filter((h => h));
2681
+ }
2682
+ dumpLru() {
2683
+ return this[LRU_LIST];
2684
+ }
2685
+ set(key, value, maxAge) {
2686
+ maxAge = maxAge || this[MAX_AGE];
2687
+ if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
2688
+ const now = maxAge ? Date.now() : 0;
2689
+ const len = this[LENGTH_CALCULATOR](value, key);
2690
+ if (this[CACHE].has(key)) {
2691
+ if (len > this[MAX]) {
2692
+ del(this, this[CACHE].get(key));
2693
+ return false;
2694
+ }
2695
+ const node = this[CACHE].get(key);
2696
+ const item = node.value;
2697
+ if (this[DISPOSE]) {
2698
+ if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
2699
+ }
2700
+ item.now = now;
2701
+ item.maxAge = maxAge;
2702
+ item.value = value;
2703
+ this[LENGTH] += len - item.length;
2704
+ item.length = len;
2705
+ this.get(key);
2706
+ trim(this);
2707
+ return true;
2708
+ }
2709
+ const hit = new Entry(key, value, len, now, maxAge);
2710
+ if (hit.length > this[MAX]) {
2711
+ if (this[DISPOSE]) this[DISPOSE](key, value);
2712
+ return false;
2713
+ }
2714
+ this[LENGTH] += hit.length;
2715
+ this[LRU_LIST].unshift(hit);
2716
+ this[CACHE].set(key, this[LRU_LIST].head);
2717
+ trim(this);
2718
+ return true;
2719
+ }
2720
+ has(key) {
2721
+ if (!this[CACHE].has(key)) return false;
2722
+ const hit = this[CACHE].get(key).value;
2723
+ return !isStale(this, hit);
2724
+ }
2725
+ get(key) {
2726
+ return get(this, key, true);
2727
+ }
2728
+ peek(key) {
2729
+ return get(this, key, false);
2730
+ }
2731
+ pop() {
2732
+ const node = this[LRU_LIST].tail;
2733
+ if (!node) return null;
2734
+ del(this, node);
2735
+ return node.value;
2736
+ }
2737
+ del(key) {
2738
+ del(this, this[CACHE].get(key));
2739
+ }
2740
+ load(arr) {
2741
+ this.reset();
2742
+ const now = Date.now();
2743
+ for (let l = arr.length - 1; l >= 0; l--) {
2744
+ const hit = arr[l];
2745
+ const expiresAt = hit.e || 0;
2746
+ if (expiresAt === 0) this.set(hit.k, hit.v); else {
2747
+ const maxAge = expiresAt - now;
2748
+ if (maxAge > 0) {
2749
+ this.set(hit.k, hit.v, maxAge);
2750
+ }
2751
+ }
2752
+ }
2753
+ }
2754
+ prune() {
2755
+ this[CACHE].forEach(((value, key) => get(this, key, false)));
2756
+ }
2757
+ }
2758
+ const get = (self, key, doUse) => {
2759
+ const node = self[CACHE].get(key);
2760
+ if (node) {
2761
+ const hit = node.value;
2762
+ if (isStale(self, hit)) {
2763
+ del(self, node);
2764
+ if (!self[ALLOW_STALE]) return undefined;
2765
+ } else {
2766
+ if (doUse) {
2767
+ if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
2768
+ self[LRU_LIST].unshiftNode(node);
2769
+ }
2770
+ }
2771
+ return hit.value;
2772
+ }
2773
+ };
2774
+ const isStale = (self, hit) => {
2775
+ if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
2776
+ const diff = Date.now() - hit.now;
2777
+ return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
2778
+ };
2779
+ const trim = self => {
2780
+ if (self[LENGTH] > self[MAX]) {
2781
+ for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
2782
+ const prev = walker.prev;
2783
+ del(self, walker);
2784
+ walker = prev;
2785
+ }
2786
+ }
2787
+ };
2788
+ const del = (self, node) => {
2789
+ if (node) {
2790
+ const hit = node.value;
2791
+ if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
2792
+ self[LENGTH] -= hit.length;
2793
+ self[CACHE].delete(hit.key);
2794
+ self[LRU_LIST].removeNode(node);
2795
+ }
2796
+ };
2797
+ class Entry {
2798
+ constructor(key, value, length, now, maxAge) {
2799
+ this.key = key;
2800
+ this.value = value;
2801
+ this.length = length;
2802
+ this.now = now;
2803
+ this.maxAge = maxAge || 0;
2804
+ }
2805
+ }
2806
+ const forEachStep = (self, fn, node, thisp) => {
2807
+ let hit = node.value;
2808
+ if (isStale(self, hit)) {
2809
+ del(self, node);
2810
+ if (!self[ALLOW_STALE]) hit = undefined;
2811
+ }
2812
+ if (hit) fn.call(thisp, hit.value, hit.key, self);
2813
+ };
2814
+ module.exports = LRUCache;
2815
+ },
2816
2816
  4933: (module, __unused_webpack_exports, __webpack_require__) => {
2817
2817
  const outside = __webpack_require__(939);
2818
2818
  const gtr = (version, range, options) => outside(version, range, ">", options);
@@ -7360,7 +7360,8 @@ var __webpack_modules__ = {
7360
7360
  };
7361
7361
  const EE = __webpack_require__(2361);
7362
7362
  const Stream = __webpack_require__(2781);
7363
- const SD = __webpack_require__(1576).StringDecoder;
7363
+ const stringdecoder = __webpack_require__(1576);
7364
+ const SD = stringdecoder.StringDecoder;
7364
7365
  const EOF = Symbol("EOF");
7365
7366
  const MAYBE_EMIT_END = Symbol("maybeEmitEnd");
7366
7367
  const EMITTED_END = Symbol("emittedEnd");
@@ -7387,6 +7388,9 @@ var __webpack_modules__ = {
7387
7388
  const EMITEND = Symbol("emitEnd");
7388
7389
  const EMITEND2 = Symbol("emitEnd2");
7389
7390
  const ASYNC = Symbol("async");
7391
+ const ABORT = Symbol("abort");
7392
+ const ABORTED = Symbol("aborted");
7393
+ const SIGNAL = Symbol("signal");
7390
7394
  const defer = fn => Promise.resolve().then(fn);
7391
7395
  const doIter = global._MP_NO_ITERATOR_SYMBOLS_ !== "1";
7392
7396
  const ASYNCITERATOR = doIter && Symbol.asyncIterator || Symbol("asyncIterator not implemented");
@@ -7422,7 +7426,7 @@ var __webpack_modules__ = {
7422
7426
  src.on("error", this.proxyErrors);
7423
7427
  }
7424
7428
  }
7425
- module.exports = class Minipass extends Stream {
7429
+ class Minipass extends Stream {
7426
7430
  constructor(options) {
7427
7431
  super();
7428
7432
  this[FLOWING] = false;
@@ -7453,6 +7457,14 @@ var __webpack_modules__ = {
7453
7457
  get: () => this[PIPES]
7454
7458
  });
7455
7459
  }
7460
+ this[SIGNAL] = options && options.signal;
7461
+ this[ABORTED] = false;
7462
+ if (this[SIGNAL]) {
7463
+ this[SIGNAL].addEventListener("abort", (() => this[ABORT]()));
7464
+ if (this[SIGNAL].aborted) {
7465
+ this[ABORT]();
7466
+ }
7467
+ }
7456
7468
  }
7457
7469
  get bufferLength() {
7458
7470
  return this[BUFFERLENGTH];
@@ -7484,7 +7496,17 @@ var __webpack_modules__ = {
7484
7496
  set ["async"](a) {
7485
7497
  this[ASYNC] = this[ASYNC] || !!a;
7486
7498
  }
7499
+ [ABORT]() {
7500
+ this[ABORTED] = true;
7501
+ this.emit("abort", this[SIGNAL].reason);
7502
+ this.destroy(this[SIGNAL].reason);
7503
+ }
7504
+ get aborted() {
7505
+ return this[ABORTED];
7506
+ }
7507
+ set aborted(_) {}
7487
7508
  write(chunk, encoding, cb) {
7509
+ if (this[ABORTED]) return false;
7488
7510
  if (this[EOF]) throw new Error("write after end");
7489
7511
  if (this[DESTROYED]) {
7490
7512
  this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), {
@@ -7582,17 +7604,16 @@ var __webpack_modules__ = {
7582
7604
  this[BUFFER].push(chunk);
7583
7605
  }
7584
7606
  [BUFFERSHIFT]() {
7585
- if (this[BUFFER].length) {
7586
- if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1; else this[BUFFERLENGTH] -= this[BUFFER][0].length;
7587
- }
7607
+ if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1; else this[BUFFERLENGTH] -= this[BUFFER][0].length;
7588
7608
  return this[BUFFER].shift();
7589
7609
  }
7590
7610
  [FLUSH](noDrain) {
7591
- do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()));
7611
+ do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
7592
7612
  if (!noDrain && !this[BUFFER].length && !this[EOF]) this.emit("drain");
7593
7613
  }
7594
7614
  [FLUSHCHUNK](chunk) {
7595
- return chunk ? (this.emit("data", chunk), this.flowing) : false;
7615
+ this.emit("data", chunk);
7616
+ return this.flowing;
7596
7617
  }
7597
7618
  pipe(dest, opts) {
7598
7619
  if (this[DESTROYED]) return;
@@ -7643,7 +7664,7 @@ var __webpack_modules__ = {
7643
7664
  }
7644
7665
  emit(ev, data, ...extra) {
7645
7666
  if (ev !== "error" && ev !== "close" && ev !== DESTROYED && this[DESTROYED]) return; else if (ev === "data") {
7646
- return !data ? false : this[ASYNC] ? defer((() => this[EMITDATA](data))) : this[EMITDATA](data);
7667
+ return !this[OBJECTMODE] && !data ? false : this[ASYNC] ? defer((() => this[EMITDATA](data))) : this[EMITDATA](data);
7647
7668
  } else if (ev === "end") {
7648
7669
  return this[EMITEND]();
7649
7670
  } else if (ev === "close") {
@@ -7655,7 +7676,7 @@ var __webpack_modules__ = {
7655
7676
  } else if (ev === "error") {
7656
7677
  this[EMITTED_ERROR] = data;
7657
7678
  super.emit(ERROR, data);
7658
- const ret = super.emit("error", data);
7679
+ const ret = !this[SIGNAL] || this.listeners("error").length ? super.emit("error", data) : false;
7659
7680
  this[MAYBE_EMIT_END]();
7660
7681
  return ret;
7661
7682
  } else if (ev === "resume") {
@@ -7827,7 +7848,8 @@ var __webpack_modules__ = {
7827
7848
  static isStream(s) {
7828
7849
  return !!s && (s instanceof Minipass || s instanceof Stream || s instanceof EE && (typeof s.pipe === "function" || typeof s.write === "function" && typeof s.end === "function"));
7829
7850
  }
7830
- };
7851
+ }
7852
+ module.exports = Minipass;
7831
7853
  },
7832
7854
  3459: (__unused_webpack_module, exports) => {
7833
7855
  "use strict";
@@ -10725,7 +10747,6 @@ var __webpack_modules__ = {
10725
10747
  }
10726
10748
  if ((0, api_1.isWireMap)(value)) {
10727
10749
  return exports.SERIALIZERS["Map"].deserialize(value, {
10728
- optional: false,
10729
10750
  type: {
10730
10751
  collection: {
10731
10752
  kind: spec.CollectionKind.Map,
@@ -10734,7 +10755,9 @@ var __webpack_modules__ = {
10734
10755
  }
10735
10756
  }
10736
10757
  }
10737
- }, host);
10758
+ }, host, {
10759
+ allowNullishMapValue: true
10760
+ });
10738
10761
  }
10739
10762
  if (typeof value !== "object") {
10740
10763
  return value;
@@ -10826,7 +10849,7 @@ var __webpack_modules__ = {
10826
10849
  }, `key ${(0, util_1.inspect)(key)}`)))
10827
10850
  };
10828
10851
  },
10829
- deserialize(value, optionalValue, host) {
10852
+ deserialize(value, optionalValue, host, {allowNullishMapValue = false} = {}) {
10830
10853
  if (nullAndOk(value, optionalValue)) {
10831
10854
  return undefined;
10832
10855
  }
@@ -10834,10 +10857,12 @@ var __webpack_modules__ = {
10834
10857
  const mapType = optionalValue.type;
10835
10858
  if (!(0, api_1.isWireMap)(value)) {
10836
10859
  return mapValues(value, ((v, key) => process(host, "deserialize", v, {
10860
+ optional: allowNullishMapValue,
10837
10861
  type: mapType.collection.elementtype
10838
10862
  }, `key ${(0, util_1.inspect)(key)}`)));
10839
10863
  }
10840
10864
  const result = mapValues(value[api_1.TOKEN_MAP], ((v, key) => process(host, "deserialize", v, {
10865
+ optional: allowNullishMapValue,
10841
10866
  type: mapType.collection.elementtype
10842
10867
  }, `key ${(0, util_1.inspect)(key)}`)));
10843
10868
  Object.defineProperty(result, exports.SYMBOL_WIRE_TYPE, {
@@ -11250,7 +11275,7 @@ var __webpack_modules__ = {
11250
11275
  }
11251
11276
  function process(host, serde, value, type, context) {
11252
11277
  const wireTypes = serializationType(type, host.lookupType);
11253
- host.debug(serde, value, wireTypes);
11278
+ host.debug(serde, value, ...wireTypes);
11254
11279
  const errors = new Array;
11255
11280
  for (const {serializationClass, typeRef} of wireTypes) {
11256
11281
  try {
@@ -17282,7 +17307,7 @@ var __webpack_modules__ = {
17282
17307
  },
17283
17308
  4147: module => {
17284
17309
  "use strict";
17285
- module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.76.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.6.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.76.0","@jsii/check-node":"1.76.0","@jsii/spec":"^1.76.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.76.0","@scope/jsii-calc-lib":"^1.76.0","jsii-build-tools":"^1.76.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.75.0","webpack-cli":"^5.0.1"}}');
17310
+ module.exports = JSON.parse('{"name":"@jsii/runtime","version":"1.78.0","description":"jsii runtime kernel process","license":"Apache-2.0","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com"},"homepage":"https://github.com/aws/jsii","bugs":{"url":"https://github.com/aws/jsii/issues"},"repository":{"type":"git","url":"https://github.com/aws/jsii.git","directory":"packages/@jsii/runtime"},"engines":{"node":">= 14.6.0"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"jsii-runtime":"bin/jsii-runtime"},"scripts":{"build":"tsc --build && chmod +x bin/jsii-runtime && npx webpack-cli && npm run lint","watch":"tsc --build -w","lint":"eslint . --ext .js,.ts --ignore-path=.gitignore --ignore-pattern=webpack.config.js","lint:fix":"yarn lint --fix","test":"jest","test:update":"jest -u","package":"package-js"},"dependencies":{"@jsii/kernel":"^1.78.0","@jsii/check-node":"1.78.0","@jsii/spec":"^1.78.0"},"devDependencies":{"@scope/jsii-calc-base":"^1.78.0","@scope/jsii-calc-lib":"^1.78.0","jsii-build-tools":"^1.78.0","jsii-calc":"^3.20.120","source-map-loader":"^4.0.1","webpack":"^5.75.0","webpack-cli":"^5.0.1"}}');
17286
17311
  },
17287
17312
  5277: module => {
17288
17313
  "use strict";