incyclist-services 1.0.47 → 1.0.48

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.
@@ -107,6 +107,7 @@ class DeviceConfigurationService extends events_1.default {
107
107
  return this.features['NEW_UI'] === true;
108
108
  }
109
109
  verifyCapabilitySettings() {
110
+ var _a;
110
111
  const { capabilities } = this.settings;
111
112
  const isNewUi = this.isNewUi();
112
113
  const bikeCapIdx = capabilities.findIndex(c => c.capability === 'bike');
@@ -127,10 +128,10 @@ class DeviceConfigurationService extends events_1.default {
127
128
  const bikeCap = capabilities.find(c => c.capability === 'bike');
128
129
  for (const capability of ['bike', incyclist_devices_1.IncyclistCapability.Control]) {
129
130
  const info = capabilities.find(c => c.capability === capability);
130
- if (info && info.devices.length > 0 && info.selected === undefined)
131
+ if (((_a = info === null || info === void 0 ? void 0 : info.devices) === null || _a === void 0 ? void 0 : _a.length) > 0 && (info === null || info === void 0 ? void 0 : info.selected) === undefined)
131
132
  this.select(info.devices[0], capability);
132
133
  }
133
- if (bikeCap && bikeCap.selected) {
134
+ if (bikeCap === null || bikeCap === void 0 ? void 0 : bikeCap.selected) {
134
135
  const bike = bikeCap.selected;
135
136
  const power = capabilities.find(c => c.capability === incyclist_devices_1.IncyclistCapability.Power && c.selected !== undefined);
136
137
  const control = capabilities.find(c => c.capability === incyclist_devices_1.IncyclistCapability.Control && c.selected !== undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.24"
6
6
  },