@rnw-community/nestjs-rxjs-redis 0.30.0 → 0.32.1

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.
@@ -5,31 +5,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var NestJSRxJSRedisCoreModule_1;
8
9
  Object.defineProperty(exports, "__esModule", { value: true });
9
10
  exports.NestJSRxJSRedisCoreModule = void 0;
10
- var common_1 = require("@nestjs/common");
11
- var nestjs_redis_1 = require("nestjs-redis");
12
- var nestjs_rxjs_redis_service_1 = require("./nestjs-rxjs-redis-service/nestjs-rxjs-redis.service");
13
- var NestJSRxJSRedisCoreModule = /** @class */ (function () {
14
- function NestJSRxJSRedisCoreModule() {
15
- }
16
- NestJSRxJSRedisCoreModule_1 = NestJSRxJSRedisCoreModule;
17
- NestJSRxJSRedisCoreModule.forRootAsync = function (options) {
11
+ const common_1 = require("@nestjs/common");
12
+ const nestjs_redis_1 = require("nestjs-redis");
13
+ const nestjs_rxjs_redis_service_1 = require("./nestjs-rxjs-redis-service/nestjs-rxjs-redis.service");
14
+ let NestJSRxJSRedisCoreModule = NestJSRxJSRedisCoreModule_1 = class NestJSRxJSRedisCoreModule {
15
+ static forRootAsync(options) {
18
16
  return {
19
17
  module: NestJSRxJSRedisCoreModule_1,
20
18
  imports: [nestjs_redis_1.RedisModule.forRootAsync(options)],
21
19
  exports: [nestjs_rxjs_redis_service_1.NestJSRxJSRedisService],
22
20
  };
23
- };
24
- var NestJSRxJSRedisCoreModule_1;
25
- NestJSRxJSRedisCoreModule = NestJSRxJSRedisCoreModule_1 = __decorate([
26
- (0, common_1.Global)(),
27
- (0, common_1.Module)({
28
- providers: [nestjs_rxjs_redis_service_1.NestJSRxJSRedisService],
29
- exports: [nestjs_rxjs_redis_service_1.NestJSRxJSRedisService],
30
- })
31
- ], NestJSRxJSRedisCoreModule);
32
- return NestJSRxJSRedisCoreModule;
33
- }());
21
+ }
22
+ };
23
+ NestJSRxJSRedisCoreModule = NestJSRxJSRedisCoreModule_1 = __decorate([
24
+ (0, common_1.Global)(),
25
+ (0, common_1.Module)({
26
+ providers: [nestjs_rxjs_redis_service_1.NestJSRxJSRedisService],
27
+ exports: [nestjs_rxjs_redis_service_1.NestJSRxJSRedisService],
28
+ })
29
+ ], NestJSRxJSRedisCoreModule);
34
30
  exports.NestJSRxJSRedisCoreModule = NestJSRxJSRedisCoreModule;
35
31
  //# sourceMappingURL=nestjs-rxjs-redis-core.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-rxjs-redis-core.module.js","sourceRoot":"","sources":["../src/nestjs-rxjs-redis-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAgD;AAChD,6CAA2C;AAE3C,mGAA+F;AAU/F;IAAA;IAQA,CAAC;kCARY,yBAAyB;IAC3B,sCAAY,GAAnB,UAAoB,OAAgC;QAChD,OAAO;YACH,MAAM,EAAE,2BAAyB;YACjC,OAAO,EAAE,CAAC,0BAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC,kDAAsB,CAAC;SACpC,CAAC;IACN,CAAC;;IAPQ,yBAAyB;QALrC,IAAA,eAAM,GAAE;QACR,IAAA,eAAM,EAAC;YACJ,SAAS,EAAE,CAAC,kDAAsB,CAAC;YACnC,OAAO,EAAE,CAAC,kDAAsB,CAAC;SACpC,CAAC;OACW,yBAAyB,CAQrC;IAAD,gCAAC;CAAA,AARD,IAQC;AARY,8DAAyB"}
1
+ {"version":3,"file":"nestjs-rxjs-redis-core.module.js","sourceRoot":"","sources":["../src/nestjs-rxjs-redis-core.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAgD;AAChD,+CAA2C;AAE3C,qGAA+F;AAU/F,IAAa,yBAAyB,iCAAtC,MAAa,yBAAyB;IAClC,MAAM,CAAC,YAAY,CAAC,OAAgC;QAChD,OAAO;YACH,MAAM,EAAE,2BAAyB;YACjC,OAAO,EAAE,CAAC,0BAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YAC5C,OAAO,EAAE,CAAC,kDAAsB,CAAC;SACpC,CAAC;IACN,CAAC;CACJ,CAAA;AARY,yBAAyB;IALrC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACJ,SAAS,EAAE,CAAC,kDAAsB,CAAC;QACnC,OAAO,EAAE,CAAC,kDAAsB,CAAC;KACpC,CAAC;GACW,yBAAyB,CAQrC;AARY,8DAAyB"}
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
14
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -21,12 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
21
10
  };
22
11
  Object.defineProperty(exports, "__esModule", { value: true });
23
12
  exports.NestJSRxJSRedisService = void 0;
24
- var common_1 = require("@nestjs/common");
25
- var nestjs_redis_1 = require("nestjs-redis");
26
- var rxjs_1 = require("rxjs");
27
- var shared_1 = require("@rnw-community/shared");
28
- var NestJSRxJSRedisService = /** @class */ (function () {
29
- function NestJSRxJSRedisService(redisService) {
13
+ const common_1 = require("@nestjs/common");
14
+ const nestjs_redis_1 = require("nestjs-redis");
15
+ const rxjs_1 = require("rxjs");
16
+ const shared_1 = require("@rnw-community/shared");
17
+ let NestJSRxJSRedisService = class NestJSRxJSRedisService {
18
+ constructor(redisService) {
30
19
  this.redisService = redisService;
31
20
  this.redisClient = redisService.getClient();
32
21
  }
@@ -41,10 +30,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
41
30
  * @param error Error string
42
31
  * @returns Observable<boolean> with operation success status
43
32
  */
44
- NestJSRxJSRedisService.prototype.set$ = function (key, value, ttlInSeconds, error) {
45
- if (error === void 0) { error = "Error setting ".concat(key, " to redis"); }
46
- return (0, rxjs_1.from)(this.redisClient.set(key, value, 'EX', ttlInSeconds)).pipe((0, rxjs_1.concatMap)(function (result) { return (result === 'OK' ? (0, rxjs_1.of)(true) : (0, rxjs_1.throwError)(function () { return new Error(error); })); }), (0, rxjs_1.catchError)(function () { return (0, rxjs_1.throwError)(function () { return new Error(error); }); }));
47
- };
33
+ set$(key, value, ttlInSeconds, error = `Error setting ${key} to redis`) {
34
+ return (0, rxjs_1.from)(this.redisClient.set(key, value, 'EX', ttlInSeconds)).pipe((0, rxjs_1.concatMap)(result => (result === 'OK' ? (0, rxjs_1.of)(true) : (0, rxjs_1.throwError)(() => new Error(error)))), (0, rxjs_1.catchError)(() => (0, rxjs_1.throwError)(() => new Error(error))));
35
+ }
48
36
  /**
49
37
  * RxJS wrapper for redis get operation.
50
38
  *
@@ -54,10 +42,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
54
42
  * @param error Error string
55
43
  * @returns Observable<string> Value from redis
56
44
  */
57
- NestJSRxJSRedisService.prototype.get$ = function (key, error) {
58
- if (error === void 0) { error = "Error getting ".concat(key, " from redis"); }
59
- return (0, rxjs_1.from)(this.redisClient.get(key)).pipe((0, rxjs_1.concatMap)(function (res) { return ((0, shared_1.isDefined)(res) ? (0, rxjs_1.of)(res) : (0, rxjs_1.throwError)(function () { return new Error(error); })); }), (0, rxjs_1.catchError)(function () { return (0, rxjs_1.throwError)(function () { return new Error(error); }); }));
60
- };
45
+ get$(key, error = `Error getting ${key} from redis`) {
46
+ return (0, rxjs_1.from)(this.redisClient.get(key)).pipe((0, rxjs_1.concatMap)(res => ((0, shared_1.isDefined)(res) ? (0, rxjs_1.of)(res) : (0, rxjs_1.throwError)(() => new Error(error)))), (0, rxjs_1.catchError)(() => (0, rxjs_1.throwError)(() => new Error(error))));
47
+ }
61
48
  /**
62
49
  * RxJS wrapper for redis del operation.
63
50
  *
@@ -68,10 +55,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
68
55
  * @param error Error string
69
56
  * @returns Observable<number> Number of keys deleted from redis
70
57
  */
71
- NestJSRxJSRedisService.prototype.del$ = function (key, error) {
72
- if (error === void 0) { error = "Error deleting ".concat(key, " from redis"); }
73
- return (0, rxjs_1.from)(this.redisClient.del(key)).pipe((0, rxjs_1.catchError)(function () { return (0, rxjs_1.throwError)(function () { return new Error(error); }); }));
74
- };
58
+ del$(key, error = `Error deleting ${key} from redis`) {
59
+ return (0, rxjs_1.from)(this.redisClient.del(key)).pipe((0, rxjs_1.catchError)(() => (0, rxjs_1.throwError)(() => new Error(error))));
60
+ }
75
61
  /**
76
62
  * RxJS wrapper for redis mget operation.
77
63
  *
@@ -80,14 +66,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
80
66
  * @param keys Array of keys
81
67
  * @returns Observable<Record<K, string|null>> Object with key:value
82
68
  */
83
- NestJSRxJSRedisService.prototype.mget$ = function (keys) {
84
- return (0, rxjs_1.from)(this.redisClient.mget(keys)).pipe((0, rxjs_1.map)(function (results) {
85
- return results.reduce(function (prev, cur, idx) {
86
- var _a;
87
- return (__assign(__assign({}, prev), (_a = {}, _a[keys[idx]] = cur, _a)));
88
- }, {});
89
- }));
90
- };
69
+ mget$(keys) {
70
+ return (0, rxjs_1.from)(this.redisClient.mget(keys)).pipe((0, rxjs_1.map)(results => results.reduce((prev, cur, idx) => ({ ...prev, [keys[idx]]: cur }), {})));
71
+ }
91
72
  /**
92
73
  * RxJS operator for saving data into redis.
93
74
  *
@@ -102,16 +83,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
102
83
  * @param errorFn Handler for generating saving error message
103
84
  * @param toValueFn Handler for converting value to string before saving
104
85
  */
105
- NestJSRxJSRedisService.prototype.save = function (keyFn, ttlInSeconds, errorFn, toValueFn) {
106
- var _this = this;
107
- if (errorFn === void 0) { errorFn = function (input) { return "Error saving \"".concat(keyFn(input), "\" to redis \"").concat(JSON.stringify(input), "\""); }; }
108
- if (toValueFn === void 0) { toValueFn = function (input) { return JSON.stringify(input); }; }
109
- return function (source$) {
110
- return source$.pipe((0, rxjs_1.concatMap)(function (input) {
111
- return _this.set$(keyFn(input), toValueFn(input), ttlInSeconds, errorFn(input)).pipe((0, rxjs_1.map)(function () { return input; }));
112
- }));
113
- };
114
- };
86
+ save(keyFn, ttlInSeconds, errorFn = input => `Error saving "${keyFn(input)}" to redis "${JSON.stringify(input)}"`, toValueFn = input => JSON.stringify(input)) {
87
+ return (source$) => source$.pipe((0, rxjs_1.concatMap)(input => this.set$(keyFn(input), toValueFn(input), ttlInSeconds, errorFn(input)).pipe((0, rxjs_1.map)(() => input))));
88
+ }
115
89
  /**
116
90
  * RxJS operator for loading data from redis
117
91
  *
@@ -124,15 +98,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
124
98
  * @param errorFn Handler for generating saving error message
125
99
  * @param fromValueFn Handler for converting value from string after getting
126
100
  */
127
- NestJSRxJSRedisService.prototype.load = function (keyFn, errorFn, fromValueFn) {
128
- var _this = this;
129
- if (keyFn === void 0) { keyFn = function (key) { return "".concat(String(key)); }; }
130
- if (errorFn === void 0) { errorFn = function (input) { return "Error loading \"".concat(keyFn(input), "\" from redis"); }; }
131
- if (fromValueFn === void 0) { fromValueFn = function (input) { return JSON.parse(input); }; }
132
- return function (source$) {
133
- return source$.pipe((0, rxjs_1.concatMap)(function (input) { return _this.get$(keyFn(input), errorFn(input)).pipe((0, rxjs_1.map)(fromValueFn)); }));
134
- };
135
- };
101
+ load(keyFn = key => `${String(key)}`, errorFn = input => `Error loading "${keyFn(input)}" from redis`, fromValueFn = input => JSON.parse(input)) {
102
+ return (source$) => source$.pipe((0, rxjs_1.concatMap)(input => this.get$(keyFn(input), errorFn(input)).pipe((0, rxjs_1.map)(fromValueFn))));
103
+ }
136
104
  /**
137
105
  * RxJS operator for deleting data from redis
138
106
  *
@@ -144,14 +112,9 @@ var NestJSRxJSRedisService = /** @class */ (function () {
144
112
  * @param keyFn Handler for generating redis key
145
113
  * @param errorFn Handler for generating saving error message
146
114
  */
147
- NestJSRxJSRedisService.prototype.remove = function (keyFn, errorFn) {
148
- var _this = this;
149
- if (keyFn === void 0) { keyFn = function (key) { return "".concat(String(key)); }; }
150
- if (errorFn === void 0) { errorFn = function (input) { return "Error removing \"".concat(keyFn(input), "\" from redis"); }; }
151
- return function (source$) {
152
- return source$.pipe((0, rxjs_1.concatMap)(function (input) { return _this.del$(keyFn(input), errorFn(input)).pipe((0, rxjs_1.map)(function () { return input; })); }));
153
- };
154
- };
115
+ remove(keyFn = key => `${String(key)}`, errorFn = input => `Error removing "${keyFn(input)}" from redis`) {
116
+ return (source$) => source$.pipe((0, rxjs_1.concatMap)(input => this.del$(keyFn(input), errorFn(input)).pipe((0, rxjs_1.map)(() => input))));
117
+ }
155
118
  /**
156
119
  * RxJS operator for common cache operation.
157
120
  *
@@ -170,25 +133,16 @@ var NestJSRxJSRedisService = /** @class */ (function () {
170
133
  * @returns OperatorFunction RxJS operator
171
134
  */
172
135
  // eslint-disable-next-line max-params
173
- NestJSRxJSRedisService.prototype.cache = function (ttlInSeconds, prepareFn$, keyFn, fromValueFn, toValueFn) {
174
- var _this = this;
175
- if (keyFn === void 0) { keyFn = function (input) { return String(input); }; }
176
- if (fromValueFn === void 0) { fromValueFn = function (input) { return JSON.parse(input); }; }
177
- if (toValueFn === void 0) { toValueFn = function (input) { return JSON.stringify(input); }; }
178
- return function (source$) {
179
- return source$.pipe((0, rxjs_1.concatMap)(function (input) {
180
- var key = keyFn(input);
181
- return _this.get$(key).pipe((0, rxjs_1.map)(fromValueFn), (0, rxjs_1.catchError)(function () {
182
- return prepareFn$(key).pipe((0, rxjs_1.concatMap)(function (data) { return _this.set$(key, toValueFn(data), ttlInSeconds).pipe((0, rxjs_1.map)(function () { return data; })); }));
183
- }));
184
- }));
185
- };
186
- };
187
- NestJSRxJSRedisService = __decorate([
188
- (0, common_1.Injectable)(),
189
- __metadata("design:paramtypes", [nestjs_redis_1.RedisService])
190
- ], NestJSRxJSRedisService);
191
- return NestJSRxJSRedisService;
192
- }());
136
+ cache(ttlInSeconds, prepareFn$, keyFn = input => String(input), fromValueFn = input => JSON.parse(input), toValueFn = input => JSON.stringify(input)) {
137
+ return (source$) => source$.pipe((0, rxjs_1.concatMap)(input => {
138
+ const key = keyFn(input);
139
+ return this.get$(key).pipe((0, rxjs_1.map)(fromValueFn), (0, rxjs_1.catchError)(() => prepareFn$(key).pipe((0, rxjs_1.concatMap)(data => this.set$(key, toValueFn(data), ttlInSeconds).pipe((0, rxjs_1.map)(() => data))))));
140
+ }));
141
+ }
142
+ };
143
+ NestJSRxJSRedisService = __decorate([
144
+ (0, common_1.Injectable)(),
145
+ __metadata("design:paramtypes", [nestjs_redis_1.RedisService])
146
+ ], NestJSRxJSRedisService);
193
147
  exports.NestJSRxJSRedisService = NestJSRxJSRedisService;
194
148
  //# sourceMappingURL=nestjs-rxjs-redis.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-rxjs-redis.service.js","sourceRoot":"","sources":["../../src/nestjs-rxjs-redis-service/nestjs-rxjs-redis.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA4C;AAC5C,6CAA4C;AAC5C,6BAAwE;AAExE,gDAAkD;AAMlD;IAGI,gCAAqB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAC3C,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC;IAChD,CAAC;I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AAC,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,IAAA,UAAG,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CACzF,CACJ,CACJ,CAAC;QACN,CAAC,CAAC,CACL,CAAC;IACV,CAAC;CACJ,CAAA;AApLY,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAI0B,2BAAY;GAHtC,sBAAsB,CAoLlC;AApLY,wDAAsB"}
@@ -5,25 +5,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var NestJSRxJSRedisModule_1;
8
9
  Object.defineProperty(exports, "__esModule", { value: true });
9
10
  exports.NestJSRxJSRedisModule = void 0;
10
- var common_1 = require("@nestjs/common");
11
- var nestjs_rxjs_redis_core_module_1 = require("./nestjs-rxjs-redis-core.module");
12
- var NestJSRxJSRedisModule = /** @class */ (function () {
13
- function NestJSRxJSRedisModule() {
14
- }
15
- NestJSRxJSRedisModule_1 = NestJSRxJSRedisModule;
16
- NestJSRxJSRedisModule.forRootAsync = function (options) {
11
+ const common_1 = require("@nestjs/common");
12
+ const nestjs_rxjs_redis_core_module_1 = require("./nestjs-rxjs-redis-core.module");
13
+ let NestJSRxJSRedisModule = NestJSRxJSRedisModule_1 = class NestJSRxJSRedisModule {
14
+ static forRootAsync(options) {
17
15
  return {
18
16
  module: NestJSRxJSRedisModule_1,
19
17
  imports: [nestjs_rxjs_redis_core_module_1.NestJSRxJSRedisCoreModule.forRootAsync(options)],
20
18
  };
21
- };
22
- var NestJSRxJSRedisModule_1;
23
- NestJSRxJSRedisModule = NestJSRxJSRedisModule_1 = __decorate([
24
- (0, common_1.Module)({})
25
- ], NestJSRxJSRedisModule);
26
- return NestJSRxJSRedisModule;
27
- }());
19
+ }
20
+ };
21
+ NestJSRxJSRedisModule = NestJSRxJSRedisModule_1 = __decorate([
22
+ (0, common_1.Module)({})
23
+ ], NestJSRxJSRedisModule);
28
24
  exports.NestJSRxJSRedisModule = NestJSRxJSRedisModule;
29
25
  //# sourceMappingURL=nestjs-rxjs-redis.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-rxjs-redis.module.js","sourceRoot":"","sources":["../src/nestjs-rxjs-redis.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAwC;AAExC,iFAA4E;AAM5E;IAAA;IAOA,CAAC;8BAPY,qBAAqB;IACvB,kCAAY,GAAnB,UAAoB,OAAgC;QAChD,OAAO;YACH,MAAM,EAAE,uBAAqB;YAC7B,OAAO,EAAE,CAAC,yDAAyB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;SAC7D,CAAC;IACN,CAAC;;IANQ,qBAAqB;QADjC,IAAA,eAAM,EAAC,EAAE,CAAC;OACE,qBAAqB,CAOjC;IAAD,4BAAC;CAAA,AAPD,IAOC;AAPY,sDAAqB"}
1
+ {"version":3,"file":"nestjs-rxjs-redis.module.js","sourceRoot":"","sources":["../src/nestjs-rxjs-redis.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAwC;AAExC,mFAA4E;AAM5E,IAAa,qBAAqB,6BAAlC,MAAa,qBAAqB;IAC9B,MAAM,CAAC,YAAY,CAAC,OAAgC;QAChD,OAAO;YACH,MAAM,EAAE,uBAAqB;YAC7B,OAAO,EAAE,CAAC,yDAAyB,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;SAC7D,CAAC;IACN,CAAC;CACJ,CAAA;AAPY,qBAAqB;IADjC,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,qBAAqB,CAOjC;AAPY,sDAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnw-community/nestjs-rxjs-redis",
3
- "version": "0.30.0",
3
+ "version": "0.32.1",
4
4
  "private": false,
5
5
  "description": "NestJS RxJS redis",
6
6
  "keywords": [
@@ -31,7 +31,7 @@
31
31
  "clear": "rm -rf coverage && rm -rf dist && rm -f *.tsbuildinfo",
32
32
  "clear:deps": "rm -rf ./node_modules && rm -rf ./dist"
33
33
  },
34
- "gitHead": "84a0d5db4e5b8a49fc5d1a33dc73c7c6c9d623db",
34
+ "gitHead": "0709e0937b28f3bac24b11de5d43f195b8c68c36",
35
35
  "dependencies": {
36
36
  "rxjs": "^7.4.0"
37
37
  },