
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.