Socket
Socket
Sign inDemoInstall

nano

Package Overview
Dependencies
Maintainers
1
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 0.1.6 to 0.1.7

7

cfg/couch.example.js

@@ -1,4 +0,5 @@

var cfg = { host: "localhost"
, port: "5984"
, ssl: false // Not yet
var cfg = { host: "mydb.iriscouch.com"
, port: "80"
, ssl: false
, proxy: "http://someproxy.com"
, user: "admin"

@@ -5,0 +6,0 @@ , pass: "admin"

/*
* Generic Error
*
* e.g. missing rev information:
*
* { "stack": "Error: Document update conflict. at gen_err(error.js:14:43)",
* "message": "Document update conflict.",
* "error": "conflict",
* "http_code": 409,
* "namespace": "couch",
* "request": {
* "method": "PUT",
* "headers": {
* "content-type": "application/json",
* "accept": "application/json",
* "authorization": "BasicYWRtaW46YWRtaW4=",
* "content-length": 13
* },
* "body": {"foo": "baz"},
* "uri": "http://admin:admin@localhost: 5984/doc_up1/foo",
* "callback": [Function]
* }
* }
*

@@ -4,0 +25,0 @@ * Extension on Error to support more complex logic.

@@ -43,2 +43,5 @@ /* Minimal Couch In Node

}
if(cfg.proxy) { // Proxy support
request = request.defaults({proxy: cfg.proxy});
}

@@ -45,0 +48,0 @@ /****************************************************************************

{ "name": "nano"
, "description": "NanoCouch is a minimalistic driver for CouchDB built on mikeals/request"
, "homepage": "http://github.com/dscape/nanocouch"
, "version": "0.1.6"
, "version": "0.1.7"
, "author": "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"

@@ -6,0 +6,0 @@ , "keywords": ["CouchDB", "data", "request", "json", "nosql", "micro", "nano"]

@@ -20,3 +20,3 @@ # Nano

Because in `nano` you can do database operations you are not bound to one and only one database. The first thing you do is load the module pointing either providing a JSON configuration object or a string that represents the relative file path of that config, e.g. 'cfg/tests.js'. Do refer to [cfg/couch.example.js][4] for a sample.
Because in `nano` you can do database operations you are not bound to one and only one database. The first thing you do is load the module pointing either providing a JSON configuration object or a string that represents the relative file path of that config, e.g. `cfg/tests.js`. Do refer to [cfg/couch.example.js][4] for a sample.

@@ -87,3 +87,3 @@ var nano = require('nano')('./cfg/tests.js');

1. Add proxy, pipe, and ssl support as provided by request
1. Add `proxy`, `pipe`, and `ssl` support as provided by request
2. Explore adding `_changes` feed

@@ -90,0 +90,0 @@ 3. Convenience functions for attachments

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