
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.
@compositor/kit-snapshot
Advanced tools
Jest snapshot testing utility for React component library examples
npm i -D @compositor/kit-snapshot
To promote reuse of component examples for development, documentation, testing, etc. creating an examples/ folder of components can reduce boilerplate in a component libraries.
Create an examples/ folder and add component usage examples.
// examples/Button.js
import React from 'react'
import Button from '../src/Button'
export default (
<Button>Beep</Button>
)
// examples/index.js
export { default as Button } from './Button'
Then in a test file, import the examples and pass them to the Kit snapshot utility.
import snapshotExamples from '@compositor/kit-snapshot'
import * as examples from '../examples'
snapshotExamples(examples)
MIT License
FAQs
Jest snapshot testing utility for examples arrays
We found that @compositor/kit-snapshot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
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.