Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 the base class and extend your plugin from it.
import Plugin from '@swup/plugin';
export default class PluginName extends Plugin {
name = 'PluginName';
mount() {}
unmount() {}
}
The official swup command-line interface has commands to help with bundling and linting plugins.
npm install --save-dev @swup/cli
Bundle the plugin for production using microbundle, creating ESM and UMD builds.
# Bundle and transpile plugin code for distribution
swup package:bundle
# Bundle plugin code in watch mode
swup package:dev
Lint the plugin code using prettier and swup's recommended rules.
# Lint plugin code
swup package:lint
# Fix and format any lint errors
swup package: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 package:check
[4.0.0] - 2023-09-19
@swup/cli
FAQs
Base class for creating swup plugins
We found that @swup/plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.