From 207f3cbad746cf27defbf6fe3f4712e1d4f480e9 Mon Sep 17 00:00:00 2001 From: Ramon Tayag Date: Wed, 1 Feb 2023 20:29:54 +0800 Subject: [PATCH] build(deps): allow axios `>=0.25.0 || ^1.2.2` Versions of Axios 1.x are causing issues with Jest (https://github.com/axios/axios/issues/5101). Jest 28 and 29, where this issue is resolved, has other issues surrounding memory leaks (https://github.com/facebook/jest/issues/7874). Allow `>=0.25.0` for applications that cannot upgrade Jest at this moment. --- package-lock.json | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 19d2d5a..5b2317a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "node-marketo-rest", "version": "0.12.0", "dependencies": { - "axios": "^1.2.2", + "axios": ">=0.27.2 || ^1.2.2", "backoff": "^2.5.0", "bluebird": "^3.7.2", "bunyan": "^1.8.15", diff --git a/package.json b/package.json index bb5537a..c79cac6 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "testRecord": "REPLAY=record mocha -t 10000 test/*test.js --exit" }, "dependencies": { - "axios": "^1.2.2", + "axios": ">=0.25.0 || ^1.2.2", "backoff": "^2.5.0", "bluebird": "^3.7.2", "bunyan": "^1.8.15", @@ -31,4 +31,4 @@ "replay": "^2.4.0", "rewire": "^6.0.0" } -} \ No newline at end of file +}