node-simctl 8.1.4 → 8.1.5
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/CHANGELOG.md +6 -0
- package/build/lib/subcommands/io.js +4 -4
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/keychain.js +4 -4
- package/build/lib/subcommands/keychain.js.map +1 -1
- package/build/lib/subcommands/push.js +4 -4
- package/build/lib/subcommands/push.js.map +1 -1
- package/lib/subcommands/io.ts +3 -3
- package/lib/subcommands/keychain.ts +3 -3
- package/lib/subcommands/push.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [8.1.5](https://github.com/appium/node-simctl/compare/v8.1.4...v8.1.5) (2026-01-28)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **deps-dev:** bump @appium/eslint-config-appium-ts from 2.0.5 to 3.0.0 ([#289](https://github.com/appium/node-simctl/issues/289)) ([8f2ebf9](https://github.com/appium/node-simctl/commit/8f2ebf92433c731718d7115d22db403fe73715b3))
|
|
6
|
+
|
|
1
7
|
## [8.1.4](https://github.com/appium/node-simctl/compare/v8.1.3...v8.1.4) (2026-01-27)
|
|
2
8
|
|
|
3
9
|
### Miscellaneous Chores
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getScreenshot = getScreenshot;
|
|
7
7
|
const rimraf_1 = require("rimraf");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const promises_1 = __importDefault(require("fs/promises"));
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
10
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
11
11
|
const helpers_1 = require("../helpers");
|
|
12
12
|
/**
|
|
13
13
|
* Gets base64 screenshot for device
|
|
@@ -21,7 +21,7 @@ const helpers_1 = require("../helpers");
|
|
|
21
21
|
*/
|
|
22
22
|
async function getScreenshot() {
|
|
23
23
|
const udid = this.requireUdid('io screenshot');
|
|
24
|
-
const pathToScreenshotPng =
|
|
24
|
+
const pathToScreenshotPng = node_path_1.default.resolve(node_os_1.default.tmpdir(), `${await (0, helpers_1.uuidV4)()}.png`);
|
|
25
25
|
try {
|
|
26
26
|
await this.exec('io', {
|
|
27
27
|
args: [udid, 'screenshot', pathToScreenshotPng],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io.js","sourceRoot":"","sources":["../../../lib/subcommands/io.ts"],"names":[],"mappings":";;;;;AAiBA,sCAWC;AA5BD,mCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"io.js","sourceRoot":"","sources":["../../../lib/subcommands/io.ts"],"names":[],"mappings":";;;;;AAiBA,sCAWC;AA5BD,mCAAgC;AAChC,0DAA6B;AAC7B,sDAAyB;AACzB,gEAAkC;AAClC,wCAAoC;AAGpC;;;;;;;;;GASG;AACI,KAAK,UAAU,aAAa;IACjC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,mBAAmB,GAAG,mBAAI,CAAC,OAAO,CAAC,iBAAE,CAAC,MAAM,EAAE,EAAE,GAAG,MAAM,IAAA,gBAAM,GAAE,MAAM,CAAC,CAAC;IAC/E,IAAI,CAAC;QACH,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACpB,IAAI,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,mBAAmB,CAAC;SAChD,CAAC,CAAC;QACH,OAAO,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrE,CAAC;YAAS,CAAC;QACT,MAAM,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAC;IACpC,CAAC;AACH,CAAC"}
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.addRootCertificate = addRootCertificate;
|
|
7
7
|
exports.addCertificate = addCertificate;
|
|
8
8
|
exports.resetKeychain = resetKeychain;
|
|
9
|
-
const
|
|
10
|
-
const promises_1 = __importDefault(require("fs/promises"));
|
|
9
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
10
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
11
11
|
const helpers_1 = require("../helpers");
|
|
12
|
-
const
|
|
12
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
13
13
|
const lodash_1 = __importDefault(require("lodash"));
|
|
14
14
|
const rimraf_1 = require("rimraf");
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ const rimraf_1 = require("rimraf");
|
|
|
17
17
|
* @param onPayloadStored - Callback function to execute with the file path
|
|
18
18
|
*/
|
|
19
19
|
async function handleRawPayload(payload, onPayloadStored) {
|
|
20
|
-
const filePath =
|
|
20
|
+
const filePath = node_path_1.default.resolve(node_os_1.default.tmpdir(), `${await (0, helpers_1.uuidV4)()}.pem`);
|
|
21
21
|
try {
|
|
22
22
|
if (lodash_1.default.isBuffer(payload)) {
|
|
23
23
|
await promises_1.default.writeFile(filePath, payload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychain.js","sourceRoot":"","sources":["../../../lib/subcommands/keychain.ts"],"names":[],"mappings":";;;;;AA0CA,gDAgBC;AAcD,wCAgBC;AAUD,sCAIC;AAtGD,
|
|
1
|
+
{"version":3,"file":"keychain.js","sourceRoot":"","sources":["../../../lib/subcommands/keychain.ts"],"names":[],"mappings":";;;;;AA0CA,gDAgBC;AAcD,wCAgBC;AAUD,sCAIC;AAtGD,sDAAyB;AACzB,gEAAkC;AAClC,wCAAoC;AACpC,0DAA6B;AAC7B,oDAAuB;AACvB,mCAAgC;AAIhC;;;GAGG;AAC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ACZ,GAAG,IAAI,CAAC;IACT,MAAM,UAAU,GAAG,KAAK,EAAE,QAAgB,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QACzE,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC;KACpE,CAAC,CAAC;IACH,IAAI,GAAG,EAAE,CAAC;QACR,MAAM,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;SAAM,CAAC;QACN,MAAM,UAAU,CAAC,IAAc,CAAC,CAAC;IACnC,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,aAAa;IACjC,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;KACpD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.pushNotification = pushNotification;
|
|
7
7
|
const rimraf_1 = require("rimraf");
|
|
8
8
|
const helpers_1 = require("../helpers");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const promises_1 = __importDefault(require("fs/promises"));
|
|
9
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
10
|
+
const node_os_1 = __importDefault(require("node:os"));
|
|
11
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
12
12
|
/**
|
|
13
13
|
* Send a simulated push notification
|
|
14
14
|
*
|
|
@@ -30,7 +30,7 @@ const promises_1 = __importDefault(require("fs/promises"));
|
|
|
30
30
|
* @throws {Error} If the `udid` instance property is unset
|
|
31
31
|
*/
|
|
32
32
|
async function pushNotification(payload) {
|
|
33
|
-
const dstPath =
|
|
33
|
+
const dstPath = node_path_1.default.resolve(node_os_1.default.tmpdir(), `${await (0, helpers_1.uuidV4)()}.json`);
|
|
34
34
|
try {
|
|
35
35
|
await promises_1.default.writeFile(dstPath, JSON.stringify(payload), 'utf8');
|
|
36
36
|
await this.exec('push', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../lib/subcommands/push.ts"],"names":[],"mappings":";;;;;AA2BA,4CAUC;AArCD,mCAAgC;AAChC,wCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"push.js","sourceRoot":"","sources":["../../../lib/subcommands/push.ts"],"names":[],"mappings":";;;;;AA2BA,4CAUC;AArCD,mCAAgC;AAChC,wCAAoC;AACpC,0DAA6B;AAC7B,sDAAyB;AACzB,gEAAkC;AAGlC;;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,gBAAgB,CAAgB,OAA4B;IAChF,MAAM,OAAO,GAAG,mBAAI,CAAC,OAAO,CAAC,iBAAE,CAAC,MAAM,EAAE,EAAE,GAAG,MAAM,IAAA,gBAAM,GAAE,OAAO,CAAC,CAAC;IACpE,IAAI,CAAC;QACH,MAAM,kBAAE,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACtB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;SAC1C,CAAC,CAAC;IACL,CAAC;YAAS,CAAC;QACT,MAAM,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;IACxB,CAAC;AACH,CAAC"}
|
package/lib/subcommands/io.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { rimraf } from 'rimraf';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import os from 'os';
|
|
4
|
-
import fs from 'fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import os from 'node:os';
|
|
4
|
+
import fs from 'node:fs/promises';
|
|
5
5
|
import { uuidV4 } from '../helpers';
|
|
6
6
|
import type { Simctl } from '../simctl';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import os from 'os';
|
|
2
|
-
import fs from 'fs/promises';
|
|
1
|
+
import os from 'node:os';
|
|
2
|
+
import fs from 'node:fs/promises';
|
|
3
3
|
import { uuidV4 } from '../helpers';
|
|
4
|
-
import path from 'path';
|
|
4
|
+
import path from 'node:path';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import { rimraf } from 'rimraf';
|
|
7
7
|
import type { Simctl } from '../simctl';
|
package/lib/subcommands/push.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { rimraf } from 'rimraf';
|
|
2
2
|
import { uuidV4 } from '../helpers';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import os from 'os';
|
|
5
|
-
import fs from 'fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import os from 'node:os';
|
|
5
|
+
import fs from 'node:fs/promises';
|
|
6
6
|
import type { Simctl } from '../simctl';
|
|
7
7
|
|
|
8
8
|
/**
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"ios",
|
|
7
7
|
"simctl"
|
|
8
8
|
],
|
|
9
|
-
"version": "8.1.
|
|
9
|
+
"version": "8.1.5",
|
|
10
10
|
"author": "Appium Contributors",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"repository": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"singleQuote": true
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@appium/eslint-config-appium-ts": "^
|
|
63
|
+
"@appium/eslint-config-appium-ts": "^3.0.0",
|
|
64
64
|
"@appium/tsconfig": "^1.0.0-rc.1",
|
|
65
65
|
"@appium/types": "^1.0.0-rc.1",
|
|
66
66
|
"@semantic-release/changelog": "^6.0.1",
|