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.
@bem-transform/ts-computed-name
Advanced tools
Compute name of block and elem for BEM components.
Compute name of block and elem for BEM components.
typescript >= 2.9.0
npm i -D @bem-transform/ts-computed-name
This transform correctly work with ts-loader and awesome-typescript-loader.
const { computeClassBemName } = require('@bem-transform/ts-computed-name')
Need add this transform into getCustomTransformers in before
section.
{
test: /\.tsx?$/,
use: [
{
loader: require.resolve('awesome-typescript-loader'),
options: {
getCustomTransformers: () => ({
before: [
computeClassBemName(options),
],
}),
},
},
},
Property | Type | Default | Description |
---|---|---|---|
availableClassParent | string[] | ['Block', 'Elem'] | Will add properties only to classes who have the parents from list. |
availibleBemName | boolean | true | Will add the properties of block and elem based on the location in the fs. |
availibleDisplayName | boolean | true | Will add the static property of displayName based on the location in the fs. (Recommended add only in development mode for debugging) |
naming | string | 'origin' | naming convention that uses at the project, should be origin or react . |
overrideExistingProperties | boolean | true | Overrides existing properties block , elem and displayName . |
FAQs
Compute name of block and elem for BEM components.
We found that @bem-transform/ts-computed-name 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.