Skip to content

Commit 3225905

Browse files
committed
Fixed types
1 parent d7a49a7 commit 3225905

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/nextjs-cache-handler/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/nextjs-cache-handler/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"next",
1919
"redis"
2020
],
21-
"version": "2.1.0-canary5",
21+
"version": "2.1.0-canary6",
2222
"type": "module",
2323
"license": "MIT",
2424
"description": "Next.js cache handlers",
@@ -35,7 +35,7 @@
3535
"require": "./dist/instrumentation/instrumentation.cjs",
3636
"import": "./dist/instrumentation/instrumentation.js"
3737
},
38-
"./cluster/withProxy": {
38+
"./cluster/proxy": {
3939
"require": "./dist/helpers/redisClusterProxy.cjs",
4040
"import": "./dist/helpers/redisClusterProxy.js"
4141
},

packages/nextjs-cache-handler/src/handlers/redis-strings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
parseBuffersToStrings,
88
} from "../helpers/buffer";
99
import { RedisClientType } from "@redis/client";
10-
import { RedisClusterWithAbortSignal as RedisClusterCacheProxy } from "../helpers/redisClusterProxy";
10+
import { RedisClusterCacheProxy } from "../helpers/redisClusterProxy";
1111

1212
/**
1313
* Creates a Handler for handling cache operations using Redis strings.

packages/nextjs-cache-handler/src/helpers/redisClusterProxy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import type { RedisClusterType } from "@redis/client";
22
import { withAbortSignal } from "./withAbortSignal";
33

4-
export type RedisClusterWithAbortSignal = RedisClusterType & {
4+
export type RedisClusterCacheProxy = RedisClusterType & {
55
withAbortSignal(signal: AbortSignal): RedisClusterType;
66
isReady: boolean;
77
};
88

99
export function withProxy<T extends RedisClusterType>(
1010
cluster: RedisClusterType,
1111
defaultSignal?: AbortSignal,
12-
): RedisClusterWithAbortSignal {
12+
): RedisClusterCacheProxy {
1313
let signal: AbortSignal | undefined = defaultSignal;
1414

1515
const handler: ProxyHandler<T> = {
@@ -34,5 +34,5 @@ export function withProxy<T extends RedisClusterType>(
3434
},
3535
};
3636

37-
return new Proxy(cluster, handler) as RedisClusterWithAbortSignal;
37+
return new Proxy(cluster, handler) as RedisClusterCacheProxy;
3838
}

0 commit comments

Comments
 (0)