package.cjs.initializers.axiosInitializer.paramsSerializer.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":"paramsSerializer.js","names":["_axios","_interopRequireDefault","require","_qs","setParamsSerializer","axios","defaults","paramsSerializer","params","qs","stringify","arrayFormat","skipNulls","_default","exports"],"sources":["../../../../src/initializers/axiosInitializer/paramsSerializer.js"],"sourcesContent":["/* eslint-disable @bigbinary/neeto/use-snake-case-for-api-connector-filename */\nimport axios from \"axios\";\nimport qs from \"qs\";\n\nconst setParamsSerializer = () => {\n axios.defaults.paramsSerializer = params =>\n qs.stringify(params, { arrayFormat: \"brackets\", skipNulls: true });\n};\n\nexport default setParamsSerializer;\n"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,GAAA,GAAAF,sBAAA,CAAAC,OAAA;AAFA;;AAIA,IAAME,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EAChCC,iBAAK,CAACC,QAAQ,CAACC,gBAAgB,GAAG,UAAAC,MAAM;IAAA,OACtCC,cAAE,CAACC,SAAS,CAACF,MAAM,EAAE;MAAEG,WAAW,EAAE,UAAU;MAAEC,SAAS,EAAE;IAAK,CAAC,CAAC;EAAA;AACtE,CAAC;AAAC,IAAAC,QAAA,GAEaT,mBAAmB;AAAAU,OAAA,cAAAD,QAAA"}