
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@servicensw/drop-menu
Advanced tools
Service NSW package documentation and examples
(Login credentials required)
npm install @servicensw/drop-menu --save-dev
CSS
@import '@servicensw/drop-menu';
@import 'servicensw-drop-menu';
@import url('dist/drop-menu.css');
<link href="dist/drop-menu.css" rel="stylesheet" type="text/css">
JS
import '@servicensw/drop-menu';
<script src="dist/drop-menu.js" type="text/javascript"></script>
Vanilla JS is called on DOMContentLoaded
for all .drop-button
elements.
Alternatively, initialise it manually for a specific HTML element:
import DropMenu from "@servicensw/drop-menu"
const dropMenus = document.querySelectorAll(".drop-button:not(.is-excluded)")
dropMenus.forEach((element, index) => {
new DropMenu(element, index)
})
HTML
<div class="drop-button__wrapper">
<p id="dropMenuDescription">Select an option from the list</p>
<div class="drop-button">
<ul aria-label="Drop menu" aria-describedby="dropMenuDescription">
<li><a href="#">Option 1</a></li>
<li><a href="#">Option 2</a></li>
<li><a href="#">Option 3</a></li>
<li><a href="#">Option 4</a></li>
</ul>
</div>
</div>
FAQs
Drop menu component
The npm package @servicensw/drop-menu receives a total of 16 weekly downloads. As such, @servicensw/drop-menu popularity was classified as not popular.
We found that @servicensw/drop-menu demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.