Socket
Socket
Sign inDemoInstall

@metamask/post-message-stream

Package Overview
Dependencies
Maintainers
8
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/post-message-stream - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

6

dist/WebWorker/WebWorkerPostMessageStream.js

@@ -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

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