incyclist-services 1.0.43 → 1.0.45
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.
|
@@ -184,7 +184,7 @@ class DevicePairingService extends service_2.IncyclistService {
|
|
|
184
184
|
try {
|
|
185
185
|
if (addAll) {
|
|
186
186
|
const adapter = this.getDeviceAdapter(udid);
|
|
187
|
-
const capabilities = adapter.getCapabilities();
|
|
187
|
+
const capabilities = adapter.getCapabilities().filter(name => this.getCapability(name));
|
|
188
188
|
capabilities.forEach((c, idx) => {
|
|
189
189
|
const shouldEmit = (idx === capabilities.length - 1);
|
|
190
190
|
const wasChanged = this.selectCapabilityDevice(c, udid, shouldEmit);
|
|
@@ -932,7 +932,7 @@ class DevicePairingService extends service_2.IncyclistService {
|
|
|
932
932
|
}
|
|
933
933
|
selectCapabilityDevice(capability, udid, emitUpdate = true) {
|
|
934
934
|
const c = this.getCapability(capability);
|
|
935
|
-
if (c.selected === udid)
|
|
935
|
+
if (!c || c.selected === udid)
|
|
936
936
|
return false;
|
|
937
937
|
const device = this.getCapabilityDevice(capability, udid);
|
|
938
938
|
c.value = device === null || device === void 0 ? void 0 : device.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incyclist-services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"gd-eventlog": "^0.1.24"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"axios": "^1.6.1",
|
|
42
|
-
"incyclist-devices": "^2.1.
|
|
42
|
+
"incyclist-devices": "^2.1.19",
|
|
43
43
|
"uuid": "^9.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|