@onekeyfe/hd-core
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -22,3 +22,3 @@ import type { PROTO } from '../constants'; | ||
device: Device; | ||
type?: PROTO.PinMatrixRequestType; | ||
type?: PROTO.PinMatrixRequestType | 'ButtonRequest_PinEntry'; | ||
}; | ||
@@ -25,0 +25,0 @@ }; |
@@ -657,3 +657,3 @@ import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events'; | ||
device: Device$1; | ||
type?: Messages.PinMatrixRequestType; | ||
type?: Messages.PinMatrixRequestType | 'ButtonRequest_PinEntry'; | ||
}; | ||
@@ -660,0 +660,0 @@ }; |
{ | ||
"name": "@onekeyfe/hd-core", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "> TODO: description", | ||
@@ -28,3 +28,3 @@ "author": "OneKey", | ||
"dependencies": { | ||
"@onekeyfe/hd-transport": "^0.0.7", | ||
"@onekeyfe/hd-transport": "^0.0.8", | ||
"axios": "^0.27.2", | ||
@@ -39,3 +39,3 @@ "bignumber.js": "^9.0.2", | ||
}, | ||
"gitHead": "7be7677368fcb50f411891f009367424ea77df33" | ||
"gitHead": "edfa30382fdf36182bc389c8ff1dd1a689096592" | ||
} |
@@ -254,3 +254,13 @@ import EventEmitter from 'events'; | ||
postMessage(createDeviceMessage(DEVICE.BUTTON, { ...request, device: device.toMessageObject() })); | ||
postMessage(createUiMessage(UI_REQUEST.REQUEST_BUTTON, { device: device.toMessageObject() })); | ||
if (request.code === 'ButtonRequest_PinEntry') { | ||
postMessage( | ||
createUiMessage(UI_REQUEST.REQUEST_PIN, { | ||
device: device.toMessageObject() as KnownDevice, | ||
type: 'ButtonRequest_PinEntry', | ||
}) | ||
); | ||
} else { | ||
postMessage(createUiMessage(UI_REQUEST.REQUEST_BUTTON, { device: device.toMessageObject() })); | ||
} | ||
}; | ||
@@ -257,0 +267,0 @@ |
@@ -31,3 +31,3 @@ import type { PROTO } from '../constants'; | ||
device: Device; | ||
type?: PROTO.PinMatrixRequestType; | ||
type?: PROTO.PinMatrixRequestType | 'ButtonRequest_PinEntry'; | ||
}; | ||
@@ -34,0 +34,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
896432
28953
+ Added@onekeyfe/hd-transport@0.0.8(transitive)
- Removed@onekeyfe/hd-transport@0.0.7(transitive)