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

cidr-regex

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cidr-regex - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

6

index.js

@@ -8,7 +8,7 @@ "use strict";

const ip = module.exports = opts => opts && opts.exact ?
const cidr = module.exports = opts => opts && opts.exact ?
new RegExp(`(?:^${v4}$)|(?:^${v6}$)`) :
new RegExp(`(?:${v4})|(?:${v6})`, "g");
ip.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, "g");
ip.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, "g");
cidr.v4 = opts => opts && opts.exact ? new RegExp(`^${v4}$`) : new RegExp(v4, "g");
cidr.v6 = opts => opts && opts.exact ? new RegExp(`^${v6}$`) : new RegExp(v6, "g");
{
"name": "cidr-regex",
"version": "2.0.9",
"version": "2.0.10",
"description": "Regular expression for matching IP addresses in CIDR notation",

@@ -34,7 +34,7 @@ "author": "silverwind <me@silverwind.io>",

"devDependencies": {
"ava": "^0.25.0",
"eslint": "^4.19.1",
"eslint-config-silverwind": "^1.0.42",
"updates": "^3.0.0"
"eslint": "^5.6.0",
"eslint-config-silverwind": "^2.0.9",
"updates": "^4.3.0",
"ver": "^2.0.1"
}
}
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