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>2013-02-11 22:13:36 +0400
committerisaacs <i@izs.me>2013-02-11 22:13:45 +0400
commitd7aa9eb2228d171c0c4f4761cf13b7ceef8b8416 (patch)
treea6f4f30aa78be2bed214d33899aadec0ec781cee
parentf468b62f011668aa7a817a80351af3d4454156b5 (diff)
Fix leaking 'name' var
-rw-r--r--lib/install.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.js b/lib/install.js
index 5f97dc43a..9f63c7463 100644
--- a/lib/install.js
+++ b/lib/install.js
@@ -649,7 +649,7 @@ function targetResolver (where, context, deps) {
}
if (wrap) {
- name = what.split(/@/).shift()
+ var name = what.split(/@/).shift()
if (wrap[name]) {
var wrapTarget = readWrap(wrap[name])
what = name + "@" + wrapTarget