The dependencies are outdated and we have CG issues.
Use somethign more modern is-reachable or use dns npm package to resolve google.com if that works, then we know we have a connection.
Note: We're only interested in access to teh CDNs, hence checking whether we have access to one of them is sufficient and can be easily done in native JS code without any packages (benefiting from not having to maintain CG issues, etc)
The dependencies are outdated and we have CG issues. Use somethign more modern
is-reachable
or usedns
npm package to resolvegoogle.com
if that works, then we know we have a connection. Note: We're only interested in access to teh CDNs, hence checking whether we have access to one of them is sufficient and can be easily done in native JS code without any packages (benefiting from not having to maintain CG issues, etc)