@colijnit/sharedcomponents 1.0.48 → 1.0.49

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.
@@ -1017,10 +1017,16 @@
1017
1017
  SharedConnectorService.prototype.connect = function () {
1018
1018
  return __awaiter(this, void 0, void 0, function () {
1019
1019
  return __generator(this, function (_a) {
1020
- this.articleConnector = new articles.Articles(this._optionsService.options);
1021
- this.sharedConnector = new sharedapi.Sharedapi(this._optionsService.options);
1022
- this.mainConnector = new mainapi.MainApi(this._optionsService.options);
1023
- return [2 /*return*/];
1020
+ switch (_a.label) {
1021
+ case 0:
1022
+ this.sharedConnector = new sharedapi.Sharedapi(this._optionsService.options);
1023
+ return [4 /*yield*/, this.sharedConnector.connect()];
1024
+ case 1:
1025
+ _a.sent();
1026
+ this.articleConnector = new articles.Articles(this._optionsService.options);
1027
+ this.mainConnector = new mainapi.MainApi(this._optionsService.options);
1028
+ return [2 /*return*/];
1029
+ }
1024
1030
  });
1025
1031
  });
1026
1032
  };