Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 3.3.2 to 3.3.3

CONTRIBUTING.md

2

nano.js

@@ -127,3 +127,3 @@ /* minimal couch in node

if(opts.db) {
req.uri = u.resolve(req.uri, opts.db);
req.uri = u.resolve(req.uri, encodeURIComponent(opts.db));
}

@@ -130,0 +130,0 @@

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

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

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

, "Juraj Vitko"
, "Paul Iannazzo <somethingitalian@gmail.com> (http://pppaul.me)"
]

@@ -31,0 +32,0 @@ , "keywords" :

@@ -375,3 +375,3 @@ # nano

`params.rev` is required. refer to the
[doc](http://wiki.apache.org/couchdb/http_document_api) for more details.
[doc](http://wiki.apache.org/couchdb/HTTP_Document_API) for more details.

@@ -607,23 +607,2 @@ ``` js

## contribute
everyone is welcome to contribute with patches, bug-fixes and new features
1. create an [issue][2] on github so the community can comment on your idea
2. fork `nano` in github
3. create a new branch `git checkout -b my_branch`
4. create tests for the changes you made
5. make sure you pass both existing and newly inserted tests
6. commit your changes
7. push to your branch `git push origin my_branch`
8. create a pull request
to run tests make sure you npm test but also run tests without mocks:
``` sh
npm run nock_off
```
check this [blogpost](http://writings.nunojob.com/2012/05/Mock-HTTP-Integration-Testing-in-Node.js-using-Nock-and-Specify.html) to learn more about how to write your own tests.
## meta

@@ -630,0 +609,0 @@

@@ -16,6 +16,15 @@ var specify = require('specify')

specify("db_create:encoded_name", timeout, function (assert) {
nano.db.create("az09_$()+-/", function (err) {
assert.equal(err, undefined, "Failed to create database");
});
});
specify("db_create:teardown", timeout, function (assert) {
nano.db.destroy("db_create", function (err) {
assert.equal(err, undefined, "Failed to destroy database");
assert.ok(mock.isDone(), "Some mocks didn't run");
nano.db.destroy("az09_$()+-/", function (err) {
assert.equal(err, undefined, "Failed to destroy database");
assert.ok(mock.isDone(), "Some mocks didn't run");
});
});

@@ -22,0 +31,0 @@ });

@@ -7,2 +7,7 @@ [

}
, { "method" : "put"
, "path" : "/az09_%24()%2B-%2F"
, "status" : 201
, "response" : "{ \"ok\": true }"
}
, { "method" : "delete"

@@ -12,2 +17,6 @@ , "path" : "/db_create"

}
, { "method" : "delete"
, "path" : "/az09_%24()%2B-%2F"
, "response" : "{ \"ok\": true }"
}
]
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