@dgac/nmb2b-client
Version:
EUROCONTROL Network Manager B2B SOAP client
14 lines (12 loc) • 395 B
JavaScript
import https from "node:https";
//#region src/utils/xsd/createAxiosConfig.ts
function createAxiosConfig({ security }) {
if (!!security && "apiKeyId" in security) return { auth: {
username: security.apiKeyId,
password: security.apiSecretKey
} };
return { httpsAgent: new https.Agent(security) };
}
//#endregion
export { createAxiosConfig };
//# sourceMappingURL=createAxiosConfig.mjs.map