@redocly/cli
Version:
[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g
12 lines • 378 B
JavaScript
import fetchWithTimeout from './fetch-with-timeout.js';
import { DEFAULT_FETCH_TIMEOUT, OTEL_URL } from './constants.js';
export async function respondWithinMs(timeout = DEFAULT_FETCH_TIMEOUT) {
try {
await fetchWithTimeout(OTEL_URL, { timeout });
return true;
}
catch (error) {
return false;
}
}
//# sourceMappingURL=network-check.js.map