@forsakringskassan/vite-lib-config 1.7.4 → 1.7.5
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/dist/api-extractor.js +142 -749
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/vite.config.js +132 -742
- package/package.json +2 -2
package/dist/api-extractor.js
CHANGED
|
@@ -35,10 +35,8 @@ var require_balanced_match = __commonJS({
|
|
|
35
35
|
"use strict";
|
|
36
36
|
module2.exports = balanced;
|
|
37
37
|
function balanced(a, b, str) {
|
|
38
|
-
if (a instanceof RegExp)
|
|
39
|
-
|
|
40
|
-
if (b instanceof RegExp)
|
|
41
|
-
b = maybeMatch(b, str);
|
|
38
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
39
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
42
40
|
var r = range(a, b, str);
|
|
43
41
|
return r && {
|
|
44
42
|
start: r[0],
|
|
@@ -151,8 +149,7 @@ var require_brace_expansion = __commonJS({
|
|
|
151
149
|
function expand2(str, isTop) {
|
|
152
150
|
var expansions = [];
|
|
153
151
|
var m = balanced("{", "}", str);
|
|
154
|
-
if (!m)
|
|
155
|
-
return [str];
|
|
152
|
+
if (!m) return [str];
|
|
156
153
|
var pre = m.pre;
|
|
157
154
|
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
158
155
|
if (/\$$/.test(m.pre)) {
|
|
@@ -618,8 +615,7 @@ var require_ci_info = __commonJS({
|
|
|
618
615
|
env.RUN_ID || // TaskCluster, dsari
|
|
619
616
|
exports2.name || false));
|
|
620
617
|
function checkEnv(obj) {
|
|
621
|
-
if (typeof obj === "string")
|
|
622
|
-
return !!env[obj];
|
|
618
|
+
if (typeof obj === "string") return !!env[obj];
|
|
623
619
|
if ("env" in obj) {
|
|
624
620
|
return env[obj.env] && env[obj.env].includes(obj.includes);
|
|
625
621
|
}
|
|
@@ -935,7 +931,7 @@ var require_semver = __commonJS({
|
|
|
935
931
|
do {
|
|
936
932
|
const a = this.build[i];
|
|
937
933
|
const b = other.build[i];
|
|
938
|
-
debug("
|
|
934
|
+
debug("build compare", i, a, b);
|
|
939
935
|
if (a === void 0 && b === void 0) {
|
|
940
936
|
return 0;
|
|
941
937
|
} else if (b === void 0) {
|
|
@@ -1406,655 +1402,39 @@ var require_coerce = __commonJS({
|
|
|
1406
1402
|
}
|
|
1407
1403
|
});
|
|
1408
1404
|
|
|
1409
|
-
// node_modules/semver/
|
|
1410
|
-
var
|
|
1411
|
-
"node_modules/semver/
|
|
1412
|
-
"use strict";
|
|
1413
|
-
module2.exports = function(Yallist) {
|
|
1414
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
|
1415
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
|
1416
|
-
yield walker.value;
|
|
1417
|
-
}
|
|
1418
|
-
};
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
});
|
|
1422
|
-
|
|
1423
|
-
// node_modules/semver/node_modules/yallist/yallist.js
|
|
1424
|
-
var require_yallist = __commonJS({
|
|
1425
|
-
"node_modules/semver/node_modules/yallist/yallist.js"(exports2, module2) {
|
|
1426
|
-
"use strict";
|
|
1427
|
-
module2.exports = Yallist;
|
|
1428
|
-
Yallist.Node = Node2;
|
|
1429
|
-
Yallist.create = Yallist;
|
|
1430
|
-
function Yallist(list) {
|
|
1431
|
-
var self = this;
|
|
1432
|
-
if (!(self instanceof Yallist)) {
|
|
1433
|
-
self = new Yallist();
|
|
1434
|
-
}
|
|
1435
|
-
self.tail = null;
|
|
1436
|
-
self.head = null;
|
|
1437
|
-
self.length = 0;
|
|
1438
|
-
if (list && typeof list.forEach === "function") {
|
|
1439
|
-
list.forEach(function(item) {
|
|
1440
|
-
self.push(item);
|
|
1441
|
-
});
|
|
1442
|
-
} else if (arguments.length > 0) {
|
|
1443
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
1444
|
-
self.push(arguments[i]);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
return self;
|
|
1448
|
-
}
|
|
1449
|
-
Yallist.prototype.removeNode = function(node) {
|
|
1450
|
-
if (node.list !== this) {
|
|
1451
|
-
throw new Error("removing node which does not belong to this list");
|
|
1452
|
-
}
|
|
1453
|
-
var next = node.next;
|
|
1454
|
-
var prev = node.prev;
|
|
1455
|
-
if (next) {
|
|
1456
|
-
next.prev = prev;
|
|
1457
|
-
}
|
|
1458
|
-
if (prev) {
|
|
1459
|
-
prev.next = next;
|
|
1460
|
-
}
|
|
1461
|
-
if (node === this.head) {
|
|
1462
|
-
this.head = next;
|
|
1463
|
-
}
|
|
1464
|
-
if (node === this.tail) {
|
|
1465
|
-
this.tail = prev;
|
|
1466
|
-
}
|
|
1467
|
-
node.list.length--;
|
|
1468
|
-
node.next = null;
|
|
1469
|
-
node.prev = null;
|
|
1470
|
-
node.list = null;
|
|
1471
|
-
return next;
|
|
1472
|
-
};
|
|
1473
|
-
Yallist.prototype.unshiftNode = function(node) {
|
|
1474
|
-
if (node === this.head) {
|
|
1475
|
-
return;
|
|
1476
|
-
}
|
|
1477
|
-
if (node.list) {
|
|
1478
|
-
node.list.removeNode(node);
|
|
1479
|
-
}
|
|
1480
|
-
var head = this.head;
|
|
1481
|
-
node.list = this;
|
|
1482
|
-
node.next = head;
|
|
1483
|
-
if (head) {
|
|
1484
|
-
head.prev = node;
|
|
1485
|
-
}
|
|
1486
|
-
this.head = node;
|
|
1487
|
-
if (!this.tail) {
|
|
1488
|
-
this.tail = node;
|
|
1489
|
-
}
|
|
1490
|
-
this.length++;
|
|
1491
|
-
};
|
|
1492
|
-
Yallist.prototype.pushNode = function(node) {
|
|
1493
|
-
if (node === this.tail) {
|
|
1494
|
-
return;
|
|
1495
|
-
}
|
|
1496
|
-
if (node.list) {
|
|
1497
|
-
node.list.removeNode(node);
|
|
1498
|
-
}
|
|
1499
|
-
var tail = this.tail;
|
|
1500
|
-
node.list = this;
|
|
1501
|
-
node.prev = tail;
|
|
1502
|
-
if (tail) {
|
|
1503
|
-
tail.next = node;
|
|
1504
|
-
}
|
|
1505
|
-
this.tail = node;
|
|
1506
|
-
if (!this.head) {
|
|
1507
|
-
this.head = node;
|
|
1508
|
-
}
|
|
1509
|
-
this.length++;
|
|
1510
|
-
};
|
|
1511
|
-
Yallist.prototype.push = function() {
|
|
1512
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
1513
|
-
push(this, arguments[i]);
|
|
1514
|
-
}
|
|
1515
|
-
return this.length;
|
|
1516
|
-
};
|
|
1517
|
-
Yallist.prototype.unshift = function() {
|
|
1518
|
-
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
1519
|
-
unshift(this, arguments[i]);
|
|
1520
|
-
}
|
|
1521
|
-
return this.length;
|
|
1522
|
-
};
|
|
1523
|
-
Yallist.prototype.pop = function() {
|
|
1524
|
-
if (!this.tail) {
|
|
1525
|
-
return void 0;
|
|
1526
|
-
}
|
|
1527
|
-
var res = this.tail.value;
|
|
1528
|
-
this.tail = this.tail.prev;
|
|
1529
|
-
if (this.tail) {
|
|
1530
|
-
this.tail.next = null;
|
|
1531
|
-
} else {
|
|
1532
|
-
this.head = null;
|
|
1533
|
-
}
|
|
1534
|
-
this.length--;
|
|
1535
|
-
return res;
|
|
1536
|
-
};
|
|
1537
|
-
Yallist.prototype.shift = function() {
|
|
1538
|
-
if (!this.head) {
|
|
1539
|
-
return void 0;
|
|
1540
|
-
}
|
|
1541
|
-
var res = this.head.value;
|
|
1542
|
-
this.head = this.head.next;
|
|
1543
|
-
if (this.head) {
|
|
1544
|
-
this.head.prev = null;
|
|
1545
|
-
} else {
|
|
1546
|
-
this.tail = null;
|
|
1547
|
-
}
|
|
1548
|
-
this.length--;
|
|
1549
|
-
return res;
|
|
1550
|
-
};
|
|
1551
|
-
Yallist.prototype.forEach = function(fn, thisp) {
|
|
1552
|
-
thisp = thisp || this;
|
|
1553
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
|
1554
|
-
fn.call(thisp, walker.value, i, this);
|
|
1555
|
-
walker = walker.next;
|
|
1556
|
-
}
|
|
1557
|
-
};
|
|
1558
|
-
Yallist.prototype.forEachReverse = function(fn, thisp) {
|
|
1559
|
-
thisp = thisp || this;
|
|
1560
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
|
1561
|
-
fn.call(thisp, walker.value, i, this);
|
|
1562
|
-
walker = walker.prev;
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
|
-
Yallist.prototype.get = function(n) {
|
|
1566
|
-
for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
|
|
1567
|
-
walker = walker.next;
|
|
1568
|
-
}
|
|
1569
|
-
if (i === n && walker !== null) {
|
|
1570
|
-
return walker.value;
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
Yallist.prototype.getReverse = function(n) {
|
|
1574
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
|
|
1575
|
-
walker = walker.prev;
|
|
1576
|
-
}
|
|
1577
|
-
if (i === n && walker !== null) {
|
|
1578
|
-
return walker.value;
|
|
1579
|
-
}
|
|
1580
|
-
};
|
|
1581
|
-
Yallist.prototype.map = function(fn, thisp) {
|
|
1582
|
-
thisp = thisp || this;
|
|
1583
|
-
var res = new Yallist();
|
|
1584
|
-
for (var walker = this.head; walker !== null; ) {
|
|
1585
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
1586
|
-
walker = walker.next;
|
|
1587
|
-
}
|
|
1588
|
-
return res;
|
|
1589
|
-
};
|
|
1590
|
-
Yallist.prototype.mapReverse = function(fn, thisp) {
|
|
1591
|
-
thisp = thisp || this;
|
|
1592
|
-
var res = new Yallist();
|
|
1593
|
-
for (var walker = this.tail; walker !== null; ) {
|
|
1594
|
-
res.push(fn.call(thisp, walker.value, this));
|
|
1595
|
-
walker = walker.prev;
|
|
1596
|
-
}
|
|
1597
|
-
return res;
|
|
1598
|
-
};
|
|
1599
|
-
Yallist.prototype.reduce = function(fn, initial) {
|
|
1600
|
-
var acc;
|
|
1601
|
-
var walker = this.head;
|
|
1602
|
-
if (arguments.length > 1) {
|
|
1603
|
-
acc = initial;
|
|
1604
|
-
} else if (this.head) {
|
|
1605
|
-
walker = this.head.next;
|
|
1606
|
-
acc = this.head.value;
|
|
1607
|
-
} else {
|
|
1608
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
1609
|
-
}
|
|
1610
|
-
for (var i = 0; walker !== null; i++) {
|
|
1611
|
-
acc = fn(acc, walker.value, i);
|
|
1612
|
-
walker = walker.next;
|
|
1613
|
-
}
|
|
1614
|
-
return acc;
|
|
1615
|
-
};
|
|
1616
|
-
Yallist.prototype.reduceReverse = function(fn, initial) {
|
|
1617
|
-
var acc;
|
|
1618
|
-
var walker = this.tail;
|
|
1619
|
-
if (arguments.length > 1) {
|
|
1620
|
-
acc = initial;
|
|
1621
|
-
} else if (this.tail) {
|
|
1622
|
-
walker = this.tail.prev;
|
|
1623
|
-
acc = this.tail.value;
|
|
1624
|
-
} else {
|
|
1625
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
|
1626
|
-
}
|
|
1627
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
|
1628
|
-
acc = fn(acc, walker.value, i);
|
|
1629
|
-
walker = walker.prev;
|
|
1630
|
-
}
|
|
1631
|
-
return acc;
|
|
1632
|
-
};
|
|
1633
|
-
Yallist.prototype.toArray = function() {
|
|
1634
|
-
var arr = new Array(this.length);
|
|
1635
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
|
1636
|
-
arr[i] = walker.value;
|
|
1637
|
-
walker = walker.next;
|
|
1638
|
-
}
|
|
1639
|
-
return arr;
|
|
1640
|
-
};
|
|
1641
|
-
Yallist.prototype.toArrayReverse = function() {
|
|
1642
|
-
var arr = new Array(this.length);
|
|
1643
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
|
1644
|
-
arr[i] = walker.value;
|
|
1645
|
-
walker = walker.prev;
|
|
1646
|
-
}
|
|
1647
|
-
return arr;
|
|
1648
|
-
};
|
|
1649
|
-
Yallist.prototype.slice = function(from, to) {
|
|
1650
|
-
to = to || this.length;
|
|
1651
|
-
if (to < 0) {
|
|
1652
|
-
to += this.length;
|
|
1653
|
-
}
|
|
1654
|
-
from = from || 0;
|
|
1655
|
-
if (from < 0) {
|
|
1656
|
-
from += this.length;
|
|
1657
|
-
}
|
|
1658
|
-
var ret = new Yallist();
|
|
1659
|
-
if (to < from || to < 0) {
|
|
1660
|
-
return ret;
|
|
1661
|
-
}
|
|
1662
|
-
if (from < 0) {
|
|
1663
|
-
from = 0;
|
|
1664
|
-
}
|
|
1665
|
-
if (to > this.length) {
|
|
1666
|
-
to = this.length;
|
|
1667
|
-
}
|
|
1668
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
|
1669
|
-
walker = walker.next;
|
|
1670
|
-
}
|
|
1671
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
|
1672
|
-
ret.push(walker.value);
|
|
1673
|
-
}
|
|
1674
|
-
return ret;
|
|
1675
|
-
};
|
|
1676
|
-
Yallist.prototype.sliceReverse = function(from, to) {
|
|
1677
|
-
to = to || this.length;
|
|
1678
|
-
if (to < 0) {
|
|
1679
|
-
to += this.length;
|
|
1680
|
-
}
|
|
1681
|
-
from = from || 0;
|
|
1682
|
-
if (from < 0) {
|
|
1683
|
-
from += this.length;
|
|
1684
|
-
}
|
|
1685
|
-
var ret = new Yallist();
|
|
1686
|
-
if (to < from || to < 0) {
|
|
1687
|
-
return ret;
|
|
1688
|
-
}
|
|
1689
|
-
if (from < 0) {
|
|
1690
|
-
from = 0;
|
|
1691
|
-
}
|
|
1692
|
-
if (to > this.length) {
|
|
1693
|
-
to = this.length;
|
|
1694
|
-
}
|
|
1695
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
|
1696
|
-
walker = walker.prev;
|
|
1697
|
-
}
|
|
1698
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
|
1699
|
-
ret.push(walker.value);
|
|
1700
|
-
}
|
|
1701
|
-
return ret;
|
|
1702
|
-
};
|
|
1703
|
-
Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
|
|
1704
|
-
if (start > this.length) {
|
|
1705
|
-
start = this.length - 1;
|
|
1706
|
-
}
|
|
1707
|
-
if (start < 0) {
|
|
1708
|
-
start = this.length + start;
|
|
1709
|
-
}
|
|
1710
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
|
1711
|
-
walker = walker.next;
|
|
1712
|
-
}
|
|
1713
|
-
var ret = [];
|
|
1714
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
|
1715
|
-
ret.push(walker.value);
|
|
1716
|
-
walker = this.removeNode(walker);
|
|
1717
|
-
}
|
|
1718
|
-
if (walker === null) {
|
|
1719
|
-
walker = this.tail;
|
|
1720
|
-
}
|
|
1721
|
-
if (walker !== this.head && walker !== this.tail) {
|
|
1722
|
-
walker = walker.prev;
|
|
1723
|
-
}
|
|
1724
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
1725
|
-
walker = insert(this, walker, nodes[i]);
|
|
1726
|
-
}
|
|
1727
|
-
return ret;
|
|
1728
|
-
};
|
|
1729
|
-
Yallist.prototype.reverse = function() {
|
|
1730
|
-
var head = this.head;
|
|
1731
|
-
var tail = this.tail;
|
|
1732
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
|
1733
|
-
var p = walker.prev;
|
|
1734
|
-
walker.prev = walker.next;
|
|
1735
|
-
walker.next = p;
|
|
1736
|
-
}
|
|
1737
|
-
this.head = tail;
|
|
1738
|
-
this.tail = head;
|
|
1739
|
-
return this;
|
|
1740
|
-
};
|
|
1741
|
-
function insert(self, node, value) {
|
|
1742
|
-
var inserted = node === self.head ? new Node2(value, null, node, self) : new Node2(value, node, node.next, self);
|
|
1743
|
-
if (inserted.next === null) {
|
|
1744
|
-
self.tail = inserted;
|
|
1745
|
-
}
|
|
1746
|
-
if (inserted.prev === null) {
|
|
1747
|
-
self.head = inserted;
|
|
1748
|
-
}
|
|
1749
|
-
self.length++;
|
|
1750
|
-
return inserted;
|
|
1751
|
-
}
|
|
1752
|
-
function push(self, item) {
|
|
1753
|
-
self.tail = new Node2(item, self.tail, null, self);
|
|
1754
|
-
if (!self.head) {
|
|
1755
|
-
self.head = self.tail;
|
|
1756
|
-
}
|
|
1757
|
-
self.length++;
|
|
1758
|
-
}
|
|
1759
|
-
function unshift(self, item) {
|
|
1760
|
-
self.head = new Node2(item, null, self.head, self);
|
|
1761
|
-
if (!self.tail) {
|
|
1762
|
-
self.tail = self.head;
|
|
1763
|
-
}
|
|
1764
|
-
self.length++;
|
|
1765
|
-
}
|
|
1766
|
-
function Node2(value, prev, next, list) {
|
|
1767
|
-
if (!(this instanceof Node2)) {
|
|
1768
|
-
return new Node2(value, prev, next, list);
|
|
1769
|
-
}
|
|
1770
|
-
this.list = list;
|
|
1771
|
-
this.value = value;
|
|
1772
|
-
if (prev) {
|
|
1773
|
-
prev.next = this;
|
|
1774
|
-
this.prev = prev;
|
|
1775
|
-
} else {
|
|
1776
|
-
this.prev = null;
|
|
1777
|
-
}
|
|
1778
|
-
if (next) {
|
|
1779
|
-
next.prev = this;
|
|
1780
|
-
this.next = next;
|
|
1781
|
-
} else {
|
|
1782
|
-
this.next = null;
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
try {
|
|
1786
|
-
require_iterator()(Yallist);
|
|
1787
|
-
} catch (er) {
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
});
|
|
1791
|
-
|
|
1792
|
-
// node_modules/semver/node_modules/lru-cache/index.js
|
|
1793
|
-
var require_lru_cache = __commonJS({
|
|
1794
|
-
"node_modules/semver/node_modules/lru-cache/index.js"(exports2, module2) {
|
|
1795
|
-
"use strict";
|
|
1796
|
-
var Yallist = require_yallist();
|
|
1797
|
-
var MAX = Symbol("max");
|
|
1798
|
-
var LENGTH = Symbol("length");
|
|
1799
|
-
var LENGTH_CALCULATOR = Symbol("lengthCalculator");
|
|
1800
|
-
var ALLOW_STALE = Symbol("allowStale");
|
|
1801
|
-
var MAX_AGE = Symbol("maxAge");
|
|
1802
|
-
var DISPOSE = Symbol("dispose");
|
|
1803
|
-
var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
|
|
1804
|
-
var LRU_LIST = Symbol("lruList");
|
|
1805
|
-
var CACHE = Symbol("cache");
|
|
1806
|
-
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
|
1807
|
-
var naiveLength = () => 1;
|
|
1405
|
+
// node_modules/semver/internal/lrucache.js
|
|
1406
|
+
var require_lrucache = __commonJS({
|
|
1407
|
+
"node_modules/semver/internal/lrucache.js"(exports2, module2) {
|
|
1808
1408
|
var LRUCache2 = class {
|
|
1809
|
-
constructor(
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
if (!options)
|
|
1813
|
-
options = {};
|
|
1814
|
-
if (options.max && (typeof options.max !== "number" || options.max < 0))
|
|
1815
|
-
throw new TypeError("max must be a non-negative number");
|
|
1816
|
-
const max = this[MAX] = options.max || Infinity;
|
|
1817
|
-
const lc = options.length || naiveLength;
|
|
1818
|
-
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
|
1819
|
-
this[ALLOW_STALE] = options.stale || false;
|
|
1820
|
-
if (options.maxAge && typeof options.maxAge !== "number")
|
|
1821
|
-
throw new TypeError("maxAge must be a number");
|
|
1822
|
-
this[MAX_AGE] = options.maxAge || 0;
|
|
1823
|
-
this[DISPOSE] = options.dispose;
|
|
1824
|
-
this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
|
|
1825
|
-
this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
|
|
1826
|
-
this.reset();
|
|
1827
|
-
}
|
|
1828
|
-
// resize the cache when the max changes.
|
|
1829
|
-
set max(mL) {
|
|
1830
|
-
if (typeof mL !== "number" || mL < 0)
|
|
1831
|
-
throw new TypeError("max must be a non-negative number");
|
|
1832
|
-
this[MAX] = mL || Infinity;
|
|
1833
|
-
trim(this);
|
|
1834
|
-
}
|
|
1835
|
-
get max() {
|
|
1836
|
-
return this[MAX];
|
|
1837
|
-
}
|
|
1838
|
-
set allowStale(allowStale) {
|
|
1839
|
-
this[ALLOW_STALE] = !!allowStale;
|
|
1840
|
-
}
|
|
1841
|
-
get allowStale() {
|
|
1842
|
-
return this[ALLOW_STALE];
|
|
1843
|
-
}
|
|
1844
|
-
set maxAge(mA) {
|
|
1845
|
-
if (typeof mA !== "number")
|
|
1846
|
-
throw new TypeError("maxAge must be a non-negative number");
|
|
1847
|
-
this[MAX_AGE] = mA;
|
|
1848
|
-
trim(this);
|
|
1849
|
-
}
|
|
1850
|
-
get maxAge() {
|
|
1851
|
-
return this[MAX_AGE];
|
|
1852
|
-
}
|
|
1853
|
-
// resize the cache when the lengthCalculator changes.
|
|
1854
|
-
set lengthCalculator(lC) {
|
|
1855
|
-
if (typeof lC !== "function")
|
|
1856
|
-
lC = naiveLength;
|
|
1857
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
|
1858
|
-
this[LENGTH_CALCULATOR] = lC;
|
|
1859
|
-
this[LENGTH] = 0;
|
|
1860
|
-
this[LRU_LIST].forEach((hit) => {
|
|
1861
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
|
1862
|
-
this[LENGTH] += hit.length;
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
trim(this);
|
|
1866
|
-
}
|
|
1867
|
-
get lengthCalculator() {
|
|
1868
|
-
return this[LENGTH_CALCULATOR];
|
|
1869
|
-
}
|
|
1870
|
-
get length() {
|
|
1871
|
-
return this[LENGTH];
|
|
1872
|
-
}
|
|
1873
|
-
get itemCount() {
|
|
1874
|
-
return this[LRU_LIST].length;
|
|
1875
|
-
}
|
|
1876
|
-
rforEach(fn, thisp) {
|
|
1877
|
-
thisp = thisp || this;
|
|
1878
|
-
for (let walker = this[LRU_LIST].tail; walker !== null; ) {
|
|
1879
|
-
const prev = walker.prev;
|
|
1880
|
-
forEachStep(this, fn, walker, thisp);
|
|
1881
|
-
walker = prev;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
forEach(fn, thisp) {
|
|
1885
|
-
thisp = thisp || this;
|
|
1886
|
-
for (let walker = this[LRU_LIST].head; walker !== null; ) {
|
|
1887
|
-
const next = walker.next;
|
|
1888
|
-
forEachStep(this, fn, walker, thisp);
|
|
1889
|
-
walker = next;
|
|
1890
|
-
}
|
|
1891
|
-
}
|
|
1892
|
-
keys() {
|
|
1893
|
-
return this[LRU_LIST].toArray().map((k) => k.key);
|
|
1894
|
-
}
|
|
1895
|
-
values() {
|
|
1896
|
-
return this[LRU_LIST].toArray().map((k) => k.value);
|
|
1897
|
-
}
|
|
1898
|
-
reset() {
|
|
1899
|
-
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
|
1900
|
-
this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
|
|
1901
|
-
}
|
|
1902
|
-
this[CACHE] = /* @__PURE__ */ new Map();
|
|
1903
|
-
this[LRU_LIST] = new Yallist();
|
|
1904
|
-
this[LENGTH] = 0;
|
|
1905
|
-
}
|
|
1906
|
-
dump() {
|
|
1907
|
-
return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
|
|
1908
|
-
k: hit.key,
|
|
1909
|
-
v: hit.value,
|
|
1910
|
-
e: hit.now + (hit.maxAge || 0)
|
|
1911
|
-
}).toArray().filter((h) => h);
|
|
1912
|
-
}
|
|
1913
|
-
dumpLru() {
|
|
1914
|
-
return this[LRU_LIST];
|
|
1915
|
-
}
|
|
1916
|
-
set(key, value, maxAge) {
|
|
1917
|
-
maxAge = maxAge || this[MAX_AGE];
|
|
1918
|
-
if (maxAge && typeof maxAge !== "number")
|
|
1919
|
-
throw new TypeError("maxAge must be a number");
|
|
1920
|
-
const now = maxAge ? Date.now() : 0;
|
|
1921
|
-
const len = this[LENGTH_CALCULATOR](value, key);
|
|
1922
|
-
if (this[CACHE].has(key)) {
|
|
1923
|
-
if (len > this[MAX]) {
|
|
1924
|
-
del(this, this[CACHE].get(key));
|
|
1925
|
-
return false;
|
|
1926
|
-
}
|
|
1927
|
-
const node = this[CACHE].get(key);
|
|
1928
|
-
const item = node.value;
|
|
1929
|
-
if (this[DISPOSE]) {
|
|
1930
|
-
if (!this[NO_DISPOSE_ON_SET])
|
|
1931
|
-
this[DISPOSE](key, item.value);
|
|
1932
|
-
}
|
|
1933
|
-
item.now = now;
|
|
1934
|
-
item.maxAge = maxAge;
|
|
1935
|
-
item.value = value;
|
|
1936
|
-
this[LENGTH] += len - item.length;
|
|
1937
|
-
item.length = len;
|
|
1938
|
-
this.get(key);
|
|
1939
|
-
trim(this);
|
|
1940
|
-
return true;
|
|
1941
|
-
}
|
|
1942
|
-
const hit = new Entry(key, value, len, now, maxAge);
|
|
1943
|
-
if (hit.length > this[MAX]) {
|
|
1944
|
-
if (this[DISPOSE])
|
|
1945
|
-
this[DISPOSE](key, value);
|
|
1946
|
-
return false;
|
|
1947
|
-
}
|
|
1948
|
-
this[LENGTH] += hit.length;
|
|
1949
|
-
this[LRU_LIST].unshift(hit);
|
|
1950
|
-
this[CACHE].set(key, this[LRU_LIST].head);
|
|
1951
|
-
trim(this);
|
|
1952
|
-
return true;
|
|
1953
|
-
}
|
|
1954
|
-
has(key) {
|
|
1955
|
-
if (!this[CACHE].has(key))
|
|
1956
|
-
return false;
|
|
1957
|
-
const hit = this[CACHE].get(key).value;
|
|
1958
|
-
return !isStale(this, hit);
|
|
1409
|
+
constructor() {
|
|
1410
|
+
this.max = 1e3;
|
|
1411
|
+
this.map = /* @__PURE__ */ new Map();
|
|
1959
1412
|
}
|
|
1960
1413
|
get(key) {
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
if (!node)
|
|
1969
|
-
return null;
|
|
1970
|
-
del(this, node);
|
|
1971
|
-
return node.value;
|
|
1972
|
-
}
|
|
1973
|
-
del(key) {
|
|
1974
|
-
del(this, this[CACHE].get(key));
|
|
1975
|
-
}
|
|
1976
|
-
load(arr) {
|
|
1977
|
-
this.reset();
|
|
1978
|
-
const now = Date.now();
|
|
1979
|
-
for (let l = arr.length - 1; l >= 0; l--) {
|
|
1980
|
-
const hit = arr[l];
|
|
1981
|
-
const expiresAt = hit.e || 0;
|
|
1982
|
-
if (expiresAt === 0)
|
|
1983
|
-
this.set(hit.k, hit.v);
|
|
1984
|
-
else {
|
|
1985
|
-
const maxAge = expiresAt - now;
|
|
1986
|
-
if (maxAge > 0) {
|
|
1987
|
-
this.set(hit.k, hit.v, maxAge);
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1414
|
+
const value = this.map.get(key);
|
|
1415
|
+
if (value === void 0) {
|
|
1416
|
+
return void 0;
|
|
1417
|
+
} else {
|
|
1418
|
+
this.map.delete(key);
|
|
1419
|
+
this.map.set(key, value);
|
|
1420
|
+
return value;
|
|
1990
1421
|
}
|
|
1991
1422
|
}
|
|
1992
|
-
|
|
1993
|
-
this
|
|
1423
|
+
delete(key) {
|
|
1424
|
+
return this.map.delete(key);
|
|
1994
1425
|
}
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
del(self, node);
|
|
2002
|
-
if (!self[ALLOW_STALE])
|
|
2003
|
-
return void 0;
|
|
2004
|
-
} else {
|
|
2005
|
-
if (doUse) {
|
|
2006
|
-
if (self[UPDATE_AGE_ON_GET])
|
|
2007
|
-
node.value.now = Date.now();
|
|
2008
|
-
self[LRU_LIST].unshiftNode(node);
|
|
1426
|
+
set(key, value) {
|
|
1427
|
+
const deleted = this.delete(key);
|
|
1428
|
+
if (!deleted && value !== void 0) {
|
|
1429
|
+
if (this.map.size >= this.max) {
|
|
1430
|
+
const firstKey = this.map.keys().next().value;
|
|
1431
|
+
this.delete(firstKey);
|
|
2009
1432
|
}
|
|
1433
|
+
this.map.set(key, value);
|
|
2010
1434
|
}
|
|
2011
|
-
return
|
|
2012
|
-
}
|
|
2013
|
-
};
|
|
2014
|
-
var isStale = (self, hit) => {
|
|
2015
|
-
if (!hit || !hit.maxAge && !self[MAX_AGE])
|
|
2016
|
-
return false;
|
|
2017
|
-
const diff = Date.now() - hit.now;
|
|
2018
|
-
return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
|
|
2019
|
-
};
|
|
2020
|
-
var trim = (self) => {
|
|
2021
|
-
if (self[LENGTH] > self[MAX]) {
|
|
2022
|
-
for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
|
|
2023
|
-
const prev = walker.prev;
|
|
2024
|
-
del(self, walker);
|
|
2025
|
-
walker = prev;
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
};
|
|
2029
|
-
var del = (self, node) => {
|
|
2030
|
-
if (node) {
|
|
2031
|
-
const hit = node.value;
|
|
2032
|
-
if (self[DISPOSE])
|
|
2033
|
-
self[DISPOSE](hit.key, hit.value);
|
|
2034
|
-
self[LENGTH] -= hit.length;
|
|
2035
|
-
self[CACHE].delete(hit.key);
|
|
2036
|
-
self[LRU_LIST].removeNode(node);
|
|
2037
|
-
}
|
|
2038
|
-
};
|
|
2039
|
-
var Entry = class {
|
|
2040
|
-
constructor(key, value, length, now, maxAge) {
|
|
2041
|
-
this.key = key;
|
|
2042
|
-
this.value = value;
|
|
2043
|
-
this.length = length;
|
|
2044
|
-
this.now = now;
|
|
2045
|
-
this.maxAge = maxAge || 0;
|
|
1435
|
+
return this;
|
|
2046
1436
|
}
|
|
2047
1437
|
};
|
|
2048
|
-
var forEachStep = (self, fn, node, thisp) => {
|
|
2049
|
-
let hit = node.value;
|
|
2050
|
-
if (isStale(self, hit)) {
|
|
2051
|
-
del(self, node);
|
|
2052
|
-
if (!self[ALLOW_STALE])
|
|
2053
|
-
hit = void 0;
|
|
2054
|
-
}
|
|
2055
|
-
if (hit)
|
|
2056
|
-
fn.call(thisp, hit.value, hit.key, self);
|
|
2057
|
-
};
|
|
2058
1438
|
module2.exports = LRUCache2;
|
|
2059
1439
|
}
|
|
2060
1440
|
});
|
|
@@ -2184,8 +1564,8 @@ var require_range = __commonJS({
|
|
|
2184
1564
|
}
|
|
2185
1565
|
};
|
|
2186
1566
|
module2.exports = Range;
|
|
2187
|
-
var LRU =
|
|
2188
|
-
var cache = new LRU(
|
|
1567
|
+
var LRU = require_lrucache();
|
|
1568
|
+
var cache = new LRU();
|
|
2189
1569
|
var parseOptions = require_parse_options();
|
|
2190
1570
|
var Comparator = require_comparator();
|
|
2191
1571
|
var debug = require_debug();
|
|
@@ -2363,7 +1743,7 @@ var require_range = __commonJS({
|
|
|
2363
1743
|
debug("replaceGTE0", comp, options);
|
|
2364
1744
|
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
2365
1745
|
};
|
|
2366
|
-
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr
|
|
1746
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
2367
1747
|
if (isX(fM)) {
|
|
2368
1748
|
from = "";
|
|
2369
1749
|
} else if (isX(fm)) {
|
|
@@ -2843,19 +2223,18 @@ var require_subset = __commonJS({
|
|
|
2843
2223
|
sub = new Range(sub, options);
|
|
2844
2224
|
dom = new Range(dom, options);
|
|
2845
2225
|
let sawNonNull = false;
|
|
2846
|
-
OUTER:
|
|
2847
|
-
for (const
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
continue OUTER;
|
|
2853
|
-
}
|
|
2854
|
-
}
|
|
2855
|
-
if (sawNonNull) {
|
|
2856
|
-
return false;
|
|
2226
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
2227
|
+
for (const simpleDom of dom.set) {
|
|
2228
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
2229
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
2230
|
+
if (isSub) {
|
|
2231
|
+
continue OUTER;
|
|
2857
2232
|
}
|
|
2858
2233
|
}
|
|
2234
|
+
if (sawNonNull) {
|
|
2235
|
+
return false;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2859
2238
|
return true;
|
|
2860
2239
|
};
|
|
2861
2240
|
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
@@ -3092,7 +2471,7 @@ __export(api_extractor_exports, {
|
|
|
3092
2471
|
module.exports = __toCommonJS(api_extractor_exports);
|
|
3093
2472
|
var import_node_fs2 = require("node:fs");
|
|
3094
2473
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
|
3095
|
-
var
|
|
2474
|
+
var import_node_path4 = __toESM(require("node:path"));
|
|
3096
2475
|
|
|
3097
2476
|
// node_modules/glob/node_modules/minimatch/dist/esm/index.js
|
|
3098
2477
|
var import_brace_expansion = __toESM(require_brace_expansion(), 1);
|
|
@@ -3142,66 +2521,65 @@ var parseClass = (glob2, position) => {
|
|
|
3142
2521
|
let negate = false;
|
|
3143
2522
|
let endPos = pos;
|
|
3144
2523
|
let rangeStart = "";
|
|
3145
|
-
WHILE:
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
2524
|
+
WHILE: while (i < glob2.length) {
|
|
2525
|
+
const c = glob2.charAt(i);
|
|
2526
|
+
if ((c === "!" || c === "^") && i === pos + 1) {
|
|
2527
|
+
negate = true;
|
|
2528
|
+
i++;
|
|
2529
|
+
continue;
|
|
2530
|
+
}
|
|
2531
|
+
if (c === "]" && sawStart && !escaping) {
|
|
2532
|
+
endPos = i + 1;
|
|
2533
|
+
break;
|
|
2534
|
+
}
|
|
2535
|
+
sawStart = true;
|
|
2536
|
+
if (c === "\\") {
|
|
2537
|
+
if (!escaping) {
|
|
2538
|
+
escaping = true;
|
|
3150
2539
|
i++;
|
|
3151
2540
|
continue;
|
|
3152
2541
|
}
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
if (!escaping) {
|
|
3160
|
-
escaping = true;
|
|
3161
|
-
i++;
|
|
3162
|
-
continue;
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
if (c === "[" && !escaping) {
|
|
3166
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
3167
|
-
if (glob2.startsWith(cls, i)) {
|
|
3168
|
-
if (rangeStart) {
|
|
3169
|
-
return ["$.", false, glob2.length - pos, true];
|
|
3170
|
-
}
|
|
3171
|
-
i += cls.length;
|
|
3172
|
-
if (neg)
|
|
3173
|
-
negs.push(unip);
|
|
3174
|
-
else
|
|
3175
|
-
ranges.push(unip);
|
|
3176
|
-
uflag = uflag || u;
|
|
3177
|
-
continue WHILE;
|
|
2542
|
+
}
|
|
2543
|
+
if (c === "[" && !escaping) {
|
|
2544
|
+
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
2545
|
+
if (glob2.startsWith(cls, i)) {
|
|
2546
|
+
if (rangeStart) {
|
|
2547
|
+
return ["$.", false, glob2.length - pos, true];
|
|
3178
2548
|
}
|
|
2549
|
+
i += cls.length;
|
|
2550
|
+
if (neg)
|
|
2551
|
+
negs.push(unip);
|
|
2552
|
+
else
|
|
2553
|
+
ranges.push(unip);
|
|
2554
|
+
uflag = uflag || u;
|
|
2555
|
+
continue WHILE;
|
|
3179
2556
|
}
|
|
3180
2557
|
}
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
rangeStart = "";
|
|
3189
|
-
i++;
|
|
3190
|
-
continue;
|
|
3191
|
-
}
|
|
3192
|
-
if (glob2.startsWith("-]", i + 1)) {
|
|
3193
|
-
ranges.push(braceEscape(c + "-"));
|
|
3194
|
-
i += 2;
|
|
3195
|
-
continue;
|
|
3196
|
-
}
|
|
3197
|
-
if (glob2.startsWith("-", i + 1)) {
|
|
3198
|
-
rangeStart = c;
|
|
3199
|
-
i += 2;
|
|
3200
|
-
continue;
|
|
2558
|
+
}
|
|
2559
|
+
escaping = false;
|
|
2560
|
+
if (rangeStart) {
|
|
2561
|
+
if (c > rangeStart) {
|
|
2562
|
+
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
2563
|
+
} else if (c === rangeStart) {
|
|
2564
|
+
ranges.push(braceEscape(c));
|
|
3201
2565
|
}
|
|
3202
|
-
|
|
2566
|
+
rangeStart = "";
|
|
3203
2567
|
i++;
|
|
2568
|
+
continue;
|
|
3204
2569
|
}
|
|
2570
|
+
if (glob2.startsWith("-]", i + 1)) {
|
|
2571
|
+
ranges.push(braceEscape(c + "-"));
|
|
2572
|
+
i += 2;
|
|
2573
|
+
continue;
|
|
2574
|
+
}
|
|
2575
|
+
if (glob2.startsWith("-", i + 1)) {
|
|
2576
|
+
rangeStart = c;
|
|
2577
|
+
i += 2;
|
|
2578
|
+
continue;
|
|
2579
|
+
}
|
|
2580
|
+
ranges.push(braceEscape(c));
|
|
2581
|
+
i++;
|
|
2582
|
+
}
|
|
3205
2583
|
if (endPos < i) {
|
|
3206
2584
|
return ["", false, 0, false];
|
|
3207
2585
|
}
|
|
@@ -5713,11 +5091,11 @@ var LRUCache = class _LRUCache {
|
|
|
5713
5091
|
};
|
|
5714
5092
|
|
|
5715
5093
|
// node_modules/path-scurry/dist/esm/index.js
|
|
5716
|
-
var
|
|
5717
|
-
var
|
|
5718
|
-
var actualFS = __toESM(require("fs"), 1);
|
|
5094
|
+
var import_node_path = require("node:path");
|
|
5095
|
+
var import_node_url = require("node:url");
|
|
5719
5096
|
var import_fs = require("fs");
|
|
5720
|
-
var
|
|
5097
|
+
var actualFS = __toESM(require("node:fs"), 1);
|
|
5098
|
+
var import_promises = require("node:fs/promises");
|
|
5721
5099
|
|
|
5722
5100
|
// node_modules/minipass/dist/esm/index.js
|
|
5723
5101
|
var import_events = require("events");
|
|
@@ -6711,6 +6089,11 @@ var PathBase = class {
|
|
|
6711
6089
|
* @internal
|
|
6712
6090
|
*/
|
|
6713
6091
|
nocase;
|
|
6092
|
+
/**
|
|
6093
|
+
* boolean indicating that this path is the current working directory
|
|
6094
|
+
* of the PathScurry collection that contains it.
|
|
6095
|
+
*/
|
|
6096
|
+
isCWD = false;
|
|
6714
6097
|
// potential default fs override
|
|
6715
6098
|
#fs;
|
|
6716
6099
|
// Stats fields
|
|
@@ -6798,14 +6181,20 @@ var PathBase = class {
|
|
|
6798
6181
|
#realpath;
|
|
6799
6182
|
/**
|
|
6800
6183
|
* This property is for compatibility with the Dirent class as of
|
|
6801
|
-
* Node v20, where Dirent['
|
|
6802
|
-
* that was passed to readdir.
|
|
6803
|
-
*
|
|
6804
|
-
* For root entries, it's the path to the entry itself.
|
|
6184
|
+
* Node v20, where Dirent['parentPath'] refers to the path of the
|
|
6185
|
+
* directory that was passed to readdir. For root entries, it's the path
|
|
6186
|
+
* to the entry itself.
|
|
6805
6187
|
*/
|
|
6806
|
-
get
|
|
6188
|
+
get parentPath() {
|
|
6807
6189
|
return (this.parent || this).fullpath();
|
|
6808
6190
|
}
|
|
6191
|
+
/**
|
|
6192
|
+
* Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
|
|
6193
|
+
* this property refers to the *parent* path, not the path object itself.
|
|
6194
|
+
*/
|
|
6195
|
+
get path() {
|
|
6196
|
+
return this.parentPath;
|
|
6197
|
+
}
|
|
6809
6198
|
/**
|
|
6810
6199
|
* Do not create new Path objects directly. They should always be accessed
|
|
6811
6200
|
* via the PathScurry class or other methods on the Path class.
|
|
@@ -6931,6 +6320,8 @@ var PathBase = class {
|
|
|
6931
6320
|
* the cwd, then this ends up being equivalent to the fullpath()
|
|
6932
6321
|
*/
|
|
6933
6322
|
relative() {
|
|
6323
|
+
if (this.isCWD)
|
|
6324
|
+
return "";
|
|
6934
6325
|
if (this.#relative !== void 0) {
|
|
6935
6326
|
return this.#relative;
|
|
6936
6327
|
}
|
|
@@ -6951,6 +6342,8 @@ var PathBase = class {
|
|
|
6951
6342
|
relativePosix() {
|
|
6952
6343
|
if (this.sep === "/")
|
|
6953
6344
|
return this.relative();
|
|
6345
|
+
if (this.isCWD)
|
|
6346
|
+
return "";
|
|
6954
6347
|
if (this.#relativePosix !== void 0)
|
|
6955
6348
|
return this.#relativePosix;
|
|
6956
6349
|
const name = this.name;
|
|
@@ -7559,6 +6952,8 @@ var PathBase = class {
|
|
|
7559
6952
|
[setAsCwd](oldCwd) {
|
|
7560
6953
|
if (oldCwd === this)
|
|
7561
6954
|
return;
|
|
6955
|
+
oldCwd.isCWD = false;
|
|
6956
|
+
this.isCWD = true;
|
|
7562
6957
|
const changed = /* @__PURE__ */ new Set([]);
|
|
7563
6958
|
let rp = [];
|
|
7564
6959
|
let p = this;
|
|
@@ -7605,7 +7000,7 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
7605
7000
|
* @internal
|
|
7606
7001
|
*/
|
|
7607
7002
|
getRootString(path5) {
|
|
7608
|
-
return
|
|
7003
|
+
return import_node_path.win32.parse(path5).root;
|
|
7609
7004
|
}
|
|
7610
7005
|
/**
|
|
7611
7006
|
* @internal
|
|
@@ -7704,7 +7099,7 @@ var PathScurryBase = class {
|
|
|
7704
7099
|
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs3 = defaultFS } = {}) {
|
|
7705
7100
|
this.#fs = fsFromOption(fs3);
|
|
7706
7101
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
7707
|
-
cwd = (0,
|
|
7102
|
+
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
7708
7103
|
}
|
|
7709
7104
|
const cwdPath = pathImpl.resolve(cwd);
|
|
7710
7105
|
this.roots = /* @__PURE__ */ Object.create(null);
|
|
@@ -8245,7 +7640,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
8245
7640
|
sep = "\\";
|
|
8246
7641
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
8247
7642
|
const { nocase = true } = opts;
|
|
8248
|
-
super(cwd,
|
|
7643
|
+
super(cwd, import_node_path.win32, "\\", { ...opts, nocase });
|
|
8249
7644
|
this.nocase = nocase;
|
|
8250
7645
|
for (let p = this.cwd; p; p = p.parent) {
|
|
8251
7646
|
p.nocase = this.nocase;
|
|
@@ -8255,7 +7650,7 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
8255
7650
|
* @internal
|
|
8256
7651
|
*/
|
|
8257
7652
|
parseRootPath(dir) {
|
|
8258
|
-
return
|
|
7653
|
+
return import_node_path.win32.parse(dir).root.toUpperCase();
|
|
8259
7654
|
}
|
|
8260
7655
|
/**
|
|
8261
7656
|
* @internal
|
|
@@ -8277,7 +7672,7 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
8277
7672
|
sep = "/";
|
|
8278
7673
|
constructor(cwd = process.cwd(), opts = {}) {
|
|
8279
7674
|
const { nocase = false } = opts;
|
|
8280
|
-
super(cwd,
|
|
7675
|
+
super(cwd, import_node_path.posix, "/", { ...opts, nocase });
|
|
8281
7676
|
this.nocase = nocase;
|
|
8282
7677
|
}
|
|
8283
7678
|
/**
|
|
@@ -8309,7 +7704,7 @@ var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
|
8309
7704
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
8310
7705
|
|
|
8311
7706
|
// node_modules/glob/dist/esm/glob.js
|
|
8312
|
-
var
|
|
7707
|
+
var import_node_url2 = require("node:url");
|
|
8313
7708
|
|
|
8314
7709
|
// node_modules/glob/dist/esm/pattern.js
|
|
8315
7710
|
var isPatternList = (pl) => pl.length >= 1;
|
|
@@ -9171,7 +8566,7 @@ var Glob = class {
|
|
|
9171
8566
|
if (!opts.cwd) {
|
|
9172
8567
|
this.cwd = "";
|
|
9173
8568
|
} else if (opts.cwd instanceof URL || opts.cwd.startsWith("file://")) {
|
|
9174
|
-
opts.cwd = (0,
|
|
8569
|
+
opts.cwd = (0, import_node_url2.fileURLToPath)(opts.cwd);
|
|
9175
8570
|
}
|
|
9176
8571
|
this.cwd = opts.cwd || "";
|
|
9177
8572
|
this.root = opts.root;
|
|
@@ -9369,14 +8764,14 @@ glob.glob = glob;
|
|
|
9369
8764
|
var import_is_ci = __toESM(require_is_ci());
|
|
9370
8765
|
|
|
9371
8766
|
// node_modules/find-up/index.js
|
|
9372
|
-
var
|
|
9373
|
-
var
|
|
8767
|
+
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
8768
|
+
var import_node_url4 = require("node:url");
|
|
9374
8769
|
|
|
9375
8770
|
// node_modules/locate-path/index.js
|
|
9376
8771
|
var import_node_process = __toESM(require("node:process"), 1);
|
|
9377
|
-
var
|
|
8772
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
9378
8773
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
9379
|
-
var
|
|
8774
|
+
var import_node_url3 = require("node:url");
|
|
9380
8775
|
|
|
9381
8776
|
// node_modules/p-locate/node_modules/yocto-queue/index.js
|
|
9382
8777
|
var Node = class {
|
|
@@ -9525,7 +8920,7 @@ function checkType(type) {
|
|
|
9525
8920
|
throw new Error(`Invalid type specified: ${type}`);
|
|
9526
8921
|
}
|
|
9527
8922
|
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
9528
|
-
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
|
8923
|
+
var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url3.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9529
8924
|
async function locatePath(paths, {
|
|
9530
8925
|
cwd = import_node_process.default.cwd(),
|
|
9531
8926
|
type = "file",
|
|
@@ -9538,7 +8933,7 @@ async function locatePath(paths, {
|
|
|
9538
8933
|
const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
|
|
9539
8934
|
return pLocate(paths, async (path_) => {
|
|
9540
8935
|
try {
|
|
9541
|
-
const stat = await statFunction(
|
|
8936
|
+
const stat = await statFunction(import_node_path2.default.resolve(cwd, path_));
|
|
9542
8937
|
return matchType(type, stat);
|
|
9543
8938
|
} catch {
|
|
9544
8939
|
return false;
|
|
@@ -9547,12 +8942,12 @@ async function locatePath(paths, {
|
|
|
9547
8942
|
}
|
|
9548
8943
|
|
|
9549
8944
|
// node_modules/find-up/index.js
|
|
9550
|
-
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0,
|
|
8945
|
+
var toPath2 = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url4.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
9551
8946
|
var findUpStop = Symbol("findUpStop");
|
|
9552
8947
|
async function findUpMultiple(name, options = {}) {
|
|
9553
|
-
let directory =
|
|
9554
|
-
const { root } =
|
|
9555
|
-
const stopAt =
|
|
8948
|
+
let directory = import_node_path3.default.resolve(toPath2(options.cwd) || "");
|
|
8949
|
+
const { root } = import_node_path3.default.parse(directory);
|
|
8950
|
+
const stopAt = import_node_path3.default.resolve(directory, options.stopAt || root);
|
|
9556
8951
|
const limit = options.limit || Number.POSITIVE_INFINITY;
|
|
9557
8952
|
const paths = [name].flat();
|
|
9558
8953
|
const runMatcher = async (locateOptions) => {
|
|
@@ -9572,12 +8967,12 @@ async function findUpMultiple(name, options = {}) {
|
|
|
9572
8967
|
break;
|
|
9573
8968
|
}
|
|
9574
8969
|
if (foundPath) {
|
|
9575
|
-
matches.push(
|
|
8970
|
+
matches.push(import_node_path3.default.resolve(directory, foundPath));
|
|
9576
8971
|
}
|
|
9577
8972
|
if (directory === stopAt || matches.length >= limit) {
|
|
9578
8973
|
break;
|
|
9579
8974
|
}
|
|
9580
|
-
directory =
|
|
8975
|
+
directory = import_node_path3.default.dirname(directory);
|
|
9581
8976
|
}
|
|
9582
8977
|
return matches;
|
|
9583
8978
|
}
|
|
@@ -9629,13 +9024,11 @@ function _toPropertyKey(arg) {
|
|
|
9629
9024
|
return typeof key === "symbol" ? key : String(key);
|
|
9630
9025
|
}
|
|
9631
9026
|
function _toPrimitive(input, hint) {
|
|
9632
|
-
if (typeof input !== "object" || input === null)
|
|
9633
|
-
return input;
|
|
9027
|
+
if (typeof input !== "object" || input === null) return input;
|
|
9634
9028
|
var prim = input[Symbol.toPrimitive];
|
|
9635
9029
|
if (prim !== void 0) {
|
|
9636
9030
|
var res = prim.call(input, hint || "default");
|
|
9637
|
-
if (typeof res !== "object")
|
|
9638
|
-
return res;
|
|
9031
|
+
if (typeof res !== "object") return res;
|
|
9639
9032
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9640
9033
|
}
|
|
9641
9034
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -9726,12 +9119,12 @@ async function findReferencedFiles(filename, visited) {
|
|
|
9726
9119
|
if (!modname.startsWith(".")) {
|
|
9727
9120
|
continue;
|
|
9728
9121
|
}
|
|
9729
|
-
const relPath =
|
|
9122
|
+
const relPath = import_node_path4.default.join(import_node_path4.default.dirname(filename), modname);
|
|
9730
9123
|
if ((0, import_node_fs2.existsSync)(relPath)) {
|
|
9731
9124
|
const stat = await import_promises2.default.stat(relPath);
|
|
9732
9125
|
if (stat.isDirectory()) {
|
|
9733
9126
|
await findReferencedFiles(
|
|
9734
|
-
|
|
9127
|
+
import_node_path4.default.join(relPath, "index.d.ts"),
|
|
9735
9128
|
visited
|
|
9736
9129
|
);
|
|
9737
9130
|
} else {
|
|
@@ -9803,7 +9196,7 @@ only.
|
|
|
9803
9196
|
console.group(`Running API Extractor in local mode on ${strFiles}:`);
|
|
9804
9197
|
}
|
|
9805
9198
|
for (const filePath of configFiles) {
|
|
9806
|
-
console.log(`- ${
|
|
9199
|
+
console.log(`- ${import_node_path4.default.basename(filePath)}`);
|
|
9807
9200
|
}
|
|
9808
9201
|
console.groupEnd();
|
|
9809
9202
|
console.log();
|