redis-smq-common 1.0.0-rc.1 → 1.0.0-rc.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.0-rc.2 (2022-05-25)
4
+
5
+ * Allow children of Worker class to access worker params
6
+
3
7
  ## 1.0.0-rc.1 (2022-05-24)
4
8
 
5
9
  * Update package keywords and description
@@ -5,6 +5,7 @@ export declare abstract class Worker<T extends TWorkerParameters = TWorkerParame
5
5
  private readonly powerManager;
6
6
  private readonly managed;
7
7
  protected readonly redisClient: RedisClient;
8
+ protected readonly params: T;
8
9
  constructor(redisClient: RedisClient, params: T, managed: boolean);
9
10
  private getTicker;
10
11
  private getPowerManager;
@@ -48,6 +48,7 @@ class Worker {
48
48
  };
49
49
  this.redisClient = redisClient;
50
50
  this.managed = managed;
51
+ this.params = params;
51
52
  if (!managed) {
52
53
  const { timeout = 1000 } = params;
53
54
  this.ticker = new ticker_1.Ticker(this.onTick, timeout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq-common",
3
- "version": "1.0.0-rc.1",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "RedisSMQ shared components that may be used by integrated applications and extensions.",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",