ip-utilties 1.4.4 → 1.4.5

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/package.json +1 -1
  2. package/src/ip.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ip-utilties",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/ip.mjs CHANGED
@@ -233,10 +233,10 @@ export function normalizeCIDR(address) {
233
233
  prefixLength = 64;
234
234
  const n = _prefix(ipv6, address, prefixLength);
235
235
  prefix = _decode(ipv6, n, prefixLength);
236
- longPrefix = prefix;
237
236
  if(!prefix.endsWith('::')) { // TODO
238
- longPrefix += '::';
237
+ prefix += '::';
239
238
  }
239
+ longPrefix = prefix;
240
240
  } else {
241
241
  const family = /*_family(prefix); */ isIPv6(prefix) ? ipv6 : ipv4;
242
242
  let n;