@anchan828/nest-redlock 0.1.11 → 0.1.12
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Redis, { Cluster } from "ioredis";
|
|
2
2
|
import { Settings } from "redlock";
|
|
3
|
-
export
|
|
3
|
+
export type RedlockModuleOptions = {
|
|
4
4
|
clients: Iterable<Redis | Cluster>;
|
|
5
5
|
settings?: Partial<Settings>;
|
|
6
6
|
scripts?: {
|
|
@@ -15,4 +15,4 @@ export declare type RedlockModuleOptions = {
|
|
|
15
15
|
*/
|
|
16
16
|
duration?: number;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type RedlockKeyFunction<T extends (...args: any) => any = (...args: any) => any> = (target: any, ...args: Parameters<T>) => string[] | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anchan828/nest-redlock",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "This is a [Nest](https://github.com/nestjs/nest) implementation of the redlock algorithm for distributed redis locks.",
|
|
5
5
|
"homepage": "https://github.com/anchan828/nest-redlock#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@nestjs/core": "^9.2.0",
|
|
33
33
|
"@nestjs/platform-express": "^9.2.0",
|
|
34
34
|
"@nestjs/testing": "^9.2.0",
|
|
35
|
-
"@types/jest": "^29.2.
|
|
35
|
+
"@types/jest": "^29.2.3",
|
|
36
36
|
"@types/node": "^18.11.9",
|
|
37
37
|
"@types/supertest": "^2.0.12",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
39
|
-
"@typescript-eslint/parser": "^5.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.43.0",
|
|
40
40
|
"eslint": "^8.27.0",
|
|
41
41
|
"eslint-config-prettier": "^8.5.0",
|
|
42
42
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"supertest": "^6.3.1",
|
|
51
51
|
"ts-jest": "^29.0.3",
|
|
52
52
|
"ts-node": "^10.9.1",
|
|
53
|
-
"typescript": "^4.
|
|
53
|
+
"typescript": "^4.9.3"
|
|
54
54
|
},
|
|
55
55
|
"volta": {
|
|
56
56
|
"node": "18.12.1"
|