hardware-example 1.1.22-alpha.6 → 1.1.22
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 +2 -1
- package/src/preload.ts +4 -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.22
|
|
5
|
+
"version": "1.1.22",
|
|
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.22
|
|
25
|
+
"@onekeyfe/hd-transport-electron": "1.1.22",
|
|
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": "d9d816ec5c818397549202ecb42d127af99a03f1"
|
|
49
49
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrowserWindow, app, ipcMain, screen, session, shell } from 'electron';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import isDevelopment from 'electron-is-dev';
|
|
4
4
|
import { format as formatUrl } from 'url';
|
|
@@ -6,6 +6,7 @@ import log from 'electron-log';
|
|
|
6
6
|
import { autoUpdater } from 'electron-updater';
|
|
7
7
|
import { exec } from 'child_process';
|
|
8
8
|
import { initNobleBleSupport } from '@onekeyfe/hd-transport-electron';
|
|
9
|
+
|
|
9
10
|
import initProcess, { restartBridge } from './process';
|
|
10
11
|
import { ipcMessageKeys } from './config';
|
|
11
12
|
|
package/src/preload.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-vars,@typescript-eslint/require-await */
|
|
3
|
-
import {
|
|
3
|
+
import { contextBridge, ipcRenderer } from 'electron';
|
|
4
4
|
import { EOneKeyBleMessageKeys } from '@onekeyfe/hd-shared';
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
import { ipcMessageKeys } from './config';
|
|
7
7
|
|
|
8
|
+
import type { DesktopAPI as BaseDesktopAPI, NobleBleAPI } from '@onekeyfe/hd-transport-electron';
|
|
9
|
+
|
|
8
10
|
// Simplified Bluetooth system API - only for opening settings
|
|
9
11
|
export interface BluetoothSystemAPI {
|
|
10
12
|
// System integration
|