Socket
Socket
Sign inDemoInstall

netmask

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netmask - npm Package Versions

2.0.2

Diff

Changelog

Source

v2.0.2 (Apr 2, 2021)

Bugfixes

  • Fix 08 parsed as decimal while 018 rejected. (commit)
rs
published 2.0.1 •

Changelog

Source

v2.0.1 (Mar 29, 2021)

IMPORTANT: Security Fix

This version contains an important security fix. If you are using netmask <=2.0.0, please upgrade to 2.0.1 or above.

Bugfixes

  • Add checks on spaces before and after bytes
    • This will now throw an exception when spaces are present like ' 1.2.3.4' or '1. 2.3.4' or '1.2.3.4 '.

Internal Changes

  • Avoid some useless memory allocations
  • New Mocha testing suite, thanks @kaoudis #36
rs
published 2.0.0 •

Changelog

Source

v2.0.0 (Mar 19, 2021)

Breaking Change

Previous API was treating IPs with less than four bytes as IP with a netmask of the size of the provided bytes (1=8, 2=16, 3=24) and was interpreting the IP as if it was completed with 0s on the right side.

Proper IP parsing for these is to consider missing bytes as being 0s on the left side.

Mask size is no longer infered by the number of bytes provided.

This means that the input 216.240 will no longer be interpreted as 216.240.0.0/16, but as 0.0.216.240/32, as per convention.

See the change.

Bugfixes

  • Fix improper parsing of hex bytes
rs
published 1.0.6 •

Changelog

Source

v1.0.6 (May 30, 2016)

rs
published 1.0.5 •

rs
published 1.0.4 •

rs
published 1.0.3 •

rs
published 0.0.2 •

rs
published 0.0.1 •

rs
published 0.0.0 •

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