@ztimson/utils 0.26.9 → 0.26.11

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.
package/dist/index.cjs CHANGED
@@ -1732,7 +1732,7 @@ ${opts.message || this.desc}`;
1732
1732
  return ipv4;
1733
1733
  }
1734
1734
  function reservedIp(ip) {
1735
- if (ip == "localhost") return true;
1735
+ if (ip == "localhost" || ip == "127.0.0.1") return true;
1736
1736
  return /\b(10\.(?:[0-9]{1,3}\.){2}[0-9]{1,3})\b|\b(172\.(?:1[6-9]|2[0-9]|3[0-1])\.(?:[0-9]{1,3}\.)[0-9]{1,3})\b|\b(192\.168\.(?:[0-9]{1,3}\.)[0-9]{1,3})\b/.test(ip);
1737
1737
  }
1738
1738
  function PE(str, ...args) {
@@ -2052,9 +2052,9 @@ ${opts.message || this.desc}`;
2052
2052
  case "!=":
2053
2053
  return a != b;
2054
2054
  case "+":
2055
- return a.includes(b);
2055
+ return typeof (a == null ? void 0 : a.includes) != "undefined" ? a.includes(b) : a == b;
2056
2056
  case "-":
2057
- return !a.includes(b);
2057
+ return typeof (a == null ? void 0 : a.includes) != "undefined" ? !a.includes(b) : a != b;
2058
2058
  case ">":
2059
2059
  return a > b;
2060
2060
  case ">=":