Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fix: correct usage of lru typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Wolf committed Oct 10, 2017
1 parent 2f0aca4 commit 39b0977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/provider/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, {etag: string, response: any}>(100);
return async(chain, request) => {
const entry = cache.get(request.url);
if (entry) {
Expand Down

0 comments on commit 39b0977

Please sign in to comment.