insomnia/packages/insomnia-app/app/common/send-request.ts
Jack Kavanagh 80e5161a20
Fix: disabled native modules in the renderer (#4230)
* fix non-context-aware imports

* extract _actuallySend to file

* extract CLI unit test function from renderer

* expose curl functions to the ipc renderer

* use curl through ipcRenderer

* feedback first pass make like grpc

* feedback second pass remove duplicate

* fix lint
2021-12-02 09:26:08 +00:00

10 lines
314 B
TypeScript

import { stats } from '../models';
import { sendAndTransform } from '../network/network';
export function getSendRequestCallback(environmentId?: string) {
return async function sendRequest(requestId: string) {
stats.incrementExecutedRequests();
return sendAndTransform(requestId, environmentId);
};
}