MCPcopy
hub / github.com/mongodb/node-mongodb-native / emitWarningOnce

Function emitWarningOnce

src/utils.ts:1003–1008  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

1001 * @internal
1002 */
1003export function emitWarningOnce(message: string): void {
1004 if (!emittedWarnings.has(message)) {
1005 emittedWarnings.add(message);
1006 return emitWarning(message);
1007 }
1008}
1009
1010/**
1011 * Takes a JS object and joins the values into a string separated by ', '

Callers 1

countMethod · 0.90

Calls 3

emitWarningFunction · 0.85
addMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected