From 176d60c1ab742c3a9114f106f5bd0408c909ddb3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 15 Feb 2024 18:01:43 +0000 Subject: [PATCH 1/2] fix: upgrade axios from 1.6.5 to 1.6.6 Snyk has created this PR to upgrade axios from 1.6.5 to 1.6.6. See this package in npm: https://www.npmjs.com/package/axios See this project in Snyk: https://app.snyk.io/org/sunil-lakshman/project/d82509a3-a3c4-432f-b8d9-068ef2579b9b?utm_source=github&utm_medium=referral&page=upgrade-pr --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index b02fe8b5..5047afa4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@slack/bolt": "^3.17.0", - "axios": "^1.6.5", + "axios": "^1.6.6", "form-data": "^3.0.1", "lodash": "^4.17.21", "qs": "^6.11.2" @@ -3974,9 +3974,9 @@ } }, "node_modules/axios": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", - "integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.6.tgz", + "integrity": "sha512-XZLZDFfXKM9U/Y/B4nNynfCRUqNyVZ4sBC/n9GDRCkq9vd2mIvKjKKsbIh1WPmHmNbg6ND7cTBY3Y2+u1G3/2Q==", "dependencies": { "follow-redirects": "^1.15.4", "form-data": "^4.0.0", @@ -16685,9 +16685,9 @@ "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" }, "axios": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", - "integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.6.tgz", + "integrity": "sha512-XZLZDFfXKM9U/Y/B4nNynfCRUqNyVZ4sBC/n9GDRCkq9vd2mIvKjKKsbIh1WPmHmNbg6ND7cTBY3Y2+u1G3/2Q==", "requires": { "follow-redirects": "^1.15.4", "form-data": "^4.0.0", diff --git a/package.json b/package.json index 7681b86a..b9f5cdde 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "license": "MIT", "dependencies": { "@slack/bolt": "^3.17.0", - "axios": "^1.6.5", + "axios": "^1.6.6", "form-data": "^3.0.1", "lodash": "^4.17.21", "qs": "^6.11.2" From f6a167aea3cf652237447ce4f573561ab0d387bd Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Mon, 4 Mar 2024 22:03:00 +0000 Subject: [PATCH 2/2] fix: resolved undefined stack in error issue --- lib/core/concurrency-queue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/concurrency-queue.js b/lib/core/concurrency-queue.js index 321383af..54acb14f 100644 --- a/lib/core/concurrency-queue.js +++ b/lib/core/concurrency-queue.js @@ -155,7 +155,8 @@ export function ConcurrencyQueue ({ axios, config }) { code: 'Unauthorized', message: 'Unable to refresh token', name: 'Token Error', - config: queueItem.request + config: queueItem.request, + stack: (error instanceof Error) ? error.stack : null, }) }) this.queue = []