16 lines
494 B
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.warn = exports.warnOnce = void 0;
const warnedMessages = new Set();
function warnOnce(location, message) {
const mergedMessage = `[vdirs/${location}]: ${message}`;
if (warnedMessages.has(mergedMessage))
return;
warnedMessages.add(mergedMessage);
}
exports.warnOnce = warnOnce;
function warn(location, message) {
console.error(`[vdirs/${location}]: ${message}`);
}
exports.warn = warn;