Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@thoughtindustries/catalog
Advanced tools
@thoughtindustries/catalog
The Catalog allows learners to search and browse for content. It is a central component to any online learning platform.
import { Catalog, CatalogProvider } from '@thoughtindustries/catalog';
# CatalogProvider takes a config object to parse URL search params and/or handle custom catalog configurations
# Sample config object
const config = {
parsedUrl: {
pathname: '/catalog',
searchString: '?query=test'
}
}
# Sample config object with custom catalog configurations
const config = {
parsedUrl: {
pathname: '/catalog',
searchString: '?query=test'
},
}
<CatalogProvider config={config}>
<Catalog onAddedToQueue={(item) => Promise.resolve()} />
</CatalogProvider>
# Or use custom pagination
<CatalogProvider config={config}>
<Catalog
onAddedToQueue={(item) => Promise.resolve()}
pagination={({page, pageSize, total, getPageLink}) => <>...</>} />
</CatalogProvider>
# Or use custom price formatter
const priceFormat = (priceInCents) => {
const formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD'
});
return formatter.format(priceInCents / 100);
}
<CatalogProvider config={config}>
<Catalog
onAddedToQueue={(item) => Promise.resolve()}
priceFormat={priceFormat} />
</CatalogProvider>
FAQs
A base component for catalog
We found that @thoughtindustries/catalog 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.