@keyvhq/redis
Advanced tools
Comparing version
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/keyv", | ||
"version": "1.6.21", | ||
"version": "1.6.26", | ||
"main": "src/index.js", | ||
@@ -33,3 +33,3 @@ "author": { | ||
"dependencies": { | ||
"ioredis": "~5.2.0", | ||
"ioredis": "~5.3.0", | ||
"p-event": "~4.2.0" | ||
@@ -41,2 +41,3 @@ }, | ||
"@types/ioredis": "latest", | ||
"@types/node": "latest", | ||
"ava": "latest", | ||
@@ -47,3 +48,3 @@ "tsd": "latest", | ||
"engines": { | ||
"node": ">= 12" | ||
"node": ">= 14" | ||
}, | ||
@@ -54,4 +55,6 @@ "files": [ | ||
"scripts": { | ||
"lint": "tsd", | ||
"posttest:docker": "docker-compose down --rmi local", | ||
"test": "ava && tsd", | ||
"pretest": "npm run lint", | ||
"test": "ava", | ||
"test:docker": "docker-compose up --build --abort-on-container-exit --exit-code-from test" | ||
@@ -66,4 +69,3 @@ }, | ||
}, | ||
"types": "./src/index.d.ts", | ||
"gitHead": "1fdedcbab832114f06baefa5d9864710f3692501" | ||
"types": "./src/index.d.ts" | ||
} |
@@ -15,11 +15,11 @@ // Type definitions for @keyv/redis 1.3 | ||
constructor (options?: KeyvRedis.Options); | ||
constructor (redis: Redis); | ||
constructor (uri: string, options?: KeyvRedis.Options); | ||
constructor (options?: KeyvRedis.Options) | ||
constructor (redis: Redis) | ||
constructor (uri: string, options?: KeyvRedis.Options) | ||
get (key: string): Promise<string | undefined>; | ||
has (key: string): Promise<boolean>; | ||
set (key: string, value: string | undefined, ttl?: number): Promise<number>; | ||
delete (key: string): Promise<boolean>; | ||
clear (): Promise<void>; | ||
get (key: string): Promise<string | undefined> | ||
has (key: string): Promise<boolean> | ||
set (key: string, value: string | undefined, ttl?: number): Promise<number> | ||
delete (key: string): Promise<boolean> | ||
clear (): Promise<void> | ||
iterator (): AsyncGenerator | ||
@@ -26,0 +26,0 @@ } |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
0
-100%6396
-15.71%7
16.67%4
-20%+ Added
- Removed
Updated