diff --git a/package-lock.json b/package-lock.json index 0d9c88e..344a804 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "axios": "^1.0.0", - "axios-case-converter": "^0.11.0", + "axios-case-converter": "^1.0.0", "axios-retry": "^3.1.9", "runtypes": "^6.5.0", "ts-custom-error": "^3.2.0", @@ -2100,9 +2100,9 @@ } }, "node_modules/axios-case-converter": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/axios-case-converter/-/axios-case-converter-0.11.1.tgz", - "integrity": "sha512-i5hrkBg7SE9jsm2Q+ClznR5DsKcYXChH6Cc3Rhx2p4gdIfJwvvO5/ATcAg/vN2UVzGE2B1eR1O4VuEGkICdJdQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/axios-case-converter/-/axios-case-converter-1.1.0.tgz", + "integrity": "sha512-XmeffqomjVRhYRXQdw7FaeJhFUvsqt0oXMzfPDaZE1ibBkZ8zeAdgMYBGYlMegXUjpzg48pKZ+SLkz6RH2yYkA==", "dependencies": { "camel-case": "^4.1.1", "header-case": "^2.0.3", @@ -2110,7 +2110,7 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "axios": ">=0.23.0 <2.0.0" + "axios": ">=1.0.0 <2.0.0" } }, "node_modules/axios-retry": { @@ -9595,9 +9595,9 @@ } }, "axios-case-converter": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/axios-case-converter/-/axios-case-converter-0.11.1.tgz", - "integrity": "sha512-i5hrkBg7SE9jsm2Q+ClznR5DsKcYXChH6Cc3Rhx2p4gdIfJwvvO5/ATcAg/vN2UVzGE2B1eR1O4VuEGkICdJdQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/axios-case-converter/-/axios-case-converter-1.1.0.tgz", + "integrity": "sha512-XmeffqomjVRhYRXQdw7FaeJhFUvsqt0oXMzfPDaZE1ibBkZ8zeAdgMYBGYlMegXUjpzg48pKZ+SLkz6RH2yYkA==", "requires": { "camel-case": "^4.1.1", "header-case": "^2.0.3", diff --git a/src/restClient.ts b/src/restClient.ts index ac836eb..9312508 100644 --- a/src/restClient.ts +++ b/src/restClient.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line import/no-named-as-default import Axios, { AxiosResponse, AxiosError } from 'axios' import applyCaseMiddleware from 'axios-case-converter' import { TodoistRequestError } from './types/errors' @@ -105,7 +106,9 @@ export async function request( case 'GET': return await axiosClient.get(relativePath, { params: payload, - paramsSerializer, + paramsSerializer: { + serialize: paramsSerializer, + }, }) case 'POST': return await axiosClient.post(relativePath, payload)