Socket
Socket
Sign inDemoInstall

@onekeyfe/hd-shared

Package Overview
Dependencies
Maintainers
2
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onekeyfe/hd-shared - npm Package Compare versions

Comparing version 0.3.30 to 0.3.31

2

dist/deferred.d.ts

@@ -1,2 +0,2 @@

export declare type Deferred<T, I = any, D = any> = {
export type Deferred<T, I = any, D = any> = {
id?: I;

@@ -3,0 +3,0 @@ data?: D;

@@ -6,7 +6,7 @@ export interface IHardwareError {

}
declare type ValueOf<P extends object> = P[keyof P];
declare type HardwareErrorCodeMessageMapping = {
type ValueOf<P extends object> = P[keyof P];
type HardwareErrorCodeMessageMapping = {
[P in ValueOf<typeof HardwareErrorCode>]: string;
};
declare type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>;
type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>;
export declare class HardwareError extends Error {

@@ -92,3 +92,3 @@ errorCode: ErrorCodeUnion;

export declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping;
export declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError;
export declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string, params?: any) => HardwareError;
export declare const serializeError: (payload: any) => any;

@@ -95,0 +95,0 @@ export declare const CreateErrorByMessage: (message: string) => HardwareError;

@@ -1,2 +0,2 @@

declare type Deferred<T, I = any, D = any> = {
type Deferred<T, I = any, D = any> = {
id?: I;

@@ -15,7 +15,7 @@ data?: D;

}
declare type ValueOf<P extends object> = P[keyof P];
declare type HardwareErrorCodeMessageMapping = {
type ValueOf<P extends object> = P[keyof P];
type HardwareErrorCodeMessageMapping = {
[P in ValueOf<typeof HardwareErrorCode>]: string;
};
declare type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>;
type ErrorCodeUnion = ValueOf<typeof HardwareErrorCode>;
declare class HardwareError extends Error {

@@ -101,3 +101,3 @@ errorCode: ErrorCodeUnion;

declare const HardwareErrorCodeMessage: HardwareErrorCodeMessageMapping;
declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string | undefined, params?: any) => HardwareError;
declare const TypedError: (hardwareError: ErrorCodeUnion | string, message?: string, params?: any) => HardwareError;
declare const serializeError: (payload: any) => any;

@@ -104,0 +104,0 @@ declare const CreateErrorByMessage: (message: string) => HardwareError;

{
"name": "@onekeyfe/hd-shared",
"version": "0.3.30",
"version": "0.3.31",
"description": "Hardware SDK's shared tool library",

@@ -28,3 +28,3 @@ "keywords": [

},
"gitHead": "269ee367141ae2186a9a63d1d89e9f4c70428623"
"gitHead": "75a2c413110960f086b1d3e3ac81134711c0be9f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc