@ledgerhq/device-transport-kit-web-hid 0.0.0-develop-20241219141541

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.
Files changed (44) hide show
  1. package/LICENSE.MD +202 -0
  2. package/lib/esm/api/data/WebHidConfig.js +2 -0
  3. package/lib/esm/api/data/WebHidConfig.js.map +7 -0
  4. package/lib/esm/api/index.js +2 -0
  5. package/lib/esm/api/index.js.map +7 -0
  6. package/lib/esm/api/model/Errors.js +2 -0
  7. package/lib/esm/api/model/Errors.js.map +7 -0
  8. package/lib/esm/api/model/HIDDevice.stub.js +2 -0
  9. package/lib/esm/api/model/HIDDevice.stub.js.map +7 -0
  10. package/lib/esm/api/transport/WebHidDeviceConnection.js +2 -0
  11. package/lib/esm/api/transport/WebHidDeviceConnection.js.map +7 -0
  12. package/lib/esm/api/transport/WebHidDeviceConnection.stub.js +2 -0
  13. package/lib/esm/api/transport/WebHidDeviceConnection.stub.js.map +7 -0
  14. package/lib/esm/api/transport/WebHidDeviceConnection.test.js +2 -0
  15. package/lib/esm/api/transport/WebHidDeviceConnection.test.js.map +7 -0
  16. package/lib/esm/api/transport/WebHidTransport.js +2 -0
  17. package/lib/esm/api/transport/WebHidTransport.js.map +7 -0
  18. package/lib/esm/api/transport/WebHidTransport.test.js +2 -0
  19. package/lib/esm/api/transport/WebHidTransport.test.js.map +7 -0
  20. package/lib/esm/index.js +2 -0
  21. package/lib/esm/index.js.map +7 -0
  22. package/lib/esm/package.json +58 -0
  23. package/lib/types/api/data/WebHidConfig.d.ts +3 -0
  24. package/lib/types/api/data/WebHidConfig.d.ts.map +1 -0
  25. package/lib/types/api/index.d.ts +3 -0
  26. package/lib/types/api/index.d.ts.map +1 -0
  27. package/lib/types/api/model/Errors.d.ts +12 -0
  28. package/lib/types/api/model/Errors.d.ts.map +1 -0
  29. package/lib/types/api/model/HIDDevice.stub.d.ts +2 -0
  30. package/lib/types/api/model/HIDDevice.stub.d.ts.map +1 -0
  31. package/lib/types/api/transport/WebHidDeviceConnection.d.ts +48 -0
  32. package/lib/types/api/transport/WebHidDeviceConnection.d.ts.map +1 -0
  33. package/lib/types/api/transport/WebHidDeviceConnection.stub.d.ts +5 -0
  34. package/lib/types/api/transport/WebHidDeviceConnection.stub.d.ts.map +1 -0
  35. package/lib/types/api/transport/WebHidDeviceConnection.test.d.ts +2 -0
  36. package/lib/types/api/transport/WebHidDeviceConnection.test.d.ts.map +1 -0
  37. package/lib/types/api/transport/WebHidTransport.d.ts +91 -0
  38. package/lib/types/api/transport/WebHidTransport.d.ts.map +1 -0
  39. package/lib/types/api/transport/WebHidTransport.test.d.ts +2 -0
  40. package/lib/types/api/transport/WebHidTransport.test.d.ts.map +1 -0
  41. package/lib/types/index.d.ts +2 -0
  42. package/lib/types/index.d.ts.map +1 -0
  43. package/lib/types/tsconfig.prod.tsbuildinfo +1 -0
  44. package/package.json +57 -0
@@ -0,0 +1,2 @@
1
+ export*from"./api";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from \"./api\";\n"],
5
+ "mappings": "AAAA,WAAc",
6
+ "names": []
7
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@ledgerhq/device-transport-kit-web-hid",
3
+ "version": "0.0.1",
4
+ "license": "Apache-2.0",
5
+ "private": false,
6
+ "exports": {
7
+ ".": {
8
+ "types": "./lib/types/index.d.ts",
9
+ "import": "./lib/esm/index.js",
10
+ "require": "./lib/cjs/index.js"
11
+ },
12
+ "./*": {
13
+ "types": "./lib/types/*",
14
+ "import": "./lib/esm/*",
15
+ "require": "./lib/cjs/*"
16
+ }
17
+ },
18
+ "files": [
19
+ "./lib"
20
+ ],
21
+ "scripts": {
22
+ "prebuild": "rimraf lib",
23
+ "build": "pnpm lmdk-build --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json --platform web",
24
+ "dev": "concurrently \"pnpm watch:builds\" \"pnpm watch:types\"",
25
+ "watch:builds": "pnpm lmdk-watch --entryPoints src/index.ts,src/**/*.ts --tsconfig tsconfig.prod.json --platform web",
26
+ "watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\"",
27
+ "lint": "eslint",
28
+ "lint:fix": "pnpm lint --fix",
29
+ "postpack": "find . -name '*.tgz' -exec cp {} ../../../dist/ \\; ",
30
+ "prettier": "prettier . --check",
31
+ "prettier:fix": "prettier . --write",
32
+ "typecheck": "tsc --noEmit",
33
+ "test": "jest --passWithNoTests",
34
+ "test:watch": "pnpm test -- --watch",
35
+ "test:coverage": "pnpm test -- --coverage"
36
+ },
37
+ "dependencies": {
38
+ "@sentry/minimal": "^6.19.7",
39
+ "purify-ts": "^2.1.0",
40
+ "uuid": "^11.0.3"
41
+ },
42
+ "devDependencies": {
43
+ "@ledgerhq/device-management-kit": "workspace:*",
44
+ "@ledgerhq/esbuild-tools": "workspace:*",
45
+ "@ledgerhq/eslint-config-dsdk": "workspace:*",
46
+ "@ledgerhq/jest-config-dsdk": "workspace:*",
47
+ "@ledgerhq/prettier-config-dsdk": "workspace:*",
48
+ "@ledgerhq/tsconfig-dsdk": "workspace:*",
49
+ "@types/uuid": "^10.0.0",
50
+ "@types/w3c-web-hid": "^1.0.6",
51
+ "rxjs": "^7.8.1",
52
+ "ts-node": "^10.9.2"
53
+ },
54
+ "peerDependencies": {
55
+ "@ledgerhq/device-management-kit": "workspace:*",
56
+ "rxjs": "^7.8.1"
57
+ }
58
+ }
@@ -0,0 +1,3 @@
1
+ export declare const FRAME_SIZE = 64;
2
+ export declare const RECONNECT_DEVICE_TIMEOUT = 6000;
3
+ //# sourceMappingURL=WebHidConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidConfig.d.ts","sourceRoot":"","sources":["../../../../src/api/data/WebHidConfig.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,wBAAwB,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./model/Errors";
2
+ export { webHidIdentifier, WebHidTransport, webHidTransportFactory, } from "./transport/WebHidTransport";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GACvB,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { GeneralDmkError } from "@ledgerhq/device-management-kit";
2
+ export declare class WebHidTransportNotSupportedError extends GeneralDmkError {
3
+ readonly err?: unknown;
4
+ readonly _tag = "WebHidTransportNotSupportedError";
5
+ constructor(err?: unknown);
6
+ }
7
+ export declare class WebHidSendReportError extends GeneralDmkError {
8
+ readonly err?: unknown;
9
+ readonly _tag = "WebHidSendReportError";
10
+ constructor(err?: unknown);
11
+ }
12
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../../../src/api/model/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,qBAAa,gCAAiC,SAAQ,eAAe;IAEvD,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO;IADlC,SAAkB,IAAI,sCAAsC;gBACvC,GAAG,CAAC,EAAE,OAAO;CAGnC;AACD,qBAAa,qBAAsB,SAAQ,eAAe;IAE5C,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO;IADlC,SAAkB,IAAI,2BAA2B;gBAC5B,GAAG,CAAC,EAAE,OAAO;CAGnC"}
@@ -0,0 +1,2 @@
1
+ export declare const hidDeviceStubBuilder: (props?: Partial<HIDDevice>) => HIDDevice;
2
+ //# sourceMappingURL=HIDDevice.stub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HIDDevice.stub.d.ts","sourceRoot":"","sources":["../../../../src/api/model/HIDDevice.stub.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,WACxB,OAAO,CAAC,SAAS,CAAC,KACxB,SAiBD,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { type ApduReceiverService, type ApduResponse, type ApduSenderService, type DeviceConnection, type DeviceId, type DmkError, type LoggerPublisherService } from "@ledgerhq/device-management-kit";
2
+ import { type Either } from "purify-ts";
3
+ type WebHidDeviceConnectionConstructorArgs = {
4
+ device: HIDDevice;
5
+ deviceId: DeviceId;
6
+ apduSender: ApduSenderService;
7
+ apduReceiver: ApduReceiverService;
8
+ onConnectionTerminated: () => void;
9
+ };
10
+ /**
11
+ * Class to manage the connection with a USB HID device.
12
+ * It sends APDU commands to the device and receives the responses.
13
+ * It handles temporary disconnections and reconnections.
14
+ */
15
+ export declare class WebHidDeviceConnection implements DeviceConnection {
16
+ private _device;
17
+ private _deviceId;
18
+ private readonly _apduSender;
19
+ private readonly _apduReceiver;
20
+ private _sendApduSubject;
21
+ private readonly _logger;
22
+ /** Callback to notify the connection termination */
23
+ private _onConnectionTerminated;
24
+ /** Subject to notify the reconnection status */
25
+ private reconnectionSubject;
26
+ /** Flag to indicate if the connection is waiting for a reconnection */
27
+ private waitingForReconnection;
28
+ /** Timeout to wait for the device to reconnect */
29
+ private lostConnectionTimeout;
30
+ /** Flag to indicate if the connection is terminated */
31
+ private terminated;
32
+ constructor({ device, deviceId, apduSender, apduReceiver, onConnectionTerminated, }: WebHidDeviceConnectionConstructorArgs, loggerServiceFactory: (tag: string) => LoggerPublisherService);
33
+ get device(): HIDDevice;
34
+ get deviceId(): string;
35
+ sendApdu(apdu: Uint8Array, triggersDisconnection?: boolean): Promise<Either<DmkError, ApduResponse>>;
36
+ private receiveHidInputReport;
37
+ private waitForReconnection;
38
+ /**
39
+ * Method called when the HIDDevice gets disconnected.
40
+ * It starts a timeout to wait for the device to reconnect.
41
+ * */
42
+ lostConnection(): void;
43
+ /** Reconnect the device after a disconnection */
44
+ reconnectHidDevice(device: HIDDevice): Promise<void>;
45
+ disconnect(): void;
46
+ }
47
+ export {};
48
+ //# sourceMappingURL=WebHidDeviceConnection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidDeviceConnection.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/WebHidDeviceConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAE5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAC;AAMrD,KAAK,qCAAqC,GAAG;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,YAAY,EAAE,mBAAmB,CAAC;IAClC,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAsB;IACpD,OAAO,CAAC,gBAAgB,CAAwC;IAChE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD,oDAAoD;IACpD,OAAO,CAAC,uBAAuB,CAAa;IAC5C,gDAAgD;IAChD,OAAO,CAAC,mBAAmB,CAAgD;IAC3E,uEAAuE;IACvE,OAAO,CAAC,sBAAsB,CAAS;IACvC,kDAAkD;IAClD,OAAO,CAAC,qBAAqB,CAA+B;IAC5D,uDAAuD;IACvD,OAAO,CAAC,UAAU,CAAS;gBAGzB,EACE,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,sBAAsB,GACvB,EAAE,qCAAqC,EACxC,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,sBAAsB;IAY/D,IAAW,MAAM,cAEhB;IAED,IAAW,QAAQ,WAElB;IAEK,QAAQ,CACZ,IAAI,EAAE,UAAU,EAChB,qBAAqB,CAAC,EAAE,OAAO,GAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAqD1C,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,mBAAmB;IAiB3B;;;SAGK;IACE,cAAc;IASrB,iDAAiD;IACpC,kBAAkB,CAAC,MAAM,EAAE,SAAS;IAa1C,UAAU;CAOlB"}
@@ -0,0 +1,5 @@
1
+ import { type DeviceConnection, type SendApduFnType } from "@ledgerhq/device-management-kit";
2
+ export declare class WebHidDeviceConnectionStub implements DeviceConnection {
3
+ sendApdu: SendApduFnType;
4
+ }
5
+ //# sourceMappingURL=WebHidDeviceConnection.stub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidDeviceConnection.stub.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/WebHidDeviceConnection.stub.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAEzC,qBAAa,0BAA2B,YAAW,gBAAgB;IACjE,QAAQ,EAAE,cAAc,CAAa;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WebHidDeviceConnection.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidDeviceConnection.test.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/WebHidDeviceConnection.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,91 @@
1
+ import { type ApduReceiverServiceFactory, type ApduSenderServiceFactory, type ConnectError, type DeviceId, type DeviceModelDataSource, type DisconnectHandler, type DmkError, type LoggerPublisherService, type Transport, TransportConnectedDevice, type TransportDiscoveredDevice, type TransportFactory, type TransportIdentifier } from "@ledgerhq/device-management-kit";
2
+ import { type Either } from "purify-ts";
3
+ import { type Observable } from "rxjs";
4
+ export declare const webHidIdentifier: TransportIdentifier;
5
+ export declare class WebHidTransport implements Transport {
6
+ private readonly _deviceModelDataSource;
7
+ private readonly _loggerServiceFactory;
8
+ private readonly _apduSenderFactory;
9
+ private readonly _apduReceiverFactory;
10
+ /** List of HID devices that have been discovered */
11
+ private _transportDiscoveredDevices;
12
+ /** Map of *connected* HIDDevice to their WebHidDeviceConnection */
13
+ private _deviceConnectionsByHidDevice;
14
+ /**
15
+ * Set of WebHidDeviceConnection for which the HIDDevice has been
16
+ * disconnected, so they are waiting for a reconnection
17
+ */
18
+ private _deviceConnectionsPendingReconnection;
19
+ /** AbortController to stop listening to HID connection events */
20
+ private _connectionListenersAbortController;
21
+ private _logger;
22
+ private readonly connectionType;
23
+ private readonly identifier;
24
+ constructor(_deviceModelDataSource: DeviceModelDataSource, _loggerServiceFactory: (tag: string) => LoggerPublisherService, _apduSenderFactory: ApduSenderServiceFactory, _apduReceiverFactory: ApduReceiverServiceFactory);
25
+ /**
26
+ * Get the WebHID API if supported or error
27
+ * @returns `Either<WebHidTransportNotSupportedError, HID>`
28
+ */
29
+ private get hidApi();
30
+ isSupported(): boolean;
31
+ getIdentifier(): TransportIdentifier;
32
+ /**
33
+ * Wrapper around `navigator.hid.getDevices()`.
34
+ * It will return the list of plugged in HID devices to which the user has
35
+ * previously granted access through `navigator.hid.requestDevice()`.
36
+ */
37
+ private getDevices;
38
+ /**
39
+ * Map a HIDDevice to an TransportDiscoveredDevice, either by creating a new one or returning an existing one
40
+ */
41
+ private mapHIDDeviceToTransportDiscoveredDevice;
42
+ /**
43
+ * Listen to known devices (devices to which the user has granted access)
44
+ */
45
+ listenToKnownDevices(): Observable<TransportDiscoveredDevice[]>;
46
+ private updateTransportDiscoveredDevices;
47
+ /**
48
+ * Wrapper around navigator.hid.requestDevice()
49
+ * In a browser, it will show a native dialog to select a HID device.
50
+ */
51
+ private promptDeviceAccess;
52
+ startDiscovering(): Observable<TransportDiscoveredDevice>;
53
+ stopDiscovering(): void;
54
+ private startListeningToConnectionEvents;
55
+ private stopListeningToConnectionEvents;
56
+ /**
57
+ * Connect to a HID USB device and update the internal state of the associated device
58
+ */
59
+ connect({ deviceId, onDisconnect, }: {
60
+ deviceId: DeviceId;
61
+ onDisconnect: DisconnectHandler;
62
+ }): Promise<Either<ConnectError, TransportConnectedDevice>>;
63
+ private getDeviceModel;
64
+ private getHidUsbProductId;
65
+ /**
66
+ * Disconnect from a HID USB device
67
+ */
68
+ disconnect(params: {
69
+ connectedDevice: TransportConnectedDevice;
70
+ }): Promise<Either<DmkError, void>>;
71
+ /**
72
+ * Type guard to check if the event is a HID connection event
73
+ * @param event
74
+ * @private
75
+ */
76
+ private isHIDConnectionEvent;
77
+ /**
78
+ * Handle the disconnection event of a HID device
79
+ * @param event
80
+ */
81
+ private handleDeviceDisconnectionEvent;
82
+ private handleDeviceReconnection;
83
+ /**
84
+ * Handle the connection event of a HID device
85
+ * @param event
86
+ */
87
+ private handleDeviceConnectionEvent;
88
+ destroy(): void;
89
+ }
90
+ export declare const webHidTransportFactory: TransportFactory;
91
+ //# sourceMappingURL=WebHidTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidTransport.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/WebHidTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EAEjB,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAE1B,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EAGb,KAAK,sBAAsB,EAG3B,KAAK,SAAS,EACd,wBAAwB,EAExB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,MAAM,EAAmC,MAAM,WAAW,CAAC;AACzE,OAAO,EAA8B,KAAK,UAAU,EAAa,MAAM,MAAM,CAAC;AAe9E,eAAO,MAAM,gBAAgB,EAAE,mBAA+B,CAAC;AAE/D,qBAAa,eAAgB,YAAW,SAAS;IA2B7C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IAGtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IA/BvC,oDAAoD;IACpD,OAAO,CAAC,2BAA2B,CAEiC;IAEpE,mEAAmE;IACnE,OAAO,CAAC,6BAA6B,CAGvB;IAEd;;;OAGG;IACH,OAAO,CAAC,qCAAqC,CACjC;IAEZ,iEAAiE;IACjE,OAAO,CAAC,mCAAmC,CACnB;IACxB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAyB;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyC;gBAGjD,sBAAsB,EAAE,qBAAqB,EAC7C,qBAAqB,EAAE,CACtC,GAAG,EAAE,MAAM,KACR,sBAAsB,EACV,kBAAkB,EAAE,wBAAwB,EAC5C,oBAAoB,EAAE,0BAA0B;IAOnE;;;OAGG;IACH,OAAO,KAAK,MAAM,GAMjB;IAED,WAAW;IAWX,aAAa,IAAI,mBAAmB;IAIpC;;;;OAIG;YACW,UAAU;IAmBxB;;OAEG;IACH,OAAO,CAAC,uCAAuC;IA4C/C;;OAEG;IACI,oBAAoB,IAAI,UAAU,CAAC,yBAAyB,EAAE,CAAC;YAOxD,gCAAgC;IAoB9C;;;OAGG;YACW,kBAAkB;IA+ChC,gBAAgB,IAAI,UAAU,CAAC,yBAAyB,CAAC;IA2BzD,eAAe,IAAI,IAAI;IAOvB,OAAO,CAAC,gCAAgC;IAkBxC,OAAO,CAAC,+BAA+B;IAKvC;;OAEG;IACG,OAAO,CAAC,EACZ,QAAQ,EACR,YAAY,GACb,EAAE;QACD,QAAQ,EAAE,QAAQ,CAAC;QACnB,YAAY,EAAE,iBAAiB,CAAC;KACjC,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC;IA4E3D,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,kBAAkB;IAO1B;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE;QACvB,eAAe,EAAE,wBAAwB,CAAC;KAC3C,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAyBnC;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;YACW,8BAA8B;IA+B5C,OAAO,CAAC,wBAAwB;IAiBhC;;;OAGG;IACH,OAAO,CAAC,2BAA2B;IA8B5B,OAAO;CAOf;AAED,eAAO,MAAM,sBAAsB,EAAE,gBAWlC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WebHidTransport.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebHidTransport.test.d.ts","sourceRoot":"","sources":["../../../../src/api/transport/WebHidTransport.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./api";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}