
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Vea la página para más información.
Es una envoltura para objetos que realizan la comunicación
entre procesos, en el estado inicial, está configurado para
funcionar con los IPC de electron,
este comportamiento puede cambiar sobreescribiendo las funciones
_getArgsFromOn e _ipcNodeSend.
Importe IPCNodeRegister y registre el IPC:
import { ipcMain } from "electron";
import { IPCNodeRegister } from "ipc-shell"
const ipc = IPCNodeRegister.register("main", ipcMain)
Nota: se usará IpcMain como el tipo de IPC, si
fuera para el ipcRenderer debería usar IpcRenderer,
para el ipc de win.webContents debería usar WebContents,
hablando en términos de electronjs, en general usar
la clase del IPC que registra.
Note que ahora ipc fue extendido. Colocando el tipo sería
de la siguiente forma (por la inferencia de tipos lo de arriba
está bien):
import { IpcMain, ipcMain } from "electron";
import { IPCNode, IPCNodeRegister } from "ipc-shell"
const ipc: IPCNode<IpcMain> = IPCNodeRegister.register("main", ipcMain)
A partir de ahora puede acceder en el mismo proceso a este IPC mediante su nombre:
// somewhere else
import { IpcMain } from "electron";
import { IPCNodeRegister } from "ipc-shell"
// using generic type (recommended)
const ipc = IPCNodeRegister.get<IpcMain>("main");
// using IPCNode type (import from ipc-shell)
const ipc: IPCNode<IpcMain> = IPCNodeRegister.get("main");
El hecho de que se agregue IpcMain es para que pueda
seguir utilizando todos lo métodos y variables que este
contenga más los extras, si no agrega el tipo únicamente
podrá usar los de IPCNode.
Object.assign().IPCBaseNode interface is overwritten when it extends.FAQs
Vea la [página](https://gbenm.github.io/ipc-shell/) para más información.
The npm package ipc-shell receives a total of 3 weekly downloads. As such, ipc-shell popularity was classified as not popular.
We found that ipc-shell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.