diff options
author | isaacs <i@izs.me> | 2012-03-13 08:05:58 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-13 08:05:58 +0400 |
commit | e090f558c83542e95ab3e064c1f20127f299288d (patch) | |
tree | 33f3b056194b7b189e0c222a3ed86fadcdbb6efe | |
parent | e2f294632e17ab858ec9f150a260a78904e301b3 (diff) |
Remove some unnecessary warnings
-rw-r--r-- | lib/utils/read-json.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index 3b5b7987d..20461e4cf 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -462,11 +462,9 @@ function processObject (opts, cb) { return function (er, json) { if (opts.dev || npm.config.get("dev") || npm.config.get("npat")) { - // log.warn(json._id, "Adding devdeps") Object.keys(json.devDependencies || {}).forEach(function (d) { json.dependencies[d] = json.devDependencies[d] }) - // log.warn(json.dependencies, "Added devdeps") } typoWarn(json) @@ -492,13 +490,6 @@ function processObject (opts, cb) { return function (er, json) { var depObjectifyWarn = {} function depObjectify (deps, d, id) { - if ((!deps || typeof deps !== "object" || Array.isArray(deps)) - && !depObjectifyWarn[id+d]) { - log.warn( d + " field should be hash of <name>:<version-range> pairs" - , id ) - depObjectifyWarn[id + d] = true - } - if (!deps) return {} if (typeof deps === "string") { deps = deps.trim().split(/[\n\r\s\t ,]+/) |