Socket
Socket
Sign inDemoInstall

@onekeyfe/hd-core

Package Overview
Dependencies
6
Maintainers
2
Versions
214
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.7 to 0.1.8

2

dist/device/Device.d.ts

@@ -63,5 +63,5 @@ /// <reference types="node" />

isUnacquired(): boolean;
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_bootloader_mode" | "ui-device_not_in_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_not_in_bootloader_mode" | "ui-device_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
}
export default Device;
//# sourceMappingURL=Device.d.ts.map

@@ -14,2 +14,3 @@ import type { PROTO } from '../constants';

readonly FIRMWARE_PROGRESS: "ui-firmware-progress";
readonly NOT_IN_BOOTLOADER: "ui-device_not_in_bootloader_mode";
};

@@ -16,0 +17,0 @@ export interface UiRequestWithoutPayload {

@@ -978,2 +978,3 @@ import EventEmitter, { EventEmitter as EventEmitter$1 } from 'events';

readonly FIRMWARE_PROGRESS: "ui-firmware-progress";
readonly NOT_IN_BOOTLOADER: "ui-device_not_in_bootloader_mode";
};

@@ -1206,3 +1207,3 @@ interface UiRequestWithoutPayload {

isUnacquired(): boolean;
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_bootloader_mode" | "ui-device_not_in_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
hasUnexpectedMode(allow: string[], require: string[]): "ui-device_not_in_bootloader_mode" | "ui-device_bootloader_mode" | "ui-device_not_initialized" | "ui-device_seedless" | null;
}

@@ -1209,0 +1210,0 @@

{
"name": "@onekeyfe/hd-core",
"version": "0.1.7",
"version": "0.1.8",
"description": "> TODO: description",

@@ -28,4 +28,4 @@ "author": "OneKey",

"dependencies": {
"@onekeyfe/hd-shared": "^0.1.7",
"@onekeyfe/hd-transport": "^0.1.7",
"@onekeyfe/hd-shared": "^0.1.8",
"@onekeyfe/hd-transport": "^0.1.8",
"axios": "^0.27.2",

@@ -40,3 +40,3 @@ "bignumber.js": "^9.0.2",

},
"gitHead": "1d3889d02e41afd60cd0388b6e01d7f2ac7c5399"
"gitHead": "d9514ac6207a2561ad107910ab005b3f9e12d794"
}

@@ -143,2 +143,7 @@ import semver from 'semver';

if (unexpectedMode) {
if (unexpectedMode === UI_REQUEST.NOT_IN_BOOTLOADER) {
return Promise.reject(
ERRORS.TypedError(HardwareErrorCode.DeviceUnexpectedBootloaderMode)
);
}
return Promise.reject(

@@ -145,0 +150,0 @@ ERRORS.TypedError(HardwareErrorCode.DeviceUnexpectedMode, unexpectedMode)

@@ -19,2 +19,4 @@ import type { PROTO } from '../constants';

FIRMWARE_PROGRESS: 'ui-firmware-progress',
NOT_IN_BOOTLOADER: 'ui-device_not_in_bootloader_mode',
} as const;

@@ -21,0 +23,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc