@mcesystems/adb-kit 1.0.5 → 1.0.7

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.
@@ -1,4 +1,5 @@
1
1
  import type { Client as AdbClient, DeviceClient } from "@devicefarmer/adbkit";
2
+ import * as adbkit from "@devicefarmer/adbkit";
2
3
  declare const deviceProps: {
3
4
  Manufacturer: string;
4
5
  Name: string;
@@ -34,9 +35,9 @@ export declare class AdbDeviceKit {
34
35
  private device;
35
36
  private deviceId;
36
37
  constructor(deviceId: string, port: number);
37
- listDevices(): Promise<Bluebird<import("@devicefarmer/adbkit").Device[]>>;
38
+ listDevices(): Promise<Bluebird<adbkit.Device[]>>;
38
39
  private getProperty;
39
- getAllDeviceProperties(): Promise<Bluebird<import("@devicefarmer/adbkit").Properties>>;
40
+ getAllDeviceProperties(): Promise<Bluebird<adbkit.Properties>>;
40
41
  getDeviceProperties(properties: DeviceProperty[]): Promise<string[]>;
41
42
  installApp(appPath: string): Promise<void>;
42
43
  uninstallApp(packageName: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"adbDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/adbDeviceKit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAoB9E,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,WAAW,CAAC;AAEtD,qBAAa,YAAY;IAOvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IANtB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,QAAQ,CAAS;gBAGxB,QAAQ,EAAE,MAAM,EACC,IAAI,EAAE,MAAM;IAUjB,WAAW;YAKV,WAAW;IAiBZ,sBAAsB;IAOtB,mBAAmB,CAAC,UAAU,EAAE,cAAc,EAAE;IAWhD,UAAU,CAAC,OAAO,EAAE,MAAM;IAQ1B,YAAY,CAAC,WAAW,EAAE,MAAM;IAQhC,cAAc,CAAC,WAAW,EAAE,MAAM;IAQ/C;;;OAGG;IACU,SAAS;IAKT,eAAe;IAKf,mBAAmB,CAAC,OAAO,SAAS;IAgC1C,WAAW;IAIX,OAAO;IAID,eAAe;CAI5B"}
1
+ {"version":3,"file":"adbDeviceKit.d.ts","sourceRoot":"","sources":["../../../src/logic/adbDeviceKit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAmB/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,WAAW,CAAC;AAEtD,qBAAa,YAAY;IAOvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IANtB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,QAAQ,CAAS;gBAGxB,QAAQ,EAAE,MAAM,EACC,IAAI,EAAE,MAAM;IAUjB,WAAW;YAKV,WAAW;IAiBZ,sBAAsB;IAOtB,mBAAmB,CAAC,UAAU,EAAE,cAAc,EAAE;IAWhD,UAAU,CAAC,OAAO,EAAE,MAAM;IAQ1B,YAAY,CAAC,WAAW,EAAE,MAAM;IAQhC,cAAc,CAAC,WAAW,EAAE,MAAM;IAQ/C;;;OAGG;IACU,SAAS;IAKT,eAAe;IAKf,mBAAmB,CAAC,OAAO,SAAS;IAgC1C,WAAW;IAIX,OAAO;IAID,eAAe;CAI5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"adbPath.d.ts","sourceRoot":"","sources":["../../../src/utils/adbPath.ts"],"names":[],"mappings":"AA+BA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CA+BhD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CA2BlD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAEvC"}
1
+ {"version":3,"file":"adbPath.d.ts","sourceRoot":"","sources":["../../../src/utils/adbPath.ts"],"names":[],"mappings":"AAiCA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CA4BhD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAwBlD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAEvC"}
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "@mcesystems/adb-kit",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "ADB (Android Debug Bridge) toolkit for device management",
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
- "import": "./dist/index.js",
11
- "types": "./dist/types/index.d.ts"
10
+ "types": "./dist/types/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
12
13
  }
13
14
  },
14
15
  "keywords": [
@@ -48,7 +49,7 @@
48
49
  ],
49
50
  "scripts": {
50
51
  "prepareResources": "tsx scripts/prepareResources.ts",
51
- "build": "tsx esbuild.config.ts && tsc --emitDeclarationOnly",
52
+ "build": "tsx esbuild.config.mts && tsc --emitDeclarationOnly",
52
53
  "clean": "node-gyp clean && rimraf dist",
53
54
  "pack": "npm pack",
54
55
  "test": "vitest run",
@@ -1,13 +0,0 @@
1
- import EventEmitter from "node:events";
2
- import type { ListenerConfig } from "@mcesystems/usb-device-listener";
3
- export declare class DevicesMonitor {
4
- private config;
5
- private identifyAlreadyConnected;
6
- private kits;
7
- private eventEmitter?;
8
- constructor(config: ListenerConfig, identifyAlreadyConnected?: boolean);
9
- startTracking(): Promise<EventEmitter>;
10
- stopTracking(): Promise<void>;
11
- private connectedDevices;
12
- }
13
- //# 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;AAOvC,OAAO,KAAK,EAAc,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAkBlF,qBAAa,cAAc;IAKzB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,wBAAwB;IALjC,OAAO,CAAC,IAAI,CAAwC;IACpD,OAAO,CAAC,YAAY,CAAC,CAAe;gBAG3B,MAAM,EAAE,cAAc,EACtB,wBAAwB,UAAQ;IAG5B,aAAa,IAAI,OAAO,CAAC,YAAY,CAAC;IAoCtC,YAAY;YAUX,gBAAgB;CAoB9B"}