Skip to content

Commit 2ea748a

Browse files
amulyakashyap09Amulya Kashyap
andauthored
Updating eslint-config-aio-lib-config and peer deps (#152)
Co-authored-by: Amulya Kashyap <[email protected]>
1 parent ad4cda2 commit 2ea748a

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
}
77
},
88
"rules": {
9+
"jsdoc/no-defaults": 0,
910
"jsdoc/tag-lines": [
1011
// The Error level should be `error`, `warn`, or `off` (or 2, 1, or 0)
1112
"error",

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
},
2020
"devDependencies": {
2121
"@adobe/aio-lib-test-proxy": "^1.0.0",
22-
"@adobe/eslint-config-aio-lib-config": "^2.0.1",
22+
"@adobe/eslint-config-aio-lib-config": "^4.0.0",
2323
"@types/jest": "^29.5.0",
2424
"dotenv": "^16.3.1",
25-
"eslint": "^8.46.0",
25+
"eslint": "^8.57.1",
2626
"eslint-config-oclif": "^4.0.0",
2727
"eslint-config-standard": "^17.1.0",
28-
"eslint-plugin-import": "^2.28.0",
29-
"eslint-plugin-jest": "^27.2.3",
30-
"eslint-plugin-jsdoc": "^42.0.0",
31-
"eslint-plugin-n": "^15.7",
28+
"eslint-plugin-import": "^2.31.0",
29+
"eslint-plugin-jest": "^27.9.0",
30+
"eslint-plugin-jsdoc": "^48.11.0",
31+
"eslint-plugin-n": "^15.7.0",
3232
"eslint-plugin-node": "^11.1.0",
33-
"eslint-plugin-promise": "^6.1.1",
33+
"eslint-plugin-promise": "^6.6.0",
3434
"eslint-plugin-standard": "^5.0.0",
3535
"jest": "^29",
3636
"jest-junit": "^16.0.0",

src/ims.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ class Ims {
338338
* @param {string} clientSecret The Client Secrete proving client ID ownership
339339
* @param {string} scopes The list of scopes to request as a blank separated list
340340
* @returns {Promise} a promise resolving to a tokens object as described in the
341-
* {@link toTokenResult} or rejects to an error message.
341+
* an object containing the access token and refresh token or rejects to an error message.
342342
*/
343343
async getAccessToken (authCode, clientId, clientSecret, scopes) {
344344
aioLogger.debug('getAccessToken(%s, %s, %s, %o)', authCode, clientId, clientSecret, scopes)
@@ -486,6 +486,7 @@ class Ims {
486486
if (allowList) {
487487
aioLogger.debug('validateTokenAllowList (allowList): (%s)', allowList.join(', '))
488488
if (allowList.indexOf(clientId) === -1) {
489+
console.log(`${clientId} not in allow list: ${allowList.join(', ')}`)
489490
validationResponse = {
490491
status: 403,
491492
imsValidation: {

0 commit comments

Comments
 (0)