package.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","qs","setParamsSerializer","defaults","paramsSerializer","params","stringify","arrayFormat","skipNulls"],"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":"AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,EAAE,MAAM,IAAI;AAEnB,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EAChCF,KAAK,CAACG,QAAQ,CAACC,gBAAgB,GAAG,UAAAC,MAAM;IAAA,OACtCJ,EAAE,CAACK,SAAS,CAACD,MAAM,EAAE;MAAEE,WAAW,EAAE,UAAU;MAAEC,SAAS,EAAE;IAAK,CAAC,CAAC;EAAA;AACtE,CAAC;AAED,eAAeN,mBAAmB","ignoreList":[]}