package.cjs.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","_interopRequireDefault","require","_constants","_ramda","resetAuthTokens","values","HEADERS_KEYS","forEach","header","axios","defaults","headers","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAA,EAAS;EAC5B,IAAAC,aAAM,EAACC,uBAAY,CAAC,CAACC,OAAO,CAAC,UAAAC,MAAM,EAAI;IACrC,OAAOC,iBAAK,CAACC,QAAQ,CAACC,OAAO,CAACH,MAAM,CAAC;EACvC,CAAC,CAAC;AACJ,CAAC;AAACI,OAAA,CAAAR,eAAA,GAAAA,eAAA"}