extension-port-stream
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"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) | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15083
0
7
218
10
15
2
- Removedreadable-stream@^2.3.6
- Removedutil@^0.11.0
- Removedcore-util-is@1.0.3(transitive)
- Removedinherits@2.0.32.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedutil@0.11.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)