All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.utils.axios.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"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":[]}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy