ip-bigint
Advanced tools
Comparing version 2.0.1 to 3.0.0
"use strict"; | ||
const isIP = require("is-ip"); | ||
const ipv6Normalize = require("ipv6-normalize"); | ||
@@ -101,4 +100,4 @@ const max4 = module.exports.max4 = BigInt(2) ** BigInt(32) - BigInt(1); | ||
return ipv6Normalize(ip); | ||
return ip.replace(/\b:?(?:0+:?){2,}/, "::"); | ||
} | ||
}; |
{ | ||
"name": "ip-bigint", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Convert IPv4 and IPv6 addresses to native BigInt and vice-versa", | ||
@@ -18,3 +18,2 @@ "author": "silverwind <me@silverwind.io>", | ||
"dependencies": { | ||
"ipv6-normalize": "1.0.1", | ||
"is-ip": "3.1.0" | ||
@@ -25,4 +24,4 @@ }, | ||
"eslint-config-silverwind": "18.0.3", | ||
"jest": "26.4.1", | ||
"updates": "10.3.5", | ||
"jest": "26.4.1", | ||
"versions": "8.4.3" | ||
@@ -29,0 +28,0 @@ }, |
1
5906
85
- Removedipv6-normalize@1.0.1
- Removedipv6-normalize@1.0.1(transitive)