Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webextension-polyfill-ts

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webextension-polyfill-ts - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

4

lib/bookmarks.d.ts

@@ -201,6 +201,2 @@ /**

interface OnChildrenReorderedReorderInfoType {
childIds: string[];
}
interface Static {

@@ -207,0 +203,0 @@

@@ -88,8 +88,2 @@ /**

/**
* Set to undefined if the resource content was set successfully; describes error otherwise.
*/
interface ResourceSetContentCallbackErrorType {
}
interface Static {

@@ -96,0 +90,0 @@

2

lib/events.d.ts

@@ -203,3 +203,3 @@ /**

*/
ports?: number | [number, number];
ports?: Array<number | [number, number]>;
}

@@ -206,0 +206,0 @@

@@ -23,36 +23,2 @@ /**

interface GetAuthTokenDetailsType {
/**
* Optional.
*/
interactive?: boolean;
/**
* Optional.
*/
account?: AccountInfo;
/**
* Optional.
*/
scopes?: string[];
}
interface GetProfileUserInfoCallbackUserinfoType {
email: string;
id: string;
}
interface RemoveCachedAuthTokenDetailsType {
token: string;
}
interface RemoveCachedAuthTokenCallbackUserinfoType {
email: string;
id: string;
}
interface LaunchWebAuthFlowDetailsType {

@@ -59,0 +25,0 @@ url: Manifest.HttpURL;

@@ -331,3 +331,3 @@ /**

*/
menuIds: undefined[];
menuIds: Array<number | string>;

@@ -334,0 +334,0 @@ /**

@@ -179,20 +179,2 @@ /**

interface CreateNotificationOptionsButtonsItemType {
title: string;
/**
* Optional.
*/
iconUrl?: string;
}
interface UpdateNotificationOptionsButtonsItemType {
title: string;
/**
* Optional.
*/
iconUrl?: string;
}
interface Static {

@@ -199,0 +181,0 @@

@@ -54,54 +54,2 @@ /**

/**
* The style ranges for the description, as provided by the extension.
*/
interface SuggestResultDescriptionStylesItemType {
offset: number;
/**
* The style type
*/
type: DescriptionStyleType;
/**
* Optional.
*/
length?: number;
}
/**
* The style ranges for the description, as provided by ToValue().
*/
interface SuggestResultDescriptionStylesRawItemType {
offset: number;
type: number;
}
/**
* The style ranges for the description, as provided by the extension.
*/
interface DefaultSuggestResultDescriptionStylesItemType {
offset: number;
/**
* The style type
*/
type: DescriptionStyleType;
/**
* Optional.
*/
length?: number;
}
/**
* The style ranges for the description, as provided by ToValue().
*/
interface DefaultSuggestResultDescriptionStylesRawItemType {
offset: number;
type: number;
}
interface Static {

@@ -108,0 +56,0 @@

@@ -148,13 +148,2 @@ /**

/**
* If an update is available, this contains more information about the available update.
*/
interface RequestUpdateCheckCallbackDetailsType {
/**
* The version of the available update.
*/
version: string;
}
interface ConnectConnectInfoType {

@@ -161,0 +150,0 @@

@@ -47,3 +47,3 @@ /**

*/
set(items: StorageAreaSetItemsType): Promise<void>;
set(items: {[s:string] : any}): Promise<void>;

@@ -72,5 +72,5 @@ /**

* @param keys Optional. A single key to get, list of keys to get, or a dictionary specifying default values (see description of the object). An empty list or object will return an empty result object. Pass in <code>null</code> to get the entire contents of storage.
* @returns Promise<StorageAreaSyncGetCallbackItemsType> Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).
* @returns Promise<{[s:string] : any}> Callback with storage items, or on failure (in which case $(ref:runtime.lastError) will be set).
*/
get(keys?: string | string[] | StorageAreaSyncGetKeysC3Type): Promise<StorageAreaSyncGetCallbackItemsType>;
get(keys?: null | string | string[] | {[s:string] : any}): Promise<{[s:string] : any}>;

@@ -83,3 +83,3 @@ /**

*/
getBytesInUse(keys?: string | string[]): Promise<number>;
getBytesInUse(keys?: null | string | string[]): Promise<number>;

@@ -92,3 +92,3 @@ /**

*/
set(items: StorageAreaSyncSetItemsType): Promise<void>;
set(items: {[s:string] : any}): Promise<void>;

@@ -155,26 +155,2 @@ /**

/**
* <p>An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.</p><p>Primitive values such as numbers will serialize as expected. Values with a <code>typeof</code> <code>"object"</code> and <code>"function"</code> will typically serialize to <code>{}</code>, with the exception of <code>Array</code> (serializes as expected), <code>Date</code>, and <code>Regex</code> (serialize using their <code>String</code> representation).</p>
*/
interface StorageAreaSetItemsType {
}
/**
* Storage items to return in the callback, where the values are replaced with those from storage if they exist.
*/
interface StorageAreaSyncGetKeysC3Type {
}
/**
* Object with items in their key-value mappings.
*/
interface StorageAreaSyncGetCallbackItemsType {
}
/**
* <p>An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.</p><p>Primitive values such as numbers will serialize as expected. Values with a <code>typeof</code> <code>"object"</code> and <code>"function"</code> will typically serialize to <code>{}</code>, with the exception of <code>Array</code> (serializes as expected), <code>Date</code>, and <code>Regex</code> (serialize using their <code>String</code> representation).</p>
*/
interface StorageAreaSyncSetItemsType {
}
interface Static {

@@ -181,0 +157,0 @@

@@ -899,18 +899,2 @@ /**

interface OnSelectionChangedSelectInfoType {
/**
* The ID of the window the selected tab changed inside of.
*/
windowId: number;
}
interface OnActiveChangedSelectInfoType {
/**
* The ID of the window the selected tab changed inside of.
*/
windowId: number;
}
interface OnActivatedActiveInfoType {

@@ -935,15 +919,2 @@

interface OnHighlightChangedSelectInfoType {
/**
* The window whose tabs changed.
*/
windowId: number;
/**
* All highlighted tabs in the window.
*/
tabIds: number[];
}
interface OnHighlightedHighlightInfoType {

@@ -1116,2 +1087,9 @@

/**
* Warm up a tab
*
* @param tabId The ID of the tab to warm up.
*/
warmup(tabId: number): void;
/**
* Closes one or more tabs.

@@ -1118,0 +1096,0 @@ *

@@ -173,8 +173,2 @@ /**

/**
* If true, the new window will be focused. If false, the new window will be opened in the background and the currently focused window will stay focused. Defaults to true.
* Optional.
*/
focused?: boolean;
/**
* Whether the new window should be an incognito window.

@@ -214,2 +208,8 @@ * Optional.

titlePreface?: string;
/**
* If true, the new window will be focused. If false, the new window will be opened in the background and the currently focused window will stay focused. Defaults to true.
* Optional.
*/
focused?: boolean;
}

@@ -216,0 +216,0 @@

{
"name": "webextension-polyfill-ts",
"version": "0.18.0",
"version": "0.19.0",
"description": "webextension-polyfill for TypeScript",

@@ -10,4 +10,2 @@ "keywords": [

],
"author": "Santo Pfingsten",
"license": "Zlib",
"homepage": "https://github.com/Lusito/webextension-polyfill-ts",

@@ -21,7 +19,9 @@ "bugs": {

},
"license": "Zlib",
"author": "Santo Pfingsten",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib/"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {

@@ -31,4 +31,13 @@ "all": "npm run fetch && npm run validate:schemas && npm run build && npm run validate:lib",

"fetch": "ts-node src/fetch.ts",
"validate:schemas": "ts-node src/validate.ts",
"validate:lib": "tsc -p tsconfig-lib.json"
"lint": "npm run lint:es && npm run lint:package && npm run lint:style",
"lint:es": "eslint src/**/*.ts --ext .ts --ignore-path .prettierignore",
"lint:es:fix": "npm run lint:es -- --fix",
"lint:fix": "npm run lint:es:fix && npm run lint:package:fix && npm run lint:style:fix",
"lint:package": "sort-package-json --check",
"lint:package:fix": "sort-package-json",
"lint:style": "npm run lint:style:base -- --check",
"lint:style:base": "prettier {src,_locales}/**/*.{ts,js,json} ./*.{ts,js,json} --quote-props consistent",
"lint:style:fix": "npm run lint:style:base -- --write",
"validate:lib": "tsc -p tsconfig-lib.json",
"validate:schemas": "ts-node src/validate.ts"
},

@@ -39,2 +48,5 @@ "dependencies": {

"devDependencies": {
"@lusito/eslint-config": "^1.1.1",
"@lusito/prettier-config": "^1.1.0",
"@lusito/stylelint-config": "^1.1.0",
"@types/node": "^14.0.11",

@@ -44,2 +56,3 @@ "@types/rimraf": "^3.0.0",

"rimraf": "^3.0.2",
"sort-package-json": "^1.44.0",
"ts-node": "^8.10.2",

@@ -46,0 +59,0 @@ "typescript": "^3.9.5"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc