From c618b37fafccaf3c0320f97eae7b68c0c7ee480c Mon Sep 17 00:00:00 2001 From: akvlad Date: Thu, 25 Apr 2024 14:08:13 +0300 Subject: [PATCH] fix: axios update --- jest.config.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 437c608e..85caef4e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,7 @@ const path = require('path') module.exports = { - setupFilesAfterEnv: [path.join(__dirname, '/test/jest.setup.js')] + setupFilesAfterEnv: [path.join(__dirname, '/test/jest.setup.js')], + moduleNameMapper: { + '^axios$': 'axios/dist/node/axios.cjs' + } } diff --git a/package.json b/package.json index b2fcc193..5fe5e2ce 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "@qxip/influx-line-protocol-parser": "^0.2.1", "@qxip/plugnplay": "^3.3.1", "@stricjs/router": "^5.0.6", - "axios": "^0.28.0", + "axios": "^1.6.8", "bnf": "^1.0.1", "csv-writer": "^1.6.0", "date-fns": "^2.27.0",