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 5.1.9 to 5.1.10

10

package.json

@@ -17,3 +17,3 @@ {

"@types/firefox-webext-browser": "^111.0.0",
"@types/node": "^18.14.6",
"@types/node": "^18.15.2",
"@types/sinon": "^10.0.13",

@@ -24,3 +24,3 @@ "camelize": "^1.0.1",

"json5": "^2.2.3",
"sinon": "^15.0.1"
"sinon": "^15.0.2"
},

@@ -30,3 +30,3 @@ "devDependencies": {

"chai": "^4.3.7",
"eslint": "^8.35.0",
"eslint": "^8.36.0",
"eslint-config-standard": "^17.0.0",

@@ -42,3 +42,3 @@ "eslint-plugin-import": "^2.27.5",

"typescript": "^4.9.5",
"undici": "^5.20.0"
"undici": "^5.21.0"
},

@@ -63,3 +63,3 @@ "scripts": {

},
"version": "5.1.9"
"version": "5.1.10"
}

@@ -12,3 +12,3 @@ [![build](https://github.com/asamuzaK/webext-schema/workflows/build/badge.svg)](https://github.com/asamuzaK/webext-schema/actions?query=workflow%3Abuild)

```
```console
npm i webext-schema

@@ -19,3 +19,3 @@ ```

```
```javascript
import { Schema } from 'webext-schema';

@@ -33,3 +33,3 @@

```
```javascript
const schema = new Schema("central", {

@@ -46,3 +46,3 @@ useFakeTimers: true,

```
```javascript
const schema = new Schema("central");

@@ -53,3 +53,3 @@ ```

```
```javascript
const schema = new Schema();

@@ -67,3 +67,3 @@ schema.channel = "central";

```
```javascript
const schema = new Schema().get("browserAction");

@@ -73,3 +73,3 @@ // [{namespace: "browserAction", events: [...], ...}]

```
```javascript
const schema = new Schema().get("browser_action.json");

@@ -86,3 +86,3 @@ // [{namespace: "browserAction", events: [...], ...}]

```
```javascript
const schema = new Schema().getAll();

@@ -98,3 +98,3 @@ // {"alarms.json": [{...}], "bookmarks.json": [{...}], ...}

```
```javascript
const list = new Schema().list();

@@ -117,7 +117,7 @@ // ["alarms.json", "bookmarks.json", ...]

```
```javascript
const browser = new Schema().mock();
// example of mocking runtime.connect()
const mockConnect = browser.runtime.connect.callsFake(({name}) => {
const mockConnect = browser.runtime.connect.callsFake(({ name }) => {
const port = Object.assign({}, browser.runtime.Port);

@@ -128,4 +128,4 @@ port.name = name;

const port1 = mockConnect({name: "foo"});
const port2 = mockConnect({name: "bar"});
const port1 = mockConnect({ name: "foo" });
const port2 = mockConnect({ name: "bar" });
assert.strictEqual(port1.name, "foo");

@@ -132,0 +132,0 @@ assert.isFunction(port1.onDisconnect.addListener);

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

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