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","exports","values","HEADERS_KEYS","forEach","header","axios","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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,SAAlBA,eAAeA,CAAA,EAAS;EAC5B,IAAAE,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","ignoreList":[]}