@onekeyfe/hd-core 1.0.4 → 1.0.6
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.
|
@@ -5,10 +5,10 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
|
|
|
5
5
|
isCheck?: boolean;
|
|
6
6
|
init(): void;
|
|
7
7
|
getVersionRange(): {
|
|
8
|
-
|
|
8
|
+
model_touch: {
|
|
9
9
|
min: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
model_mini: {
|
|
12
12
|
min: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/data/config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,WAAoB,CAAC;AAC/C,eAAO,MAAM,cAAc,QAAgD,CAAC;AAE5E,eAAO,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/data/config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,WAAoB,CAAC;AAC/C,eAAO,MAAM,cAAc,QAAgD,CAAC;AAE5E,eAAO,MAAM,SAAS;;GASrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAO9B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23649,6 +23649,7 @@ const whitelist = [
|
|
|
23649
23649
|
{ origin: '1key.so' },
|
|
23650
23650
|
{ origin: 'onekey.so' },
|
|
23651
23651
|
{ origin: 'onekeycn.com' },
|
|
23652
|
+
{ origin: 'onekeytest.com' },
|
|
23652
23653
|
{ origin: 'localhost' },
|
|
23653
23654
|
];
|
|
23654
23655
|
const whitelistExtension = [
|
|
@@ -23668,7 +23669,7 @@ const initialSettings = {
|
|
|
23668
23669
|
connectSrc: DEFAULT_DOMAIN,
|
|
23669
23670
|
iframeSrc: `${DEFAULT_DOMAIN}iframe.html`,
|
|
23670
23671
|
parentOrigin: typeof window !== 'undefined' && window.location ? window.location.origin : '',
|
|
23671
|
-
extension: ((_a = chrome === null || chrome === void 0 ? void 0 : chrome.runtime) === null || _a === void 0 ? void 0 : _a.id) || '',
|
|
23672
|
+
extension: (typeof chrome !== 'undefined' && ((_a = chrome === null || chrome === void 0 ? void 0 : chrome.runtime) === null || _a === void 0 ? void 0 : _a.id)) || '',
|
|
23672
23673
|
supportedBrowser: typeof navigator !== 'undefined' ? !/Trident|MSIE|Edge/.test(navigator.userAgent) : true,
|
|
23673
23674
|
env: 'web',
|
|
23674
23675
|
lazyLoad: false,
|
|
@@ -31933,12 +31934,12 @@ class CardanoSignMessage extends BaseMethod {
|
|
|
31933
31934
|
}
|
|
31934
31935
|
getVersionRange() {
|
|
31935
31936
|
return {
|
|
31937
|
+
model_touch: {
|
|
31938
|
+
min: '4.9.2',
|
|
31939
|
+
},
|
|
31936
31940
|
model_mini: {
|
|
31937
31941
|
min: '3.0.0',
|
|
31938
31942
|
},
|
|
31939
|
-
model_touch: {
|
|
31940
|
-
min: '4.1.0',
|
|
31941
|
-
},
|
|
31942
31943
|
};
|
|
31943
31944
|
}
|
|
31944
31945
|
run() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/hd-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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.
|
|
29
|
-
"@onekeyfe/hd-transport": "^1.0.
|
|
28
|
+
"@onekeyfe/hd-shared": "^1.0.6",
|
|
29
|
+
"@onekeyfe/hd-transport": "^1.0.6",
|
|
30
30
|
"axios": "^0.27.2",
|
|
31
31
|
"bignumber.js": "^9.0.2",
|
|
32
32
|
"bytebuffer": "^5.0.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@types/semver": "^7.3.9",
|
|
45
45
|
"ripple-keypairs": "^1.1.4"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5999a1ec9413c92cf0f3b65955f1ca9b1004edea"
|
|
48
48
|
}
|
|
@@ -37,12 +37,12 @@ export default class CardanoSignMessage extends BaseMethod<CardanoSignMessagePar
|
|
|
37
37
|
|
|
38
38
|
getVersionRange() {
|
|
39
39
|
return {
|
|
40
|
+
model_touch: {
|
|
41
|
+
min: '4.9.2',
|
|
42
|
+
},
|
|
40
43
|
model_mini: {
|
|
41
44
|
min: '3.0.0',
|
|
42
45
|
},
|
|
43
|
-
model_touch: {
|
|
44
|
-
min: '4.1.0',
|
|
45
|
-
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
|
package/src/data/config.ts
CHANGED
|
@@ -20,7 +20,7 @@ const initialSettings: ConnectSettings = {
|
|
|
20
20
|
connectSrc: DEFAULT_DOMAIN,
|
|
21
21
|
iframeSrc: `${DEFAULT_DOMAIN}iframe.html`,
|
|
22
22
|
parentOrigin: typeof window !== 'undefined' && window.location ? window.location.origin : '',
|
|
23
|
-
extension: chrome?.runtime?.id || '',
|
|
23
|
+
extension: (typeof chrome !== 'undefined' && chrome?.runtime?.id) || '',
|
|
24
24
|
supportedBrowser:
|
|
25
25
|
typeof navigator !== 'undefined' ? !/Trident|MSIE|Edge/.test(navigator.userAgent) : true,
|
|
26
26
|
env: 'web',
|