
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@x4b/webcomponent-banner
Advanced tools
This project provides a webcomponent component for the banner
npm install @x4b/webcomponent-banner
# or
yarn add @x4b/webcomponent-banner
By default, the banner uses the open sans font. In the head of the HTML file, add the following code:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap" />
First, you have to register the webcomponent:
import { register } from './library';
register();
Add the webcomponent to your application:
<x4b-banner
apps-service-url="https://x4b.dev.xcomponent.com/apps"
notification-count="3"
application="scenario"
version="dev-test"
language="en"
languages="en,fr"
></x4b-banner>
You can listen to the following DOM events:
| Event | Description | Parameter |
|---|---|---|
languageChanged | Triggered when a language is selected | Selected language |
menuToggleButtonClicked | Triggered when the burger button is clicked | Menu state (true -> full size, false -> reduced) |
notificationButtonClicked | Triggered when the notification button is clicked | None |
tokenRefreshed | Triggered when the token is refreshed | None |
startupFinished | Triggered when the banner is initialized | None |
FAQs
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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.