foxts 3.5.0 → 3.6.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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * If you know the input is probably an IP, you can use this function to quickly determine the version of the IP
3
+ */
4
+ declare function fastIpVersion(probablyIp: string): 4 | 6 | 0;
5
+
6
+ export { fastIpVersion };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.fastIpVersion=function(e){return e.includes(":")?6:4*!!e.includes(".")};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * If you know the input is probably an IP, you can use this function to quickly determine the version of the IP
3
+ */
4
+ declare function fastIpVersion(probablyIp: string): 4 | 6 | 0;
5
+
6
+ export { fastIpVersion };
@@ -0,0 +1 @@
1
+ function n(n){return n.includes(":")?6:4*!!n.includes(".")}export{n as fastIpVersion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxts",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "Opinionated collection of common TypeScript utils by @SukkaW",
5
5
  "repository": {
6
6
  "url": "https://github.com/SukkaW/foxts"
@@ -328,6 +328,16 @@
328
328
  "types": "./dist/cjs/string-join.d.ts",
329
329
  "default": "./dist/cjs/string-join.js"
330
330
  }
331
+ },
332
+ "./fast-ip-version": {
333
+ "import": {
334
+ "types": "./dist/es/fast-ip-version.d.mts",
335
+ "default": "./dist/es/fast-ip-version.mjs"
336
+ },
337
+ "require": {
338
+ "types": "./dist/cjs/fast-ip-version.d.ts",
339
+ "default": "./dist/cjs/fast-ip-version.js"
340
+ }
331
341
  }
332
342
  },
333
343
  "sideEffects": false,