incyclist-devices 2.0.30 → 2.0.31

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.
@@ -83,9 +83,6 @@ class BleWahooAdapter extends fm_1.BleFmAdapter {
83
83
  comms.on('data', (data) => {
84
84
  this.onDeviceData(data);
85
85
  });
86
- if (comms.features.heartrate && !this.hasCapability(capabilities_1.IncyclistCapability.HeartRate)) {
87
- this.capabilities.push(capabilities_1.IncyclistCapability.HeartRate);
88
- }
89
86
  this.resetData();
90
87
  this.stopped = false;
91
88
  this.started = true;
@@ -92,10 +92,13 @@ class DaumPremiumAdapter extends DaumAdapter_1.default {
92
92
  }
93
93
  isEqual(settings) {
94
94
  if (this.getInterface() === device_1.INTERFACE.TCPIP) {
95
- const equal = super.isEqual(settings);
96
- if (!equal)
97
- return false;
98
95
  const as = this.settings;
96
+ if (settings.interface !== this.getInterface())
97
+ return false;
98
+ if (settings.protocol !== as.protocol)
99
+ return false;
100
+ if ((settings.port || DAUM_PREMIUM_DEFAULT_PORT) !== (as.port || DAUM_PREMIUM_DEFAULT_PORT))
101
+ return false;
99
102
  return (settings.host === as.host);
100
103
  }
101
104
  else {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { MockBindingInterface, MockPortBinding, CreatePortOptions } from '@serialport/binding-mock';
3
- import { BindingInterface, PortInfo } from '@serialport/bindings-interface';
3
+ import { BindingInterface } from '@serialport/bindings-interface';
4
4
  import { User } from '../../../types/user';
5
5
  export type MockProps = {
6
6
  interface: string;
@@ -25,7 +25,7 @@ export declare class Daum8iMockImpl {
25
25
  getSimulator(path: any): Daum8MockSimulator;
26
26
  reset(): void;
27
27
  createPort(path: string, options?: CreatePortOptions): void;
28
- list(): Promise<PortInfo[]>;
28
+ list(): Promise<import("@serialport/bindings-interface").PortInfo[]>;
29
29
  open(options: any): Promise<Daum8iMockBinding>;
30
30
  }
31
31
  export declare class Daum8MockSimulator {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "dependencies": {
5
5
  "@serialport/bindings-interface": "^1.2.2",
6
6
  "@serialport/parser-byte-length": "^9.0.1",