✏️ 正在编辑: warn-deprecated.js
路径:
/lib/node_modules/npm/lib/utils/warn-deprecated.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
module.exports = warnDeprecated var log = require('npmlog') var deprecations = {} function warnDeprecated (type) { return function warn (messages, instance) { if (!instance) { if (!deprecations[type]) { deprecations[type] = {} messages.forEach(function (m) { log.warn(type, m) }) } } else { if (!deprecations[type]) deprecations[type] = {} if (!deprecations[type][instance]) { deprecations[type][instance] = true messages.forEach(function (m) { log.warn(type, m) }) } } } }
💾 保存文件
← 返回文件管理器