Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@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
The npm package @thoughtindustries/catalog receives a total of 1 weekly downloads. As such, @thoughtindustries/catalog popularity was classified as not popular.
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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.