Skip to content

Commit

Permalink
chore: Bump electron@7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Nov 21, 2019
1 parent 37b4acc commit 2c46e2a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .yarnrc
@@ -1,3 +1,3 @@
disturl "https://atom.io/download/electron"
target "7.1.1"
target "7.1.2"
runtime "electron"
8 changes: 4 additions & 4 deletions cgmanifest.json
Expand Up @@ -6,7 +6,7 @@
"git": {
"name": "chromium",
"repositoryUrl": "https://chromium.googlesource.com/chromium/src",
"commitHash": "781f26334e1d55b2a6a264636dda90781f3b99ed"
"commitHash": "ec199aba849bfbf1e6169a881608b18e4bb6c74a"
}
},
"licenseDetail": [
Expand Down Expand Up @@ -40,7 +40,7 @@
"SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
],
"isOnlyProductionDependency": true,
"version": "78.0.3904.99"
"version": "78.0.3904.113"
},
{
"component": {
Expand All @@ -60,12 +60,12 @@
"git": {
"name": "electron",
"repositoryUrl": "https://github.com/electron/electron",
"commitHash": "a3c951b14bc9a73fdef417dfea8d590352d29755"
"commitHash": "e82f453f711fa661677ae2003313b7257b76bbf4"
}
},
"isOnlyProductionDependency": true,
"license": "MIT",
"version": "7.1.1"
"version": "7.1.2"
},
{
"component": {
Expand Down
110 changes: 50 additions & 60 deletions src/typings/electron.d.ts
@@ -1,4 +1,4 @@
// Type definitions for Electron 7.1.1
// Type definitions for Electron 7.1.2
// Project: http://electronjs.org/
// Definitions by: The Electron Team <https://github.com/electron/electron>
// Definitions: https://github.com/electron/electron-typescript-definitions
Expand Down Expand Up @@ -416,22 +416,22 @@ declare namespace Electron {
*/
on(event: 'login', listener: (event: Event,
webContents: WebContents,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
once(event: 'login', listener: (event: Event,
webContents: WebContents,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
addListener(event: 'login', listener: (event: Event,
webContents: WebContents,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
removeListener(event: 'login', listener: (event: Event,
webContents: WebContents,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
/**
Expand Down Expand Up @@ -5138,15 +5138,6 @@ declare namespace Electron {
* valid image.
*/
static createFromPath(path: string): NativeImage;
/**
* A `Boolean` property that determines whether the image is considered a template
* image.
Please note that this property only has an effect on macOS.
*
* @platform darwin
*/
static isMacTemplateImage: boolean;
/**
* Add an image representation for a specific scale factor. This can be used to
* explicitly add different scale factor representations to an image. This can be
Expand Down Expand Up @@ -5220,6 +5211,7 @@ declare namespace Electron {
* A Buffer that contains the image's `PNG` encoded data.
*/
toPNG(options?: ToPNGOptions): Buffer;
isMacTemplateImage: boolean;
}

interface NativeTheme extends NodeJS.EventEmitter {
Expand Down Expand Up @@ -5704,27 +5696,27 @@ declare namespace Electron {
* Intercepts `scheme` protocol and uses `handler` as the protocol's new handler
* which sends a `Buffer` as a response.
*/
interceptBufferProtocol(scheme: string, handler: (request: HandlerRequest, callback: (buffer?: Buffer) => void) => void, completion?: (error: Error) => void): void;
interceptBufferProtocol(scheme: string, handler: (request: Request, callback: (buffer?: Buffer) => void) => void, completion?: (error: Error) => void): void;
/**
* Intercepts `scheme` protocol and uses `handler` as the protocol's new handler
* which sends a file as a response.
*/
interceptFileProtocol(scheme: string, handler: (request: HandlerRequest, callback: (filePath: string) => void) => void, completion?: (error: Error) => void): void;
interceptFileProtocol(scheme: string, handler: (request: Request, callback: (filePath: string) => void) => void, completion?: (error: Error) => void): void;
/**
* Intercepts `scheme` protocol and uses `handler` as the protocol's new handler
* which sends a new HTTP request as a response.
*/
interceptHttpProtocol(scheme: string, handler: (request: HandlerRequest, callback: (redirectRequest: RedirectRequest) => void) => void, completion?: (error: Error) => void): void;
interceptHttpProtocol(scheme: string, handler: (request: Request, 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: HandlerRequest, callback: (stream?: (NodeJS.ReadableStream) | (StreamProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
interceptStreamProtocol(scheme: string, handler: (request: Request, callback: (stream?: (NodeJS.ReadableStream) | (StreamProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
/**
* Intercepts `scheme` protocol and uses `handler` as the protocol's new handler
* which sends a `String` as a response.
*/
interceptStringProtocol(scheme: string, handler: (request: HandlerRequest, callback: (data?: (string) | (StringProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
interceptStringProtocol(scheme: string, handler: (request: Request, callback: (data?: (string) | (StringProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
/**
* fulfilled with a boolean that indicates whether there is already a handler for
* `scheme`.
Expand All @@ -5739,7 +5731,7 @@ declare namespace Electron {
Example:
*/
registerBufferProtocol(scheme: string, handler: (request: HandlerRequest, callback: (buffer?: (Buffer) | (MimeTypedBuffer)) => void) => void, completion?: (error: Error) => void): void;
registerBufferProtocol(scheme: string, handler: (request: Request, callback: (buffer?: (Buffer) | (MimeTypedBuffer)) => void) => void, completion?: (error: Error) => void): void;
/**
* Registers a protocol of `scheme` that will send the file as a response. The
* `handler` will be called with `handler(request, callback)` when a `request` is
Expand All @@ -5761,7 +5753,7 @@ declare namespace Electron {
* By default the `scheme` is treated like `http:`, which is parsed differently
* than protocols that follow the "generic URI syntax" like `file:`.
*/
registerFileProtocol(scheme: string, handler: (request: HandlerRequest, callback: (filePath?: (string) | (FilePathWithHeaders)) => void) => void, completion?: (error: Error) => void): void;
registerFileProtocol(scheme: string, handler: (request: Request, callback: (filePath?: (string) | (FilePathWithHeaders)) => void) => void, completion?: (error: Error) => void): void;
/**
* Registers a protocol of `scheme` that will send an HTTP request as a response.
*
Expand All @@ -5774,7 +5766,7 @@ declare namespace Electron {
*
For POST requests the `uploadData` object must be provided.
*/
registerHttpProtocol(scheme: string, handler: (request: HandlerRequest, callback: (redirectRequest: RedirectRequest) => void) => void, completion?: (error: Error) => void): void;
registerHttpProtocol(scheme: string, handler: (request: Request, callback: (redirectRequest: RedirectRequest) => void) => void, completion?: (error: Error) => void): void;
/**
* **Note:** This method can only be used before the `ready` event of the `app`
* module gets emitted and can be called only once.
Expand Down Expand Up @@ -5828,15 +5820,15 @@ declare namespace Electron {
* 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: HandlerRequest, callback: (stream?: (NodeJS.ReadableStream) | (StreamProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
registerStreamProtocol(scheme: string, handler: (request: Request, callback: (stream?: (NodeJS.ReadableStream) | (StreamProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
/**
* 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 with either a `String` or an object that has the `data`,
* `mimeType`, and `charset` properties.
*/
registerStringProtocol(scheme: string, handler: (request: HandlerRequest, callback: (data?: (string) | (StringProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
registerStringProtocol(scheme: string, handler: (request: Request, callback: (data?: (string) | (StringProtocolResponse)) => void) => void, completion?: (error: Error) => void): void;
/**
* Remove the interceptor installed for `scheme` and restore its original handler.
*/
Expand Down Expand Up @@ -8413,19 +8405,19 @@ declare namespace Electron {
The usage is the same with the `login` event of `app`.
*/
on(event: 'login', listener: (event: Event,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
once(event: 'login', listener: (event: Event,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
addListener(event: 'login', listener: (event: Event,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
removeListener(event: 'login', listener: (event: Event,
request: Request,
authenticationResponseDetails: AuthenticationResponseDetails,
authInfo: AuthInfo,
callback: (username: string, password: string) => void) => void): this;
/**
Expand Down Expand Up @@ -9672,15 +9664,15 @@ declare namespace Electron {
*
The `callback` has to be called with a `response` object.
*/
onBeforeSendHeaders(filter: Filter, listener: ((details: OnBeforeSendHeadersListenerDetails, callback: (response: CallbackResponse) => void) => void) | (null)): void;
onBeforeSendHeaders(filter: Filter, listener: ((details: OnBeforeSendHeadersListenerDetails, callback: (beforeSendResponse: BeforeSendResponse) => void) => void) | (null)): void;
/**
* The `listener` will be called with `listener(details, callback)` before sending
* an HTTP request, once the request headers are available. This may occur after a
* TCP connection is made to the server, but before any http data is sent.
*
The `callback` has to be called with a `response` object.
*/
onBeforeSendHeaders(listener: ((details: OnBeforeSendHeadersListenerDetails, callback: (response: CallbackResponse) => void) => void) | (null)): void;
onBeforeSendHeaders(listener: ((details: OnBeforeSendHeadersListenerDetails, callback: (beforeSendResponse: BeforeSendResponse) => void) => void) | (null)): void;
/**
* The `listener` will be called with `listener(details)` when a request is
* completed.
Expand All @@ -9705,14 +9697,14 @@ declare namespace Electron {
*
The `callback` has to be called with a `response` object.
*/
onHeadersReceived(filter: Filter, listener: ((details: OnHeadersReceivedListenerDetails, callback: (response: OnHeadersReceivedListenerResponse) => void) => void) | (null)): void;
onHeadersReceived(filter: Filter, listener: ((details: OnHeadersReceivedListenerDetails, callback: (headersReceivedResponse: HeadersReceivedResponse) => void) => void) | (null)): void;
/**
* The `listener` will be called with `listener(details, callback)` when HTTP
* response headers of a request have been received.
*
The `callback` has to be called with a `response` object.
*/
onHeadersReceived(listener: ((details: OnHeadersReceivedListenerDetails, callback: (response: OnHeadersReceivedListenerResponse) => void) => void) | (null)): void;
onHeadersReceived(listener: ((details: OnHeadersReceivedListenerDetails, callback: (headersReceivedResponse: HeadersReceivedResponse) => void) => void) | (null)): void;
/**
* The `listener` will be called with `listener(details)` when first byte of the
* response body is received. For HTTP requests, this means that the status line
Expand Down Expand Up @@ -10446,6 +10438,10 @@ declare namespace Electron {
relaunchDisplayName?: string;
}

interface AuthenticationResponseDetails {
url: string;
}

interface AuthInfo {
isProxy: boolean;
scheme: string;
Expand Down Expand Up @@ -10477,6 +10473,14 @@ declare namespace Electron {
vertical?: boolean;
}

interface BeforeSendResponse {
cancel?: boolean;
/**
* When provided, request will be made with these headers.
*/
requestHeaders?: Record<string, (string) | (string[])>;
}

interface BitmapOptions {
/**
* Defaults to 1.0.
Expand Down Expand Up @@ -10738,14 +10742,6 @@ declare namespace Electron {
webPreferences?: WebPreferences;
}

interface CallbackResponse {
cancel?: boolean;
/**
* When provided, request will be made with these headers.
*/
requestHeaders?: Record<string, (string) | (string[])>;
}

interface CertificateTrustDialogOptions {
/**
* The certificate to trust/import.
Expand Down Expand Up @@ -11227,12 +11223,17 @@ declare namespace Electron {
cache: boolean;
}

interface HandlerRequest {
url: string;
headers: Record<string, string>;
referrer: string;
method: string;
uploadData: UploadData[];
interface HeadersReceivedResponse {
cancel?: boolean;
/**
* When provided, the server is assumed to have responded with these headers.
*/
responseHeaders?: Record<string, (string) | (string[])>;
/**
* Should be provided when overriding `responseHeaders` to change header status
* otherwise original response header's status will be used.
*/
statusLine?: string;
}

interface HeapStatistics {
Expand Down Expand Up @@ -11853,19 +11854,6 @@ declare namespace Electron {
responseHeaders?: Record<string, string>;
}

interface OnHeadersReceivedListenerResponse {
cancel?: boolean;
/**
* When provided, the server is assumed to have responded with these headers.
*/
responseHeaders?: Record<string, (string) | (string[])>;
/**
* Should be provided when overriding `responseHeaders` to change header status
* otherwise original response header's status will be used.
*/
statusLine?: string;
}

interface OnResponseStartedListenerDetails {
id: number;
url: string;
Expand Down Expand Up @@ -12212,9 +12200,11 @@ declare namespace Electron {
}

interface Request {
method: string;
url: string;
headers: Record<string, string>;
referrer: string;
method: string;
uploadData: UploadData[];
}

interface ResizeOptions {
Expand Down

0 comments on commit 2c46e2a

Please sign in to comment.