@ztimson/utils 0.26.7 → 0.26.9

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/misc.d.ts CHANGED
@@ -28,6 +28,12 @@ export declare function gravatar(email: string, def?: string): string;
28
28
  * @returns {string | null} IPv4 address, e.g. 172.16.58.3
29
29
  */
30
30
  export declare function ipV6ToV4(ip: string): string | null;
31
+ /**
32
+ * Check if IP is reserved, e.g. localhost, private IPs, etc.
33
+ * @param {string} ip
34
+ * @returns {boolean}
35
+ */
36
+ export declare function reservedIp(ip: string): boolean;
31
37
  /**
32
38
  * Represents a function that listens for events and handles them accordingly.
33
39
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.26.7",
3
+ "version": "0.26.9",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",