Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/netmask

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/netmask - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

netmask/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc