Socket
Socket
Sign inDemoInstall

extension-port-stream

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extension-port-stream - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

CHANGELOG.md

25

package.json
{
"name": "extension-port-stream",
"version": "1.0.0",
"version": "2.0.0",
"description": "A module for creating a node style stream over a WebExtension port object.",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "tsc --project .",
"lint": "eslint . --ext ts,js,json",
"lint:fix": "yarn lint --fix",
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"dist/"
],
"repository": {

@@ -23,6 +29,15 @@ "type": "git",

"homepage": "https://github.com/MetaMask/extension-port-stream#readme",
"dependencies": {
"readable-stream": "^2.3.6",
"util": "^0.11.0"
"dependencies": {},
"devDependencies": {
"@metamask/eslint-config": "^4.1.0",
"@types/node": "14.14.7",
"@typescript-eslint/eslint-plugin": "^4.8.1",
"@typescript-eslint/parser": "^4.8.1",
"eslint": "^7.13.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-json": "^2.1.2",
"eslint-plugin-node": "^11.1.0",
"typescript": "^4.0.5",
"webextension-polyfill-ts": "^0.22.0"
}
}
# Extension Port Stream
A module for creating a node-style stream over a WebExtension port object.
A module for creating a Node-style stream over a WebExtension [Runtime.Port](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/Port) object.

@@ -8,3 +8,3 @@ ## Usage

```javascript
const PortStream = require('extension-port-stream')
import PortStream from 'extension-port-stream'

@@ -16,2 +16,1 @@ extension.runtime.onConnect.addListener(connectRemote)

```
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc