@dgac/nmb2b-client
Version:
EUROCONTROL Network Manager B2B SOAP client
1 lines • 783 B
Source Map (JSON)
{"version":3,"file":"withLog.mjs","names":[],"sources":["../../../src/utils/hooks/withLog.ts"],"sourcesContent":["import { createDebugLogger } from '../debug.js';\nimport { createHook } from './hooks.js';\n\nexport const logHook = createHook(({ service, query, input }) => {\n const debug = createDebugLogger(`${service}:${query}`);\n\n debug(`Called with input %o`, input);\n\n return {\n onRequestError: ({ error }) => {\n debug(`Failed: ${error.message}`);\n },\n onRequestSuccess: () => {\n debug('Succeded');\n },\n };\n});\n"],"mappings":";;;;AAGA,MAAa,UAAU,YAAY,EAAE,SAAS,OAAO,YAAY;CAC/D,MAAM,QAAQ,kBAAkB,GAAG,QAAQ,GAAG,QAAQ;AAEtD,OAAM,wBAAwB,MAAM;AAEpC,QAAO;EACL,iBAAiB,EAAE,YAAY;AAC7B,SAAM,WAAW,MAAM,UAAU;;EAEnC,wBAAwB;AACtB,SAAM,WAAW;;EAEpB;EACD"}