Socket
Socket
Sign inDemoInstall

cidr-regex

Package Overview
Dependencies
Maintainers
1
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 4.1.0 to 4.1.1

10

dist/index.js

@@ -1,3 +0,2 @@

import ipRegex from 'ip-regex';
import ipRegex from "ip-regex";
const defaultOpts = { exact: false };

@@ -12,3 +11,6 @@ const v4str = `${ipRegex.v4().source}\\/(3[0-2]|[12]?[0-9])`;

const v6 = cidrRegex.v6 = ({ exact } = defaultOpts) => exact ? v6exact : new RegExp(v6str, "g");
export { cidrRegex as default, v4, v6 };
export {
cidrRegex as default,
v4,
v6
};

3

package.json
{
"name": "cidr-regex",
"version": "4.1.0",
"version": "4.1.1",
"description": "Regular expression for matching IP addresses in CIDR notation",

@@ -30,3 +30,2 @@ "author": "silverwind <me@silverwind.io>",

"eslint-config-silverwind-typescript": "3.2.7",
"tsd": "0.31.0",
"typescript": "5.4.5",

@@ -33,0 +32,0 @@ "typescript-config-silverwind": "4.3.2",

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