Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
mutation-summary
Advanced tools
Branch | Status |
---|---|
master | |
develop |
Mutation Summary is a JavaScript library that makes observing changes to the DOM fast, easy and safe. It's built on top DOM Mutation Observers, which is widely supported support. Mutation Summary watches the DOM for changes, and summaries those changes in a compact and efficient set of changes.
The API is simple and easy to use. To monitor all changes in the DOM:
const ms = new MutationSummary({
callback(summaries: Summary[]) {
summaries.forEach((summary: Summary) => console.log(summary));
},
queries: [
{ all: true }
]
});
For more detailed information on how to use Mutation Summary see these references:
The raw MutationObserver API is powerful, yet complex and cumbersome to use directly. Mutation Summary does five main things for you:
Lots of things, here are some examples:
The intent here isn't to be all things to all use-cases. Mutation Summary is not meant to:
“div[foo] span.bar > p:first-child”
? Unfortunately, efficiently computing that is much harder and currently outside the scope of this library.Note that both of the above use cases are possible given the data that the underlying Mutation Observers API provides -- we simply judged them to be outside the "80% use case" that we targeted with this particular library.
If you have been using a 0.x version of Mutation Summary and are upgrading to a 1.x version. There are breaking changes in the API. Most notable, the API has been converted to a module based packaging.
Please see the Upgrade Guide
Initial implementation contributed by:
Rafael Weinstein https://github.com/rafaelw
1.0.0 (May 15, 2021)
FAQs
Makes observing the DOM fast and easy
The npm package mutation-summary receives a total of 2,484 weekly downloads. As such, mutation-summary popularity was classified as popular.
We found that mutation-summary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.