@astrojs/upgrade 0.4.1 → 0.4.2
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.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -603,8 +603,8 @@ async function verify(ctx) {
|
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function isOnline(registry) {
|
|
606
|
-
const {
|
|
607
|
-
return dns.lookup(
|
|
606
|
+
const { hostname } = new URL(registry);
|
|
607
|
+
return dns.lookup(hostname).then(
|
|
608
608
|
() => true,
|
|
609
609
|
() => false
|
|
610
610
|
);
|