From 98b3a0d28f5b26aa80acba837f41f3d6a49d7114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Fri, 8 Mar 2024 10:31:30 +0000 Subject: [PATCH] chore(deps): Upgrade app upload retry logic --- package-lock.json | 10 +++++----- package.json | 2 +- src/__tests__/app_import_cert.test.js | 1 - src/lib/app/class_allapps.js | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4ad22e3..e6b7d9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "node-xlsx": "^0.23.0", "qrs-interact": "^6.3.1", "random-words": "^2.0.1", - "retry-axios": "^2.6.0", + "retry-axios": "^3.1.3", "table": "^6.8.1", "text-treeview": "^1.0.2", "upath": "^2.0.1", @@ -6200,11 +6200,11 @@ } }, "node_modules/retry-axios": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-2.6.0.tgz", - "integrity": "sha512-pOLi+Gdll3JekwuFjXO3fTq+L9lzMQGcSq7M5gIjExcl3Gu1hd4XXuf5o3+LuSBsaULQH7DiNbsqPd1chVpQGQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-3.1.3.tgz", + "integrity": "sha512-uwnlAjqg6twTcQB7RvH3OSgAqjqBDS9GFUOT+BhgADDYjoxsB7KfvS6SqYHOPjxM/Z/jVwSwGYdJnPE8at1PoA==", "engines": { - "node": ">=10.7.0" + "node": ">=18" }, "peerDependencies": { "axios": "*" diff --git a/package.json b/package.json index e4b16d7..30aa918 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "node-xlsx": "^0.23.0", "qrs-interact": "^6.3.1", "random-words": "^2.0.1", - "retry-axios": "^2.6.0", + "retry-axios": "^3.1.3", "table": "^6.8.1", "text-treeview": "^1.0.2", "upath": "^2.0.1", diff --git a/src/__tests__/app_import_cert.test.js b/src/__tests__/app_import_cert.test.js index 7dd9f55..5127971 100644 --- a/src/__tests__/app_import_cert.test.js +++ b/src/__tests__/app_import_cert.test.js @@ -73,7 +73,6 @@ describe('import apps from QVF files (cert auth)', () => { } else { // App does not exist expect(appExists).toBe(false); - // console.log(`App ${appId} does not exist in Sense. Skipping delete.`); } i += 1; } diff --git a/src/lib/app/class_allapps.js b/src/lib/app/class_allapps.js index a974968..541d960 100644 --- a/src/lib/app/class_allapps.js +++ b/src/lib/app/class_allapps.js @@ -1,4 +1,4 @@ -import rax from 'retry-axios'; +import * as rax from 'retry-axios'; import axios from 'axios'; import path from 'path'; import FormData from 'form-data';