incyclist-devices 2.3.41 → 2.3.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.
@@ -49,8 +49,8 @@ class AntFEAdapter extends adapter_1.default {
49
49
  if (this.promiseStop)
50
50
  return;
51
51
  if (this.promiseSendUpdate !== undefined) {
52
- this.logEvent({ message: 'send bike update skipped', device: this.getName(), request, reason: 'busy' });
53
- return;
52
+ yield this.promiseSendUpdate;
53
+ this.promiseSendUpdate = undefined;
54
54
  }
55
55
  let isReset = request.reset && Object.keys(request).length === 1;
56
56
  const update = isReset ? this.getCyclingMode().getBikeInitRequest() : this.getCyclingMode().buildUpdate(request);
@@ -75,7 +75,6 @@ class DirectConnectInterface extends events_1.default {
75
75
  const protocol = this.getProtocol(service);
76
76
  const address = service.address;
77
77
  const services = (_b = (_a = service.serviceUUIDs) === null || _a === void 0 ? void 0 : _a.map(uuid => (0, ble_1.beautifyUUID)(uuid, false))) === null || _b === void 0 ? void 0 : _b.join(',');
78
- console.log('# created device setting from announcement', name, service.serviceUUIDs, services);
79
78
  return { interface: DirectConnectInterface.INTERFACE_NAME, name, protocol, address, services };
80
79
  }
81
80
  catch (_c) {
@@ -249,7 +248,6 @@ class DirectConnectInterface extends events_1.default {
249
248
  const device = this.createDeviceSetting(service);
250
249
  if (!device)
251
250
  return;
252
- console.log('# emitting device', device, service);
253
251
  this.emit('device', device, service);
254
252
  }
255
253
  buildDeviceSettings(matching = []) {
@@ -257,7 +255,6 @@ class DirectConnectInterface extends events_1.default {
257
255
  }
258
256
  addService(service, source) {
259
257
  var _a, _b;
260
- console.log(`# DirectConnectInterface.addService from ${source}`, service.name, service.serviceUUIDs);
261
258
  const src = source === 'known-device' ? 'known-device' : 'mdns';
262
259
  try {
263
260
  service.transport = this.getName();
@@ -338,7 +335,6 @@ class DirectConnectInterface extends events_1.default {
338
335
  transport: 'wifi',
339
336
  serviceUUIDs: this.getServiceUUIDs(settings),
340
337
  };
341
- console.log('# created announcement from settings', announcement);
342
338
  return announcement;
343
339
  }
344
340
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.3.41",
3
+ "version": "2.3.42",
4
4
  "dependencies": {
5
5
  "@protobuf-ts/runtime": "^2.11.1",
6
6
  "@serialport/bindings-interface": "^1.2.2",
@@ -26,7 +26,7 @@
26
26
  "bonjour-service": "^1.3.0",
27
27
  "eslint": "^9.35.0",
28
28
  "jest": "^30.1.3",
29
- "npm": "^11.6.1",
29
+ "npm": "^11.6.4",
30
30
  "protoc": "^32.1.0",
31
31
  "ts-jest": "^29.4.1",
32
32
  "typescript": "^5.9.2"