
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
jest-css-modules-processor
Advanced tools
You can use this module to realize import
/ require
.css
file when you run jest
.
And this module also support localIdentName
😎!
Inspired by css-modules-require-hook and jest-css-modules-transform.
yarn add jest-css-modules-processor --dev
Just add transform field for your jest config.
// package.json
{
"jest": {
"transform": {
".+\\.(css)$": "@mtfe/jest-css-modules-processor",
"^.+\\.jsx?$": "babel-jest"
},
}
}
You should add jestCSSProcessor
field in your package.json
.
// package.json
{
"jestCSSProcessor": {
"generateScopedName": "[name]__[local]___[hash:base64:5]"
}
}
option | description | required |
---|---|---|
camelCase | same as css-loader?cameCase | no |
devMode | NODE_ENV === 'development' | no |
processCss | process(transformedCSS, filename) | no |
processOptions | http://api.postcss.org/global.html#processOptions | no |
createImportedName | https://github.com/css-modules/postcss-modules-extract-imports/blob/master/src/index.js#L73 | no |
generateScopedName | for example [name]__[local]___[hash:base64:5] | no |
mode | local or global | no |
resolve | resolveOpts | no |
rootDir | same as webpack context option | no |
Usually, you just need to set the generateScopedName
option. And it should same as localIndentName
value which you setted in the webpack.config.js
FAQs
realize import css during testing
The npm package jest-css-modules-processor receives a total of 166 weekly downloads. As such, jest-css-modules-processor popularity was classified as not popular.
We found that jest-css-modules-processor 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.