
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@n3/browser-messages
Advanced tools
Всплывающие уведомления для приложений на базе @n3/kit.
❗Если используется отдельно от @n3/kit, необходимо подключить тему @n3/css-base❗
import { theme } from '@n3/css-base/themes/theme-2';
import { setTheme } from '@n3/css-base';
setTheme(theme);
import { successLog } from '@n3/browser-messages';
successLog({
title: 'Успешно',
content: 'Действие прошло успешно',
});
import { errorLog } from '@n3/browser-messages';
errorLog({
title: 'Ошибка',
content: 'Действие прошло с ошибкой',
});
| Название | Описание | Значение по умолчанию |
|---|---|---|
| title | Заголовок | |
| content | Содержание | |
| isAutoClose | Закрытие по таймауту | false |
| timeout | Время показа до закрытия | 4500 |
| zIndex | z-index fixed-элемента | 20 |
Выводит ошибку из поля detail или non_field_errors.
import axios from 'axios';
import { axiosErrorLog } from '@n3/browser-messages';
try {
await axios.post(...);
} catch (e) {
axiosErrorLog(e);
}
Аргументы:
axiosError - обязательный, ошибка axios;message - необязательный, дополнительные параметры вывода сообщения;order - необязательный, порядок, по которому в ответе производится поиск ошибки, по умолчанию ['detail', 'non_field_errors'].FAQs
Browser messages for n3 interfaces
We found that @n3/browser-messages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.