From 34718459994bb8528e1bda49ad5f3dd0dfb43f16 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 14:10:07 +0000 Subject: [PATCH 1/2] Update dependency axios to v1 [SECURITY] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8dfe9db..4a6ba97 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "index.d.ts" ], "dependencies": { - "axios": "^0.21.1", + "axios": "^1.6.0", "create-hmac": "^1.1.7", "oauth-1.0a": "^2.2.6", "url-parse": "^1.4.7" From 58d725dc08a8fec280bb5cc4cc07cb596a3b580a Mon Sep 17 00:00:00 2001 From: Leif Singer Date: Thu, 7 Dec 2023 07:47:17 +0100 Subject: [PATCH 2/2] force jest to import the commonjs axios --- jest.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 30ff0d7..2d14c6e 100644 --- a/jest.config.js +++ b/jest.config.js @@ -67,7 +67,9 @@ module.exports = { moduleFileExtensions: ["js", "mjs"], // A map from regular expressions to module names that allow to stub out resources with a single module - // moduleNameMapper: {}, + moduleNameMapper: { + axios: "axios/dist/node/axios.cjs" + }, // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader // modulePathIgnorePatterns: [],