
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
babel-plugin-kea
Advanced tools
This plugin helps auto-generate paths for kea logic.
// IN FILE: scenes/homepage/homepageLogic.js
// input:
kea({
// ... anything but `path`
})
// output:
kea({
path: () => ['scenes', 'homepage', 'homepageLogic']
// ... anything but `path`
})
// IN FILE: scenes/dashboard/dashboardLogic.js
// input:
kea({
key: props => props.id,
// ... anything but `path`
})
// output:
kea({
key: props => props.id,
path: (key) => ['scenes', 'homepage', 'homepageLogic', key]
// ... anything but `path`
})
// IN FILE: lib/customPage.js
// input:
kea({
path: () => ['special', 'customStuff'],
// other keys
})
// output:
kea({
path: () => ['special', 'customStuff'], // path was not modified
// other keys
})
First install the package
# with yarn
yarn add babel-plugin-kea --dev
# with npm
npm install babel-plugin-kea --save-dev
Then add it to the list of plugins in your .babelrc
:
// .babelrc
{
"plugins": [
"babel-plugin-kea"
]
}
Logic paths are scoped from the current path. If you wish to skip a few parts of the path, for example
if your frontend lives under frontend/src
and you don't want every kea path to start with
frontend.src
, specify it in the config as follows:
// .babelrc
{
"plugins": [
["babel-plugin-kea", { path: './frontend/src' }]
]
}
FAQs
Kea Babel Plugin
The npm package babel-plugin-kea receives a total of 25 weekly downloads. As such, babel-plugin-kea popularity was classified as not popular.
We found that babel-plugin-kea 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.