UNPKG

@callstack/reassure-logger

Version:
16 lines (15 loc) 354 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.warnOnce = warnOnce; var _logger = require("./logger"); const warned = new Set(); function warnOnce(message, ...args) { if (warned.has(message)) { return; } (0, _logger.warn)(message, ...args); warned.add(message); } //# sourceMappingURL=warn-once.js.map