mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00:00
14 lines
256 B
JavaScript
14 lines
256 B
JavaScript
/* eslint-disable no-console */
|
|
'use strict'
|
|
|
|
let printed = {}
|
|
|
|
module.exports = function warnOnce(message) {
|
|
if (printed[message]) return
|
|
printed[message] = true
|
|
|
|
if (typeof console !== 'undefined' && console.warn) {
|
|
console.warn(message)
|
|
}
|
|
}
|