{"version":3,"file":"index.mjs","sources":["../../../../../src/uni-adapter/methods/index.ts"],"sourcesContent":["import { getMethodType } from \"../utils\";\nimport download from \"./download\";\nimport request from \"./request\";\nimport upload from \"./upload\";\nimport type { Method } from \"../type\";\nimport type { AxiosRequestConfig } from \"axios\";\n\nexport const getMethod = (config: AxiosRequestConfig): Method => {\n\tconst methodType = getMethodType(config);\n\tswitch (methodType) {\n\t\tcase \"download\":\n\t\t\treturn download;\n\t\tcase \"upload\":\n\t\t\treturn upload;\n\t\tdefault:\n\t\t\treturn request;\n\t}\n};\n"],"names":["getMethod","config","getMethodType","download","upload","request"],"mappings":"0IAOO,MAAMA,EAAaC,IAEzB,OADmBC,EAAcD,IAEhC,IAAK,WACJ,OAAOE,EACR,IAAK,SACJ,OAAOC,EACR,QACC,OAAOC"}