deprecate.js 224 B

12345678910111213
  1. module.exports = deprecate
  2. const loggedMessages = {}
  3. function deprecate (message) {
  4. if (loggedMessages[message]) {
  5. return
  6. }
  7. console.warn(`DEPRECATED (@octokit/rest): ${message}`)
  8. loggedMessages[message] = 1
  9. }