Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/depr-check.js')
-rw-r--r--lib/utils/depr-check.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils/depr-check.js b/lib/utils/depr-check.js
index 7166348b0..89cf40273 100644
--- a/lib/utils/depr-check.js
+++ b/lib/utils/depr-check.js
@@ -1,13 +1,13 @@
-var log = require("npmlog")
+var log = require('npmlog')
var deprecated = {}
- , deprWarned = {}
+var deprWarned = {}
module.exports = function deprCheck (data) {
if (deprecated[data._id]) data.deprecated = deprecated[data._id]
if (data.deprecated) deprecated[data._id] = data.deprecated
else return
if (!deprWarned[data._id]) {
deprWarned[data._id] = true
- log.warn("deprecated", "%s: %s", data._id, data.deprecated)
+ log.warn('deprecated', '%s: %s', data._id, data.deprecated)
}
}