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:
authorisaacs <i@izs.me>2012-03-20 00:10:15 +0400
committerisaacs <i@izs.me>2012-03-20 00:10:15 +0400
commit0ffcb813b8d77b7f2b558afa75f237b2143f6320 (patch)
tree842082dc2c0a94996750f3a8e8ed65077d103361 /lib/utils/read-json.js
parent5a0c5e978c0560674c2de796aaaa059a511a751f (diff)
Just correct bugs typos, rather than warn
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r--lib/utils/read-json.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js
index 20461e4cf..9d76a16b8 100644
--- a/lib/utils/read-json.js
+++ b/lib/utils/read-json.js
@@ -262,11 +262,12 @@ function typoWarn (json) {
}
if (typeof json.bugs === "object") {
+ // just go ahead and correct these.
Object.keys(bugsTypos).forEach(function (d) {
if (json.bugs.hasOwnProperty(d)) {
- log.warn( "package.json: bugs['" + d + "'] should probably be "
- + "bugs['" + bugsTypos[d] + "']", json._id)
- }
+ json.bugs[ bugsTypos[d] ] = json.bugs[d]
+ delete json.bugs[d]
+ }
})
}