3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00
setup-node/node_modules/octokit-pagination-methods/lib/deprecate.js
Danny McCormick 5273d0df9c Add auth
2019-08-06 18:29:44 -04: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
}