Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function patch (uri: string, data: any, options: any, callback: INeedleCallback): INeedleRequest {
if (isOffline()) { return closeConnection(callback); }
return needle.patch(uri, data, withProxy(options), callback);
}