Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
global.fetch = function fetch(url, options) {
const normalized = /^\/\//.test(url) ? `https:${url}` : url;
return realFetch.call(this, normalized, options);
};
global.Response = realFetch.Response;