@dgac/nmb2b-client
Version:
EUROCONTROL Network Manager B2B SOAP client
1 lines • 744 B
Source Map (JSON)
{"version":3,"file":"createAxiosConfig.mjs","names":[],"sources":["../../../src/utils/xsd/createAxiosConfig.ts"],"sourcesContent":["import type { Security } from '../../security.js';\nimport https from 'node:https';\n\nexport function createAxiosConfig({ security }: { security?: Security }) {\n if (!!security && 'apiKeyId' in security) {\n return {\n auth: {\n username: security.apiKeyId,\n password: security.apiSecretKey,\n },\n };\n }\n\n const httpsAgent = new https.Agent(security);\n\n return { httpsAgent };\n}\n"],"mappings":";;;AAGA,SAAgB,kBAAkB,EAAE,YAAqC;AACvE,KAAI,CAAC,CAAC,YAAY,cAAc,SAC9B,QAAO,EACL,MAAM;EACJ,UAAU,SAAS;EACnB,UAAU,SAAS;EACpB,EACF;AAKH,QAAO,EAAE,YAFU,IAAI,MAAM,MAAM,SAAS,EAEvB"}