chore: Update dist

This commit is contained in:
GitHub Actions committed 2026-10-27 03:53:24 +00:00
1 parent dba53297ee
commit f694c0e2f4
2 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -1485,7 +1485,7 @@ Apache-2.0
The following npm package may be included in this product: The following npm package may be included in this product:
- ip-address@10.7.2 - ip-address@10.7.5
This package contains the following license: This package contains the following license:
Generated Vendored
+10 -6
View File
@@ -49769,10 +49769,10 @@ var require_common2 = __commonJS({
} }
function testBit(binaryValue, position) { function testBit(binaryValue, position) {
const { length } = binaryValue; const { length } = binaryValue;
if (position > length) { if (position >= length) {
return false; return false;
} }
const positionInString = length - position; const positionInString = length - position - 1;
return binaryValue.substring(positionInString, positionInString + 1) === "1"; return binaryValue.substring(positionInString, positionInString + 1) === "1";
} }
} }
@@ -50030,6 +50030,10 @@ var require_ipv4 = __commonJS({
* address.correctForm(); // '192.0.2.42' * address.correctForm(); // '192.0.2.42'
*/ */
static fromArpa(arpaFormAddress) { static fromArpa(arpaFormAddress) {
const longest = constants4.GROUPS * 4 - 1 + "/32".length + ".in-addr.arpa.".length;
if (arpaFormAddress.length > longest) {
throw new address_error_1.AddressError(`in-addr.arpa names are at most ${longest} characters.`);
}
const leader = arpaFormAddress.replace(/(\.in-addr\.arpa)?\.?$/i, ""); const leader = arpaFormAddress.replace(/(\.in-addr\.arpa)?\.?$/i, "");
const address = leader.split(".").reverse().join("."); const address = leader.split(".").reverse().join(".");
return new _Address4(address); return new _Address4(address);
@@ -50713,10 +50717,10 @@ var require_ipv6 = __commonJS({
if (/\//.test(address)) { if (/\//.test(address)) {
throw new address_error_1.AddressError("Invalid subnet mask."); throw new address_error_1.AddressError("Invalid subnet mask.");
} }
const zone = constants6.RE_ZONE_STRING.exec(address); const zoneStart = address.indexOf("%");
if (zone) { if (zoneStart !== -1 && /^.*$/.test(address.slice(zoneStart))) {
this.zone = zone[0]; this.zone = address.slice(zoneStart);
address = address.replace(constants6.RE_ZONE_STRING, ""); address = address.slice(0, zoneStart);
} }
const longest = this.groups * 5 + 5; const longest = this.groups * 5 + 5;
if (address.length > longest) { if (address.length > longest) {