@types/netmask
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -50,2 +50,5 @@ // Type definitions for netmask 2.0 | ||
maskLong: number; | ||
netLong: number; | ||
/** | ||
@@ -55,7 +58,7 @@ * Returns a true if the IP number ip is part of the network. That is, a true value is returned if ip is between base and broadcast. | ||
*/ | ||
contains: (address: string | Netmask | number) => boolean; | ||
contains(address: string | Netmask | number): boolean; | ||
/** | ||
* Similar to the Array prototype method. It loops through all the useable addresses, ie between first and last. | ||
*/ | ||
forEach: (cb: (ip: string, long: number, index: number) => void) => void; | ||
forEach(cb: (ip: string, long: number, index: number) => void): void; | ||
/** | ||
@@ -65,7 +68,7 @@ * Without a count, return the next block of the same size after the current one. With a count, return the Nth block after the current one. | ||
*/ | ||
next: (count?: number) => Netmask; | ||
next(count?: number): Netmask; | ||
/** | ||
* The netmask in base/bitmask format (e.g., '216.240.32.0/24') | ||
*/ | ||
toString: () => string; | ||
toString(): string; | ||
@@ -72,0 +75,0 @@ /** |
{ | ||
"name": "@types/netmask", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TypeScript definitions for netmask", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/netmask", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "aee70755fc40250c415e70830ac8ef2a6aa759c6b445fe8f2acbeb5b200ff93d", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "3806e60ccf292ac0293c7128ba7aae79d12ba685460313094651a25e17573517", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -60,2 +60,5 @@ # Installation | ||
maskLong: number; | ||
netLong: number; | ||
/** | ||
@@ -65,7 +68,7 @@ * Returns a true if the IP number ip is part of the network. That is, a true value is returned if ip is between base and broadcast. | ||
*/ | ||
contains: (address: string | Netmask | number) => boolean; | ||
contains(address: string | Netmask | number): boolean; | ||
/** | ||
* Similar to the Array prototype method. It loops through all the useable addresses, ie between first and last. | ||
*/ | ||
forEach: (cb: (ip: string, long: number, index: number) => void) => void; | ||
forEach(cb: (ip: string, long: number, index: number) => void): void; | ||
/** | ||
@@ -75,7 +78,7 @@ * Without a count, return the next block of the same size after the current one. With a count, return the Nth block after the current one. | ||
*/ | ||
next: (count?: number) => Netmask; | ||
next(count?: number): Netmask; | ||
/** | ||
* The netmask in base/bitmask format (e.g., '216.240.32.0/24') | ||
*/ | ||
toString: () => string; | ||
toString(): string; | ||
@@ -93,3 +96,3 @@ /** | ||
### Additional Details | ||
* Last updated: Wed, 08 Mar 2023 03:02:39 GMT | ||
* Last updated: Mon, 19 Jun 2023 17:32:47 GMT | ||
* Dependencies: none | ||
@@ -96,0 +99,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7683
73
99