@tekir/cache 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/provider.js CHANGED
@@ -44,6 +44,8 @@ export class CacheProvider {
44
44
  // Fallback: create instance from config
45
45
  let Redis;
46
46
  try {
47
+ // @ts-ignore optional peer; resolved at runtime, falls through
48
+ // to the catch below if not installed.
47
49
  Redis = (await import('@tekir/redis')).Redis;
48
50
  }
49
51
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekir/cache",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "In-memory, Redis, and database caching abstraction",
5
5
  "author": "dev@tekir.io",
6
6
  "license": "MIT",
package/src/provider.ts CHANGED
@@ -47,6 +47,8 @@ export class CacheProvider {
47
47
  // Fallback: create instance from config
48
48
  let Redis: any
49
49
  try {
50
+ // @ts-ignore optional peer; resolved at runtime, falls through
51
+ // to the catch below if not installed.
50
52
  Redis = (await import('@tekir/redis')).Redis
51
53
  } catch {
52
54
  throw new Error(