Template
1
0
mirror of https://github.com/actions/setup-node synced 2024-12-03 21:52:28 +08:00
setup-node/node_modules/octokit-pagination-methods/lib/deprecate.js
2019-08-05 15:18:52 -04:00

13 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
}