
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
disposable-component
Advanced tools
A simple reactive API for mounting and unmounting components to the DOM
Disposable-component provides a simple reactive API for mounting and unmounting components to the DOM. This is useful for cross framework interop inside your single-page-app.
npm install --save rx disposable-component
A simple example would be to use disposable-component to build a
react-modal:
import mountComponent from "disposable-component";
import React from "react";
import ReactDOM from "react-dom";
function showModal(El, props) {
return mountComponent(
function mount(next, completed, error) {
el = document.createElement("div");
document.body.appendChild(el);
ReactDOM.render(
<El {...props} close={complete} onNext={next} />,
el
);
},
function unmount() {
ReactDOM.unmountComponentAtNode(el);
el.parentNode.removeChild(el);
}
);
}
const subscription = showModal(function MyModal() {
return (
<div>
<h1>My Modal</h1>
<button onClick={this.props.complete}>Close</button>
<button onClick={this.props.next.bind(null, 1)}>Save</button>
</div>
);
}).subscribe(
data => console.log(data),
err => console.error(err)
);
subscription.unsubscribe(); // close the modal
FAQs
A simple reactive API for mounting and unmounting components to the DOM
The npm package disposable-component receives a total of 97 weekly downloads. As such, disposable-component popularity was classified as not popular.
We found that disposable-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers 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.

Research
/Security News
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.