UNPKG
web-auth-library
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
Authentication library for the browser environment using Web Crypto API
web-auth-library
/
dist
/
core
/
utils.js
10 lines
(9 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/* SPDX-FileCopyrightText: 2022-present Kriasoft */
/* SPDX-License-Identifier: MIT */
const
logOnceKeys =
new
Set
();
export
function
logOnce
(
severity, key, message
) {
if
(!logOnceKeys.
has
(key)) { logOnceKeys.
add
(key);
console
[severity](message); } }