@sumaris-net/ngx-components 1.23.34 → 1.23.35
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 +11 -7
- 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/shared/services/startable-observable-service.class.js +6 -4
- package/esm2015/src/app/shared/services/startable-service.class.js +7 -5
- package/fesm2015/sumaris-net.ngx-components.js +11 -7
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -10189,9 +10189,11 @@
|
|
|
10189
10189
|
return data;
|
|
10190
10190
|
})
|
|
10191
10191
|
.catch(function (err) {
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10192
|
+
if (!_this.stopped) {
|
|
10193
|
+
console.error('Failed to start a service: ' + (err && err.message || err), err);
|
|
10194
|
+
_this._startPromise = null;
|
|
10195
|
+
_this._started = false;
|
|
10196
|
+
}
|
|
10195
10197
|
return null;
|
|
10196
10198
|
});
|
|
10197
10199
|
return this._startPromise;
|
|
@@ -10224,10 +10226,10 @@
|
|
|
10224
10226
|
console.error('Failed to stop a service: ' + (err_1 && err_1.message || err_1), err_1);
|
|
10225
10227
|
return [3 /*break*/, 4];
|
|
10226
10228
|
case 3:
|
|
10227
|
-
this.stopSubject.next();
|
|
10228
10229
|
this._data = null;
|
|
10229
10230
|
this._started = false;
|
|
10230
10231
|
this._startPromise = undefined;
|
|
10232
|
+
this.stopSubject.next();
|
|
10231
10233
|
return [7 /*endfinally*/];
|
|
10232
10234
|
case 4: return [2 /*return*/];
|
|
10233
10235
|
}
|
|
@@ -12850,9 +12852,11 @@
|
|
|
12850
12852
|
return data;
|
|
12851
12853
|
})
|
|
12852
12854
|
.catch(function (err) {
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12855
|
+
if (!_this.stopped) {
|
|
12856
|
+
console.error('Failed to start a service: ' + (err && err.message || err), err);
|
|
12857
|
+
_this._started = false;
|
|
12858
|
+
_this._startPromise = null;
|
|
12859
|
+
}
|
|
12856
12860
|
return null;
|
|
12857
12861
|
});
|
|
12858
12862
|
return this._startPromise;
|