@better-auth/redis-storage 1.7.11 → 1.7.13
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/index.d.mts +2 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Redis from "ioredis";
|
|
2
|
-
|
|
3
2
|
//#region src/redis-storage.d.ts
|
|
4
3
|
interface RedisStorageConfig {
|
|
5
4
|
/**
|
|
@@ -33,7 +32,7 @@ interface RedisStorageConfig {
|
|
|
33
32
|
* @param config - Configuration object containing the Redis client and optional key prefix
|
|
34
33
|
* @returns SecondaryStorage implementation for Better Auth
|
|
35
34
|
*/
|
|
36
|
-
declare function redisStorage(config: RedisStorageConfig): {
|
|
35
|
+
export declare function redisStorage(config: RedisStorageConfig): {
|
|
37
36
|
get(key: string): Promise<string | null>;
|
|
38
37
|
getAndDelete(key: string): Promise<unknown>;
|
|
39
38
|
increment(key: string, ttl: number): Promise<number>;
|
|
@@ -72,4 +71,4 @@ declare function redisStorage(config: RedisStorageConfig): {
|
|
|
72
71
|
clear(): Promise<void>;
|
|
73
72
|
};
|
|
74
73
|
//#endregion
|
|
75
|
-
export {
|
|
74
|
+
export type { RedisStorageConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/redis-storage",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"description": "Redis storage for Better Auth secondary storage",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"ioredis": "^5.0.0",
|
|
38
|
-
"@better-auth/core": "^1.7.
|
|
38
|
+
"@better-auth/core": "^1.7.13"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^25.9.3",
|
|
42
42
|
"ioredis": "^5.11.1",
|
|
43
|
-
"tsdown": "0.
|
|
43
|
+
"tsdown": "0.23.1",
|
|
44
44
|
"typescript": "^6.0.3",
|
|
45
45
|
"vitest": "^5.0.0",
|
|
46
|
-
"@better-auth/core": "1.7.
|
|
46
|
+
"@better-auth/core": "1.7.13"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsdown",
|