nuxeo-development-framework 3.9.8 → 4.0.0

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.
@@ -26352,7 +26352,7 @@
26352
26352
  ActivityLogConstants.pageProvider = {
26353
26353
  buisnesslog: {
26354
26354
  name: 'PP_BusinessLog',
26355
- headers: { 'X-NXproperties': '*', 'X-NXfetch-document': 'dc:creator,bl:person' },
26355
+ headers: { 'X-NXproperties': '*', 'X-NXfetch-document': 'dc:creator,bl:person', 'exclude-user-info': 'group' },
26356
26356
  },
26357
26357
  };
26358
26358
  ActivityLogConstants.quickFilters = {
@@ -29095,12 +29095,17 @@
29095
29095
  SocketService.prototype._prepareConnection = function () {
29096
29096
  var _this = this;
29097
29097
  var _a;
29098
- var socket = new WebSocket((_a = this._environment) === null || _a === void 0 ? void 0 : _a.socketUrl);
29099
- socket.onopen = function (event) { return _this._handleSocketConnection(true, event); };
29100
- socket.onclose = function (event) { return _this._handleSocketConnection(false, event); };
29101
- socket.onerror = function (event) { return _this._handleSocketError(event); };
29102
- socket.onmessage = function (event) { return _this._handleSocketMessage(event); };
29103
- this._socket = socket;
29098
+ try {
29099
+ var socket = new WebSocket((_a = this._environment) === null || _a === void 0 ? void 0 : _a.socketUrl);
29100
+ socket.onopen = function (event) { return _this._handleSocketConnection(true, event); };
29101
+ socket.onclose = function (event) { return _this._handleSocketConnection(false, event); };
29102
+ socket.onerror = function (event) { return _this._handleSocketError(event); };
29103
+ socket.onmessage = function (event) { return _this._handleSocketMessage(event); };
29104
+ this._socket = socket;
29105
+ }
29106
+ catch (error) {
29107
+ this._handleSocketError(error);
29108
+ }
29104
29109
  };
29105
29110
  SocketService.prototype.ngOnDestroy = function () {
29106
29111
  this._destroy$.next();
@@ -29143,23 +29148,24 @@
29143
29148
  */
29144
29149
  function NotificationsService(_environment, _nuxeoService, _callApi, _http) {
29145
29150
  var _this = this;
29146
- var _a, _b;
29151
+ var _a, _b, _c;
29147
29152
  _this = _super.call(this, _environment, _nuxeoService) || this;
29148
29153
  _this._environment = _environment;
29149
29154
  _this._nuxeoService = _nuxeoService;
29150
29155
  _this._callApi = _callApi;
29151
29156
  _this._http = _http;
29152
29157
  _this.listenerObserver = new rxjs.Subject();
29153
- // this._nuxeoService.init().then((client) => {
29154
- if ((_b = (_a = _this._nuxeoService.nuxeoClient) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.id) {
29158
+ if (((_b = (_a = _this._nuxeoService.nuxeoClient) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.id) && ((_c = _this._environment) === null || _c === void 0 ? void 0 : _c.socketUrl)) {
29155
29159
  _this.socketConnect()
29156
- .pipe(operators.switchMap(function () { return _this.onMessage$; }), operators.takeUntil(_this._destroy$))
29160
+ .pipe(operators.switchMap(function () { return _this.onMessage$; }), operators.catchError(function (error) {
29161
+ console.log(error);
29162
+ return rxjs.throwError(function () { return error; });
29163
+ }), operators.takeUntil(_this._destroy$))
29157
29164
  .subscribe(function (res) {
29158
29165
  _this.listenerObserver.next(res);
29159
29166
  });
29160
29167
  }
29161
29168
  return _this;
29162
- // });
29163
29169
  }
29164
29170
  Object.defineProperty(NotificationsService.prototype, "_tenantId", {
29165
29171
  get: function () {