@psdk/device-bluetooth-traits
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -1,10 +0,1 @@ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
/** | ||
@@ -14,8 +5,6 @@ * absctract bluetooth class | ||
export class Jluetooth { | ||
isDiscovery() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const state = yield this.bluetoothAdapterState(); | ||
return state.discovering || false; | ||
}); | ||
async isDiscovery() { | ||
const state = await this.bluetoothAdapterState(); | ||
return state.discovering || false; | ||
} | ||
} |
{ | ||
"name": "@psdk/device-bluetooth-traits", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "psdk", | ||
@@ -29,3 +29,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@psdk/frame-father": "0.3.3", | ||
"@psdk/frame-father": "0.3.4", | ||
"await-timeout": "^1.1.1" | ||
@@ -37,3 +37,3 @@ }, | ||
], | ||
"gitHead": "20a3fc1bb587f8d627f9b1e05dd27240b7785dec" | ||
"gitHead": "b8c2fdcb52f1bd3e9d75d004d37d717bd465b4c9" | ||
} |
7929
153
+ Added@psdk/frame-father@0.3.4(transitive)
- Removed@psdk/frame-father@0.3.3(transitive)
Updated@psdk/frame-father@0.3.4