Socket
Socket
Sign inDemoInstall

ip-bigint

Package Overview
Dependencies
2
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 3.0.0

3

index.js
"use strict";
const isIP = require("is-ip");
const ipv6Normalize = require("ipv6-normalize");

@@ -101,4 +100,4 @@ const max4 = module.exports.max4 = BigInt(2) ** BigInt(32) - BigInt(1);

return ipv6Normalize(ip);
return ip.replace(/\b:?(?:0+:?){2,}/, "::");
}
};
{
"name": "ip-bigint",
"version": "2.0.1",
"version": "3.0.0",
"description": "Convert IPv4 and IPv6 addresses to native BigInt and vice-versa",

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

"dependencies": {
"ipv6-normalize": "1.0.1",
"is-ip": "3.1.0"

@@ -25,4 +24,4 @@ },

"eslint-config-silverwind": "18.0.3",
"jest": "26.4.1",
"updates": "10.3.5",
"jest": "26.4.1",
"versions": "8.4.3"

@@ -29,0 +28,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc