✏️ 正在编辑: depr-check.js
路径:
/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/lib/utils/depr-check.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
'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 }
💾 保存文件
← 返回文件管理器