@onekeyfe/hd-web-sdk
Advanced tools
Comparing version 1.0.4-alpha.4 to 1.0.4-alpha.5
@@ -19,3 +19,5 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-unresolved | ||
// OneKey | ||
'fgddkaglmpbfaaeoldjafejilhdijpmi', | ||
'jnmbobjmhlngoefaiojfljckilhhlhcj', | ||
// OneKey Dev | ||
'kgceiielgkmjgjlecaikalcejlbeegkc', | ||
// Rabby | ||
@@ -22,0 +24,0 @@ 'acmacodkjbdgmoleebolmdjonilkdbch', |
@@ -30,6 +30,2 @@ "use strict"; | ||
const eventOrigin = (0, urlUtils_1.getOrigin)(event.origin); | ||
console.log('=====>>>>>> handleMessage', event, { | ||
eventOrigin, | ||
origin: hd_core_1.DataManager.getSettings('origin'), | ||
}); | ||
if (!isTrustedDomain && | ||
@@ -36,0 +32,0 @@ eventOrigin !== hd_core_1.DataManager.getSettings('origin') && |
@@ -55,3 +55,2 @@ "use strict"; | ||
var _a, _b; | ||
console.log('=====>>>>> checkTrust settings: ', settings); | ||
const hasTrust = (0, exports.isOriginWhitelisted)((_a = settings.parentOrigin) !== null && _a !== void 0 ? _a : '') || | ||
@@ -58,0 +57,0 @@ (0, exports.isExtensionWhitelisted)((_b = settings.extension) !== null && _b !== void 0 ? _b : ''); |
{ | ||
"name": "@onekeyfe/hd-web-sdk", | ||
"version": "1.0.4-alpha.4", | ||
"version": "1.0.4-alpha.5", | ||
"author": "OneKey", | ||
@@ -24,6 +24,6 @@ "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme", | ||
"@onekeyfe/cross-inpage-provider-core": "^0.0.17", | ||
"@onekeyfe/hd-core": "^1.0.4-alpha.4", | ||
"@onekeyfe/hd-shared": "^1.0.4-alpha.4", | ||
"@onekeyfe/hd-transport-http": "^1.0.4-alpha.4", | ||
"@onekeyfe/hd-transport-webusb": "^1.0.4-alpha.4" | ||
"@onekeyfe/hd-core": "^1.0.4-alpha.5", | ||
"@onekeyfe/hd-shared": "^1.0.4-alpha.5", | ||
"@onekeyfe/hd-transport-http": "^1.0.4-alpha.5", | ||
"@onekeyfe/hd-transport-webusb": "^1.0.4-alpha.5" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "76952636448f37ea4a3a4a838c9d704cd24831c0" | ||
"gitHead": "75d6741261691f1cc8e72d188938f4e4ffbc0894" | ||
} |
@@ -39,7 +39,2 @@ import HttpTransport from '@onekeyfe/hd-transport-http'; | ||
console.log('=====>>>>>> handleMessage', event, { | ||
eventOrigin, | ||
origin: DataManager.getSettings('origin'), | ||
}); | ||
if ( | ||
@@ -46,0 +41,0 @@ !isTrustedDomain && |
@@ -80,4 +80,2 @@ import EventEmitter from 'events'; | ||
function checkTrust(settings: ConnectSettings) { | ||
console.log('=====>>>>> checkTrust settings: ', settings); | ||
const hasTrust = | ||
@@ -84,0 +82,0 @@ isOriginWhitelisted(settings.parentOrigin ?? '') || |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
22486742
104780