@psdk/device-ble-taro 0.2.56 → 0.2.57

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.
package/build/provider.js CHANGED
@@ -280,7 +280,7 @@ class TaroBleBluetooth extends device_bluetooth_traits_1.Jluetooth {
280
280
  const pickedCharacteristic = characteristics.find(characteristic => {
281
281
  const properties = characteristic.properties;
282
282
  // @ts-ignore
283
- return (properties.writeNoResponse || properties.write) && (properties.read);
283
+ return properties.write && (properties.read);
284
284
  });
285
285
  if (pickedCharacteristic) {
286
286
  return {
@@ -290,7 +290,7 @@ class TaroBleBluetooth extends device_bluetooth_traits_1.Jluetooth {
290
290
  };
291
291
  }
292
292
  }
293
- if ((_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.allowDetectDifferentCharacteristic) !== null && _f !== void 0 ? _f : false) {
293
+ if ((_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.allowDetectDifferentCharacteristic) !== null && _f !== void 0 ? _f : true) {
294
294
  // choose different characteristic with write and read properties
295
295
  for (const service of options.services) {
296
296
  if (!device_bluetooth_traits_1.TBluetoothHelpers.isAllowServices(service.uuid, (_g = this.options) === null || _g === void 0 ? void 0 : _g.allowServices)) {
@@ -300,7 +300,7 @@ class TaroBleBluetooth extends device_bluetooth_traits_1.Jluetooth {
300
300
  const writeCharacteristic = characteristics.find(characteristic => {
301
301
  const properties = characteristic.properties;
302
302
  // @ts-ignore
303
- return (properties.writeNoResponse || properties.write);
303
+ return properties.write;
304
304
  });
305
305
  const readCharacteristic = characteristics.find(characteristic => {
306
306
  const properties = characteristic.properties;
@@ -325,7 +325,7 @@ class TaroBleBluetooth extends device_bluetooth_traits_1.Jluetooth {
325
325
  const writeCharacteristic = characteristics.find(characteristic => {
326
326
  const properties = characteristic.properties;
327
327
  // @ts-ignore
328
- return (properties.writeNoResponse || properties.write);
328
+ return properties.write;
329
329
  });
330
330
  if (writeCharacteristic) {
331
331
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psdk/device-ble-taro",
3
- "version": "0.2.56",
3
+ "version": "0.2.57",
4
4
  "description": "psdk",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -46,13 +46,13 @@
46
46
  "webpack-cli": "^4.9.2"
47
47
  },
48
48
  "dependencies": {
49
- "@psdk/device-bluetooth-traits": "0.2.56",
50
- "@psdk/frame-father": "0.2.56",
49
+ "@psdk/device-bluetooth-traits": "0.2.57",
50
+ "@psdk/frame-father": "0.2.57",
51
51
  "await-timeout": "^1.1.1"
52
52
  },
53
53
  "files": [
54
54
  "build",
55
55
  "!build/browser/psdk*"
56
56
  ],
57
- "gitHead": "d9f7956fc95c14f3986caa8209f496326ecdd8b5"
57
+ "gitHead": "9f9f4a756c4cddbfd4a81300ea7fd66a4c28b0fb"
58
58
  }