@onekeyfe/hd-transport-http 1.1.19 → 1.1.20-alpha.1
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 +7 -1
- package/dist/index.d.ts.map +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
|
@@ -19,7 +19,13 @@ declare class HttpTransport {
|
|
|
19
19
|
_silentInit(): Promise<string>;
|
|
20
20
|
configure(signedData: any): void;
|
|
21
21
|
listen(old?: Array<OneKeyDeviceInfoWithSession>): Promise<OneKeyDeviceInfoWithSession[]>;
|
|
22
|
-
enumerate(): Promise<
|
|
22
|
+
enumerate(): Promise<{
|
|
23
|
+
type: string;
|
|
24
|
+
path: string;
|
|
25
|
+
session?: string | null | undefined;
|
|
26
|
+
debugSession?: string | null | undefined;
|
|
27
|
+
debug: boolean;
|
|
28
|
+
}[]>;
|
|
23
29
|
_acquireMixed(input: AcquireInput): Promise<any>;
|
|
24
30
|
acquire(input: AcquireInput): Promise<string>;
|
|
25
31
|
release(session: string, onclose: boolean): Promise<void>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAA8B,MAAM,wBAAwB,CAAC;AAEpE,OAAO,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAMxF,KAAK,wBAAwB,GAAG;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,SAAS,EAAE,UAAU,CAAC,OAAO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CAAC,EAAE,KAAK,CAAC,2BAA2B,CAAC;IAY/C,SAAS;;;;;;;IAMf,aAAa,CAAC,KAAK,EAAE,YAAY;IAS3B,OAAO,CAAC,KAAK,EAAE,YAAY;IAK3B,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAUzC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAyBjE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAYjE,IAAI,CAAC,OAAO,EAAE,MAAM;IAe1B,aAAa;IAKb,IAAI;IAIJ,MAAM;CAGP"}
|
package/dist/index.js
CHANGED
|
@@ -181,7 +181,7 @@ class HttpTransport {
|
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
182
|
const devicesS = yield this._post({ url: '/enumerate' });
|
|
183
183
|
const devices = check.devices(devicesS);
|
|
184
|
-
return devices;
|
|
184
|
+
return devices.map(device => (Object.assign(Object.assign({}, device), { type: 'bridge' })));
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
_acquireMixed(input) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-http",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20-alpha.1",
|
|
4
4
|
"description": "hardware http 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.
|
|
28
|
-
"@onekeyfe/hd-transport": "1.1.
|
|
27
|
+
"@onekeyfe/hd-shared": "1.1.20-alpha.1",
|
|
28
|
+
"@onekeyfe/hd-transport": "1.1.20-alpha.1",
|
|
29
29
|
"axios": "1.12.2",
|
|
30
30
|
"secure-json-parse": "^4.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "4a835d088a44adaeb6b1088816ece1bc1e8474e2"
|
|
33
33
|
}
|
package/src/index.ts
CHANGED
|
@@ -77,7 +77,7 @@ export default class HttpTransport {
|
|
|
77
77
|
async enumerate() {
|
|
78
78
|
const devicesS = await this._post({ url: '/enumerate' });
|
|
79
79
|
const devices = check.devices(devicesS);
|
|
80
|
-
return devices;
|
|
80
|
+
return devices.map(device => ({ ...device, type: 'bridge' }));
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
_acquireMixed(input: AcquireInput) {
|