@theia/electron 1.77.0-next.99 → 1.77.0
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/index.js +15 -6
- package/package.json +15 -4
- package/shared/electron/index.cjs +3 -0
- package/shared/electron-store/index.cjs +3 -0
- package/shared/fix-path/index.d.ts +2 -2
- package/shared/fix-path/index.js +2 -1
- package/shared/native-keymap/index.cjs +3 -0
- package/shared/electron/index.js +0 -1
- package/shared/electron-store/index.js +0 -1
- package/shared/native-keymap/index.js +0 -1
- /package/shared/electron/{index.d.ts → index.d.cts} +0 -0
- /package/shared/electron-store/{index.d.ts → index.d.cts} +0 -0
- /package/shared/native-keymap/{index.d.ts → index.d.cts} +0 -0
package/index.js
CHANGED
|
@@ -14,14 +14,23 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
import { createRequire } from 'node:module';
|
|
18
|
+
|
|
19
|
+
const require = createRequire(import.meta.url);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Supported Electron version range.
|
|
23
|
+
*/
|
|
24
|
+
export const electronRange = require('./package.json').peerDependencies.electron;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Currently installed Electron version. `undefined` if Electron is not installed nor found.
|
|
28
|
+
*/
|
|
29
|
+
export let electronVersion;
|
|
19
30
|
try {
|
|
20
|
-
|
|
31
|
+
electronVersion = require('electron/package.json').version;
|
|
21
32
|
} catch (error) {
|
|
22
|
-
if (error.code
|
|
23
|
-
exports.electronVersion = undefined;
|
|
24
|
-
} else {
|
|
33
|
+
if (error.code !== 'MODULE_NOT_FOUND') {
|
|
25
34
|
throw error;
|
|
26
35
|
}
|
|
27
36
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/electron",
|
|
3
|
-
"version": "1.77.0
|
|
3
|
+
"version": "1.77.0",
|
|
4
4
|
"description": "Theia - Electron utility package",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
7
|
"electron-store": "^8.2.0",
|
|
7
8
|
"fix-path": "^4.0.0",
|
|
@@ -9,8 +10,8 @@
|
|
|
9
10
|
"tslib": "^2.8.1"
|
|
10
11
|
},
|
|
11
12
|
"devDependencies": {
|
|
12
|
-
"@theia/ext-scripts": "1.
|
|
13
|
-
"@theia/re-exports": "1.
|
|
13
|
+
"@theia/ext-scripts": "1.77.0",
|
|
14
|
+
"@theia/re-exports": "1.77.0"
|
|
14
15
|
},
|
|
15
16
|
"peerDependencies": {
|
|
16
17
|
"electron": "44.9.1"
|
|
@@ -54,5 +55,15 @@
|
|
|
54
55
|
"nyc": {
|
|
55
56
|
"extends": "../../configs/nyc.json"
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "9c6d81590b559ee8a78a7808203674f3127411f1",
|
|
59
|
+
"exports": {
|
|
60
|
+
".": "./index.js",
|
|
61
|
+
"./package.json": "./package.json",
|
|
62
|
+
"./shared/fix-path": "./shared/fix-path/index.js",
|
|
63
|
+
"./shared/*": "./shared/*/index.cjs",
|
|
64
|
+
"./lib/*.json": "./lib/*.json",
|
|
65
|
+
"./lib/*.js": "./lib/*.js",
|
|
66
|
+
"./lib/*": "./lib/*.js",
|
|
67
|
+
"./*": "./*"
|
|
68
|
+
}
|
|
58
69
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports = require('electron');
|
|
2
|
+
// Lets Node detect the named exports when this module is imported from an ES module.
|
|
3
|
+
0 && (module.exports = { BaseWindow, BrowserView, BrowserWindow, ClipboardItem, ImageView, IpcMainServiceWorker, Menu, MenuItem, MessageChannelMain, Notification, ShareMenu, TouchBar, Tray, View, WebContentsView, WebSocket, app, autoUpdater, clipboard, contentTracing, contextBridge, crashReporter, desktopCapturer, dialog, globalShortcut, inAppPurchase, ipcMain, ipcRenderer, nativeImage, nativeTheme, net, netLog, parentPort, powerMonitor, powerSaveBlocker, protocol, pushNotifications, safeStorage, screen, session, sharedTexture, shell, systemPreferences, utilityProcess, webContents, webFrame, webFrameMain, webUtils });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
export * from 'fix-path';
|
|
2
|
+
export { default } from 'fix-path';
|
package/shared/fix-path/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export * from 'fix-path';
|
|
2
|
+
export { default } from 'fix-path';
|
package/shared/electron/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('electron');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('electron-store');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('native-keymap');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|