@onekeyfe/hd-transport-emulator 1.1.20-alpha.1 → 1.1.20-alpha.2
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.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare class EmulatorTransport {
|
|
|
22
22
|
configure(signedData: any): void;
|
|
23
23
|
listen(old?: Array<OneKeyDeviceInfoWithSession>): Promise<OneKeyDeviceInfoWithSession[]>;
|
|
24
24
|
enumerate(): Promise<{
|
|
25
|
-
|
|
25
|
+
commType: string;
|
|
26
26
|
path: string;
|
|
27
27
|
session?: string | null | undefined;
|
|
28
28
|
debugSession?: string | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -167,7 +167,7 @@ class EmulatorTransport {
|
|
|
167
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
168
|
const devicesS = yield this._post({ url: '/enumerate' });
|
|
169
169
|
const devices = check.devices(devicesS);
|
|
170
|
-
return devices.map(device => (Object.assign(Object.assign({}, device), {
|
|
170
|
+
return devices.map(device => (Object.assign(Object.assign({}, device), { commType: 'emulator' })));
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
_acquireMixed(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-emulator",
|
|
3
|
-
"version": "1.1.20-alpha.
|
|
3
|
+
"version": "1.1.20-alpha.2",
|
|
4
4
|
"description": "hardware emulator transport",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@onekeyfe/hd-shared": "1.1.20-alpha.
|
|
28
|
-
"@onekeyfe/hd-transport": "1.1.20-alpha.
|
|
27
|
+
"@onekeyfe/hd-shared": "1.1.20-alpha.2",
|
|
28
|
+
"@onekeyfe/hd-transport": "1.1.20-alpha.2",
|
|
29
29
|
"axios": "1.12.2",
|
|
30
30
|
"secure-json-parse": "^4.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "dbf71f2cde0679e6f0bc84441ff0d0f905b054c0"
|
|
33
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -81,7 +81,7 @@ export default class EmulatorTransport {
|
|
|
81
81
|
async enumerate() {
|
|
82
82
|
const devicesS = await this._post({ url: '/enumerate' });
|
|
83
83
|
const devices = check.devices(devicesS);
|
|
84
|
-
return devices.map(device => ({ ...device,
|
|
84
|
+
return devices.map(device => ({ ...device, commType: 'emulator' }));
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
_acquireMixed(input: AcquireInput) {
|