cidr-tools 5.1.5 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -9,7 +9,7 @@ const bits = {
9
9
  };
10
10
 
11
11
  const normalizeIp = str => stringifyIp(parseIp(str));
12
- const uniq = arr => [...new Set(arr)];
12
+ const uniq = arr => Array.from(new Set(arr));
13
13
 
14
14
  function isIP(ip) {
15
15
  if (ipRegex.v4({exact: true}).test(ip)) return 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cidr-tools",
3
- "version": "5.1.5",
3
+ "version": "6.0.0",
4
4
  "author": "silverwind <me@silverwind.io>",
5
5
  "description": "Tools to work with IPv4 and IPv6 CIDR network lists",
6
6
  "repository": "silverwind/cidr-tools",
@@ -11,7 +11,7 @@
11
11
  "types": "./index.d.ts",
12
12
  "sideEffects": false,
13
13
  "engines": {
14
- "node": ">=14"
14
+ "node": ">=16"
15
15
  },
16
16
  "files": [
17
17
  "index.js",
@@ -19,15 +19,15 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "cidr-regex": "4.0.3",
22
- "ip-bigint": "6.0.1",
22
+ "ip-bigint": "7.0.2",
23
23
  "ip-regex": "5.0.0",
24
24
  "string-natural-compare": "3.0.1"
25
25
  },
26
26
  "devDependencies": {
27
- "eslint": "8.40.0",
28
- "eslint-config-silverwind": "72.0.5",
29
- "updates": "14.1.0",
30
- "versions": "11.0.0",
31
- "vitest": "0.31.0"
27
+ "eslint": "8.41.0",
28
+ "eslint-config-silverwind": "73.0.0",
29
+ "updates": "14.1.1",
30
+ "versions": "11.0.1",
31
+ "vitest": "0.31.3"
32
32
  }
33
33
  }