Permalink
Browse files

View to find non-local packages

  • Loading branch information...
1 parent c935e1c commit 585f7148ab92143018604834d80404f72d3975b2 @isaacs isaacs committed Aug 2, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 registry/app.js
View
@@ -103,6 +103,7 @@ ddoc.rewrites =
, { from: "/-/needbuild", to:"_list/needBuild/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" }
@@ -486,6 +487,11 @@ ddoc.lists.preBuilt = function (head, req) {
send(out.join("\n"))
}
+ddoc.views.nonlocal = {
+ map : function (doc) {
+ if (doc.url) emit(doc._id, doc.name)
+ }
+}
ddoc.views.needBuild = {
map : function (doc) {

0 comments on commit 585f714

Please sign in to comment.