@onekeyfe/hd-core 1.0.36-alpha.0 → 1.0.36
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.js
CHANGED
|
@@ -24989,12 +24989,18 @@ const supportBatchPublicKey = (features, options) => {
|
|
|
24989
24989
|
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && deviceType === hdShared.EDeviceType.Pro) {
|
|
24990
24990
|
return semver__default["default"].gte(currentVersion, '4.14.0');
|
|
24991
24991
|
}
|
|
24992
|
+
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && deviceType === hdShared.EDeviceType.Touch) {
|
|
24993
|
+
return semver__default["default"].gte(currentVersion, '4.11.0');
|
|
24994
|
+
}
|
|
24992
24995
|
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && DeviceModelToTypes.model_classic1s.includes(deviceType)) {
|
|
24993
24996
|
return semver__default["default"].gte(currentVersion, '3.12.0');
|
|
24994
24997
|
}
|
|
24995
|
-
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) &&
|
|
24998
|
+
if (!!(options === null || options === void 0 ? void 0 : options.includeNode) && DeviceModelToTypes.model_mini.includes(deviceType)) {
|
|
24996
24999
|
return semver__default["default"].gte(currentVersion, '3.10.0');
|
|
24997
25000
|
}
|
|
25001
|
+
if (options === null || options === void 0 ? void 0 : options.includeNode) {
|
|
25002
|
+
return false;
|
|
25003
|
+
}
|
|
24998
25004
|
if (deviceType === hdShared.EDeviceType.Touch || deviceType === hdShared.EDeviceType.Pro) {
|
|
24999
25005
|
return semver__default["default"].gte(currentVersion, '3.1.0');
|
|
25000
25006
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceFeaturesUtils.d.ts","sourceRoot":"","sources":["../../src/utils/deviceFeaturesUtils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,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AEF,eAAO,MAAM,uCAAuC,WAAkB,MAAM,4BAqB3E,CAAC;AAEF,eAAO,MAAM,kBAAkB,aACnB,QAAQ,GAAG,SAAS,YACpB,cAAc,4BAgBzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,cACrB,QAAQ,YACT;IACR,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,KACA,OA4BF,CAAC;AAEF,eAAO,MAAM,uBAAuB,cAAe,QAAQ,KAAG,kBAU7D,CAAC;AAKF,eAAO,MAAM,sBAAsB;cAKvB,QAAQ;gBACN,UAAU,GAAG,KAAK;;MAE5B,KAAK,GAAG,cAyBX,CAAC;AAMF,eAAO,MAAM,2BAA2B,aAC5B,QAAQ,cACN,UAAU,GAAG,KAAK,GAAG,YAAY,KAC5C,CAAC,UAAU,GAAG,KAAK,GAAG,aAAa,GAAG,aAAa,CAAC,EAkCtD,CAAC;AAEF,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,UASzC;AAED,eAAO,MAAM,0BAA0B,aAAc,QAAQ,KAAG,QAc/D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-core",
|
|
3
|
-
"version": "1.0.36
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "OneKey",
|
|
6
6
|
"homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@onekeyfe/hd-shared": "^1.0.36
|
|
29
|
-
"@onekeyfe/hd-transport": "^1.0.36
|
|
28
|
+
"@onekeyfe/hd-shared": "^1.0.36",
|
|
29
|
+
"@onekeyfe/hd-transport": "^1.0.36",
|
|
30
30
|
"axios": "^0.27.2",
|
|
31
31
|
"bignumber.js": "^9.0.2",
|
|
32
32
|
"bytebuffer": "^5.0.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@types/web-bluetooth": "^0.0.21",
|
|
47
47
|
"ripple-keypairs": "^1.1.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2b36d7d8d47633b2fa9d8e7531f30952f92bcb87"
|
|
50
50
|
}
|
|
@@ -130,12 +130,18 @@ export const supportBatchPublicKey = (
|
|
|
130
130
|
if (!!options?.includeNode && deviceType === EDeviceType.Pro) {
|
|
131
131
|
return semver.gte(currentVersion, '4.14.0');
|
|
132
132
|
}
|
|
133
|
+
if (!!options?.includeNode && deviceType === EDeviceType.Touch) {
|
|
134
|
+
return semver.gte(currentVersion, '4.11.0');
|
|
135
|
+
}
|
|
133
136
|
if (!!options?.includeNode && DeviceModelToTypes.model_classic1s.includes(deviceType)) {
|
|
134
137
|
return semver.gte(currentVersion, '3.12.0');
|
|
135
138
|
}
|
|
136
|
-
if (!!options?.includeNode && deviceType
|
|
139
|
+
if (!!options?.includeNode && DeviceModelToTypes.model_mini.includes(deviceType)) {
|
|
137
140
|
return semver.gte(currentVersion, '3.10.0');
|
|
138
141
|
}
|
|
142
|
+
if (options?.includeNode) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
139
145
|
|
|
140
146
|
// support batch get public key
|
|
141
147
|
if (deviceType === EDeviceType.Touch || deviceType === EDeviceType.Pro) {
|