UNPKG

unmock-core

Version:

[![npm](https://img.shields.io/npm/v/unmock-core.svg)][npmjs] [![CircleCI](https://circleci.com/gh/unmock/unmock-js.svg?style=svg)](https://circleci.com/gh/unmock/unmock-js) [![codecov](https://codecov.io/gh/unmock/unmock-js/branch/dev/graph/badge.svg)](h

10 lines 400 B
export declare class AllowedHosts { private whitelist; private regexWhitelist; constructor(whitelist?: Array<string | RegExp>, regexWhitelist?: RegExp[]); set(urls: Array<string | RegExp> | string | RegExp): void; add(urls: string | RegExp | Array<string | RegExp>): void; get(): string[]; isWhitelisted(host: string): boolean; } //# sourceMappingURL=allowedHosts.d.ts.map