diff --git a/package.json b/package.json index 21cfc60..8cfe178 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,6 @@ }, "dependencies": { "@adobe/aio-lib-core-errors": "^4.0.0", - "@isaacs/ttlcache": "^1.4.1" + "@isaacs/ttlcache": "^2.1.4" } } diff --git a/src/index.js b/src/index.js index 58eb1a2..85f7c80 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ governing permissions and limitations under the License. */ import { getAccessTokenByClientCredentials, getAndValidateCredentials } from './ims.js' -import TTLCache from '@isaacs/ttlcache' +import { TTLCache } from '@isaacs/ttlcache' import crypto from 'crypto' // Token cache with TTL