gh-action-bump-version/node_modules/octokit-pagination-methods/lib/deprecate.js

13 lines
224 B
JavaScript
Raw Normal View History

2021-08-07 21:20:18 +00:00
module.exports = deprecate
const loggedMessages = {}
function deprecate (message) {
if (loggedMessages[message]) {
return
}
console.warn(`DEPRECATED (@octokit/rest): ${message}`)
loggedMessages[message] = 1
}