@mcesystems/adb-kit 1.0.87 → 1.0.90
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 +4 -3
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +2 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +3 -2
- package/scripts/export-resources.ts +8 -7
package/dist/types/index.d.ts
CHANGED
|
@@ -33,11 +33,12 @@ declare const deviceProps: {
|
|
|
33
33
|
export type DeviceProperty = keyof typeof deviceProps;
|
|
34
34
|
export declare class AdbDeviceKit {
|
|
35
35
|
private readonly port;
|
|
36
|
+
private readonly config?;
|
|
36
37
|
private client;
|
|
37
38
|
private device;
|
|
38
39
|
private deviceId;
|
|
39
40
|
private devicePort;
|
|
40
|
-
constructor(deviceId: string, port: number);
|
|
41
|
+
constructor(deviceId: string, port: number, config?: AdbClientConfig | undefined);
|
|
41
42
|
private connect;
|
|
42
43
|
listDevices(): Promise<Bluebird<adbkit.Device[]>>;
|
|
43
44
|
private getProperty;
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcesystems/adb-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"description": "ADB (Android Debug Bridge) toolkit for device management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"my-internal": "./src/index.ts",
|
|
10
11
|
"types": "./dist/types/index.d.ts",
|
|
11
12
|
"import": "./dist/index.mjs",
|
|
12
13
|
"require": "./dist/index.js"
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"@devicefarmer/adbkit": "^3.3.8",
|
|
32
33
|
"get-port": "^7.1.0",
|
|
33
34
|
"tsx": "^4.21.0",
|
|
34
|
-
"@mcesystems/tool-debug-g4": "1.0.
|
|
35
|
+
"@mcesystems/tool-debug-g4": "1.0.90"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@types/node": "^22.10.2",
|
|
@@ -29,17 +29,18 @@ import {
|
|
|
29
29
|
} from "node:fs";
|
|
30
30
|
import path from "node:path";
|
|
31
31
|
import { promisify } from "node:util";
|
|
32
|
+
import { createLoggers } from "@mcesystems/tool-debug-g4";
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
const {
|
|
35
|
+
logInfo,
|
|
35
36
|
logDetail,
|
|
36
37
|
logError,
|
|
37
|
-
logErrorObject,
|
|
38
|
-
logInfo,
|
|
39
|
-
logNamespace,
|
|
40
38
|
logWarning,
|
|
39
|
+
logDataObject,
|
|
40
|
+
setNamespace,
|
|
41
41
|
setLogLevel,
|
|
42
|
-
|
|
42
|
+
logErrorObject,
|
|
43
|
+
} = createLoggers("adb-kit");
|
|
43
44
|
|
|
44
45
|
const execAsync = promisify(exec);
|
|
45
46
|
|
|
@@ -294,7 +295,7 @@ https://android.googlesource.com/platform/packages/modules/adb/
|
|
|
294
295
|
async function main(): Promise<void> {
|
|
295
296
|
const args = process.argv.slice(2);
|
|
296
297
|
|
|
297
|
-
|
|
298
|
+
setNamespace("adb-resources");
|
|
298
299
|
|
|
299
300
|
if (args.includes("-v") || args.includes("--verbose")) {
|
|
300
301
|
setLogLevel("debug");
|