package.utils.axios.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"axios.js","names":["axios","HEADERS_KEYS","values","resetAuthTokens","forEach","header","defaults","headers"],"sources":["../../src/utils/axios.js"],"sourcesContent":["import axios from \"axios\";\nimport { HEADERS_KEYS } from \"initializers/constants\";\nimport { values } from \"ramda\";\n\nconst resetAuthTokens = () => {\n values(HEADERS_KEYS).forEach(header => {\n delete axios.defaults.headers[header];\n });\n};\n\nexport { resetAuthTokens };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY;AACrB,SAASC,MAAM,QAAQ,OAAO;AAE9B,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAA,EAAS;EAC5BD,MAAM,CAACD,YAAY,CAAC,CAACG,OAAO,CAAC,UAAAC,MAAM,EAAI;IACrC,OAAOL,KAAK,CAACM,QAAQ,CAACC,OAAO,CAACF,MAAM,CAAC;EACvC,CAAC,CAAC;AACJ,CAAC;AAED,SAASF,eAAe","ignoreList":[]}