@mcesystems/apple-kit 1.0.98 → 1.0.99
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/dist/index.js +25 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +25 -5
- package/dist/index.mjs.map +2 -2
- package/dist/types/index.d.ts +5 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1617,10 +1617,7 @@ var DeviceActions = class {
|
|
|
1617
1617
|
async regularModelNumber() {
|
|
1618
1618
|
logInfo(`Getting device info for ${this.udid}`);
|
|
1619
1619
|
const result = await this.iosClient.regularModelNumber();
|
|
1620
|
-
|
|
1621
|
-
throw new Error("Failed to get regular model number");
|
|
1622
|
-
}
|
|
1623
|
-
return result.output[0];
|
|
1620
|
+
return result;
|
|
1624
1621
|
}
|
|
1625
1622
|
async listDevices() {
|
|
1626
1623
|
logInfo("Listing devices");
|
|
@@ -39205,7 +39202,14 @@ var IosClient = class {
|
|
|
39205
39202
|
return this.runIosCommand(["prepare", "cloudconfig", "--udid", this.udid]);
|
|
39206
39203
|
}
|
|
39207
39204
|
async regularModelNumber() {
|
|
39208
|
-
|
|
39205
|
+
const result = await this.runIosCommand([
|
|
39206
|
+
"lockdown",
|
|
39207
|
+
"get",
|
|
39208
|
+
"RegulatoryModelNumber",
|
|
39209
|
+
"--udid",
|
|
39210
|
+
this.udid
|
|
39211
|
+
]);
|
|
39212
|
+
return result.raw.stdout.trim().replace(/^"|"$/g, "");
|
|
39209
39213
|
}
|
|
39210
39214
|
async installApp(ipaPath) {
|
|
39211
39215
|
return this.runIosCommand(["install", `--path=${ipaPath}`, "--udid", this.udid]);
|
|
@@ -39525,6 +39529,22 @@ var AppleDeviceKit = class _AppleDeviceKit {
|
|
|
39525
39529
|
this.ensureNotDisposed();
|
|
39526
39530
|
return this.deviceActions.info();
|
|
39527
39531
|
}
|
|
39532
|
+
async batteryInfo() {
|
|
39533
|
+
this.ensureNotDisposed();
|
|
39534
|
+
return this.deviceActions.batteryInfo();
|
|
39535
|
+
}
|
|
39536
|
+
async capacityInfo() {
|
|
39537
|
+
this.ensureNotDisposed();
|
|
39538
|
+
return this.deviceActions.capacityInfo();
|
|
39539
|
+
}
|
|
39540
|
+
async cloudConfigInfo() {
|
|
39541
|
+
this.ensureNotDisposed();
|
|
39542
|
+
return this.deviceActions.cloudConfigInfo();
|
|
39543
|
+
}
|
|
39544
|
+
async regularModelNumber() {
|
|
39545
|
+
this.ensureNotDisposed();
|
|
39546
|
+
return this.deviceActions.regularModelNumber();
|
|
39547
|
+
}
|
|
39528
39548
|
async listDevices() {
|
|
39529
39549
|
this.ensureNotDisposed();
|
|
39530
39550
|
return this.deviceActions.listDevices();
|