
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.
@hirasso/swup-plugin
Advanced tools
Base class for creating swup plugins.
To create a new plugin, use the official swup plugin template. It comes with detailed instructions and the required tooling.
import Plugin from '@swup/plugin';
export default class PluginName extends Plugin {
name = 'PluginName';
mount() {}
unmount() {}
}
or alternatively with TS
import Plugin, { PluginType } from '@swup/plugin';
export default class PluginName extends Plugin implements PluginType {
name = 'PluginName';
mount() {}
unmount() {}
}
The base plugin provides a few simple command line tools to help with bundling and linting.
Bundle the plugin for production using microbundle, creating ESM and UMD builds.
# Bundle and transpile plugin code
swup-plugin bundle
# Bundle plugin code in watch mode
swup-plugin dev
Lint the plugin code using prettier and swup's recommended rules.
# Lint plugin code
swup-plugin lint
# Fix and format any lint errors
swup-plugin format
Check that the plugin's package.json file contains the required information for microbundle: input, output, export map, amd name, etc.
# Check plugin package info
swup-plugin check
FAQs
Base class for creating swup plugins
The npm package @hirasso/swup-plugin receives a total of 0 weekly downloads. As such, @hirasso/swup-plugin popularity was classified as not popular.
We found that @hirasso/swup-plugin 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.