Comparing version 6.0.1 to 6.0.2
@@ -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; |
@@ -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> & { |
{ | ||
"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" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16439
417
6