Comparing version 2.0.0 to 2.0.1
"use strict"; | ||
const isIp = require("is-ip"); | ||
const isIP = require("is-ip"); | ||
const ipv6Normalize = require("ipv6-normalize"); | ||
@@ -10,3 +10,3 @@ | ||
module.exports.parse = ip => { | ||
const version = isIp.version(ip); | ||
const version = isIP.version(ip); | ||
if (![4, 6].includes(version)) throw new Error(`Invalid IP address: ${ip}`); | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "ip-bigint", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Convert IPv4 and IPv6 addresses to native BigInt and vice-versa", | ||
@@ -14,2 +14,5 @@ "author": "silverwind <me@silverwind.io>", | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
@@ -20,10 +23,8 @@ "ipv6-normalize": "1.0.1", | ||
"devDependencies": { | ||
"eslint": "6.0.1", | ||
"eslint-config-silverwind": "4.0.2", | ||
"updates": "8.2.1", | ||
"ver": "5.1.2" | ||
"eslint": "7.7.0", | ||
"eslint-config-silverwind": "18.0.3", | ||
"updates": "10.3.5", | ||
"jest": "26.4.1", | ||
"versions": "8.4.3" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
@@ -30,0 +31,0 @@ "ip", |
# ip-bigint | ||
[![](https://img.shields.io/npm/v/ip-bigint.svg?style=flat)](https://www.npmjs.org/package/ip-bigint) [![](https://img.shields.io/npm/dm/ip-bigint.svg)](https://www.npmjs.org/package/ip-bigint) [![](https://api.travis-ci.org/silverwind/ip-bigint.svg?style=flat)](https://travis-ci.org/silverwind/ip-bigint) | ||
[![](https://img.shields.io/npm/v/ip-bigint.svg?style=flat)](https://www.npmjs.org/package/ip-bigint) [![](https://img.shields.io/npm/dm/ip-bigint.svg)](https://www.npmjs.org/package/ip-bigint) | ||
> Convert IPv4 and IPv6 addresses to native BigInt and vice-versa | ||
## Installation | ||
## Install | ||
``` | ||
$ npm i ip-bigint | ||
npm i ip-bigint | ||
``` | ||
@@ -11,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5967
5