
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Domdon builds on top of document.querySelectorAll() adding a small ammount of syntax sugar, to make your code a little cleaner and easier to read.
The most basic use is very similar to how querySelector or querySelectorAll work.
<div id="countries">
<ul>
<li>Germany</li>
<li>Belize</li>
<li>France</li>
<li>Australia</li>
<li>India</li>
</ul>
</div>
Against this html running:
DOM('#countries')
Would return the countries div.
If there is only one element then DOM() will return that Node, if there is more than one element then DOM() will return an array of all the elements.
DOM('li')
Would return an Array (not a NodeList) containing all of the li elements.
This makes it very easy to write stuff like this:
DOM('li').forEach(li => li.style.color = 'red')
I have found this method to work really well as generally I tend to know the structure of the html. If for any reason you are not sure what will come back, then you can always use DOM.array() to make sure an array is returned.
DOM.array('#countries').forEach(el => el.innerHTML = '')
This will return an array no matter what, so even if nothing is found for that selector you can still run .filter .forEach .reduce on the results.
var activeNoop = DOM.array('.noop').filter(el => el.classList.contains('active'));
This code will run without error, and activeNoop will be undefined;
FAQs
Syntax sugar for querySelector / querySelectorAll
The npm package domdon receives a total of 7 weekly downloads. As such, domdon popularity was classified as not popular.
We found that domdon 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.