summaryrefslogtreecommitdiff
path: root/deps/npm/lib/ls.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/ls.js')
-rw-r--r--deps/npm/lib/ls.js13
1 files changed, 5 insertions, 8 deletions
diff --git a/deps/npm/lib/ls.js b/deps/npm/lib/ls.js
index 637064eab..c1d222090 100644
--- a/deps/npm/lib/ls.js
+++ b/deps/npm/lib/ls.js
@@ -95,14 +95,11 @@ function getLite (data, noname) {
+ " " + (data.path || "") )
}
- if (data._from) {
- var from = data._from
- if (from.indexOf(data.name + "@") === 0) {
- from = from.substr(data.name.length + 1)
- }
- var u = url.parse(from)
- if (u.protocol) lite.from = from
- }
+ if (data._from)
+ lite.from = data._from
+
+ if (data._resolved)
+ lite.resolved = data._resolved
if (data.invalid) {
lite.invalid = true