+1
-0
@@ -18,2 +18,3 @@ import AggregateError from 'aggregate-error'; // Use built-in when targeting Node.js 16 | ||
| const ipv6 = await ipv6Promise; | ||
| ipv4Promise.catch(() => {}); // Don't throw when cancelling | ||
| ipv4Promise.cancel(); | ||
@@ -20,0 +21,0 @@ return ipv6; |
+2
-2
@@ -6,3 +6,3 @@ /** | ||
| export interface Options { | ||
| export type Options = { | ||
| /** | ||
@@ -43,3 +43,3 @@ Use a HTTPS check using the [icanhazip.com](https://github.com/major/icanhaz) service instead of the DNS query. [ipify.org](https://www.ipify.org) is used as a fallback if `icanhazip.com` fails. This check is much more secure and tamper-proof, but also a lot slower. | ||
| readonly fallbackUrls?: readonly string[]; | ||
| } | ||
| }; | ||
@@ -46,0 +46,0 @@ export type CancelablePromise<T> = Promise<T> & { |
+7
-2
| { | ||
| "name": "public-ip", | ||
| "version": "6.0.1", | ||
| "version": "6.0.2", | ||
| "description": "Get your public IP address — very fast!", | ||
@@ -19,2 +19,3 @@ "license": "MIT", | ||
| }, | ||
| "sideEffects": false, | ||
| "engines": { | ||
@@ -53,6 +54,7 @@ "node": ">=14.16" | ||
| "ava": "^4.3.0", | ||
| "esmock": "^2.6.4", | ||
| "sinon": "^14.0.0", | ||
| "time-span": "^5.0.0", | ||
| "tsd": "^0.21.0", | ||
| "xo": "^0.50.0" | ||
| "xo": "^0.54.0" | ||
| }, | ||
@@ -69,4 +71,7 @@ "xo": { | ||
| "test.js" | ||
| ], | ||
| "nodeArguments": [ | ||
| "--loader=esmock" | ||
| ] | ||
| } | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
16439
0.95%417
0.24%6
20%