( environmentId: number | null, )
| 368 | } |
| 369 | |
| 370 | function resolveEnvironmentVariables( |
| 371 | environmentId: number | null, |
| 372 | ): Record<string, string> { |
| 373 | if (environmentId === null) |
| 374 | return {} |
| 375 | const storage = useHttpStorage() |
| 376 | const env = storage.environments |
| 377 | .getEnvironments() |
| 378 | .find(e => e.id === environmentId) |
| 379 | return env?.variables ?? {} |
| 380 | } |
| 381 | |
| 382 | async function executeHttpRequest( |
| 383 | payload: HttpExecutePayload, |
no test coverage detected