@rabby-wallet/electron-chrome-extensions
Advanced tools
Comparing version 3.9.6 to 3.9.7
/// <reference types="chrome" /> | ||
import type { ExtensionEvent } from "./router"; | ||
declare type PromiseOrIt<T> = Promise<T> | T; | ||
/** App-specific implementation details for extensions. */ | ||
export interface ChromeExtensionImpl { | ||
createTab?(details: chrome.tabs.CreateProperties): Promise<[Electron.WebContents, Electron.BrowserWindow]>; | ||
createTab?(details: chrome.tabs.CreateProperties): PromiseOrIt<[Electron.WebContents, Electron.BrowserWindow]>; | ||
selectTab?(tab: Electron.WebContents, window: Electron.BrowserWindow): void; | ||
@@ -19,5 +20,6 @@ removeTab?(tab: Electron.WebContents, window: Electron.BrowserWindow): void; | ||
lastFocusedWindow: Electron.BrowserWindow | null; | ||
}) => Promise<Electron.BrowserWindow | null>; | ||
createWindow?(details: chrome.windows.CreateData): Promise<Electron.BrowserWindow>; | ||
}) => PromiseOrIt<Electron.BrowserWindow | null>; | ||
createWindow?(details: chrome.windows.CreateData): PromiseOrIt<Electron.BrowserWindow>; | ||
removeWindow?(window: Electron.BrowserWindow): void; | ||
} | ||
export {}; |
@@ -360,2 +360,7 @@ /******/ (() => { // webpackBootstrap | ||
create: invokeExtension('tabs.create'), | ||
/** | ||
* @see https://developer.chrome.com/docs/extensions/reference/tabs/#method-executeScript | ||
* @deprecated since chrome 91 | ||
*/ | ||
executeScript: function (arg1, arg2, arg3) { | ||
@@ -369,3 +374,3 @@ // Electron's implementation of chrome.tabs.executeScript is in | ||
active: true, | ||
windowId: chrome.windows.WINDOW_ID_CURRENT | ||
lastFocusedWindow: true | ||
}, ([activeTab]) => { | ||
@@ -372,0 +377,0 @@ api.executeScript(activeTab.id, arg1, arg2); |
{ | ||
"name": "@rabby-wallet/electron-chrome-extensions", | ||
"version": "3.9.6", | ||
"version": "3.9.7", | ||
"description": "Chrome extension support for Electron", | ||
@@ -83,3 +83,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7b3c63bcfe7479dd764551a588abaff245376c8c" | ||
"gitHead": "405959256a6752ecbda3f7fafda7f35656cd20bb" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
489185
5054