@kano/devices-sdk-uwp
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
@@ -27,7 +27,7 @@ /* globals Windows */ | ||
searchForDevice(testFunc, timeout = 10000) { | ||
searchForDevice(prefix, timeout = 10000) { | ||
return new Promise((resolve, reject) => { | ||
const searchIndex = this.searches.length; | ||
const search = { | ||
test: testFunc, | ||
prefix, | ||
resolve, | ||
@@ -57,3 +57,3 @@ reject, | ||
this.devices.forEach((device) => { | ||
const isMatch = search.test(device); | ||
const isMatch = device.name && device.name.startsWith(search.prefix); | ||
if (!isMatch) { | ||
@@ -60,0 +60,0 @@ return; |
{ | ||
"name": "@kano/devices-sdk-uwp", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "> TODO: description", | ||
@@ -23,4 +23,4 @@ "author": "Paul Varache <paul@kano.me>", | ||
"dependencies": { | ||
"@kano/devices-sdk-cordova": "^1.0.0-alpha.8", | ||
"@kano/devices-sdk-core": "^1.0.0-alpha.8", | ||
"@kano/devices-sdk-cordova": "^1.0.0-alpha.9", | ||
"@kano/devices-sdk-core": "^1.0.0-alpha.9", | ||
"jszip": "^3.2.1" | ||
@@ -32,3 +32,3 @@ }, | ||
}, | ||
"gitHead": "bad34ff680487208493211fee1d09db81fb93ec9" | ||
"gitHead": "5667fd284ab7a1d6151e6d0c30576df4a02849c6" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54592