@anchan828/nest-redlock 0.2.23 → 0.2.25

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.ts CHANGED
@@ -3,4 +3,3 @@ export { FakeRedlockService } from "./redlock.fake-service";
3
3
  export { LockedKeysHookArgs, PreLockedKeysHookArgs, RedlockKeyFunction, RedlockModuleOptions, UnlockedKeysHookArgs, } from "./redlock.interface";
4
4
  export { RedlockModule } from "./redlock.module";
5
5
  export { RedlockService } from "./redlock.service";
6
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -9,4 +9,3 @@ var redlock_module_1 = require("./redlock.module");
9
9
  Object.defineProperty(exports, "RedlockModule", { enumerable: true, get: function () { return redlock_module_1.RedlockModule; } });
10
10
  var redlock_service_1 = require("./redlock.service");
11
11
  Object.defineProperty(exports, "RedlockService", { enumerable: true, get: function () { return redlock_service_1.RedlockService; } });
12
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export declare const DEFAULT_DURATION = 5000;
2
- //# sourceMappingURL=redlock.constants.d.ts.map
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_DURATION = void 0;
4
4
  exports.DEFAULT_DURATION = 5000;
5
- //# sourceMappingURL=redlock.constants.js.map
@@ -1,4 +1,3 @@
1
1
  import { Settings } from "redlock";
2
2
  import { RedlockKeyFunction } from "./redlock.interface";
3
3
  export declare function Redlock<T extends (...args: any) => any = (...args: any) => any>(key: string | string[] | RedlockKeyFunction<T>, duration?: number, settings?: Partial<Settings>): MethodDecorator;
4
- //# sourceMappingURL=redlock.decorator.d.ts.map
@@ -59,4 +59,3 @@ function getKeys(key, descriptorThis, args) {
59
59
  }
60
60
  return Array.from(keys);
61
61
  }
62
- //# sourceMappingURL=redlock.decorator.js.map
@@ -9,4 +9,3 @@ export declare class FakeRedlockService extends EventEmitter {
9
9
  using<T>(keys: string[], duration: number, settings: Partial<Settings>, routine?: ((signal: RedlockAbortSignal) => Promise<T>) | undefined): Promise<T>;
10
10
  using<T>(keys: string[], duration: number, routine: (signal: RedlockAbortSignal) => Promise<T>): Promise<T>;
11
11
  }
12
- //# sourceMappingURL=redlock.fake-service.d.ts.map
@@ -30,4 +30,3 @@ function createLockFake() {
30
30
  };
31
31
  return lock;
32
32
  }
33
- //# sourceMappingURL=redlock.fake-service.js.map
@@ -52,4 +52,3 @@ export type RedlockModuleOptions = {
52
52
  duration?: number;
53
53
  };
54
54
  export type RedlockKeyFunction<T extends (...args: any) => any = (...args: any) => any> = (target: any, ...args: Parameters<T>) => string[] | string;
55
- //# sourceMappingURL=redlock.interface.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=redlock.interface.js.map
@@ -1,3 +1,2 @@
1
1
  import { RedlockModuleOptions } from "./redlock.interface";
2
2
  export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<RedlockModuleOptions, "register", "create", {}>, MODULE_OPTIONS_TOKEN: string | symbol;
3
- //# sourceMappingURL=redlock.module-definition.d.ts.map
@@ -4,4 +4,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MODULE_OPTIONS_TOKEN = exports.ConfigurableModuleClass = void 0;
5
5
  const common_1 = require("@nestjs/common");
6
6
  _a = new common_1.ConfigurableModuleBuilder().build(), exports.ConfigurableModuleClass = _a.ConfigurableModuleClass, exports.MODULE_OPTIONS_TOKEN = _a.MODULE_OPTIONS_TOKEN;
7
- //# sourceMappingURL=redlock.module-definition.js.map
@@ -6,4 +6,3 @@ export declare class RedlockModule extends ConfigurableModuleClass implements On
6
6
  constructor(options: RedlockModuleOptions);
7
7
  onApplicationShutdown(): Promise<void>;
8
8
  }
9
- //# sourceMappingURL=redlock.module.d.ts.map
@@ -51,4 +51,3 @@ exports.RedlockModule = RedlockModule = __decorate([
51
51
  __param(0, (0, common_1.Inject)(redlock_module_definition_1.MODULE_OPTIONS_TOKEN)),
52
52
  __metadata("design:paramtypes", [Object])
53
53
  ], RedlockModule);
54
- //# sourceMappingURL=redlock.module.js.map
@@ -4,4 +4,3 @@ export declare class RedlockService extends Redlock {
4
4
  readonly options: RedlockModuleOptions;
5
5
  constructor(options: RedlockModuleOptions);
6
6
  }
7
- //# sourceMappingURL=redlock.service.d.ts.map
@@ -28,4 +28,3 @@ exports.RedlockService = RedlockService = __decorate([
28
28
  __param(0, (0, common_1.Inject)(redlock_module_definition_1.MODULE_OPTIONS_TOKEN)),
29
29
  __metadata("design:paramtypes", [Object])
30
30
  ], RedlockService);
31
- //# sourceMappingURL=redlock.service.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchan828/nest-redlock",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
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": {
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "440f28102d0c0ef6f04db97476af55eaa11bddf2"
45
+ "gitHead": "eb8f3dd9536eb00f5feb18db8aadcfd1f1b584d0"
46
46
  }