From 39b0977d6641b4e0af869dac5d779b9bb5ff5c67 Mon Sep 17 00:00:00 2001 From: Markus Wolf Date: Tue, 10 Oct 2017 12:25:23 +0200 Subject: [PATCH] fix: correct usage of lru typings --- package.json | 4 ++-- src/provider/github/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5a394ae5..0722dbb5 100644 --- a/package.json +++ b/package.json @@ -205,7 +205,7 @@ }, "devDependencies": { "@knisterpeter/standard-tslint": "^1.5.0", - "@types/lru-cache": "^4.0.0", + "@types/lru-cache": "^4.1.0", "@types/mocha": "^2.2.40", "@types/node": "^8.0.0", "conventional-changelog-lint": "^2.0.0", @@ -220,7 +220,7 @@ "dependencies": { "conventional-changelog-lint-config-angular": "1.0.0", "execa": "^0.8.0", - "lru-cache": "^4.0.2", + "lru-cache": "^4.1.1", "pretend": "^0.7.0", "sander": "^0.6.0", "tsdi": "0.14.0", diff --git a/src/provider/github/index.ts b/src/provider/github/index.ts index 9b7f3ec5..19594e7c 100644 --- a/src/provider/github/index.ts +++ b/src/provider/github/index.ts @@ -205,7 +205,7 @@ namespace impl { export function githubCache(): Interceptor { // cache at most 100 requests - const cache = LRUCache<{etag: string, response: any}>(100); + const cache = LRUCache(100); return async(chain, request) => { const entry = cache.get(request.url); if (entry) {