wishthis/node_modules/octokit-pagination-methods/lib/deprecate.js
2022-01-21 09:28:41 +01:00

12 lines
224 B
JavaScript

module.exports = deprecate
const loggedMessages = {}
function deprecate (message) {
if (loggedMessages[message]) {
return
}
console.warn(`DEPRECATED (@octokit/rest): ${message}`)
loggedMessages[message] = 1
}