"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldPassThrough = shouldPassThrough;
function shouldPassThrough(hostname, 
// Only one of these two should have values (validated above):
passThroughPatterns, interceptOnlyPatterns) {
    if (!hostname)
        return false;
    if (interceptOnlyPatterns) {
        return !interceptOnlyPatterns.some((pattern) => pattern.test(`https://${hostname}`));
    }
    return passThroughPatterns.some((pattern) => pattern.test(`https://${hostname}`));
}
//# sourceMappingURL=server-utils.js.map