Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@wildberries/notifications
Advanced tools
npm install @wildberries/notifications
import {
notificationsState,
NOTIFICATIONS_REDUCER_NAME,
} from '@wildberries/notifications';
export const rootReducer = {
[NOTIFICATIONS_REDUCER_NAME]: notificationsState,
...other root reducers
};
import React, { memo } from "react";
import { Notifications } from "@wildberries/notifications";
const TestComponent = memo(() => (
<div className="TestComponent">
<Notifications />
</div>
);
})
success | error
- modal status (required)string
- modal test (required)string
- payload of additional action if need to call from modal (not required)any
- type of additional action if need to call from modal (not required)import React from "react";
import { setModalAction } from "@wildberries/notifications";
import { useDispatch } from "react-redux";
function ExampleComponent() {
const dispatch = useDispatch();
const setModal = () => {
dispatch(setModalAction({
status: 'success',
title: 'modal title',
text: 'modal text',
additionalPayload: { foo:'bar' },
additionalActionType: 'SOME_TYPE',
}))
}
return (
<div className="ExampleComponent">
<button onClick={setModal}>button</button>
</div>
);
}
export default App;
FAQs
notifications module
The npm package @wildberries/notifications receives a total of 734 weekly downloads. As such, @wildberries/notifications popularity was classified as not popular.
We found that @wildberries/notifications demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.