Comparing version 3.3.8 to 3.4.0
20
nano.js
@@ -769,2 +769,20 @@ /* minimal couch in node | ||
/* | ||
* calls a spatial view | ||
* | ||
* @param {design_name:string} design document name | ||
* @param {spatial_name:string} spatial view to call | ||
* | ||
* @see relax | ||
*/ | ||
function view_spatial(design_name, view_name, params, callback) { | ||
if(typeof params === "function") { | ||
callback = params; | ||
params = {}; | ||
} | ||
var view_path = '_design/' + design_name + '/_spatial/' + view_name; | ||
return relax({db: db_name, path: view_path | ||
, method: "GET", params: params},callback); | ||
} | ||
/* | ||
* calls a show function | ||
@@ -935,2 +953,4 @@ * | ||
public_functions.view = view_docs; | ||
public_functions.spatial = view_spatial; | ||
public_functions.view.compact = function(design_name,cb) { | ||
@@ -937,0 +957,0 @@ return compact_db(db_name,design_name,cb); |
@@ -5,3 +5,3 @@ { "name" : "nano" | ||
, "repository" : "git://github.com/dscape/nano" | ||
, "version" : "3.3.8" | ||
, "version" : "3.4.0" | ||
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)" | ||
@@ -11,3 +11,3 @@ , "contributors" : | ||
, "Derek Perez <derek@derekperez.com> (http://blog.derekperez.com)" | ||
, "Patrick Heneise (http://patrickheneise.me)" | ||
, "Patrick Heneise (http://patrickheneise.com)" | ||
, "Artur Konarski (http://tarantoga.com)" | ||
@@ -35,2 +35,3 @@ , "Pedro Teixeira <pedro.teixeira@gmail.com> (http://metaduck.com)" | ||
, "John Chesley (http://chesl.es)" | ||
, "Damon Oehlman <damon@fluxant.com>" | ||
] | ||
@@ -41,3 +42,3 @@ , "keywords" : | ||
{ "request" : "2.16.x" | ||
, "follow" : "0.8.x" | ||
, "follow" : "0.9.x" | ||
, "errs" : "0.2.x" | ||
@@ -44,0 +45,0 @@ , "underscore" : "1.4.x" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154340
3595
+ Addedfollow@0.9.0(transitive)
- Removedfollow@0.8.0(transitive)
- Removedrequest@2.2.9(transitive)
Updatedfollow@0.9.x