@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.
- package/dist/nestjs-rxjs-redis-core.module.js +15 -19
- package/dist/nestjs-rxjs-redis-core.module.js.map +1 -1
- package/dist/nestjs-rxjs-redis-service/nestjs-rxjs-redis.service.js +38 -84
- package/dist/nestjs-rxjs-redis-service/nestjs-rxjs-redis.service.js.map +1 -1
- package/dist/nestjs-rxjs-redis.module.js +10 -14
- package/dist/nestjs-rxjs-redis.module.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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":"
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
84
|
-
return (0, rxjs_1.from)(this.redisClient.mget(keys)).pipe((0, rxjs_1.map)(
|
|
85
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"nestjs-rxjs-redis.service.js","sourceRoot":"","sources":["../../src/nestjs-rxjs-redis-service/nestjs-rxjs-redis.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA4C;AAC5C,+BAAwE;AAExE,kDAAkD;AAMlD,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAG/B,YAAqB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;QAC3C,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC;IAChD,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAW,EAAE,KAAa,EAAE,YAAoB,EAAE,KAAK,GAAG,iBAAiB,GAAG,WAAW;QAC1F,OAAO,IAAA,WAAI,EAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,CAClE,IAAA,gBAAS,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,IAAA,SAAE,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,IAAI,KAAK,CAA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AC,IAAI,CAChB,IAAA,gBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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":"
|
|
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.
|
|
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": "
|
|
34
|
+
"gitHead": "0709e0937b28f3bac24b11de5d43f195b8c68c36",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"rxjs": "^7.4.0"
|
|
37
37
|
},
|