Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ lib/ node_modules/ npm/ lib/ utils/ |
|
'use strict' const log = require('npmlog') const deprecated = {} const deprWarned = {} module.exports = deprCheck function deprCheck (data) { if (deprecated[data._id]) { data.deprecated = deprecated[data._id] } if (data.deprecated) { deprecated[data._id] = data.deprecated if (!deprWarned[data._id]) { deprWarned[data._id] = true log.warn('deprecated', '%s: %s', data._id, data.deprecated) } } return data }