agsamantha/node_modules/langsmith/dist/utils/warn.js
2024-10-02 15:15:21 -05:00

7 lines
178 B
JavaScript

const warnedMessages = {};
export function warnOnce(message) {
if (!warnedMessages[message]) {
console.warn(message);
warnedMessages[message] = true;
}
}