updated npm to update package-lock.json
This commit is contained in:
parent
bff854f493
commit
a9e08b4451
46
node_modules/electron/README.md
generated
vendored
46
node_modules/electron/README.md
generated
vendored
|
@ -1,16 +1,17 @@
|
||||||
[![Electron Logo](https://electron.atom.io/images/electron-logo.svg)](https://electron.atom.io/)
|
[![Electron Logo](https://electronjs.org/images/electron-logo.svg)](https://electronjs.org)
|
||||||
|
|
||||||
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
[![Travis Build Status](https://travis-ci.org/electron/electron.svg?branch=master)](https://travis-ci.org/electron/electron)
|
||||||
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/bc56v83355fi3369/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/electron/branch/master)
|
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/bc56v83355fi3369/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/electron/branch/master)
|
||||||
[![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev)
|
[![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev)
|
||||||
[![Join the Electron Community on Slack](http://atom-slack.herokuapp.com/badge.svg)](http://atom-slack.herokuapp.com/)
|
[![Join the Electron Community on Slack](https://atom-slack.herokuapp.com/badge.svg)](https://atom-slack.herokuapp.com/)
|
||||||
|
|
||||||
:memo: Available Translations: [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR/project/README.md) | [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN/project/README.md) | [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR/project/README.md) | [Traditional Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-TW/project/README.md) | [Spanish](https://github.com/electron/electron/tree/master/docs-translations/es/project/README.md) | [Turkish](https://github.com/electron/electron/tree/master/docs-translations/tr-TR/project/README.md) | [German](https://github.com/electron/electron/tree/master/docs-translations/de-DE/project/README.md)
|
:memo: Available Translations: 🇨🇳 🇹🇼 🇧🇷 🇪🇸 🇰🇷 🇯🇵 🇷🇺 🇫🇷 🇹🇭 🇳🇱 🇹🇷 🇮🇩 🇺🇦 🇨🇿 🇮🇹.
|
||||||
|
View these docs in other languages at [electron/electron-i18n](https://github.com/electron/electron-i18n/tree/master/content/).
|
||||||
|
|
||||||
The Electron framework lets you write cross-platform desktop applications
|
The Electron framework lets you write cross-platform desktop applications
|
||||||
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
using JavaScript, HTML and CSS. It is based on [Node.js](https://nodejs.org/) and
|
||||||
[Chromium](http://www.chromium.org) and is used by the [Atom
|
[Chromium](https://www.chromium.org) and is used by the [Atom
|
||||||
editor](https://github.com/atom/atom) and many other [apps](https://electron.atom.io/apps).
|
editor](https://github.com/atom/atom) and many other [apps](https://electronjs.org/apps).
|
||||||
|
|
||||||
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
|
Follow [@ElectronJS](https://twitter.com/electronjs) on Twitter for important
|
||||||
announcements.
|
announcements.
|
||||||
|
@ -32,29 +33,29 @@ npm install electron --save-dev --save-exact
|
||||||
|
|
||||||
The `--save-exact` flag is recommended as Electron does not follow semantic
|
The `--save-exact` flag is recommended as Electron does not follow semantic
|
||||||
versioning. For info on how to manage Electron versions in your apps, see
|
versioning. For info on how to manage Electron versions in your apps, see
|
||||||
[Electron versioning](https://electron.atom.io/docs/tutorial/electron-versioning/).
|
[Electron versioning](https://electronjs.org/docs/tutorial/electron-versioning).
|
||||||
|
|
||||||
For more installation options and troubleshooting tips, see
|
For more installation options and troubleshooting tips, see
|
||||||
[installation](https://electron.atom.io/docs/tutorial/installation/).
|
[installation](https://electronjs.org/docs/tutorial/installation).
|
||||||
|
|
||||||
## Quick Start
|
## Quick start
|
||||||
|
|
||||||
Clone and run the
|
Clone and run the
|
||||||
[electron/electron-quick-start](https://github.com/electron/electron-quick-start)
|
[electron/electron-quick-start](https://github.com/electron/electron-quick-start)
|
||||||
repository to see a minimal Electron app in action:
|
repository to see a minimal Electron app in action:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
git clone https://github.com/electron/electron-quick-start
|
git clone https://github.com/electron/electron-quick-start
|
||||||
cd electron-quick-start
|
cd electron-quick-start
|
||||||
npm install
|
npm install
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
## Resources for Learning Electron
|
## Resources for learning Electron
|
||||||
|
|
||||||
- [electron.atom.io/docs](http://electron.atom.io/docs) - all of Electron's documentation
|
- [electronjs.org/docs](https://electronjs.org/docs) - all of Electron's documentation
|
||||||
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
|
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
|
||||||
- [electron.atom.io/community/#boilerplates](http://electron.atom.io/community/#boilerplates) - sample starter apps created by the community
|
- [electronjs.org/community#boilerplates](https://electronjs.org/community#boilerplates) - sample starter apps created by the community
|
||||||
- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
|
- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
|
||||||
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
|
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
|
||||||
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
|
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
|
||||||
|
@ -82,32 +83,21 @@ const child = proc.spawn(electron)
|
||||||
|
|
||||||
## Documentation Translations
|
## Documentation Translations
|
||||||
|
|
||||||
- [Brazilian Portuguese](https://github.com/electron/electron/tree/master/docs-translations/pt-BR)
|
Find documentation translations in [electron/electron-i18n](https://github.com/electron/electron-i18n).
|
||||||
- [Korean](https://github.com/electron/electron/tree/master/docs-translations/ko-KR)
|
|
||||||
- [Japanese](https://github.com/electron/electron/tree/master/docs-translations/jp)
|
|
||||||
- [Spanish](https://github.com/electron/electron/tree/master/docs-translations/es)
|
|
||||||
- [Simplified Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-CN)
|
|
||||||
- [Traditional Chinese](https://github.com/electron/electron/tree/master/docs-translations/zh-TW)
|
|
||||||
- [Turkish](https://github.com/electron/electron/tree/master/docs-translations/tr-TR)
|
|
||||||
- [Thai](https://github.com/electron/electron/tree/master/docs-translations/th-TH)
|
|
||||||
- [Ukrainian](https://github.com/electron/electron/tree/master/docs-translations/uk-UA)
|
|
||||||
- [Russian](https://github.com/electron/electron/tree/master/docs-translations/ru-RU)
|
|
||||||
- [French](https://github.com/electron/electron/tree/master/docs-translations/fr-FR)
|
|
||||||
- [Indonesian](https://github.com/electron/electron/tree/master/docs-translations/id)
|
|
||||||
|
|
||||||
## Community
|
## Community
|
||||||
|
|
||||||
You can ask questions and interact with the community in the following
|
You can ask questions and interact with the community in the following
|
||||||
locations:
|
locations:
|
||||||
- [`electron`](http://discuss.atom.io/c/electron) category on the Atom
|
- [`electron`](https://discuss.atom.io/c/electron) category on the Atom
|
||||||
forums
|
forums
|
||||||
- `#atom-shell` channel on Freenode
|
- `#atom-shell` channel on Freenode
|
||||||
- [`Atom`](http://atom-slack.herokuapp.com/) channel on Slack
|
- [`Atom`](https://atom-slack.herokuapp.com) channel on Slack
|
||||||
- [`electron-ru`](https://telegram.me/electron_ru) *(Russian)*
|
- [`electron-ru`](https://telegram.me/electron_ru) *(Russian)*
|
||||||
- [`electron-br`](https://electron-br.slack.com) *(Brazilian Portuguese)*
|
- [`electron-br`](https://electron-br.slack.com) *(Brazilian Portuguese)*
|
||||||
- [`electron-kr`](http://www.meetup.com/electron-kr/) *(Korean)*
|
- [`electron-kr`](https://electron-kr.github.io/electron-kr) *(Korean)*
|
||||||
- [`electron-jp`](https://electron-jp.slack.com) *(Japanese)*
|
- [`electron-jp`](https://electron-jp.slack.com) *(Japanese)*
|
||||||
- [`electron-tr`](http://electron-tr.herokuapp.com) *(Turkish)*
|
- [`electron-tr`](https://electron-tr.herokuapp.com) *(Turkish)*
|
||||||
- [`electron-id`](https://electron-id.slack.com) *(Indonesia)*
|
- [`electron-id`](https://electron-id.slack.com) *(Indonesia)*
|
||||||
|
|
||||||
Check out [awesome-electron](https://github.com/sindresorhus/awesome-electron)
|
Check out [awesome-electron](https://github.com/sindresorhus/awesome-electron)
|
||||||
|
|
BIN
node_modules/electron/dist/electron.exe
generated
vendored
BIN
node_modules/electron/dist/electron.exe
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/ffmpeg.dll
generated
vendored
BIN
node_modules/electron/dist/ffmpeg.dll
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/libEGL.dll
generated
vendored
BIN
node_modules/electron/dist/libEGL.dll
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/libGLESv2.dll
generated
vendored
BIN
node_modules/electron/dist/libGLESv2.dll
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/node.dll
generated
vendored
BIN
node_modules/electron/dist/node.dll
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/resources/default_app.asar
generated
vendored
BIN
node_modules/electron/dist/resources/default_app.asar
generated
vendored
Binary file not shown.
BIN
node_modules/electron/dist/resources/electron.asar
generated
vendored
BIN
node_modules/electron/dist/resources/electron.asar
generated
vendored
Binary file not shown.
2
node_modules/electron/dist/version
generated
vendored
2
node_modules/electron/dist/version
generated
vendored
|
@ -1 +1 @@
|
||||||
v1.8.1
|
v1.8.2-beta.4
|
279
node_modules/electron/electron.d.ts
generated
vendored
279
node_modules/electron/electron.d.ts
generated
vendored
|
@ -1,4 +1,4 @@
|
||||||
// Type definitions for Electron 1.8.1
|
// Type definitions for Electron 1.8.2-beta.4
|
||||||
// Project: http://electron.atom.io/
|
// Project: http://electron.atom.io/
|
||||||
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
||||||
// Definitions: https://github.com/electron/electron-typescript-definitions
|
// Definitions: https://github.com/electron/electron-typescript-definitions
|
||||||
|
@ -966,6 +966,8 @@ declare namespace Electron {
|
||||||
|
|
||||||
constructor(options?: BrowserViewConstructorOptions);
|
constructor(options?: BrowserViewConstructorOptions);
|
||||||
static fromId(id: number): BrowserView;
|
static fromId(id: number): BrowserView;
|
||||||
|
static fromWebContents(webContents: WebContents): BrowserView | null;
|
||||||
|
static getAllViews(): BrowserView[];
|
||||||
setAutoResize(options: AutoResizeOptions): void;
|
setAutoResize(options: AutoResizeOptions): void;
|
||||||
setBackgroundColor(color: string): void;
|
setBackgroundColor(color: string): void;
|
||||||
/**
|
/**
|
||||||
|
@ -1237,6 +1239,7 @@ declare namespace Electron {
|
||||||
* This API cannot be called before the ready event of the app module is emitted.
|
* This API cannot be called before the ready event of the app module is emitted.
|
||||||
*/
|
*/
|
||||||
static addExtension(path: string): void;
|
static addExtension(path: string): void;
|
||||||
|
static fromBrowserView(browserView: BrowserView): BrowserWindow | null;
|
||||||
static fromId(id: number): BrowserWindow;
|
static fromId(id: number): BrowserWindow;
|
||||||
static fromWebContents(webContents: WebContents): BrowserWindow;
|
static fromWebContents(webContents: WebContents): BrowserWindow;
|
||||||
static getAllWindows(): BrowserWindow[];
|
static getAllWindows(): BrowserWindow[];
|
||||||
|
@ -1261,6 +1264,10 @@ declare namespace Electron {
|
||||||
* ready event of the app module is emitted.
|
* ready event of the app module is emitted.
|
||||||
*/
|
*/
|
||||||
static removeExtension(name: string): void;
|
static removeExtension(name: string): void;
|
||||||
|
/**
|
||||||
|
* Adds a window as a tab on this window, after the tab for the window instance.
|
||||||
|
*/
|
||||||
|
addTabbedWindow(browserWindow: BrowserWindow): void;
|
||||||
/**
|
/**
|
||||||
* Removes focus from the window.
|
* Removes focus from the window.
|
||||||
*/
|
*/
|
||||||
|
@ -1304,6 +1311,11 @@ declare namespace Electron {
|
||||||
focus(): void;
|
focus(): void;
|
||||||
focusOnWebView(): void;
|
focusOnWebView(): void;
|
||||||
getBounds(): Rectangle;
|
getBounds(): Rectangle;
|
||||||
|
/**
|
||||||
|
* Note: The BrowserView API is currently experimental and may change or be removed
|
||||||
|
* in future Electron releases.
|
||||||
|
*/
|
||||||
|
getBrowserView(): BrowserView | null;
|
||||||
getChildWindows(): BrowserWindow[];
|
getChildWindows(): BrowserWindow[];
|
||||||
getContentBounds(): Rectangle;
|
getContentBounds(): Rectangle;
|
||||||
getContentSize(): number[];
|
getContentSize(): number[];
|
||||||
|
@ -1314,6 +1326,7 @@ declare namespace Electron {
|
||||||
* (unsigned long) on Linux.
|
* (unsigned long) on Linux.
|
||||||
*/
|
*/
|
||||||
getNativeWindowHandle(): Buffer;
|
getNativeWindowHandle(): Buffer;
|
||||||
|
getOpacity(): number;
|
||||||
getParentWindow(): BrowserWindow;
|
getParentWindow(): BrowserWindow;
|
||||||
getPosition(): number[];
|
getPosition(): number[];
|
||||||
getRepresentedFilename(): string;
|
getRepresentedFilename(): string;
|
||||||
|
@ -1463,10 +1476,6 @@ declare namespace Electron {
|
||||||
* Resizes and moves the window to the supplied bounds
|
* Resizes and moves the window to the supplied bounds
|
||||||
*/
|
*/
|
||||||
setBounds(bounds: Rectangle, animate?: boolean): void;
|
setBounds(bounds: Rectangle, animate?: boolean): void;
|
||||||
/**
|
|
||||||
* Note: The BrowserView API is currently experimental and may change or be removed
|
|
||||||
* in future Electron releases.
|
|
||||||
*/
|
|
||||||
setBrowserView(browserView: BrowserView): void;
|
setBrowserView(browserView: BrowserView): void;
|
||||||
/**
|
/**
|
||||||
* Sets whether the window can be manually closed by user. On Linux does nothing.
|
* Sets whether the window can be manually closed by user. On Linux does nothing.
|
||||||
|
@ -1555,6 +1564,10 @@ declare namespace Electron {
|
||||||
* Sets whether the window can be moved by user. On Linux does nothing.
|
* Sets whether the window can be moved by user. On Linux does nothing.
|
||||||
*/
|
*/
|
||||||
setMovable(movable: boolean): void;
|
setMovable(movable: boolean): void;
|
||||||
|
/**
|
||||||
|
* Sets the opacity of the window. On Linux does nothing.
|
||||||
|
*/
|
||||||
|
setOpacity(opacity: number): void;
|
||||||
/**
|
/**
|
||||||
* Sets a 16 x 16 pixel overlay onto the current taskbar icon, usually used to
|
* Sets a 16 x 16 pixel overlay onto the current taskbar icon, usually used to
|
||||||
* convey some sort of application status or to passively notify the user.
|
* convey some sort of application status or to passively notify the user.
|
||||||
|
@ -1901,7 +1914,7 @@ declare namespace Electron {
|
||||||
* An object representing the HTTP response message.
|
* An object representing the HTTP response message.
|
||||||
*/
|
*/
|
||||||
response: IncomingMessage) => void): this;
|
response: IncomingMessage) => void): this;
|
||||||
constructor(options: any | string);
|
constructor(options: 'method' | 'url' | 'session' | 'partition' | 'protocol' | 'host' | 'hostname' | 'port' | 'path' | 'redirect');
|
||||||
/**
|
/**
|
||||||
* Cancels an ongoing HTTP transaction. If the request has already emitted the
|
* Cancels an ongoing HTTP transaction. If the request has already emitted the
|
||||||
* close event, the abort operation will have no effect. Otherwise an ongoing event
|
* close event, the abort operation will have no effect. Otherwise an ongoing event
|
||||||
|
@ -2206,7 +2219,7 @@ declare namespace Electron {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of average idle cpu wakeups per second since the last call to
|
* The number of average idle cpu wakeups per second since the last call to
|
||||||
* getCPUUsage. First call returns 0.
|
* getCPUUsage. First call returns 0. Will always return 0 on Windows.
|
||||||
*/
|
*/
|
||||||
idleWakeupsPerSecond: number;
|
idleWakeupsPerSecond: number;
|
||||||
/**
|
/**
|
||||||
|
@ -2227,11 +2240,23 @@ declare namespace Electron {
|
||||||
|
|
||||||
// Docs: http://electron.atom.io/docs/api/crash-reporter
|
// Docs: http://electron.atom.io/docs/api/crash-reporter
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set an extra parameter to be sent with the crash report. The values specified
|
||||||
|
* here will be sent in addition to any values set via the extra option when start
|
||||||
|
* was called. This API is only available on macOS, if you need to add/update extra
|
||||||
|
* parameters on Linux and Windows after your first call to start you can call
|
||||||
|
* start again with the updated extra options.
|
||||||
|
*/
|
||||||
|
addExtraParameter(key: string, value: string): void;
|
||||||
/**
|
/**
|
||||||
* Returns the date and ID of the last crash report. If no crash reports have been
|
* Returns the date and ID of the last crash report. If no crash reports have been
|
||||||
* sent or the crash reporter has not been started, null is returned.
|
* sent or the crash reporter has not been started, null is returned.
|
||||||
*/
|
*/
|
||||||
getLastCrashReport(): CrashReport;
|
getLastCrashReport(): CrashReport;
|
||||||
|
/**
|
||||||
|
* See all of the current parameters being passed to the crash reporter.
|
||||||
|
*/
|
||||||
|
getParameters(): void;
|
||||||
/**
|
/**
|
||||||
* Returns all uploaded crash reports. Each report contains the date and uploaded
|
* Returns all uploaded crash reports. Each report contains the date and uploaded
|
||||||
* ID.
|
* ID.
|
||||||
|
@ -2242,13 +2267,10 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
getUploadToServer(): boolean;
|
getUploadToServer(): boolean;
|
||||||
/**
|
/**
|
||||||
* Set an extra parameter to be sent with the crash report. The values specified
|
* Remove a extra parameter from the current set of parameters so that it will not
|
||||||
* here will be sent in addition to any values set via the extra option when start
|
* be sent with the crash report.
|
||||||
* was called. This API is only available on macOS, if you need to add/update extra
|
|
||||||
* parameters on Linux and Windows after your first call to start you can call
|
|
||||||
* start again with the updated extra options.
|
|
||||||
*/
|
*/
|
||||||
setExtraParameter(key: string, value: string): void;
|
removeExtraParameter(key: string): void;
|
||||||
/**
|
/**
|
||||||
* This would normally be controlled by user preferences. This has no effect if
|
* This would normally be controlled by user preferences. This has no effect if
|
||||||
* called before start is called. Note: This API can only be called from the main
|
* called before start is called. Note: This API can only be called from the main
|
||||||
|
@ -2560,10 +2582,7 @@ declare namespace Electron {
|
||||||
* Cancels the download operation.
|
* Cancels the download operation.
|
||||||
*/
|
*/
|
||||||
cancel(): void;
|
cancel(): void;
|
||||||
/**
|
canResume(): boolean;
|
||||||
* Resumes Boolean - Whether the download can resume.
|
|
||||||
*/
|
|
||||||
canResume(): void;
|
|
||||||
getContentDisposition(): string;
|
getContentDisposition(): string;
|
||||||
getETag(): string;
|
getETag(): string;
|
||||||
/**
|
/**
|
||||||
|
@ -2858,6 +2877,10 @@ declare namespace Electron {
|
||||||
* renderer process, unless you know what you are doing you should never use it.
|
* renderer process, unless you know what you are doing you should never use it.
|
||||||
*/
|
*/
|
||||||
sendSync(channel: string, ...args: any[]): any;
|
sendSync(channel: string, ...args: any[]): any;
|
||||||
|
/**
|
||||||
|
* Sends a message to a window with windowid via channel
|
||||||
|
*/
|
||||||
|
sendTo(windowId: number, channel: string, ...args: any[]): void;
|
||||||
/**
|
/**
|
||||||
* Like ipcRenderer.send but the event will be sent to the <webview> element in the
|
* Like ipcRenderer.send but the event will be sent to the <webview> element in the
|
||||||
* host page instead of the main process.
|
* host page instead of the main process.
|
||||||
|
@ -2984,7 +3007,7 @@ declare namespace Electron {
|
||||||
* Note: The returned Menu instance doesn't support dynamic addition or removal of
|
* Note: The returned Menu instance doesn't support dynamic addition or removal of
|
||||||
* menu items. Instance properties can still be dynamically modified.
|
* menu items. Instance properties can still be dynamically modified.
|
||||||
*/
|
*/
|
||||||
static getApplicationMenu(): Menu;
|
static getApplicationMenu(): Menu | null;
|
||||||
/**
|
/**
|
||||||
* Sends the action to the first responder of application. This is used for
|
* Sends the action to the first responder of application. This is used for
|
||||||
* emulating default macOS menu behaviors. Usually you would just use the role
|
* emulating default macOS menu behaviors. Usually you would just use the role
|
||||||
|
@ -2998,7 +3021,7 @@ declare namespace Electron {
|
||||||
* Windows and Linux but has no effect on macOS. Note: This API has to be called
|
* Windows and Linux but has no effect on macOS. Note: This API has to be called
|
||||||
* after the ready event of app module.
|
* after the ready event of app module.
|
||||||
*/
|
*/
|
||||||
static setApplicationMenu(menu: Menu): void;
|
static setApplicationMenu(menu: Menu | null): void;
|
||||||
/**
|
/**
|
||||||
* Appends the menuItem to the menu.
|
* Appends the menuItem to the menu.
|
||||||
*/
|
*/
|
||||||
|
@ -3061,6 +3084,13 @@ declare namespace Electron {
|
||||||
* Creates a new NativeImage instance from dataURL.
|
* Creates a new NativeImage instance from dataURL.
|
||||||
*/
|
*/
|
||||||
static createFromDataURL(dataURL: string): NativeImage;
|
static createFromDataURL(dataURL: string): NativeImage;
|
||||||
|
/**
|
||||||
|
* Creates a new NativeImage instance from the NSImage that maps to the given image
|
||||||
|
* name. See NSImageName for a list of possible values. The hslShift is applied to
|
||||||
|
* the image with the following rules This means that [-1, 0, 1] will make the
|
||||||
|
* image completely white and [-1, 1, 0] will make the image completely black.
|
||||||
|
*/
|
||||||
|
static createFromNamedImage(imageName: string, hslShift: number[]): NativeImage;
|
||||||
/**
|
/**
|
||||||
* Creates a new NativeImage instance from a file located at path. This method
|
* Creates a new NativeImage instance from a file located at path. This method
|
||||||
* returns an empty image if the path does not exist, cannot be read, or is not a
|
* returns an empty image if the path does not exist, cannot be read, or is not a
|
||||||
|
@ -3151,7 +3181,7 @@ declare namespace Electron {
|
||||||
removeListener(event: 'click', listener: (event: Event) => void): this;
|
removeListener(event: 'click', listener: (event: Event) => void): this;
|
||||||
/**
|
/**
|
||||||
* Emitted when the notification is closed by manual intervention from the user.
|
* Emitted when the notification is closed by manual intervention from the user.
|
||||||
* This event is not guarunteed to be emitted in all cases where the notification
|
* This event is not guaranteed to be emitted in all cases where the notification
|
||||||
* is closed.
|
* is closed.
|
||||||
*/
|
*/
|
||||||
on(event: 'close', listener: (event: Event) => void): this;
|
on(event: 'close', listener: (event: Event) => void): this;
|
||||||
|
@ -3193,11 +3223,17 @@ declare namespace Electron {
|
||||||
removeListener(event: 'show', listener: (event: Event) => void): this;
|
removeListener(event: 'show', listener: (event: Event) => void): this;
|
||||||
constructor(options: NotificationConstructorOptions);
|
constructor(options: NotificationConstructorOptions);
|
||||||
static isSupported(): boolean;
|
static isSupported(): boolean;
|
||||||
|
/**
|
||||||
|
* Dismisses the notification.
|
||||||
|
*/
|
||||||
|
close(): void;
|
||||||
/**
|
/**
|
||||||
* Immediately shows the notification to the user, please note this means unlike
|
* Immediately shows the notification to the user, please note this means unlike
|
||||||
* the HTML5 Notification implementation, simply instantiating a new Notification
|
* the HTML5 Notification implementation, simply instantiating a new Notification
|
||||||
* does not immediately show it to the user, you need to call this method before
|
* does not immediately show it to the user, you need to call this method before
|
||||||
* the OS will display it.
|
* the OS will display it. If the notification has been shown before, this method
|
||||||
|
* will dismiss the previously shown notification and create a new one with
|
||||||
|
* identical properties.
|
||||||
*/
|
*/
|
||||||
show(): void;
|
show(): void;
|
||||||
}
|
}
|
||||||
|
@ -3331,6 +3367,11 @@ declare namespace Electron {
|
||||||
* sends a new HTTP request as a response.
|
* sends a new HTTP request as a response.
|
||||||
*/
|
*/
|
||||||
interceptHttpProtocol(scheme: string, handler: (request: InterceptHttpProtocolRequest, callback: (redirectRequest: RedirectRequest) => void) => void, completion?: (error: Error) => void): void;
|
interceptHttpProtocol(scheme: string, handler: (request: InterceptHttpProtocolRequest, callback: (redirectRequest: RedirectRequest) => void) => void, completion?: (error: Error) => void): void;
|
||||||
|
/**
|
||||||
|
* Same as protocol.registerStreamProtocol, except that it replaces an existing
|
||||||
|
* protocol handler.
|
||||||
|
*/
|
||||||
|
interceptStreamProtocol(scheme: string, handler: (request: InterceptStreamProtocolRequest, callback: (stream?: ReadableStream | StreamProtocolResponse) => void) => void, completion?: (error: Error) => void): void;
|
||||||
/**
|
/**
|
||||||
* Intercepts scheme protocol and uses handler as the protocol's new handler which
|
* Intercepts scheme protocol and uses handler as the protocol's new handler which
|
||||||
* sends a String as a response.
|
* sends a String as a response.
|
||||||
|
@ -3391,6 +3432,15 @@ declare namespace Electron {
|
||||||
* the ready event of the app module gets emitted.
|
* the ready event of the app module gets emitted.
|
||||||
*/
|
*/
|
||||||
registerStandardSchemes(schemes: string[], options?: RegisterStandardSchemesOptions): void;
|
registerStandardSchemes(schemes: string[], options?: RegisterStandardSchemesOptions): void;
|
||||||
|
/**
|
||||||
|
* Registers a protocol of scheme that will send a Readable as a response. The
|
||||||
|
* usage is similar to the other register{Any}Protocol, except that the callback
|
||||||
|
* should be called with either a Readable object or an object that has the data,
|
||||||
|
* statusCode, and headers properties. Example: It is possible to pass any object
|
||||||
|
* that implements the readable stream API (emits data/end/error events). For
|
||||||
|
* example, here's how a file could be returned:
|
||||||
|
*/
|
||||||
|
registerStreamProtocol(scheme: string, handler: (request: RegisterStreamProtocolRequest, callback: (stream?: ReadableStream | StreamProtocolResponse) => void) => void, completion?: (error: Error) => void): void;
|
||||||
/**
|
/**
|
||||||
* Registers a protocol of scheme that will send a String as a response. The usage
|
* Registers a protocol of scheme that will send a String as a response. The usage
|
||||||
* is the same with registerFileProtocol, except that the callback should be called
|
* is the same with registerFileProtocol, except that the callback should be called
|
||||||
|
@ -3684,9 +3734,9 @@ declare namespace Electron {
|
||||||
/**
|
/**
|
||||||
* Sets the handler which can be used to respond to permission requests for the
|
* Sets the handler which can be used to respond to permission requests for the
|
||||||
* session. Calling callback(true) will allow the permission and callback(false)
|
* session. Calling callback(true) will allow the permission and callback(false)
|
||||||
* will reject it.
|
* will reject it. To clear the handler, call setPermissionRequestHandler(null).
|
||||||
*/
|
*/
|
||||||
setPermissionRequestHandler(handler: (webContents: WebContents, permission: string, callback: (permissionGranted: boolean) => void) => void): void;
|
setPermissionRequestHandler(handler: (webContents: WebContents, permission: string, callback: (permissionGranted: boolean) => void) => void | null): void;
|
||||||
/**
|
/**
|
||||||
* Sets the proxy settings. When pacScript and proxyRules are provided together,
|
* Sets the proxy settings. When pacScript and proxyRules are provided together,
|
||||||
* the proxyRules option is ignored and pacScript configuration is applied. The
|
* the proxyRules option is ignored and pacScript configuration is applied. The
|
||||||
|
@ -3791,6 +3841,24 @@ declare namespace Electron {
|
||||||
width: number;
|
width: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface StreamProtocolResponse {
|
||||||
|
|
||||||
|
// Docs: http://electron.atom.io/docs/api/structures/stream-protocol-response
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A Node.js readable stream representing the response body
|
||||||
|
*/
|
||||||
|
data: ReadableStream;
|
||||||
|
/**
|
||||||
|
* An object containing the response headers
|
||||||
|
*/
|
||||||
|
headers: Headers;
|
||||||
|
/**
|
||||||
|
* The HTTP response code
|
||||||
|
*/
|
||||||
|
statusCode: number;
|
||||||
|
}
|
||||||
|
|
||||||
interface SystemPreferences extends EventEmitter {
|
interface SystemPreferences extends EventEmitter {
|
||||||
|
|
||||||
// Docs: http://electron.atom.io/docs/api/system-preferences
|
// Docs: http://electron.atom.io/docs/api/system-preferences
|
||||||
|
@ -3846,7 +3914,7 @@ declare namespace Electron {
|
||||||
getAccentColor(): string;
|
getAccentColor(): string;
|
||||||
getColor(color: '3d-dark-shadow' | '3d-face' | '3d-highlight' | '3d-light' | '3d-shadow' | 'active-border' | 'active-caption' | 'active-caption-gradient' | 'app-workspace' | 'button-text' | 'caption-text' | 'desktop' | 'disabled-text' | 'highlight' | 'highlight-text' | 'hotlight' | 'inactive-border' | 'inactive-caption' | 'inactive-caption-gradient' | 'inactive-caption-text' | 'info-background' | 'info-text' | 'menu' | 'menu-highlight' | 'menubar' | 'menu-text' | 'scrollbar' | 'window' | 'window-frame' | 'window-text'): string;
|
getColor(color: '3d-dark-shadow' | '3d-face' | '3d-highlight' | '3d-light' | '3d-shadow' | 'active-border' | 'active-caption' | 'active-caption-gradient' | 'app-workspace' | 'button-text' | 'caption-text' | 'desktop' | 'disabled-text' | 'highlight' | 'highlight-text' | 'hotlight' | 'inactive-border' | 'inactive-caption' | 'inactive-caption-gradient' | 'inactive-caption-text' | 'info-background' | 'info-text' | 'menu' | 'menu-highlight' | 'menubar' | 'menu-text' | 'scrollbar' | 'window' | 'window-frame' | 'window-text'): string;
|
||||||
/**
|
/**
|
||||||
* This API uses NSUserDefaults on macOS. Some popular key and types are:
|
* Some popular key and types are:
|
||||||
*/
|
*/
|
||||||
getUserDefault(key: string, type: 'string' | 'boolean' | 'integer' | 'float' | 'double' | 'url' | 'array' | 'dictionary'): any;
|
getUserDefault(key: string, type: 'string' | 'boolean' | 'integer' | 'float' | 'double' | 'url' | 'array' | 'dictionary'): any;
|
||||||
/**
|
/**
|
||||||
|
@ -3868,9 +3936,13 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
postNotification(event: string, userInfo: any): void;
|
postNotification(event: string, userInfo: any): void;
|
||||||
/**
|
/**
|
||||||
* Set the value of key in system preferences. Note that type should match actual
|
* Removes the key in NSUserDefaults. This can be used to restore the default or
|
||||||
* type of value. An exception is thrown if they don't. This API uses
|
* global value of a key previously set with setUserDefault.
|
||||||
* NSUserDefaults on macOS. Some popular key and types are:
|
*/
|
||||||
|
removeUserDefault(key: string): void;
|
||||||
|
/**
|
||||||
|
* Set the value of key in NSUserDefaults. Note that type should match actual type
|
||||||
|
* of value. An exception is thrown if they don't. Some popular key and types are:
|
||||||
*/
|
*/
|
||||||
setUserDefault(key: string, type: string, value: string): void;
|
setUserDefault(key: string, type: string, value: string): void;
|
||||||
/**
|
/**
|
||||||
|
@ -4088,22 +4160,38 @@ declare namespace Electron {
|
||||||
/**
|
/**
|
||||||
* The bounds of tray icon
|
* The bounds of tray icon
|
||||||
*/
|
*/
|
||||||
bounds: Rectangle) => void): this;
|
bounds: Rectangle,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
once(event: 'click', listener: (event: Event,
|
once(event: 'click', listener: (event: Event,
|
||||||
/**
|
/**
|
||||||
* The bounds of tray icon
|
* The bounds of tray icon
|
||||||
*/
|
*/
|
||||||
bounds: Rectangle) => void): this;
|
bounds: Rectangle,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
addListener(event: 'click', listener: (event: Event,
|
addListener(event: 'click', listener: (event: Event,
|
||||||
/**
|
/**
|
||||||
* The bounds of tray icon
|
* The bounds of tray icon
|
||||||
*/
|
*/
|
||||||
bounds: Rectangle) => void): this;
|
bounds: Rectangle,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
removeListener(event: 'click', listener: (event: Event,
|
removeListener(event: 'click', listener: (event: Event,
|
||||||
/**
|
/**
|
||||||
* The bounds of tray icon
|
* The bounds of tray icon
|
||||||
*/
|
*/
|
||||||
bounds: Rectangle) => void): this;
|
bounds: Rectangle,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
/**
|
/**
|
||||||
* Emitted when the tray icon is double clicked.
|
* Emitted when the tray icon is double clicked.
|
||||||
*/
|
*/
|
||||||
|
@ -4247,6 +4335,29 @@ declare namespace Electron {
|
||||||
* The position of the event
|
* The position of the event
|
||||||
*/
|
*/
|
||||||
position: Point) => void): this;
|
position: Point) => void): this;
|
||||||
|
/**
|
||||||
|
* Emitted when the mouse moves in the tray icon.
|
||||||
|
*/
|
||||||
|
on(event: 'mouse-move', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
|
once(event: 'mouse-move', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
|
addListener(event: 'mouse-move', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
|
removeListener(event: 'mouse-move', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The position of the event
|
||||||
|
*/
|
||||||
|
position: Point) => void): this;
|
||||||
/**
|
/**
|
||||||
* Emitted when the tray icon is right clicked.
|
* Emitted when the tray icon is right clicked.
|
||||||
*/
|
*/
|
||||||
|
@ -4484,6 +4595,26 @@ declare namespace Electron {
|
||||||
error: string,
|
error: string,
|
||||||
certificate: Certificate,
|
certificate: Certificate,
|
||||||
callback: (isTrusted: boolean) => void) => void): this;
|
callback: (isTrusted: boolean) => void) => void): this;
|
||||||
|
/**
|
||||||
|
* Emitted when the associated window logs a console message. Will not be emitted
|
||||||
|
* for windows with offscreen rendering enabled.
|
||||||
|
*/
|
||||||
|
on(event: 'console-message', listener: (level: number,
|
||||||
|
message: string,
|
||||||
|
line: number,
|
||||||
|
sourceId: string) => void): this;
|
||||||
|
once(event: 'console-message', listener: (level: number,
|
||||||
|
message: string,
|
||||||
|
line: number,
|
||||||
|
sourceId: string) => void): this;
|
||||||
|
addListener(event: 'console-message', listener: (level: number,
|
||||||
|
message: string,
|
||||||
|
line: number,
|
||||||
|
sourceId: string) => void): this;
|
||||||
|
removeListener(event: 'console-message', listener: (level: number,
|
||||||
|
message: string,
|
||||||
|
line: number,
|
||||||
|
sourceId: string) => void): this;
|
||||||
/**
|
/**
|
||||||
* Emitted when there is a new context menu that needs to be handled.
|
* Emitted when there is a new context menu that needs to be handled.
|
||||||
*/
|
*/
|
||||||
|
@ -4613,6 +4744,29 @@ declare namespace Electron {
|
||||||
once(event: 'devtools-reload-page', listener: Function): this;
|
once(event: 'devtools-reload-page', listener: Function): this;
|
||||||
addListener(event: 'devtools-reload-page', listener: Function): this;
|
addListener(event: 'devtools-reload-page', listener: Function): this;
|
||||||
removeListener(event: 'devtools-reload-page', listener: Function): this;
|
removeListener(event: 'devtools-reload-page', listener: Function): this;
|
||||||
|
/**
|
||||||
|
* Emitted when a <webview> has been attached to this web contents.
|
||||||
|
*/
|
||||||
|
on(event: 'did-attach-webview', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The guest web contents that is used by the `<webview>`.
|
||||||
|
*/
|
||||||
|
webContents: WebContents) => void): this;
|
||||||
|
once(event: 'did-attach-webview', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The guest web contents that is used by the `<webview>`.
|
||||||
|
*/
|
||||||
|
webContents: WebContents) => void): this;
|
||||||
|
addListener(event: 'did-attach-webview', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The guest web contents that is used by the `<webview>`.
|
||||||
|
*/
|
||||||
|
webContents: WebContents) => void): this;
|
||||||
|
removeListener(event: 'did-attach-webview', listener: (event: Event,
|
||||||
|
/**
|
||||||
|
* The guest web contents that is used by the `<webview>`.
|
||||||
|
*/
|
||||||
|
webContents: WebContents) => void): this;
|
||||||
/**
|
/**
|
||||||
* Emitted when a page's theme color changes. This is usually due to encountering a
|
* Emitted when a page's theme color changes. This is usually due to encountering a
|
||||||
* meta tag:
|
* meta tag:
|
||||||
|
@ -5222,11 +5376,10 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): Promise<any>;
|
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): Promise<any>;
|
||||||
/**
|
/**
|
||||||
* Starts a request to find all matches for the text in the web page and returns an
|
* Starts a request to find all matches for the text in the web page. The result of
|
||||||
* Integer representing the request id used for the request. The result of the
|
* the request can be obtained by subscribing to found-in-page event.
|
||||||
* request can be obtained by subscribing to found-in-page event.
|
|
||||||
*/
|
*/
|
||||||
findInPage(text: string, options?: FindInPageOptions): void;
|
findInPage(text: string, options?: FindInPageOptions): number;
|
||||||
/**
|
/**
|
||||||
* Focuses the web page.
|
* Focuses the web page.
|
||||||
*/
|
*/
|
||||||
|
@ -5848,6 +6001,10 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
addEventListener(event: 'devtools-focused', listener: (event: Event) => void, useCapture?: boolean): this;
|
addEventListener(event: 'devtools-focused', listener: (event: Event) => void, useCapture?: boolean): this;
|
||||||
removeEventListener(event: 'devtools-focused', listener: (event: Event) => void): this;
|
removeEventListener(event: 'devtools-focused', listener: (event: Event) => void): this;
|
||||||
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
|
||||||
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||||
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, useCapture?: boolean): void;
|
||||||
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||||
canGoBack(): boolean;
|
canGoBack(): boolean;
|
||||||
canGoForward(): boolean;
|
canGoForward(): boolean;
|
||||||
canGoToOffset(offset: number): boolean;
|
canGoToOffset(offset: number): boolean;
|
||||||
|
@ -5888,11 +6045,10 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): void;
|
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): void;
|
||||||
/**
|
/**
|
||||||
* Starts a request to find all matches for the text in the web page and returns an
|
* Starts a request to find all matches for the text in the web page. The result of
|
||||||
* Integer representing the request id used for the request. The result of the
|
* the request can be obtained by subscribing to found-in-page event.
|
||||||
* request can be obtained by subscribing to found-in-page event.
|
|
||||||
*/
|
*/
|
||||||
findInPage(text: string, options?: FindInPageOptions): void;
|
findInPage(text: string, options?: FindInPageOptions): number;
|
||||||
getTitle(): string;
|
getTitle(): string;
|
||||||
getURL(): string;
|
getURL(): string;
|
||||||
getUserAgent(): string;
|
getUserAgent(): string;
|
||||||
|
@ -6392,7 +6548,7 @@ declare namespace Electron {
|
||||||
*/
|
*/
|
||||||
enableLargerThanScreen?: boolean;
|
enableLargerThanScreen?: boolean;
|
||||||
/**
|
/**
|
||||||
* Window's background color as Hexadecimal value, like #66CD00 or #FFF or
|
* Window's background color as a hexadecimal value, like #66CD00 or #FFF or
|
||||||
* #80FFFFFF (alpha is supported). Default is #FFF (white).
|
* #80FFFFFF (alpha is supported). Default is #FFF (white).
|
||||||
*/
|
*/
|
||||||
backgroundColor?: string;
|
backgroundColor?: string;
|
||||||
|
@ -6401,6 +6557,11 @@ declare namespace Electron {
|
||||||
* is true.
|
* is true.
|
||||||
*/
|
*/
|
||||||
hasShadow?: boolean;
|
hasShadow?: boolean;
|
||||||
|
/**
|
||||||
|
* Set the initial opacity of the window, between 0.0 (fully transparent) and 1.0
|
||||||
|
* (fully opaque). This is only implemented on Windows and macOS.
|
||||||
|
*/
|
||||||
|
opacity?: number;
|
||||||
/**
|
/**
|
||||||
* Forces using dark theme for the window, only works on some GTK+3 desktop
|
* Forces using dark theme for the window, only works on some GTK+3 desktop
|
||||||
* environments. Default is false.
|
* environments. Default is false.
|
||||||
|
@ -6473,7 +6634,11 @@ declare namespace Electron {
|
||||||
/**
|
/**
|
||||||
* Verification result from chromium.
|
* Verification result from chromium.
|
||||||
*/
|
*/
|
||||||
error: string;
|
verificationResult: string;
|
||||||
|
/**
|
||||||
|
* Error code.
|
||||||
|
*/
|
||||||
|
errorCode: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ClearStorageDataOptions {
|
interface ClearStorageDataOptions {
|
||||||
|
@ -6781,8 +6946,8 @@ declare namespace Electron {
|
||||||
|
|
||||||
interface DisplayBalloonOptions {
|
interface DisplayBalloonOptions {
|
||||||
icon?: NativeImage | string;
|
icon?: NativeImage | string;
|
||||||
title?: string;
|
title: string;
|
||||||
content?: string;
|
content: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Dock {
|
interface Dock {
|
||||||
|
@ -6922,6 +7087,9 @@ declare namespace Electron {
|
||||||
name: string;
|
name: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface Headers {
|
||||||
|
}
|
||||||
|
|
||||||
interface IgnoreMouseEventsOptions {
|
interface IgnoreMouseEventsOptions {
|
||||||
/**
|
/**
|
||||||
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
* If true, forwards mouse move messages to Chromium, enabling mouse related events
|
||||||
|
@ -6998,6 +7166,14 @@ declare namespace Electron {
|
||||||
uploadData: UploadData[];
|
uploadData: UploadData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface InterceptStreamProtocolRequest {
|
||||||
|
url: string;
|
||||||
|
headers: Headers;
|
||||||
|
referrer: string;
|
||||||
|
method: string;
|
||||||
|
uploadData: UploadData[];
|
||||||
|
}
|
||||||
|
|
||||||
interface InterceptStringProtocolRequest {
|
interface InterceptStringProtocolRequest {
|
||||||
url: string;
|
url: string;
|
||||||
referrer: string;
|
referrer: string;
|
||||||
|
@ -7254,7 +7430,7 @@ declare namespace Electron {
|
||||||
/**
|
/**
|
||||||
* An icon to use in the notification
|
* An icon to use in the notification
|
||||||
*/
|
*/
|
||||||
icon?: NativeImage;
|
icon?: string | NativeImage;
|
||||||
/**
|
/**
|
||||||
* Whether or not to add an inline reply option to the notification.
|
* Whether or not to add an inline reply option to the notification.
|
||||||
*/
|
*/
|
||||||
|
@ -7647,6 +7823,14 @@ declare namespace Electron {
|
||||||
secure?: boolean;
|
secure?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface RegisterStreamProtocolRequest {
|
||||||
|
url: string;
|
||||||
|
headers: Headers;
|
||||||
|
referrer: string;
|
||||||
|
method: string;
|
||||||
|
uploadData: UploadData[];
|
||||||
|
}
|
||||||
|
|
||||||
interface RegisterStringProtocolRequest {
|
interface RegisterStringProtocolRequest {
|
||||||
url: string;
|
url: string;
|
||||||
referrer: string;
|
referrer: string;
|
||||||
|
@ -7901,7 +8085,7 @@ declare namespace Electron {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TouchBarConstructorOptions {
|
interface TouchBarConstructorOptions {
|
||||||
items: TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer;
|
items: Array<TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer>;
|
||||||
escapeItem?: TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer;
|
escapeItem?: TouchBarButton | TouchBarColorPicker | TouchBarGroup | TouchBarLabel | TouchBarPopover | TouchBarScrubber | TouchBarSegmentedControl | TouchBarSlider | TouchBarSpacer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8102,9 +8286,6 @@ declare namespace Electron {
|
||||||
finalUpdate: boolean;
|
finalUpdate: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Headers {
|
|
||||||
}
|
|
||||||
|
|
||||||
interface MediaFlags {
|
interface MediaFlags {
|
||||||
/**
|
/**
|
||||||
* Whether the media element has crashed.
|
* Whether the media element has crashed.
|
||||||
|
@ -8287,7 +8468,7 @@ declare namespace Electron {
|
||||||
defaultEncoding?: string;
|
defaultEncoding?: string;
|
||||||
/**
|
/**
|
||||||
* Whether to throttle animations and timers when the page becomes background. This
|
* Whether to throttle animations and timers when the page becomes background. This
|
||||||
* also affects the [Page Visibility API][#page-visibility]. Defaults to true.
|
* also affects the . Defaults to true.
|
||||||
*/
|
*/
|
||||||
backgroundThrottling?: boolean;
|
backgroundThrottling?: boolean;
|
||||||
/**
|
/**
|
||||||
|
|
5
node_modules/electron/install.js
generated
vendored
5
node_modules/electron/install.js
generated
vendored
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
// maintainer note - x.y.z-ab version in package.json -> x.y.z
|
var version = require('./package').version
|
||||||
var version = require('./package').version.replace(/-.*/, '')
|
|
||||||
|
|
||||||
var fs = require('fs')
|
var fs = require('fs')
|
||||||
var os = require('os')
|
var os = require('os')
|
||||||
|
@ -30,7 +29,7 @@ download({
|
||||||
arch: process.env.npm_config_arch,
|
arch: process.env.npm_config_arch,
|
||||||
strictSSL: process.env.npm_config_strict_ssl === 'true',
|
strictSSL: process.env.npm_config_strict_ssl === 'true',
|
||||||
force: process.env.force_no_cache === 'true',
|
force: process.env.force_no_cache === 'true',
|
||||||
quiet: ['info', 'verbose', 'silly', 'http'].indexOf(process.env.npm_config_loglevel) === -1
|
quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI
|
||||||
}, extractFile)
|
}, extractFile)
|
||||||
|
|
||||||
// unzips and makes path.txt point at the correct executable
|
// unzips and makes path.txt point at the correct executable
|
||||||
|
|
23
node_modules/electron/package.json
generated
vendored
23
node_modules/electron/package.json
generated
vendored
|
@ -1,27 +1,26 @@
|
||||||
{
|
{
|
||||||
"_from": "electron@1.8.1",
|
"_from": "electron@^1.8.2-beta.4",
|
||||||
"_id": "electron@1.8.1",
|
"_id": "electron@1.8.2-beta.4",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha1-GbbznyAT4gSpGmC8MIbcekoH7Yg=",
|
"_integrity": "sha1-GDayBO6s6dx3Bi7Ugg/bxsvZoZU=",
|
||||||
"_location": "/electron",
|
"_location": "/electron",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "range",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "electron@1.8.1",
|
"raw": "electron@^1.8.2-beta.4",
|
||||||
"name": "electron",
|
"name": "electron",
|
||||||
"escapedName": "electron",
|
"escapedName": "electron",
|
||||||
"rawSpec": "1.8.1",
|
"rawSpec": "^1.8.2-beta.4",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "1.8.1"
|
"fetchSpec": "^1.8.2-beta.4"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"#USER",
|
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/electron/-/electron-1.8.1.tgz",
|
"_resolved": "https://registry.npmjs.org/electron/-/electron-1.8.2-beta.4.tgz",
|
||||||
"_shasum": "19b6f39f2013e204a91a60bc3086dc7a4a07ed88",
|
"_shasum": "1836b204eeace9dc77062ed4820fdbc6cbd9a195",
|
||||||
"_spec": "electron@1.8.1",
|
"_spec": "electron@^1.8.2-beta.4",
|
||||||
"_where": "C:\\Users\\Katy\\documentit",
|
"_where": "C:\\Users\\Katy\\documentit",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Electron Community"
|
"name": "Electron Community"
|
||||||
|
@ -66,5 +65,5 @@
|
||||||
"test": "standard"
|
"test": "standard"
|
||||||
},
|
},
|
||||||
"types": "electron.d.ts",
|
"types": "electron.d.ts",
|
||||||
"version": "1.8.1"
|
"version": "1.8.2-beta.4"
|
||||||
}
|
}
|
||||||
|
|
125
package-lock.json
generated
125
package-lock.json
generated
|
@ -246,6 +246,15 @@
|
||||||
"resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz",
|
||||||
"integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A=="
|
"integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A=="
|
||||||
},
|
},
|
||||||
|
"cli": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=",
|
||||||
|
"requires": {
|
||||||
|
"exit": "0.1.2",
|
||||||
|
"glob": "7.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"cli-cursor": {
|
"cli-cursor": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
|
||||||
|
@ -334,6 +343,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"console-browserify": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz",
|
||||||
|
"integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=",
|
||||||
|
"requires": {
|
||||||
|
"date-now": "0.1.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"core-util-is": {
|
"core-util-is": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
||||||
|
@ -383,6 +400,11 @@
|
||||||
"assert-plus": "1.0.0"
|
"assert-plus": "1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"date-now": {
|
||||||
|
"version": "0.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
|
||||||
|
"integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs="
|
||||||
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"version": "2.6.9",
|
"version": "2.6.9",
|
||||||
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||||
|
@ -433,6 +455,49 @@
|
||||||
"esutils": "2.0.2"
|
"esutils": "2.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"dom-serializer": {
|
||||||
|
"version": "0.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz",
|
||||||
|
"integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=",
|
||||||
|
"requires": {
|
||||||
|
"domelementtype": "1.1.3",
|
||||||
|
"entities": "1.1.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"domelementtype": {
|
||||||
|
"version": "1.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz",
|
||||||
|
"integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs="
|
||||||
|
},
|
||||||
|
"entities": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz",
|
||||||
|
"integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"domelementtype": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz",
|
||||||
|
"integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI="
|
||||||
|
},
|
||||||
|
"domhandler": {
|
||||||
|
"version": "2.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz",
|
||||||
|
"integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=",
|
||||||
|
"requires": {
|
||||||
|
"domelementtype": "1.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"domutils": {
|
||||||
|
"version": "1.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
|
||||||
|
"integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=",
|
||||||
|
"requires": {
|
||||||
|
"dom-serializer": "0.1.0",
|
||||||
|
"domelementtype": "1.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ecc-jsbn": {
|
"ecc-jsbn": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
|
||||||
|
@ -443,9 +508,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"electron": {
|
"electron": {
|
||||||
"version": "1.8.1",
|
"version": "1.8.2-beta.4",
|
||||||
"resolved": "https://registry.npmjs.org/electron/-/electron-1.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/electron/-/electron-1.8.2-beta.4.tgz",
|
||||||
"integrity": "sha1-GbbznyAT4gSpGmC8MIbcekoH7Yg=",
|
"integrity": "sha1-GDayBO6s6dx3Bi7Ugg/bxsvZoZU=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/node": "8.5.9",
|
"@types/node": "8.5.9",
|
||||||
"electron-download": "3.3.0",
|
"electron-download": "3.3.0",
|
||||||
|
@ -468,6 +533,11 @@
|
||||||
"sumchecker": "1.3.1"
|
"sumchecker": "1.3.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"entities": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY="
|
||||||
|
},
|
||||||
"error-ex": {
|
"error-ex": {
|
||||||
"version": "1.3.1",
|
"version": "1.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz",
|
||||||
|
@ -621,6 +691,11 @@
|
||||||
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
|
||||||
"integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs="
|
"integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs="
|
||||||
},
|
},
|
||||||
|
"exit": {
|
||||||
|
"version": "0.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
|
||||||
|
"integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw="
|
||||||
|
},
|
||||||
"extend": {
|
"extend": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
|
||||||
|
@ -851,6 +926,18 @@
|
||||||
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
|
||||||
"integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg=="
|
"integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg=="
|
||||||
},
|
},
|
||||||
|
"htmlparser2": {
|
||||||
|
"version": "3.8.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz",
|
||||||
|
"integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=",
|
||||||
|
"requires": {
|
||||||
|
"domelementtype": "1.3.0",
|
||||||
|
"domhandler": "2.3.0",
|
||||||
|
"domutils": "1.5.1",
|
||||||
|
"entities": "1.0.0",
|
||||||
|
"readable-stream": "1.1.14"
|
||||||
|
}
|
||||||
|
},
|
||||||
"http-signature": {
|
"http-signature": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
|
||||||
|
@ -1058,6 +1145,33 @@
|
||||||
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
|
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
|
"jshint": {
|
||||||
|
"version": "2.9.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.5.tgz",
|
||||||
|
"integrity": "sha1-HnJSkVzmgbQIJ+4UJIxG006apiw=",
|
||||||
|
"requires": {
|
||||||
|
"cli": "1.0.1",
|
||||||
|
"console-browserify": "1.1.0",
|
||||||
|
"exit": "0.1.2",
|
||||||
|
"htmlparser2": "3.8.3",
|
||||||
|
"lodash": "3.7.0",
|
||||||
|
"minimatch": "3.0.4",
|
||||||
|
"shelljs": "0.3.0",
|
||||||
|
"strip-json-comments": "1.0.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"lodash": {
|
||||||
|
"version": "3.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lodash/-/lodash-3.7.0.tgz",
|
||||||
|
"integrity": "sha1-Nni9irmVBXwHreg27S7wh9qBHUU="
|
||||||
|
},
|
||||||
|
"strip-json-comments": {
|
||||||
|
"version": "1.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz",
|
||||||
|
"integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"json-schema": {
|
"json-schema": {
|
||||||
"version": "0.2.3",
|
"version": "0.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
|
||||||
|
@ -1590,6 +1704,11 @@
|
||||||
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
|
||||||
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
|
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
|
||||||
},
|
},
|
||||||
|
"shelljs": {
|
||||||
|
"version": "0.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz",
|
||||||
|
"integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E="
|
||||||
|
},
|
||||||
"signal-exit": {
|
"signal-exit": {
|
||||||
"version": "3.0.2",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
"description": "tool for documenting online harassment",
|
"description": "tool for documenting online harassment",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"electron": "^1.8.1",
|
"electron": "^1.8.2-beta.4",
|
||||||
"eslint": "^4.15.0"
|
"eslint": "^4.15.0",
|
||||||
|
"jshint": "^2.9.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user