@onekeyfe/hd-transport-lowlevel 0.3.26 → 0.3.29
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.map +1 -1
- package/dist/index.js +6 -1
- package/package.json +4 -4
- package/src/index.ts +6 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,SAA8B,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,YAAY,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAIpD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,SAAS,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAEnE,UAAU,UAAS;IAEnB,GAAG,CAAC,EAAE,GAAG,CAAC;IAEV,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,MAAM,EAAE,6BAA6B,CAAuC;IAE5E,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,6BAA6B;IAO9E,SAAS,CAAC,UAAU,EAAE,GAAG;IAMzB,MAAM;IAIN,SAAS;IAIH,OAAO,CAAC,KAAK,EAAE,oBAAoB;;;IAanC,OAAO,CAAC,IAAI,EAAE,MAAM;IAUpB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAuCpE,MAAM;CAGP"}
|
package/dist/index.js
CHANGED
|
@@ -85,7 +85,12 @@ class LowlevelTransport {
|
|
|
85
85
|
throw hdShared.ERRORS.TypedError(hdShared.HardwareErrorCode.TransportNotConfigured);
|
|
86
86
|
}
|
|
87
87
|
const messages = this._messages;
|
|
88
|
-
|
|
88
|
+
if (transport.LogBlockCommand.has(name)) {
|
|
89
|
+
this.Log.debug('lowlevel-transport', 'call-', ' name: ', name);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.Log.debug('lowlevel-transport', 'call-', ' name: ', name, ' data: ', data);
|
|
93
|
+
}
|
|
89
94
|
const buffers = buildBuffers(messages, name, data);
|
|
90
95
|
for (const o of buffers) {
|
|
91
96
|
const outData = o.toString('hex');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-transport-lowlevel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"lint:fix": "eslint . --fix"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@onekeyfe/hd-shared": "^0.3.
|
|
23
|
-
"@onekeyfe/hd-transport": "^0.3.
|
|
22
|
+
"@onekeyfe/hd-shared": "^0.3.29",
|
|
23
|
+
"@onekeyfe/hd-transport": "^0.3.29"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "eae21a493ce3327cde5091537da3e1ace2d87607"
|
|
26
26
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ERRORS, HardwareErrorCode } from '@onekeyfe/hd-shared';
|
|
2
|
-
import transport from '@onekeyfe/hd-transport';
|
|
2
|
+
import transport, { LogBlockCommand } from '@onekeyfe/hd-transport';
|
|
3
3
|
import type EventEmitter from 'events';
|
|
4
4
|
import type { LowlevelTransportSharedPlugin } from '@onekeyfe/hd-transport';
|
|
5
5
|
import type { LowLevelAcquireInput } from './types';
|
|
@@ -67,7 +67,11 @@ export default class LowlevelTransport {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
const messages = this._messages;
|
|
70
|
-
|
|
70
|
+
if (LogBlockCommand.has(name)) {
|
|
71
|
+
this.Log.debug('lowlevel-transport', 'call-', ' name: ', name);
|
|
72
|
+
} else {
|
|
73
|
+
this.Log.debug('lowlevel-transport', 'call-', ' name: ', name, ' data: ', data);
|
|
74
|
+
}
|
|
71
75
|
|
|
72
76
|
const buffers = buildBuffers(messages, name, data);
|
|
73
77
|
for (const o of buffers) {
|