![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@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
The npm package @n3/browser-messages receives a total of 180 weekly downloads. As such, @n3/browser-messages popularity was classified as not popular.
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 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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.