@mcesystems/apple-kit 1.0.5 → 1.0.8
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 +52 -174
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +586 -0
- package/dist/index.mjs.map +7 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logic/actions/pair.d.ts.map +1 -1
- package/dist/types/logic/dataParser.d.ts.map +1 -1
- package/package.json +8 -11
- package/dist/types/logic/devicesMonitor.d.ts +0 -45
- package/dist/types/logic/devicesMonitor.d.ts.map +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* NOTE: On Windows, iTunes must be running for device communication to work.
|
|
9
9
|
*/
|
|
10
10
|
export { AppleDeviceKit } from "./logic/appleDeviceKit";
|
|
11
|
-
export { DevicesMonitor } from "./logic/devicesMonitor";
|
|
12
11
|
export { ActivationState } from "./types";
|
|
13
12
|
export type { AppInfo, AppleListenerConfig, DeviceListEntry, iOSDeviceInfo, } from "./types";
|
|
14
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EACX,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,aAAa,GACb,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/pair.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pair.d.ts","sourceRoot":"","sources":["../../../../src/logic/actions/pair.ts"],"names":[],"mappings":"AAGA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAa7D;AAED,wBAAsB,WAAW,CAChC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAQ,EACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,GAC5B,OAAO,CAAC,OAAO,CAAC,CA+BlB;AAED,wBAAsB,cAAc,CACnC,IAAI,EAAE,MAAM,EACZ,OAAO,SAAS,EAChB,YAAY,SAAO,GACjB,OAAO,CAAC,OAAO,CAAC,CAelB;AAED,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAkBzD;AAED,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAa3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataParser.d.ts","sourceRoot":"","sources":["../../../src/logic/dataParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"dataParser.d.ts","sourceRoot":"","sources":["../../../src/logic/dataParser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcvE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,EAAE,CAmBjE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,CAkBtD"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcesystems/apple-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "iOS device management toolkit using libimobiledevice command-line tools",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
15
|
"keywords": [
|
|
@@ -31,8 +32,7 @@
|
|
|
31
32
|
"node": ">=18.0.0"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"debug": "^4.4.3"
|
|
35
|
-
"@mcesystems/usb-device-listener": "1.0.11"
|
|
35
|
+
"debug": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/debug": "^4.1.12",
|
|
@@ -51,14 +51,11 @@
|
|
|
51
51
|
"README.md"
|
|
52
52
|
],
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "tsx esbuild.config.
|
|
54
|
+
"build": "tsx esbuild.config.mts && tsc --emitDeclarationOnly",
|
|
55
55
|
"clean": "rimraf dist",
|
|
56
56
|
"check:types": "tsc --noEmit",
|
|
57
57
|
"pack": "npm pack",
|
|
58
58
|
"test": "vitest run",
|
|
59
|
-
"test:watch": "vitest"
|
|
60
|
-
"listDevices": "cross-env DEBUG=* tsx ./src/examples/list-devices.ts",
|
|
61
|
-
"installApp": "cross-env DEBUG=* tsx ./src/examples/install-app.ts",
|
|
62
|
-
"launchApp": "cross-env DEBUG=* tsx ./src/examples/launch-app.ts"
|
|
59
|
+
"test:watch": "vitest"
|
|
63
60
|
}
|
|
64
61
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import EventEmitter from "node:events";
|
|
2
|
-
import type { AppleListenerConfig } from "../types";
|
|
3
|
-
import { AppleDeviceKit } from "./appleDeviceKit";
|
|
4
|
-
/**
|
|
5
|
-
* DevicesMonitor - Monitor iOS device connections via USB
|
|
6
|
-
*
|
|
7
|
-
* Uses usb-device-listener for plug-and-play detection and filters
|
|
8
|
-
* for Apple devices (VID 0x05AC).
|
|
9
|
-
*/
|
|
10
|
-
export declare class DevicesMonitor {
|
|
11
|
-
private config;
|
|
12
|
-
private identifyAlreadyConnected;
|
|
13
|
-
private kits;
|
|
14
|
-
private eventEmitter?;
|
|
15
|
-
constructor(config?: AppleListenerConfig, identifyAlreadyConnected?: boolean);
|
|
16
|
-
/**
|
|
17
|
-
* Start tracking iOS device connections
|
|
18
|
-
*
|
|
19
|
-
* @returns EventEmitter that emits:
|
|
20
|
-
* - 'added': (deviceKit: AppleDeviceKit) when a device is connected
|
|
21
|
-
* - 'removed': (deviceId: string, port: number) when a device is disconnected
|
|
22
|
-
*/
|
|
23
|
-
startTracking(): Promise<EventEmitter>;
|
|
24
|
-
/**
|
|
25
|
-
* Stop tracking device connections
|
|
26
|
-
*/
|
|
27
|
-
stopTracking(): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Get all currently tracked device kits
|
|
30
|
-
*/
|
|
31
|
-
getKits(): Map<string, AppleDeviceKit>;
|
|
32
|
-
/**
|
|
33
|
-
* Get a specific device kit by UDID
|
|
34
|
-
*/
|
|
35
|
-
getKit(udid: string): AppleDeviceKit | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Find connected iOS device and emit event
|
|
38
|
-
*/
|
|
39
|
-
private findAndEmitDevice;
|
|
40
|
-
/**
|
|
41
|
-
* Identify already connected iOS devices
|
|
42
|
-
*/
|
|
43
|
-
private identifyConnectedDevices;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=devicesMonitor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"devicesMonitor.d.ts","sourceRoot":"","sources":["../../../src/logic/devicesMonitor.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,aAAa,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD;;;;;GAKG;AACH,qBAAa,cAAc;IAKzB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,wBAAwB;IALjC,OAAO,CAAC,IAAI,CAA0C;IACtD,OAAO,CAAC,YAAY,CAAC,CAAe;gBAG3B,MAAM,GAAE,mBAAwB,EAChC,wBAAwB,UAAQ;IAGzC;;;;;;OAMG;IACU,aAAa,IAAI,OAAO,CAAC,YAAY,CAAC;IAkDnD;;OAEG;IACU,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAY1C;;OAEG;IACI,OAAO,IAAI,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC;IAI7C;;OAEG;IACI,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIvD;;OAEG;YACW,iBAAiB;IA8B/B;;OAEG;YACW,wBAAwB;CAwBtC"}
|