ip-utilties 1.4.13 → 2.0.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 +3 -3
- package/src/ip.mjs +3 -2
- package/types/ip.d.mts +3 -2
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ip-utilties",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
|
-
"packageManager": "npm@11.6.
|
|
8
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"default": "./src/ip.mjs"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"ava": "^6.4.1",
|
|
44
|
-
"browser-ava": "^2.3.
|
|
44
|
+
"browser-ava": "^2.3.45",
|
|
45
45
|
"c8": "^10.1.3",
|
|
46
46
|
"documentation": "^14.0.3",
|
|
47
47
|
"semantic-release": "^25.0.2",
|
package/src/ip.mjs
CHANGED
|
@@ -331,7 +331,8 @@ export function hasWellKnownSubnet(address) {
|
|
|
331
331
|
return isLocalhost(address) || isLinkLocal(address) || isUniqueLocal(address);
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
-
export const
|
|
335
|
-
export const
|
|
334
|
+
export const IPV6_ALL_NODES = _encode(ipv6, "ff02::1");
|
|
335
|
+
export const IPV6_ALL_ROUTERS = _encode(ipv6, "ff02::2");
|
|
336
|
+
export const IPV6_ALL_HOSTS = _encode(ipv6, "ff02::3");
|
|
336
337
|
export const IPV4_LOCALHOST = _encode(ipv4, "127.0.0.1");
|
|
337
338
|
export const IPV6_LOCALHOST = _encode(ipv6, "::1");
|
package/types/ip.d.mts
CHANGED
|
@@ -44,7 +44,8 @@ export function isLocalhost(address: any): boolean;
|
|
|
44
44
|
export function isLinkLocal(address: any): boolean;
|
|
45
45
|
export function isUniqueLocal(address: any): boolean;
|
|
46
46
|
export function hasWellKnownSubnet(address: any): boolean;
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
47
|
+
export const IPV6_ALL_NODES: any;
|
|
48
|
+
export const IPV6_ALL_ROUTERS: any;
|
|
49
|
+
export const IPV6_ALL_HOSTS: any;
|
|
49
50
|
export const IPV4_LOCALHOST: any;
|
|
50
51
|
export const IPV6_LOCALHOST: any;
|