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

webext-schema

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webext-schema - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

19

modules/browser.js

@@ -77,4 +77,3 @@ /**

if (isGranted) {
const { browserSettings } = browser;
const { closeTabsByDoubleClick } = browserSettings;
const { browserSettings: { closeTabsByDoubleClick } } = browser;
userValue = await closeTabsByDoubleClick.get({});

@@ -96,4 +95,3 @@ }

if (isGranted) {
const { browserSettings } = browser;
const { contextMenuShowEvent } = browserSettings;
const { browserSettings: { contextMenuShowEvent } } = browser;
const { levelOfControl, value } = await contextMenuShowEvent.get({});

@@ -122,4 +120,3 @@ if (value === 'mouseup') {

if (isGranted) {
const { browserSettings } = browser;
const { contextMenuShowEvent } = browserSettings;
const { browserSettings: { contextMenuShowEvent } } = browser;
res = await contextMenuShowEvent.clear({});

@@ -141,4 +138,3 @@ }

if (isGranted) {
const { browserSettings } = browser;
const { newTabPosition } = browserSettings;
const { browserSettings: { newTabPosition } } = browser;
res = await newTabPosition.get({});

@@ -262,5 +258,4 @@ }

if (Array.isArray(arr) && arr.length) {
res = arr.filter(info =>
info.type && info.type === 'theme' && info.enabled && info
);
res =
arr.filter(info => info?.type === 'theme' && info?.enabled && info);
}

@@ -311,3 +306,3 @@ } catch (e) {

res =
arr.filter(info => info.type && info.type === 'extension' && info);
arr.filter(info => info?.type === 'extension' && info);
}

@@ -314,0 +309,0 @@ } catch (e) {

@@ -97,4 +97,3 @@ /**

} else {
importValue =
this._browser[namespace] && this._browser[namespace][$import];
importValue = this._browser[namespace]?.[$import];
}

@@ -126,4 +125,3 @@ Object.assign(target, importValue);

} else {
refValue =
this._browser[namespace] && this._browser[namespace][$ref];
refValue = this._browser[namespace]?.[$ref];
}

@@ -154,3 +152,3 @@ Object.assign(target, refValue);

if (!unsupported && name && type === 'function') {
target[name] = target[name] || {};
target[name] ??= {};
target[name].addListener = this._sandbox.stub();

@@ -216,3 +214,3 @@ target[name].hasListener = this._sandbox.stub();

Object.prototype.hasOwnProperty.call(item, 'properties')) {
target[key] = target[key] || {};
target[key] ??= {};
properties && this._mockProperties(

@@ -254,3 +252,3 @@ target[key], properties, `${namespace}.${key}`

if (type === 'object' || $import || events || functions || properties) {
target[id] = target[id] || {};
target[id] ??= {};
events && this._mockEvents(target[id], events);

@@ -295,3 +293,3 @@ functions && this._mockFunctions(target[id], functions);

}
const schemas = this._schema || this._parseSchemaContent();
const schemas = this._schema ?? this._parseSchemaContent();
const items = Object.entries(schemas);

@@ -315,3 +313,3 @@ const label = decamelize(name.replace(/\.json$/, ''));

getAll() {
const schemas = this._schema || this._parseSchemaContent();
const schemas = this._schema ?? this._parseSchemaContent();
return schemas;

@@ -326,3 +324,3 @@ }

list() {
const schemas = this._schema || this._parseSchemaContent();
const schemas = this._schema ?? this._parseSchemaContent();
const items = Object.keys(schemas);

@@ -342,3 +340,3 @@ const arr = [];

mock() {
const schemas = this._schema || this._parseSchemaContent();
const schemas = this._schema ?? this._parseSchemaContent();
const schemaItems = Object.entries(schemas);

@@ -366,9 +364,8 @@ const aliasKeys = ['action', 'menus'];

const [itemNamespace, itemSubNamespace] = namespace.split('.');
this._browser[itemNamespace] = this._browser[itemNamespace] || {};
this._browser[itemNamespace][itemSubNamespace] =
this._browser[itemNamespace][itemSubNamespace] || {};
this._browser[itemNamespace] ??= {};
this._browser[itemNamespace][itemSubNamespace] ??= {};
mapKey.push(itemNamespace, itemSubNamespace);
ns = this._browser[itemNamespace][itemSubNamespace];
} else {
this._browser[namespace] = this._browser[namespace] || {};
this._browser[namespace] ??= {};
mapKey.push(namespace);

@@ -375,0 +372,0 @@ ns = this._browser[namespace];

@@ -51,3 +51,3 @@ {

},
"version": "3.0.0"
"version": "3.0.1"
}

Sorry, the diff of this file is too big to display

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