ip-accesscontrol
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict' | ||
class IPAccessControl { | ||
static check(ip, ipRanges){ | ||
if(!ipRanges || !ip){ | ||
return false | ||
} | ||
if(!Array.isArray(ipRanges)){ | ||
@@ -5,0 +8,0 @@ ipRanges = [ipRanges] |
{ | ||
"name": "ip-accesscontrol", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"private": false, | ||
"main": "./index.js" | ||
} |
@@ -26,3 +26,3 @@ # Welcome to IP ACCESS CONTROL! | ||
```javascript | ||
import IPAccessControl from 'IPAccessControl' | ||
import IPAccessControl from 'ip-accesscontrol' | ||
...... | ||
@@ -29,0 +29,0 @@ let pattern = "192.168.*" |
5050
117