@anchan828/nest-redlock 0.1.64 → 0.2.0
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/redlock.module.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnApplicationShutdown } from "@nestjs/common";
|
|
2
2
|
import { RedlockModuleOptions } from "./redlock.interface";
|
|
3
3
|
import { ConfigurableModuleClass } from "./redlock.module-definition";
|
|
4
|
-
export declare class RedlockModule extends ConfigurableModuleClass implements
|
|
4
|
+
export declare class RedlockModule extends ConfigurableModuleClass implements OnApplicationShutdown {
|
|
5
5
|
private readonly options;
|
|
6
6
|
constructor(options: RedlockModuleOptions);
|
|
7
|
-
|
|
7
|
+
onApplicationShutdown(): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=redlock.module.d.ts.map
|
package/dist/redlock.module.js
CHANGED
|
@@ -21,7 +21,7 @@ let RedlockModule = class RedlockModule extends redlock_module_definition_1.Conf
|
|
|
21
21
|
super();
|
|
22
22
|
this.options = options;
|
|
23
23
|
}
|
|
24
|
-
async
|
|
24
|
+
async onApplicationShutdown() {
|
|
25
25
|
for (const client of this.options.clients) {
|
|
26
26
|
switch (client.status) {
|
|
27
27
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anchan828/nest-redlock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"redlock": "^5.0.0-beta.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@nestjs/common": "10.2.
|
|
32
|
-
"@nestjs/core": "10.2.
|
|
33
|
-
"@nestjs/platform-express": "10.2.
|
|
34
|
-
"@nestjs/testing": "10.2.
|
|
31
|
+
"@nestjs/common": "10.2.10",
|
|
32
|
+
"@nestjs/core": "10.2.10",
|
|
33
|
+
"@nestjs/platform-express": "10.2.10",
|
|
34
|
+
"@nestjs/testing": "10.2.10",
|
|
35
35
|
"ioredis": "5.3.2",
|
|
36
36
|
"reflect-metadata": "0.1.13",
|
|
37
37
|
"rxjs": "7.8.1"
|
|
38
38
|
},
|
|
39
39
|
"volta": {
|
|
40
|
-
"node": "20.
|
|
40
|
+
"node": "20.10.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "d455cb8079a1ff38e0bbaee932a496bf71ccda37"
|
|
46
46
|
}
|