
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.
@npm/spife-webpack
Advanced tools
Minimal dev middleware to integrate spife and webpack.
This is development webpack middleware for spife. It augments the
req
object with req.assets
, which provides a shimmable API for
referencing bundled assets and querying the current hash of the
bundle. It will load the webpack config at webpack.config.js
in the
current working directory of the process by default.
The goal is thus:
npm i @npm/spife-webpack
Then add it to MIDDLEWARE
in lib/settings
in your project:
// lib/settings.js
module.exports = {
NODE_ENV: process.env.NODE_ENV,
DEBUG: process.env.DEBUG,
METRICS: process.env.METRICS,
MIDDLEWARE: [
'@npm/spife/middleware/debug',
'@npm/spife/middleware/common',
'@npm/spife/middleware/logging',
'@npm/spife/middleware/metrics',
'@npm/spife/middleware/monitor',
'@npm/spife-dev-webpack' // <----- like so!
],
NAME: 'with-webpack',
ROUTER: './main.js',
PORT: 8124,
}
This middleware augments requests with an asset manager:
function myView (req, context) {
const assets = req.assets.named('my-asset-name') // this will return a list of urls suitable for embedding in HTML
const onlyJS = req.assets.named('my-asset-name', '.js') // if you want to only include JS assets!
// you can also access the hash of the current build!
req.assets.hash
}
FAQs
Minimal dev middleware to integrate spife and webpack.
The npm package @npm/spife-webpack receives a total of 1 weekly downloads. As such, @npm/spife-webpack popularity was classified as not popular.
We found that @npm/spife-webpack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 32 open source maintainers 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.