mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-04 20:40:07 +02:00
update packages to latest version
This commit is contained in:
24
node_modules/npm/lib/utils/warn-deprecated.js
generated
vendored
Normal file
24
node_modules/npm/lib/utils/warn-deprecated.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
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) })
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user