@fliwright/devices 0.1.0 → 0.1.1

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.
@@ -87,7 +87,11 @@ export class DeviceDiscovery {
87
87
  continue;
88
88
  for (const value of array(rows)) {
89
89
  const d = object(value);
90
+ const deviceType = text(d.deviceTypeIdentifier);
91
+ const model = deviceType?.startsWith('com.apple.CoreSimulator.SimDeviceType.')
92
+ ? deviceType.slice('com.apple.CoreSimulator.SimDeviceType.'.length).replaceAll('-', ' ') || undefined : undefined;
90
93
  devices.push({ id: required(d.udid), name: required(d.name), platform: 'ios', kind: 'simulator',
94
+ model,
91
95
  state: d.isAvailable === false ? 'unavailable' : d.state === 'Booted' ? 'online' : d.state === 'Shutdown' ? 'shutdown' : 'unknown',
92
96
  osVersion: runtime.split('.iOS-')[1]?.replaceAll('-', '.'), detail: text(d.availabilityError) });
93
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fliwright/devices",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Host device discovery for iOS and Android physical devices and simulators.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "devDependencies": {
36
- "@types/node": "^25.9.1",
36
+ "@types/node": "^26.0.1",
37
37
  "typescript": "^5.5.0",
38
38
  "vitest": "5.0.5"
39
39
  },