electron 2.0.6 → 2.0.8
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/cli.js +11 -0
- package/electron.d.ts +2 -1
- package/install.js +8 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -8,3 +8,14 @@ var child = proc.spawn(electron, process.argv.slice(2), {stdio: 'inherit'})
|
|
|
8
8
|
child.on('close', function (code) {
|
|
9
9
|
process.exit(code)
|
|
10
10
|
})
|
|
11
|
+
|
|
12
|
+
const handleTerminationSignal = function (signal) {
|
|
13
|
+
process.on(signal, function signalHandler () {
|
|
14
|
+
if (!child.killed) {
|
|
15
|
+
child.kill(signal)
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
handleTerminationSignal('SIGINT')
|
|
21
|
+
handleTerminationSignal('SIGTERM')
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 2.0.
|
|
1
|
+
// Type definitions for Electron 2.0.8
|
|
2
2
|
// Project: http://electron.atom.io/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
|
@@ -8104,6 +8104,7 @@ declare namespace Electron {
|
|
|
8104
8104
|
|
|
8105
8105
|
interface ResourceUsage {
|
|
8106
8106
|
images: MemoryUsageDetails;
|
|
8107
|
+
scripts: MemoryUsageDetails;
|
|
8107
8108
|
cssStyleSheets: MemoryUsageDetails;
|
|
8108
8109
|
xslStyleSheets: MemoryUsageDetails;
|
|
8109
8110
|
fonts: MemoryUsageDetails;
|
package/install.js
CHANGED
|
@@ -21,6 +21,12 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, platformP
|
|
|
21
21
|
process.exit(0)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
var mirror
|
|
25
|
+
|
|
26
|
+
if (version.indexOf('nightly') !== -1) {
|
|
27
|
+
mirror = 'https://github.com/electron/nightlies/releases/download/v'
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
// downloads if not cached
|
|
25
31
|
download({
|
|
26
32
|
cache: process.env.electron_config_cache,
|
|
@@ -29,7 +35,8 @@ download({
|
|
|
29
35
|
arch: process.env.npm_config_arch,
|
|
30
36
|
strictSSL: process.env.npm_config_strict_ssl === 'true',
|
|
31
37
|
force: process.env.force_no_cache === 'true',
|
|
32
|
-
quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI
|
|
38
|
+
quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI,
|
|
39
|
+
mirror
|
|
33
40
|
}, extractFile)
|
|
34
41
|
|
|
35
42
|
// unzips and makes path.txt point at the correct executable
|
package/package.json
CHANGED