incyclist-devices 1.4.60 → 1.4.61

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.
@@ -462,7 +462,7 @@ class BleInterface extends ble_1.BleInterfaceClass {
462
462
  }
463
463
  scan(props) {
464
464
  return __awaiter(this, void 0, void 0, function* () {
465
- const { timeout = DEFAULT_SCAN_TIMEOUT, deviceTypes = [], requested } = props;
465
+ const { timeout = DEFAULT_SCAN_TIMEOUT, deviceTypes = [], requested, isBackgroundScan } = props;
466
466
  let profile;
467
467
  if (requested)
468
468
  profile = requested instanceof ble_1.BleDeviceClass ?
@@ -479,7 +479,7 @@ class BleInterface extends ble_1.BleInterfaceClass {
479
479
  }
480
480
  const peripheralsProcessed = [];
481
481
  const devicesProcessed = [];
482
- this.logEvent({ message: 'scan()', props, scanState: this.scanState,
482
+ this.logEvent({ message: 'scan()', props: { timeout, isBackgroundScan }, scanState: this.scanState,
483
483
  peripheralCache: this.peripheralCache.map(i => ({ address: i.address, ts: i.ts, name: i.peripheral ? i.peripheral.advertisement.localName : '' })),
484
484
  deviceCache: this.devices.map(i => ({ address: i.device.address, profile: i.device.getProfile(), isConnected: i.isConnected }))
485
485
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "1.4.60",
3
+ "version": "1.4.61",
4
4
  "dependencies": {
5
5
  "@serialport/parser-byte-length": "^9.0.1",
6
6
  "@serialport/parser-delimiter": "^9.0.1",