electron 12.0.0 → 12.0.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.
Files changed (2) hide show
  1. package/electron.d.ts +4 -5
  2. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 12.0.0
1
+ // Type definitions for Electron 12.0.1
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -2221,7 +2221,7 @@ Calling `event.preventDefault()` will prevent the menu from being displayed.
2221
2221
  * Resolves with a NativeImage
2222
2222
  *
2223
2223
  * Captures a snapshot of the page within `rect`. Omitting `rect` will capture the
2224
- * whole visible page.
2224
+ * whole visible page. If the page is not visible, `rect` may be empty.
2225
2225
  */
2226
2226
  capturePage(rect?: Rectangle): Promise<Electron.NativeImage>;
2227
2227
  /**
@@ -14862,7 +14862,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
14862
14862
  offscreen?: boolean;
14863
14863
  /**
14864
14864
  * Whether to run Electron APIs and the specified `preload` script in a separate
14865
- * JavaScript context. Defaults to `false`. The context that the `preload` script
14865
+ * JavaScript context. Defaults to `true`. The context that the `preload` script
14866
14866
  * runs in will only have access to its own dedicated `document` and `window`
14867
14867
  * globals, as well as its own set of JavaScript builtins (`Array`, `Object`,
14868
14868
  * `JSON`, etc.), which are all invisible to the loaded content. The Electron API
@@ -14878,8 +14878,7 @@ See webContents.sendInputEvent for detailed description of `event` object.
14878
14878
  /**
14879
14879
  * If true, values returned from `webFrame.executeJavaScript` will be sanitized to
14880
14880
  * ensure JS values can't unsafely cross between worlds when using
14881
- * `contextIsolation`. The default is `false`. In Electron 12, the default will be
14882
- * changed to `true`. _Deprecated_
14881
+ * `contextIsolation`. Defaults to `true`. _Deprecated_
14883
14882
  */
14884
14883
  worldSafeExecuteJavaScript?: boolean;
14885
14884
  /**
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "node": ">= 8.6"
17
17
  },
18
18
  "name": "electron",
19
- "version": "12.0.0",
19
+ "version": "12.0.1",
20
20
  "repository": "https://github.com/electron/electron",
21
21
  "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
22
22
  "license": "MIT",