ip-utilties 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ip.mjs +6 -0
package/package.json
CHANGED
package/src/ip.mjs
CHANGED
|
@@ -219,6 +219,12 @@ function _is(family, address) {
|
|
|
219
219
|
return (
|
|
220
220
|
address instanceof family.factory && address.length === family.segments
|
|
221
221
|
);
|
|
222
|
+
|
|
223
|
+
case "bigint": {
|
|
224
|
+
if (family === ipv6 && address > 1n << BigInt(ipv4.bitLength)) {
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
return false;
|