@theia/electron 1.22.0 → 1.22.1

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.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 Ericsson and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ /**
18
+ * Currently installed Electron version. `undefined` if Electron is not installed nor found.
19
+ */
20
+ export const electronVersion: string | undefined;
21
+
22
+ /**
23
+ * Supported Electron version range.
24
+ */
25
+ export const electronRange: string;
package/index.js ADDED
@@ -0,0 +1,27 @@
1
+ /********************************************************************************
2
+ * Copyright (C) 2021 Ericsson and others.
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Eclipse Public License v. 2.0 which is available at
6
+ * http://www.eclipse.org/legal/epl-2.0.
7
+ *
8
+ * This Source Code may also be made available under the following Secondary
9
+ * Licenses when the conditions for such availability set forth in the Eclipse
10
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ * with the GNU Classpath Exception which is available at
12
+ * https://www.gnu.org/software/classpath/license.html.
13
+ *
14
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
+ ********************************************************************************/
16
+
17
+ Object.defineProperty(exports, '__esModule', { value: true });
18
+ exports.electronRange = require('./package.json').peerDependencies.electron;
19
+ try {
20
+ exports.electronVersion = require('electron/package.json').version;
21
+ } catch (error) {
22
+ if (error.code === 'MODULE_NOT_FOUND') {
23
+ exports.electronVersion = undefined;
24
+ } else {
25
+ throw error;
26
+ }
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/electron",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Theia - Electron utility package",
5
5
  "dependencies": {
6
6
  "@electron/remote": "^2.0.1",
@@ -9,8 +9,8 @@
9
9
  "native-keymap": "^2.2.1"
10
10
  },
11
11
  "devDependencies": {
12
- "@theia/ext-scripts": "1.22.0",
13
- "@theia/re-exports": "1.22.0"
12
+ "@theia/ext-scripts": "1.22.1",
13
+ "@theia/re-exports": "1.22.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "electron": "^15.3.5"
@@ -46,11 +46,12 @@
46
46
  },
47
47
  "homepage": "https://github.com/eclipse-theia/theia",
48
48
  "files": [
49
- "lib",
50
- "src"
49
+ "index.d.ts",
50
+ "index.js",
51
+ "shared"
51
52
  ],
52
53
  "scripts": {
53
- "generate-theia-re-exports": "theia-re-exports generate && theia-re-exports template README.in.md > README.md",
54
+ "generate-theia-re-exports": "theia-re-exports generate && theia-re-exports template README_TEMPLATE.md > README.md",
54
55
  "prepare": "yarn -s generate-theia-re-exports",
55
56
  "lint": "echo skip || theiaext lint",
56
57
  "build": "echo skip || theiaext build",
@@ -62,5 +63,5 @@
62
63
  "nyc": {
63
64
  "extends": "../../configs/nyc.json"
64
65
  },
65
- "gitHead": "84cfe06b4b10720cc9915bc6e2f091a2b09b1087"
66
+ "gitHead": "49910aeaecf520a54b253db0215b28c2268bb2f3"
66
67
  }
@@ -0,0 +1 @@
1
+ export * from '@electron/remote';
@@ -0,0 +1 @@
1
+ module.exports = require('@electron/remote');
@@ -0,0 +1 @@
1
+ export * from '@electron/remote/main';
@@ -0,0 +1 @@
1
+ module.exports = require('@electron/remote/main');
@@ -0,0 +1,2 @@
1
+ import Electron = require('electron');
2
+ export = Electron;
@@ -0,0 +1 @@
1
+ module.exports = require('electron');
@@ -0,0 +1,2 @@
1
+ import ElectronStore = require('electron-store');
2
+ export = ElectronStore;
@@ -0,0 +1 @@
1
+ module.exports = require('electron-store');
@@ -0,0 +1,2 @@
1
+ import fixPath = require('fix-path');
2
+ export = fixPath;
@@ -0,0 +1 @@
1
+ module.exports = require('fix-path');
@@ -0,0 +1 @@
1
+ export * from 'native-keymap';
@@ -0,0 +1 @@
1
+ module.exports = require('native-keymap');
package/README.in.md DELETED
@@ -1,41 +0,0 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - ELECTRON EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/electron` extension bundles all Electron-specific dependencies and core functionalities.
16
-
17
- ## Re-Exports
18
-
19
- {{#reExportsDirectories}}
20
- - `@theia/electron/{{&directory}}/...`
21
- {{#packages}}
22
- {{#modules}}
23
- - `{{&moduleName}}` (from [`{{&packageName}}@{{&versionRange}}`]({{&npmUrl}}))
24
- {{/modules}}
25
- {{/packages}}
26
- {{/reExportsDirectories}}
27
-
28
- ## Additional Information
29
-
30
- - [API documentation for `@theia/electron`](https://eclipse-theia.github.io/theia/docs/next/modules/electron.html)
31
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
32
- - [Theia - Website](https://theia-ide.org/)
33
-
34
- ## License
35
-
36
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
37
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
38
-
39
- ## Trademark
40
- "Theia" is a trademark of the Eclipse Foundation
41
- https://www.eclipse.org/theia