New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-ipc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-ipc - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

17

index.js

@@ -11,2 +11,3 @@ 'use strict'

let MESSAGES = {}
let WINDOWS = []

@@ -17,3 +18,7 @@ function sendIPC (...args) {

MESSAGES[id] = {resolve, reject}
TARGET.send('handoff.request', id, ...args)
if (IS_RENDERER) {
TARGET.send('handoff.request', id, ...args)
} else {
WINDOWS.forEach(win => win.webContents.send('handoff.request', id, ...args))
}
})

@@ -44,2 +49,12 @@ }

addWindow (win) {
WINDOWS.push(win)
},
removeWindow (win) {
let idx = WINDOWS.indexOf(win)
if (!~idx) return
WINDOWS.splice(idx, 1)
},
publish (...args) {

@@ -46,0 +61,0 @@ return sendIPC(...args)

2

package.json
{
"name": "electron-ipc",
"version": "0.1.0",
"version": "0.2.0",
"description": "IPC for Electron using promises",

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

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