Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async ( ) =>
{
const { fetch, disconnectAll } = context( {
httpsProtocols: protos,
} );
await fn( fetch ).then( ...Finally( disconnectAll ) );
};
}
});
if (!endStream)
await req.readable()
.then(readable => {
readable.pipe(stream);
});
return response;
});
}
return Promise.race([
signalPromise,
timeoutInfo && timeoutInfo.promise,
doFetch(),
]
.filter(promise => promise))
.then(...already_1.Finally(cleanup));
}
function fetch(session, input, init) {