@metamask/post-message-stream
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -17,5 +17,3 @@ "use strict"; | ||
// @ts-expect-error: No types for WorkerGlobalScope | ||
typeof WorkerGlobalScope === 'undefined' || | ||
// @ts-expect-error: No types for WorkerGlobalScope | ||
!(self instanceof WorkerGlobalScope)) { | ||
typeof WorkerGlobalScope === 'undefined') { | ||
throw new Error('WorkerGlobalScope not found. This class should only be instantiated in a WebWorker.'); | ||
@@ -25,3 +23,3 @@ } | ||
this._name = utils_1.DEDICATED_WORKER_NAME; | ||
self.onmessage = this._onMessage.bind(this); | ||
self.addEventListener('message', this._onMessage.bind(this)); | ||
this._handshake(); | ||
@@ -28,0 +26,0 @@ } |
{ | ||
"name": "@metamask/post-message-stream", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Sets up a duplex object stream over window.postMessage", | ||
@@ -35,3 +35,3 @@ "homepage": "https://github.com/MetaMask/post-message-stream#readme", | ||
"dependencies": { | ||
"@metamask/utils": "^4.0.0", | ||
"@metamask/utils": "^5.0.0", | ||
"readable-stream": "2.3.3" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
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
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
0
70046
723
+ Added@ethereumjs/common@3.2.0(transitive)
+ Added@ethereumjs/rlp@4.0.1(transitive)
+ Added@ethereumjs/tx@4.2.0(transitive)
+ Added@ethereumjs/util@8.1.0(transitive)
+ Added@metamask/utils@5.0.2(transitive)
+ Added@noble/curves@1.4.2(transitive)
+ Added@noble/hashes@1.4.0(transitive)
+ Added@scure/base@1.1.8(transitive)
+ Added@scure/bip32@1.4.0(transitive)
+ Added@scure/bip39@1.3.0(transitive)
+ Addedcrc-32@1.2.2(transitive)
+ Addedethereum-cryptography@2.2.1(transitive)
+ Addedmicro-ftch@0.3.1(transitive)
- Removed@metamask/utils@4.0.0(transitive)
Updated@metamask/utils@^5.0.0