UNPKG

@fastly/as-url

Version:

![npm version](https://img.shields.io/npm/v/@fastly/as-url) ![npm downloads per month](https://img.shields.io/npm/dm/@fastly/as-url)

17 lines (14 loc) 355 B
// Copyright 2021 Fastly, Inc. // Create a constant to special schemes we will need to match for // https://url.spec.whatwg.org/#special-scheme export const SPECIAL_SCHEMES = [ "ftp:", "file:", "http:", "https:", "ws:", "wss:", ]; export function throwInvalidUrlError(): void { throw new Error("Failed to construct 'URL': Invalid URL"); }