Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const alreadyProvisioned = hostname => {
const configuredDomains = devcert.configuredDomains();
debug(
'checking for %s in devcert.configuredDomains() === %o',
hostname,
configuredDomains
);
const isProvisioned = configuredDomains.includes(hostname);
debug('isProvisioned? %s', isProvisioned);
return isProvisioned;
};