mirror of
https://gitea.com/actions/setup-node.git
synced 2024-11-23 02:29:33 +01:00
13 lines
224 B
JavaScript
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
|
||
|
}
|