From 2ea748a1323ea7b7cdaaf5498689cafe27bba1fc Mon Sep 17 00:00:00 2001 From: Amulya Kashyap Date: Tue, 14 Jan 2025 04:30:52 +0530 Subject: [PATCH] Updating eslint-config-aio-lib-config and peer deps (#152) Co-authored-by: Amulya Kashyap --- .eslintrc.json | 1 + package.json | 14 +++++++------- src/ims.js | 3 ++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 2706f8f..e4459f3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -6,6 +6,7 @@ } }, "rules": { + "jsdoc/no-defaults": 0, "jsdoc/tag-lines": [ // The Error level should be `error`, `warn`, or `off` (or 2, 1, or 0) "error", diff --git a/package.json b/package.json index efe6fc8..3b00f03 100644 --- a/package.json +++ b/package.json @@ -19,18 +19,18 @@ }, "devDependencies": { "@adobe/aio-lib-test-proxy": "^1.0.0", - "@adobe/eslint-config-aio-lib-config": "^2.0.1", + "@adobe/eslint-config-aio-lib-config": "^4.0.0", "@types/jest": "^29.5.0", "dotenv": "^16.3.1", - "eslint": "^8.46.0", + "eslint": "^8.57.1", "eslint-config-oclif": "^4.0.0", "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.28.0", - "eslint-plugin-jest": "^27.2.3", - "eslint-plugin-jsdoc": "^42.0.0", - "eslint-plugin-n": "^15.7", + "eslint-plugin-import": "^2.31.0", + "eslint-plugin-jest": "^27.9.0", + "eslint-plugin-jsdoc": "^48.11.0", + "eslint-plugin-n": "^15.7.0", "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-promise": "^6.6.0", "eslint-plugin-standard": "^5.0.0", "jest": "^29", "jest-junit": "^16.0.0", diff --git a/src/ims.js b/src/ims.js index e4fd94c..da90d39 100644 --- a/src/ims.js +++ b/src/ims.js @@ -338,7 +338,7 @@ class Ims { * @param {string} clientSecret The Client Secrete proving client ID ownership * @param {string} scopes The list of scopes to request as a blank separated list * @returns {Promise} a promise resolving to a tokens object as described in the - * {@link toTokenResult} or rejects to an error message. + * an object containing the access token and refresh token or rejects to an error message. */ async getAccessToken (authCode, clientId, clientSecret, scopes) { aioLogger.debug('getAccessToken(%s, %s, %s, %o)', authCode, clientId, clientSecret, scopes) @@ -486,6 +486,7 @@ class Ims { if (allowList) { aioLogger.debug('validateTokenAllowList (allowList): (%s)', allowList.join(', ')) if (allowList.indexOf(clientId) === -1) { + console.log(`${clientId} not in allow list: ${allowList.join(', ')}`) validationResponse = { status: 403, imsValidation: {