incyclist-devices 3.0.41 → 3.0.42

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.
@@ -151,7 +151,7 @@ class BleZwiftPlaySensor extends sensor_js_1.TBleSensor {
151
151
  await this.requestDataUpdate(512);
152
152
  }
153
153
  catch (err) {
154
- const message = this.stopRequested ? 'warning' : 'error';
154
+ const message = (this.stopRequested || this.isReconnectBusy()) ? 'warning' : 'error';
155
155
  this.logger.logEvent({ message, fn: 'setSimulationData', data, error: err.message, stack: err.stack });
156
156
  }
157
157
  }
@@ -184,7 +184,7 @@ class BleZwiftPlaySensor extends sensor_js_1.TBleSensor {
184
184
  await this.requestDataUpdate(512);
185
185
  }
186
186
  catch (err) {
187
- const message = this.stopRequested ? 'warning' : 'error';
187
+ const message = (this.stopRequested || this.isReconnectBusy()) ? 'warning' : 'error';
188
188
  this.logger.logEvent({ message, fn: 'setGearRatio', gearRatio, error: err.message, stack: err.stack });
189
189
  }
190
190
  return gearRatio;
@@ -148,7 +148,7 @@ export class BleZwiftPlaySensor extends TBleSensor {
148
148
  await this.requestDataUpdate(512);
149
149
  }
150
150
  catch (err) {
151
- const message = this.stopRequested ? 'warning' : 'error';
151
+ const message = (this.stopRequested || this.isReconnectBusy()) ? 'warning' : 'error';
152
152
  this.logger.logEvent({ message, fn: 'setSimulationData', data, error: err.message, stack: err.stack });
153
153
  }
154
154
  }
@@ -181,7 +181,7 @@ export class BleZwiftPlaySensor extends TBleSensor {
181
181
  await this.requestDataUpdate(512);
182
182
  }
183
183
  catch (err) {
184
- const message = this.stopRequested ? 'warning' : 'error';
184
+ const message = (this.stopRequested || this.isReconnectBusy()) ? 'warning' : 'error';
185
185
  this.logger.logEvent({ message, fn: 'setGearRatio', gearRatio, error: err.message, stack: err.stack });
186
186
  }
187
187
  return gearRatio;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "3.0.41",
3
+ "version": "3.0.42",
4
4
  "scripts": {
5
5
  "lint": "eslint . --ext .ts",
6
6
  "build": "npm run build:esm && npm run build:cjs",
@@ -20,7 +20,7 @@
20
20
  "@serialport/parser-delimiter": "^13.0.0",
21
21
  "@serialport/parser-readline": "^13.0.0",
22
22
  "@serialport/stream": "^13.0.0",
23
- "incyclist-ant-plus": "^0.3.6",
23
+ "incyclist-ant-plus": "^0.3.7",
24
24
  "win32filetime": "^1.0.2"
25
25
  },
26
26
  "peerDependencies": {
@@ -30,18 +30,18 @@
30
30
  "@protobuf-ts/plugin": "^2.11.1",
31
31
  "@serialport/binding-mock": "^10.2.2",
32
32
  "@serialport/bindings-cpp": "^13.0.1",
33
- "@stoprocent/noble": "^2.4.0",
33
+ "@stoprocent/noble": "^2.8.0",
34
34
  "@types/jest": "^30.0.0",
35
- "@types/node": "^25.6.0",
36
- "@typescript-eslint/eslint-plugin": "^8.59.0",
37
- "@typescript-eslint/parser": "^8.59.0",
38
- "@vitest/coverage-v8": "^4.0.18",
39
- "bonjour-service": "^1.3.0",
40
- "eslint": "^9.39.4",
35
+ "@types/node": "^26.6.5",
36
+ "@typescript-eslint/eslint-plugin": "^8.71.2",
37
+ "@typescript-eslint/parser": "^8.71.2",
38
+ "@vitest/coverage-v8": "^5.0.4",
39
+ "bonjour-service": "^1.4.4",
40
+ "eslint": "^9.39.5",
41
41
  "protoc": "^33.6.0",
42
42
  "ts-node": "^10.9.2",
43
43
  "typescript": "^5.9.3",
44
- "vitest": "^4.1.11"
44
+ "vitest": "^5.0.4"
45
45
  },
46
46
  "files": [
47
47
  "lib/"