Socket
Socket
Sign inDemoInstall

nano

Package Overview
Dependencies
Maintainers
2
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

tests/doc/update_with_handler_doc.js

19

nano.js

@@ -451,2 +451,20 @@ /* minimal couch in node

/*
* calls document update handler design document
*
*
* @param {design_name:string} design document namd
* @param {update_name:string} update method to call
* @param {doc_name:string} document name to update
* @param {params:object} additions to the querystring
*/
function update_with_handler_doc(design_name, update_name, doc_name, params, callback) {
if(typeof params === "function") {
callback = params;
params = {};
}
var update_path = '_design/' + design_name + '/_update/' + update_name + '/' + doc_name;
return relax({db: db_name, path: update_path, method: "PUT", params: params}, callback);
}
/*
* bulk update/delete/insert functionality

@@ -552,2 +570,3 @@ * [1]: http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API

}
, updateWithHandler: update_with_handler_doc
};

@@ -554,0 +573,0 @@ public_functions.view = view_docs;

3

package.json

@@ -5,3 +5,3 @@ { "name" : "nano"

, "repository" : "git://github.com/dscape/nano"
, "version" : "1.1.5"
, "version" : "1.2.0"
, "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"

@@ -14,2 +14,3 @@ , "contributors" :

, "Pedro Teixeira <pedro.teixeira@gmail.com> (http://metaduck.com)"
, "Tom Wilson <tom@jackhq.com> (http://jackhq.tumblr.com)"
]

@@ -16,0 +17,0 @@ , "keywords" :

@@ -72,2 +72,3 @@ # nano

* article: [getting started with node.js and couchdb](http://writings.nunojob.com/2011/09/getting-started-with-nodejs-and-couchdb.html)
* article: [Document Update Handler Support](http://jackhq.tumblr.com/post/16035106690/nano-v1-2-x-document-update-handler-support-v1-2-x)

@@ -112,2 +113,3 @@ # interfaces

`db.attachment.destroy(doc_name,att_name,rev,callback*)`
`db.updateWithHandler(design_name, update_name, doc_name, params*, callback*)`

@@ -114,0 +116,0 @@ ### aliases

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc