From 60173ebc59561a67027b92ae5c7bd7e6c5197667 Mon Sep 17 00:00:00 2001 From: renovate Date: Sat, 4 Sep 2021 19:57:09 +0000 Subject: [PATCH] chore(deps): update dependency axios to v0.21.2 (#698) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/698 Co-authored-by: renovate Co-committed-by: renovate --- package.json | 2 +- src/services/abstractService.js | 6 +++--- yarn.lock | 14 +++++++++++++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b0d715d1..238fb2db 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@vue/babel-preset-app": "4.5.13", "@vue/eslint-config-typescript": "7.0.0", "autoprefixer": "10.3.4", - "axios": "0.21.1", + "axios": "0.21.2", "babel-eslint": "10.1.0", "cypress": "8.3.1", "cypress-file-upload": "5.0.8", diff --git a/src/services/abstractService.js b/src/services/abstractService.js index 50284b16..aa2ad921 100644 --- a/src/services/abstractService.js +++ b/src/services/abstractService.js @@ -47,19 +47,19 @@ export default class AbstractService { case 'post': if (this.useUpdateInterceptor()) { config.data = self.beforeUpdate(config.data) - config.data = JSON.stringify(objectToSnakeCase(config.data)) + config.data = objectToSnakeCase(config.data) } break case 'put': if (this.useCreateInterceptor()) { config.data = self.beforeCreate(config.data) - config.data = JSON.stringify(objectToSnakeCase(config.data)) + config.data = objectToSnakeCase(config.data) } break case 'delete': if (this.useDeleteInterceptor()) { config.data = self.beforeDelete(config.data) - config.data = JSON.stringify(objectToSnakeCase(config.data)) + config.data = objectToSnakeCase(config.data) } break } diff --git a/yarn.lock b/yarn.lock index 42511b54..dabc63fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2054,7 +2054,14 @@ aws4@^1.8.0: resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== -axios@0.21.1, axios@^0.21.1: +axios@0.21.2: + version "0.21.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.2.tgz#21297d5084b2aeeb422f5d38e7be4fbb82239017" + integrity sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg== + dependencies: + follow-redirects "^1.14.0" + +axios@^0.21.1: version "0.21.1" resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8" integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA== @@ -4208,6 +4215,11 @@ follow-redirects@^1.10.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.1.tgz#d9114ded0a1cfdd334e164e6662ad02bfd91ff43" integrity sha512-HWqDgT7ZEkqRzBvc2s64vSZ/hfOceEol3ac/7tKwzuvEyWx3/4UegXh5oBOIotkGsObyk3xznnSRVADBgWSQVg== +follow-redirects@^1.14.0: + version "1.14.3" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.3.tgz#6ada78118d8d24caee595595accdc0ac6abd022e" + integrity sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw== + for-in@^1.0.1, for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"