@ukeyfe/hardware-core 1.1.13 → 1.1.15
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/api/FirmwareUpdate.d.ts +1 -1
- package/dist/api/FirmwareUpdateV2.d.ts +1 -1
- package/dist/api/GetFeatures.d.ts +1 -1
- package/dist/api/GetUkeyFeatures.d.ts +1 -1
- package/dist/api/cardano/CardanoSignMessage.d.ts +1 -1
- package/dist/api/device/DeviceRebootToBoardloader.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/utils/logger.d.ts +12 -12
- package/dist/utils/logger.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/utils/logger.ts +6 -6
|
@@ -10,7 +10,7 @@ export default class FirmwareUpdate extends BaseMethod<Params> {
|
|
|
10
10
|
init(): void;
|
|
11
11
|
postTipMessage: (message: string) => void;
|
|
12
12
|
checkDeviceToBootloader(connectId: string | undefined): void;
|
|
13
|
-
run(): Promise<import("packages/
|
|
13
|
+
run(): Promise<import("packages/hardware-transport/dist").Success>;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=FirmwareUpdate.d.ts.map
|
|
@@ -18,7 +18,7 @@ export default class FirmwareUpdateV2 extends BaseMethod<Params> {
|
|
|
18
18
|
isEnteredManuallyBoot(features: Features): boolean;
|
|
19
19
|
isSupportResourceUpdate(features: Features, updateType: string): boolean;
|
|
20
20
|
checkVersionForCopyTouchResource(features?: Features): void;
|
|
21
|
-
run(): Promise<import("packages/
|
|
21
|
+
run(): Promise<import("packages/hardware-transport/dist").Success>;
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=FirmwareUpdateV2.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseMethod } from './BaseMethod';
|
|
2
2
|
export default class GetFeatures extends BaseMethod {
|
|
3
3
|
init(): void;
|
|
4
|
-
run(): Promise<import("packages/
|
|
4
|
+
run(): Promise<import("packages/hardware-transport/dist").Features | undefined>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=GetFeatures.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseMethod } from './BaseMethod';
|
|
2
2
|
export default class GetUkeyFeatures extends BaseMethod {
|
|
3
3
|
init(): void;
|
|
4
|
-
run(): Promise<import("packages/
|
|
4
|
+
run(): Promise<import("packages/hardware-transport/dist").UkeyFeatures>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=GetUkeyFeatures.d.ts.map
|
|
@@ -14,6 +14,6 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
|
|
|
14
14
|
min: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
run(): Promise<import("packages/
|
|
17
|
+
run(): Promise<import("packages/hardware-transport/dist").CardanoMessageSignature>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=CardanoSignMessage.d.ts.map
|
|
@@ -10,6 +10,6 @@ export default class DeviceRebootToBoardloader extends BaseMethod<RebootToBoardl
|
|
|
10
10
|
min: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
run(): Promise<import("packages/
|
|
13
|
+
run(): Promise<import("packages/hardware-transport/dist").Success>;
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=DeviceRebootToBoardloader.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -3130,7 +3130,7 @@ declare const enableLog: (enabled?: boolean) => void;
|
|
|
3130
3130
|
declare const getLog: () => LogMessage[];
|
|
3131
3131
|
declare const setLoggerPostMessage: (postMessageFn: (message: CoreMessage) => void) => void;
|
|
3132
3132
|
declare enum LoggerNames {
|
|
3133
|
-
Core = "@ukey/
|
|
3133
|
+
Core = "@ukey/hardware-core",
|
|
3134
3134
|
Transport = "Transport",
|
|
3135
3135
|
Device = "Device",
|
|
3136
3136
|
DeviceCommands = "DeviceCommands",
|
|
@@ -3138,11 +3138,11 @@ declare enum LoggerNames {
|
|
|
3138
3138
|
DeviceList = "DeviceList",
|
|
3139
3139
|
DevicePool = "DevicePool",
|
|
3140
3140
|
HdCommonConnectSdk = "@ukey/common-connect-sdk",
|
|
3141
|
-
HdBleSdk = "@ukey/
|
|
3142
|
-
HdTransportHttp = "@ukey/
|
|
3143
|
-
HdTransportLowLevel = "@ukey/
|
|
3144
|
-
HdBleTransport = "@ukey/
|
|
3145
|
-
HdWebBleTransport = "@ukey/
|
|
3141
|
+
HdBleSdk = "@ukey/hardware-ble-sdk",
|
|
3142
|
+
HdTransportHttp = "@ukey/hardware-transport-http",
|
|
3143
|
+
HdTransportLowLevel = "@ukey/hardware-transport-lowlevel",
|
|
3144
|
+
HdBleTransport = "@ukey/hardware-ble-transport",
|
|
3145
|
+
HdWebBleTransport = "@ukey/hardware-web-ble-transport",
|
|
3146
3146
|
Connect = "@ukey/connect",
|
|
3147
3147
|
Iframe = "IFrame",
|
|
3148
3148
|
SendMessage = "[SendMessage]",
|
package/dist/index.js
CHANGED
|
@@ -895,7 +895,7 @@ const sendLogMessage = (prefix, ...args) => {
|
|
|
895
895
|
};
|
|
896
896
|
exports.LoggerNames = void 0;
|
|
897
897
|
(function (LoggerNames) {
|
|
898
|
-
LoggerNames["Core"] = "@ukey/
|
|
898
|
+
LoggerNames["Core"] = "@ukey/hardware-core";
|
|
899
899
|
LoggerNames["Transport"] = "Transport";
|
|
900
900
|
LoggerNames["Device"] = "Device";
|
|
901
901
|
LoggerNames["DeviceCommands"] = "DeviceCommands";
|
|
@@ -903,11 +903,11 @@ exports.LoggerNames = void 0;
|
|
|
903
903
|
LoggerNames["DeviceList"] = "DeviceList";
|
|
904
904
|
LoggerNames["DevicePool"] = "DevicePool";
|
|
905
905
|
LoggerNames["HdCommonConnectSdk"] = "@ukey/common-connect-sdk";
|
|
906
|
-
LoggerNames["HdBleSdk"] = "@ukey/
|
|
907
|
-
LoggerNames["HdTransportHttp"] = "@ukey/
|
|
908
|
-
LoggerNames["HdTransportLowLevel"] = "@ukey/
|
|
909
|
-
LoggerNames["HdBleTransport"] = "@ukey/
|
|
910
|
-
LoggerNames["HdWebBleTransport"] = "@ukey/
|
|
906
|
+
LoggerNames["HdBleSdk"] = "@ukey/hardware-ble-sdk";
|
|
907
|
+
LoggerNames["HdTransportHttp"] = "@ukey/hardware-transport-http";
|
|
908
|
+
LoggerNames["HdTransportLowLevel"] = "@ukey/hardware-transport-lowlevel";
|
|
909
|
+
LoggerNames["HdBleTransport"] = "@ukey/hardware-ble-transport";
|
|
910
|
+
LoggerNames["HdWebBleTransport"] = "@ukey/hardware-web-ble-transport";
|
|
911
911
|
LoggerNames["Connect"] = "@ukey/connect";
|
|
912
912
|
LoggerNames["Iframe"] = "IFrame";
|
|
913
913
|
LoggerNames["SendMessage"] = "[SendMessage]";
|
package/dist/utils/logger.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const enableLogByPrefix: (prefix: string, enabled: boolean) => vo
|
|
|
22
22
|
export declare const getLog: () => LogMessage[];
|
|
23
23
|
export declare const setLoggerPostMessage: (postMessageFn: (message: CoreMessage) => void) => void;
|
|
24
24
|
export declare enum LoggerNames {
|
|
25
|
-
Core = "@ukey/
|
|
25
|
+
Core = "@ukey/hardware-core",
|
|
26
26
|
Transport = "Transport",
|
|
27
27
|
Device = "Device",
|
|
28
28
|
DeviceCommands = "DeviceCommands",
|
|
@@ -30,29 +30,29 @@ export declare enum LoggerNames {
|
|
|
30
30
|
DeviceList = "DeviceList",
|
|
31
31
|
DevicePool = "DevicePool",
|
|
32
32
|
HdCommonConnectSdk = "@ukey/common-connect-sdk",
|
|
33
|
-
HdBleSdk = "@ukey/
|
|
34
|
-
HdTransportHttp = "@ukey/
|
|
35
|
-
HdTransportLowLevel = "@ukey/
|
|
36
|
-
HdBleTransport = "@ukey/
|
|
37
|
-
HdWebBleTransport = "@ukey/
|
|
33
|
+
HdBleSdk = "@ukey/hardware-ble-sdk",
|
|
34
|
+
HdTransportHttp = "@ukey/hardware-transport-http",
|
|
35
|
+
HdTransportLowLevel = "@ukey/hardware-transport-lowlevel",
|
|
36
|
+
HdBleTransport = "@ukey/hardware-ble-transport",
|
|
37
|
+
HdWebBleTransport = "@ukey/hardware-web-ble-transport",
|
|
38
38
|
Connect = "@ukey/connect",
|
|
39
39
|
Iframe = "IFrame",
|
|
40
40
|
SendMessage = "[SendMessage]",
|
|
41
41
|
Method = "[Method]"
|
|
42
42
|
}
|
|
43
43
|
export declare const LoggerMap: {
|
|
44
|
-
"@ukey/
|
|
44
|
+
"@ukey/hardware-core": Log;
|
|
45
45
|
Transport: Log;
|
|
46
46
|
Device: Log;
|
|
47
47
|
DeviceCommands: Log;
|
|
48
48
|
DeviceConnector: Log;
|
|
49
49
|
DeviceList: Log;
|
|
50
50
|
DevicePool: Log;
|
|
51
|
-
"@ukey/
|
|
52
|
-
"@ukey/
|
|
53
|
-
"@ukey/
|
|
54
|
-
"@ukey/
|
|
55
|
-
"@ukey/
|
|
51
|
+
"@ukey/hardware-ble-sdk": Log;
|
|
52
|
+
"@ukey/hardware-transport-http": Log;
|
|
53
|
+
"@ukey/hardware-ble-transport": Log;
|
|
54
|
+
"@ukey/hardware-web-ble-transport": Log;
|
|
55
|
+
"@ukey/hardware-transport-lowlevel": Log;
|
|
56
56
|
"@ukey/connect": Log;
|
|
57
57
|
IFrame: Log;
|
|
58
58
|
"[SendMessage]": Log;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,KAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAMF,cAAM,GAAG;IACP,MAAM,EAAE,MA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,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAYxD,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IASlB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IASpB,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;IASnB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE;CAQrB;AAID,eAAO,MAAM,OAAO,WAAY,MAAM,YAAY,OAAO,QAIxD,CAAC;AAEF,eAAO,MAAM,SAAS,aAAc,OAAO,SAI1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAY,MAAM,WAAW,OAAO,SAIjE,CAAC;AAEF,eAAO,MAAM,MAAM,oBAOlB,CAAC;AAEF,eAAO,MAAM,oBAAoB,4BAA6B,WAAW,KAAK,IAAI,SAEjF,CAAC;AAuCF,oBAAY,WAAW;IACrB,IAAI,wBAAwB;IAC5B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,kBAAkB,6BAA6B;IAC/C,QAAQ,2BAA2B;IACnC,eAAe,kCAAkC;IACjD,mBAAmB,sCAAsC;IACzD,cAAc,iCAAiC;IAC/C,iBAAiB,qCAAqC;IACtD,OAAO,kBAAkB;IACzB,MAAM,WAAW;IACjB,WAAW,kBAAkB;IAC7B,MAAM,aAAa;CACpB;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAEF,eAAO,MAAM,SAAS,QAAS,WAAW,QAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukeyfe/hardware-core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "Core processes and APIs for communicating with UKey hardware devices.",
|
|
5
5
|
"author": "UKey",
|
|
6
6
|
"homepage": "https://github.com/UKeyHQ/hardware-js-sdk#readme",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"url": "https://github.com/UKeyHQ/hardware-js-sdk/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ukeyfe/hardware-shared": "1.1.
|
|
29
|
-
"@ukeyfe/hardware-transport": "1.1.
|
|
28
|
+
"@ukeyfe/hardware-shared": "1.1.15",
|
|
29
|
+
"@ukeyfe/hardware-transport": "1.1.15",
|
|
30
30
|
"axios": "1.12.2",
|
|
31
31
|
"bignumber.js": "^9.0.2",
|
|
32
32
|
"bytebuffer": "^5.0.1",
|
package/src/utils/logger.ts
CHANGED
|
@@ -145,7 +145,7 @@ const sendLogMessage = (prefix: string, ...args: any[]) => {
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
export enum LoggerNames {
|
|
148
|
-
Core = '@ukey/
|
|
148
|
+
Core = '@ukey/hardware-core',
|
|
149
149
|
Transport = 'Transport',
|
|
150
150
|
Device = 'Device',
|
|
151
151
|
DeviceCommands = 'DeviceCommands',
|
|
@@ -153,11 +153,11 @@ export enum LoggerNames {
|
|
|
153
153
|
DeviceList = 'DeviceList',
|
|
154
154
|
DevicePool = 'DevicePool',
|
|
155
155
|
HdCommonConnectSdk = '@ukey/common-connect-sdk',
|
|
156
|
-
HdBleSdk = '@ukey/
|
|
157
|
-
HdTransportHttp = '@ukey/
|
|
158
|
-
HdTransportLowLevel = '@ukey/
|
|
159
|
-
HdBleTransport = '@ukey/
|
|
160
|
-
HdWebBleTransport = '@ukey/
|
|
156
|
+
HdBleSdk = '@ukey/hardware-ble-sdk',
|
|
157
|
+
HdTransportHttp = '@ukey/hardware-transport-http',
|
|
158
|
+
HdTransportLowLevel = '@ukey/hardware-transport-lowlevel',
|
|
159
|
+
HdBleTransport = '@ukey/hardware-ble-transport',
|
|
160
|
+
HdWebBleTransport = '@ukey/hardware-web-ble-transport',
|
|
161
161
|
Connect = '@ukey/connect',
|
|
162
162
|
Iframe = 'IFrame',
|
|
163
163
|
SendMessage = '[SendMessage]',
|