hardware-example 1.1.16-alpha.3 → 1.1.16-alpha.4
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/package.json +3 -3
- package/src/index.ts +1 -2
- package/webpack.config.ts +1 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "hardware-example",
|
|
3
3
|
"productName": "HardwareExample",
|
|
4
4
|
"executableName": "onekey-hardware-example",
|
|
5
|
-
"version": "1.1.16-alpha.
|
|
5
|
+
"version": "1.1.16-alpha.4",
|
|
6
6
|
"author": "OneKey",
|
|
7
7
|
"description": "End-to-end encrypted workspaces for teams",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"ts:check": "yarn tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@onekeyfe/hd-transport-electron": "1.1.16-alpha.
|
|
25
|
+
"@onekeyfe/hd-transport-electron": "1.1.16-alpha.4",
|
|
26
26
|
"@stoprocent/noble": "2.3.4",
|
|
27
27
|
"debug": "4.3.4",
|
|
28
28
|
"electron-is-dev": "^3.0.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"**/node-gyp": "^10.0.1",
|
|
46
46
|
"tmp": "0.2.4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "afb34e7032a88bcaad3be96473d5aa4be81ba2ad"
|
|
49
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -195,8 +195,7 @@ function createMainWindow() {
|
|
|
195
195
|
log.debug('WebUSB: select-usb-device 事件触发');
|
|
196
196
|
log.debug('WebUSB: 可用设备列表:', JSON.stringify(details.deviceList, null, 2));
|
|
197
197
|
|
|
198
|
-
//
|
|
199
|
-
// 这是 Electron 的优势:不像浏览器必须显示弹窗,桌面应用可以自动化处理
|
|
198
|
+
// 阻止默认行为,以便我们可以自定义设备选择
|
|
200
199
|
event.preventDefault();
|
|
201
200
|
|
|
202
201
|
// 直接选择第一个设备
|
package/webpack.config.ts
CHANGED
|
@@ -43,8 +43,7 @@ module.exports = {
|
|
|
43
43
|
externals: [
|
|
44
44
|
nodeExternals({
|
|
45
45
|
allowlist: [
|
|
46
|
-
|
|
47
|
-
/^@onekeyfe\//,
|
|
46
|
+
'@onekeyfe/hd-transport-electron',
|
|
48
47
|
...Object.keys({
|
|
49
48
|
...pkg.dependencies,
|
|
50
49
|
...pkg.devDependencies,
|