@livequery/nestjs 1.0.28 → 1.0.29
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.
|
@@ -29,7 +29,7 @@ const LivequeryWebsocketSync_1 = require("./LivequeryWebsocketSync");
|
|
|
29
29
|
const const_1 = require("./const");
|
|
30
30
|
const rxjs_1 = require("rxjs");
|
|
31
31
|
const operators_1 = require("rxjs/operators");
|
|
32
|
-
const
|
|
32
|
+
const LivequeryRequest_1 = require("./LivequeryRequest");
|
|
33
33
|
let LivequeryInterceptor = class LivequeryInterceptor {
|
|
34
34
|
constructor(LivequeryWebsocketSync = null) {
|
|
35
35
|
this.LivequeryWebsocketSync = LivequeryWebsocketSync;
|
|
@@ -59,7 +59,7 @@ let LivequeryInterceptor = class LivequeryInterceptor {
|
|
|
59
59
|
const schema_collection_ref = (_j = (_h = (_g = (_f = (_e = (_d = req.route.path) === null || _d === void 0 ? void 0 : _d.split(const_1.LIVEQUERY_MAGIC_KEY)) === null || _e === void 0 ? void 0 : _e[1]) === null || _f === void 0 ? void 0 : _f.split('/')) === null || _g === void 0 ? void 0 : _g.filter((_, i) => i % 2 == 0)) === null || _h === void 0 ? void 0 : _h.join('/')) === null || _j === void 0 ? void 0 : _j.replaceAll(':', '');
|
|
60
60
|
if (!schema_collection_ref)
|
|
61
61
|
throw new common_1.HttpException('CAN_NOT_DETECT_LIVEQUERY_KEY', 400);
|
|
62
|
-
req[
|
|
62
|
+
req[LivequeryRequest_1.LivequeryRequestKey] = {
|
|
63
63
|
ref,
|
|
64
64
|
collection_ref,
|
|
65
65
|
schema_collection_ref,
|