@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.mjs
CHANGED
|
@@ -1604,10 +1604,7 @@ var DeviceActions = class {
|
|
|
1604
1604
|
async regularModelNumber() {
|
|
1605
1605
|
logInfo(`Getting device info for ${this.udid}`);
|
|
1606
1606
|
const result = await this.iosClient.regularModelNumber();
|
|
1607
|
-
|
|
1608
|
-
throw new Error("Failed to get regular model number");
|
|
1609
|
-
}
|
|
1610
|
-
return result.output[0];
|
|
1607
|
+
return result;
|
|
1611
1608
|
}
|
|
1612
1609
|
async listDevices() {
|
|
1613
1610
|
logInfo("Listing devices");
|
|
@@ -39191,7 +39188,14 @@ var IosClient = class {
|
|
|
39191
39188
|
return this.runIosCommand(["prepare", "cloudconfig", "--udid", this.udid]);
|
|
39192
39189
|
}
|
|
39193
39190
|
async regularModelNumber() {
|
|
39194
|
-
|
|
39191
|
+
const result = await this.runIosCommand([
|
|
39192
|
+
"lockdown",
|
|
39193
|
+
"get",
|
|
39194
|
+
"RegulatoryModelNumber",
|
|
39195
|
+
"--udid",
|
|
39196
|
+
this.udid
|
|
39197
|
+
]);
|
|
39198
|
+
return result.raw.stdout.trim().replace(/^"|"$/g, "");
|
|
39195
39199
|
}
|
|
39196
39200
|
async installApp(ipaPath) {
|
|
39197
39201
|
return this.runIosCommand(["install", `--path=${ipaPath}`, "--udid", this.udid]);
|
|
@@ -39511,6 +39515,22 @@ var AppleDeviceKit = class _AppleDeviceKit {
|
|
|
39511
39515
|
this.ensureNotDisposed();
|
|
39512
39516
|
return this.deviceActions.info();
|
|
39513
39517
|
}
|
|
39518
|
+
async batteryInfo() {
|
|
39519
|
+
this.ensureNotDisposed();
|
|
39520
|
+
return this.deviceActions.batteryInfo();
|
|
39521
|
+
}
|
|
39522
|
+
async capacityInfo() {
|
|
39523
|
+
this.ensureNotDisposed();
|
|
39524
|
+
return this.deviceActions.capacityInfo();
|
|
39525
|
+
}
|
|
39526
|
+
async cloudConfigInfo() {
|
|
39527
|
+
this.ensureNotDisposed();
|
|
39528
|
+
return this.deviceActions.cloudConfigInfo();
|
|
39529
|
+
}
|
|
39530
|
+
async regularModelNumber() {
|
|
39531
|
+
this.ensureNotDisposed();
|
|
39532
|
+
return this.deviceActions.regularModelNumber();
|
|
39533
|
+
}
|
|
39514
39534
|
async listDevices() {
|
|
39515
39535
|
this.ensureNotDisposed();
|
|
39516
39536
|
return this.deviceActions.listDevices();
|