@type-cacheable/lru-cache-adapter
Advanced tools
Comparing version 12.1.0 to 13.0.0
@@ -1,4 +0,4 @@ | ||
import * as LRUCache from 'lru-cache'; | ||
import LRUCache from 'lru-cache'; | ||
import { CacheClient } from '@type-cacheable/core'; | ||
export declare class LRUCacheAdapter<T> implements CacheClient { | ||
export declare class LRUCacheAdapter<T extends {}> implements CacheClient { | ||
constructor(lruClient: LRUCache<string, T>); | ||
@@ -13,2 +13,2 @@ private lruClient; | ||
} | ||
export declare const useAdapter: <T>(client: LRUCache<string, T>, asFallback?: boolean) => LRUCacheAdapter<T>; | ||
export declare const useAdapter: <T extends {} = {}>(client: LRUCache<string, T, unknown>, asFallback?: boolean) => LRUCacheAdapter<T>; |
{ | ||
"name": "@type-cacheable/lru-cache-adapter", | ||
"version": "12.1.0", | ||
"version": "13.0.0", | ||
"description": "Adapter for using lru-cache with type-cacheable", | ||
@@ -31,3 +31,6 @@ "main": "dist/index.js", | ||
], | ||
"author": "Joshua Slate", | ||
"author": { | ||
"name": "Joshua Slate", | ||
"url": "https://joshuaslate.com" | ||
}, | ||
"license": "MIT", | ||
@@ -39,5 +42,5 @@ "bugs": { | ||
"devDependencies": { | ||
"@type-cacheable/core": "^11.1.1", | ||
"@type-cacheable/core": "^11.1.2", | ||
"@types/lru-cache": "^7.4.0", | ||
"lru-cache": "^7.3.0", | ||
"lru-cache": "^8.0.4", | ||
"typescript": "^5.0.2" | ||
@@ -47,5 +50,5 @@ }, | ||
"@type-cacheable/core": "^11.0.0", | ||
"lru-cache": "^7.3.0" | ||
"lru-cache": "^8.0.4" | ||
}, | ||
"gitHead": "46becef54f5a494354e00437cb82933e01c249d9" | ||
"gitHead": "68e67d288d213593bf680810cd8a4265f3a5ae08" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10059