You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

message-channel-promise

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

message-channel-promise - npm Package Compare versions

Comparing version

to
3.0.1

2

build/index.js

@@ -82,3 +82,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (target === self || target instanceof Worker || target instanceof MessagePort) {
if (isWorker || target instanceof Worker || target instanceof MessagePort) {
target.postMessage(message, [port2].concat(_toConsumableArray(transfer)));

@@ -85,0 +85,0 @@ } else {

{
"name": "message-channel-promise",
"version": "3.0.0",
"version": "3.0.1",
"description": "Promise wrapper for communication via post message and MesssageChannel",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -30,3 +30,3 @@ # message-channel-promise

const message = {/* ... */};
sendChannelMessage(message, frame.contentWindow, '*')
sendChannelMessage(message, frame.contentWindow, {targetOrigin: '*'})
.then(function(data) {

@@ -33,0 +33,0 @@ // Do something with the response

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.