
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.
@contember/vite-plugin
Advanced tools
@contember/vite-plugin
is a Vite plugin designed to enhance the Vite build process for Contember applications. It provides configuration options and middleware to streamline the development and build processes.
yarn add @contember/vite-plugin
import { defineConfig } from 'vite'
import { contember } from '@contember/vite-plugin'
export default defineConfig({
plugins: [contember()]
})
The plugin accepts an optional ContemberOptions
object:
type ContemberOptions = {
buildVersion?: boolean
disableMiddleware?: boolean
appPath?: string
}
buildVersion
: (Optional) When true
(default), adds a build version meta tag to the HTML output.disableMiddleware
: (Optional) When true
, disables the built-in middleware.appPath
: (Optional) Specifies the application path. Defaults to /app
.The plugin automatically detects the Contember project name from the command-line arguments and injects it into the application as an environment variable:
import.meta.env.VITE_CONTEMBER_ADMIN_PROJECT_NAME
/
.Unless disabled, the plugin adds middleware to handle routing for the app path, ensuring that requests to the app are properly handled.
When enabled (default), the plugin adds a meta tag to the HTML output with a unique build version hash:
<meta name="contember-build-version" content="[MD5_HASH]">
This is used for outdated application check.
The plugin includes TypeScript definitions and is configured to work with TypeScript projects.
This plugin is compatible with Vite versions 4 and 5.
FAQs
Unknown package
We found that @contember/vite-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.