@sumaris-net/ngx-components 1.15.8 → 1.15.9
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/bundles/sumaris-net.ngx-components.umd.js +8 -4
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/services/base-graphql-service.class.js +7 -3
- package/esm2015/src/app/core/services/network.service.js +3 -3
- package/fesm2015/sumaris-net.ngx-components.js +8 -4
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -12314,7 +12314,7 @@
|
|
|
12314
12314
|
_this.onNetworkStatusChanges = new rxjs.BehaviorSubject(null);
|
|
12315
12315
|
_this.onResetNetworkCache = new i0.EventEmitter(true);
|
|
12316
12316
|
_this._listeners = {};
|
|
12317
|
-
_this._mobile = _this.
|
|
12317
|
+
_this._mobile = _this.settings.mobile;
|
|
12318
12318
|
if (_this._mobile) {
|
|
12319
12319
|
_this._timerRefreshPeriod = NetworkRefreshTimerPeriod.MOBILE;
|
|
12320
12320
|
_this._timerRefreshCondition = function () { return _this.online; }; // Check only when online, and stop when offline
|
|
@@ -12744,7 +12744,7 @@
|
|
|
12744
12744
|
return __generator(this, function (_c) {
|
|
12745
12745
|
switch (_c.label) {
|
|
12746
12746
|
case 0:
|
|
12747
|
-
console.info('[network] Starting network...'
|
|
12747
|
+
console.info('[network] Starting network...');
|
|
12748
12748
|
_b = this._startingPeer;
|
|
12749
12749
|
if (_b) return [3 /*break*/, 2];
|
|
12750
12750
|
return [4 /*yield*/, this.restoreLocally()];
|
|
@@ -15746,7 +15746,9 @@
|
|
|
15746
15746
|
return this._mutableWatchQueries.filter(function (q) { return q.id.startsWith(opts.queryName + '|'); });
|
|
15747
15747
|
}
|
|
15748
15748
|
if (opts.queryNames) {
|
|
15749
|
-
return opts.queryNames.
|
|
15749
|
+
return opts.queryNames.map(function (queryName) { return _this._mutableWatchQueries.filter(function (q) { return q.id.startsWith(queryName + '|'); }); })
|
|
15750
|
+
// flatMap
|
|
15751
|
+
.reduce(function (res, array) { return res.concat.apply(res, __spread(array)); }, []);
|
|
15750
15752
|
}
|
|
15751
15753
|
// Search by query
|
|
15752
15754
|
if (opts.query) {
|
|
@@ -15755,7 +15757,9 @@
|
|
|
15755
15757
|
if (opts.queries) {
|
|
15756
15758
|
return opts.queries
|
|
15757
15759
|
.filter(isNotNil)
|
|
15758
|
-
.
|
|
15760
|
+
.map(function (query) { return _this._mutableWatchQueries.filter(function (q) { return q.query === query; }); })
|
|
15761
|
+
// flatMap
|
|
15762
|
+
.reduce(function (res, array) { return res.concat.apply(res, __spread(array)); }, []);
|
|
15759
15763
|
}
|
|
15760
15764
|
throw Error('Invalid options: only one property must be set');
|
|
15761
15765
|
};
|