10 lines
278 B
JavaScript
10 lines
278 B
JavaScript
const origWarning = process.emitWarning;
|
|
process.emitWarning = function(...args) {
|
|
if (args[2] !== 'DEP0005') {
|
|
// pass any other warnings through normally
|
|
return origWarning.apply(process, args);
|
|
} else {
|
|
// do nothing, eat the warning
|
|
}
|
|
};
|