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.22.0 to 0.24.0

2

lib/geckoProfiler.d.ts

@@ -11,3 +11,3 @@ /**

export declare namespace GeckoProfiler {
type ProfilerFeature = "java" | "js" | "leaf" | "mainthreadio" | "responsiveness" | "screenshots" | "seqstyle" | "stackwalk" | "tasktracer" | "threads" | "jstracer" | "jsallocations" | "nostacksampling" | "nativeallocations" | "preferencereads" | "ipcmessages" | "fileio" | "fileioall" | "noiostacks" | "audiocallbacktracing";
type ProfilerFeature = "java" | "js" | "leaf" | "mainthreadio" | "responsiveness" | "screenshots" | "seqstyle" | "stackwalk" | "tasktracer" | "threads" | "jstracer" | "jsallocations" | "nostacksampling" | "nativeallocations" | "preferencereads" | "ipcmessages" | "fileio" | "fileioall" | "noiostacks" | "audiocallbacktracing" | "cpu";

@@ -14,0 +14,0 @@ type supports = "windowLength";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// if not in a browser, assume we're in a test, return a dummy
if (typeof window === "undefined") exports.browser = {};
else exports.browser = require("webextension-polyfill");
exports.browser = require("webextension-polyfill");

@@ -542,14 +542,2 @@ /**

extension_pages?: string;
/**
* The Content Security Policy used for content scripts.
* Optional.
*/
content_scripts?: string;
/**
* An alias for content_scripts to support Chrome compatibility. Content Security Policy implementations may differ between Firefox and Chrome. If both isolated_world and content_scripts exist, the value from content_scripts will be used.
* Optional.
*/
isolated_world?: string;
}

@@ -556,0 +544,0 @@

@@ -41,2 +41,7 @@ /**

/**
* The mode for https-only mode.
*/
type HTTPSOnlyModeOption = "always" | "private_browsing" | "never";
/**
* The minimum TLS version supported.

@@ -72,3 +77,8 @@ */

tlsVersionRestriction: Types.Setting;
/**
* Allow users to query the mode for 'HTTPS-Only Mode'. This setting's value is of type HTTPSOnlyModeOption, defaulting to <code>never</code>.
*/
httpsOnlyMode: Types.Setting;
}
}

@@ -89,3 +89,3 @@ /**

*/
type PlatformArch = "arm" | "x86-32" | "x86-64";
type PlatformArch = "aarch64" | "arm" | "ppc64" | "s390x" | "sparc64" | "x86-32" | "x86-64";

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

/**
* 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 {

@@ -255,2 +266,9 @@

/**
* Requests an update check for this app/extension.
*
* @returns Promise<[RequestUpdateCheckStatus, RequestUpdateCheckCallbackDetailsType]>
*/
requestUpdateCheck(): Promise<[RequestUpdateCheckStatus, RequestUpdateCheckCallbackDetailsType]>;
/**
* Attempts to connect to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and $(topic:manifest/externally_connectable)[web messaging]. Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via $(ref:tabs.connect).

@@ -257,0 +275,0 @@ *

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

autoDiscardable?: boolean;
/**
* The URL the tab is navigating to, before it has committed. This property is only present if the extension's manifest includes the "tabs" permission and there is a pending navigation.
* Optional.
*/
pendingUrl?: string;
}

@@ -233,0 +239,0 @@

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

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -555,2 +561,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -637,2 +649,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -729,2 +747,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -842,2 +866,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -945,2 +975,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -1053,2 +1089,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -1165,2 +1207,8 @@

responseSize: number;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -1257,2 +1305,8 @@

thirdParty: boolean;
/**
* URL of the resource that triggered this request (on chrome).
* Optional.
*/
initiator?: string;
}

@@ -1259,0 +1313,0 @@

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

/**
* 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.

@@ -208,8 +214,2 @@ * 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.22.0",
"version": "0.24.0",
"description": "webextension-polyfill for TypeScript",

@@ -30,3 +30,3 @@ "keywords": [

"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": "eslint \"src/**/*.ts\" --ext .ts --ignore-path .prettierignore",
"lint:es:fix": "npm run lint:es -- --fix",

@@ -37,3 +37,3 @@ "lint:fix": "npm run lint:es:fix && npm run lint:package:fix && npm run lint:style:fix",

"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:base": "prettier \"{src,_locales}/**/*.{ts,js,json}\" \"./*.{ts,js,json}\" --quote-props consistent",
"lint:style:fix": "npm run lint:style:base -- --write",

@@ -47,13 +47,13 @@ "validate:lib": "tsc -p tsconfig-lib.json",

"devDependencies": {
"@lusito/eslint-config": "^1.3.1",
"@lusito/prettier-config": "^1.2.0",
"@lusito/stylelint-config": "^1.2.0",
"@types/node": "^14.14.7",
"@lusito/eslint-config": "^1.5.0",
"@lusito/prettier-config": "^1.5.0",
"@lusito/stylelint-config": "^1.5.0",
"@types/node": "^14.14.22",
"@types/rimraf": "^3.0.0",
"got": "^11.8.0",
"got": "^11.8.1",
"rimraf": "^3.0.2",
"sort-package-json": "^1.46.1",
"ts-node": "^9.0.0",
"typescript": "^4.0.5"
"sort-package-json": "^1.48.1",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
}
}
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