Skip to content

Commit

Permalink
View to find non-local packages
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 2, 2011
1 parent c935e1c commit 585f714
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions registry/app.js
Expand Up @@ -103,6 +103,7 @@ ddoc.rewrites =


, { from: "/-/needbuild", to:"_list/needBuild/needBuild", method: "GET" } , { from: "/-/needbuild", to:"_list/needBuild/needBuild", method: "GET" }
, { from: "/-/prebuilt", to:"_list/preBuilt/needBuild", method: "GET" } , { from: "/-/prebuilt", to:"_list/preBuilt/needBuild", method: "GET" }
, { from: "/-/nonlocal", to:"_list/short/nonlocal", method: "GET" }


, { from : "/favicon.ico", to:"../../npm/favicon.ico", method:"GET" } , { from : "/favicon.ico", to:"../../npm/favicon.ico", method:"GET" }


Expand Down Expand Up @@ -486,6 +487,11 @@ ddoc.lists.preBuilt = function (head, req) {
send(out.join("\n")) send(out.join("\n"))
} }


ddoc.views.nonlocal = {
map : function (doc) {
if (doc.url) emit(doc._id, doc.name)
}
}


ddoc.views.needBuild = { ddoc.views.needBuild = {
map : function (doc) { map : function (doc) {
Expand Down

0 comments on commit 585f714

Please sign in to comment.