Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async networkFetch(path, options) {
debug('networkFetch %s, %o', path, options);
const { protocol } = new url.URL(path);
if (protocol === 'https:') {
return fetch(
path,
Object.assign({ agent: httpsAgent }, options)
);
}
return fetch(path, options);
// Use the https.Agent to allow self-signed certificates.
}
};
this.middleware = await upward.middleware(
this.upwardPath,
this.env,
io
);
}
async getCompiler() {