@anchan828/nest-redlock 0.1.65 → 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.
@@ -1,9 +1,9 @@
1
- import { OnModuleDestroy } from "@nestjs/common";
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 OnModuleDestroy {
4
+ export declare class RedlockModule extends ConfigurableModuleClass implements OnApplicationShutdown {
5
5
  private readonly options;
6
6
  constructor(options: RedlockModuleOptions);
7
- onModuleDestroy(): Promise<void>;
7
+ onApplicationShutdown(): Promise<void>;
8
8
  }
9
9
  //# sourceMappingURL=redlock.module.d.ts.map
@@ -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 onModuleDestroy() {
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.1.65",
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.9",
32
- "@nestjs/core": "10.2.9",
33
- "@nestjs/platform-express": "10.2.9",
34
- "@nestjs/testing": "10.2.9",
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.9.0"
40
+ "node": "20.10.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "d5684242d3239ec383367b8ccd661c0c2567071f"
45
+ "gitHead": "d455cb8079a1ff38e0bbaee932a496bf71ccda37"
46
46
  }