Comparing version 6.4.3 to 6.4.4
@@ -20,3 +20,3 @@ // Licensed under the Apache License, Version 2.0 (the 'License'); you may not | ||
var errs = require('errs'); | ||
var _ = require('underscore'); | ||
var isEmpty = require('lodash.isempty'); | ||
var follow = require('cloudant-follow'); | ||
@@ -39,3 +39,3 @@ var logger = require('./logger'); | ||
cfg = _.clone(cfg); | ||
cfg = Object.assign({}, cfg); | ||
@@ -89,3 +89,3 @@ serverScope.config = cfg; | ||
var qs = _.extend({}, opts.qs); | ||
var qs = Object.assign({}, opts.qs); | ||
@@ -122,3 +122,3 @@ var headers = { | ||
req.headers = _.extend(req.headers, opts.headers, cfg.defaultHeaders); | ||
req.headers = Object.assign(req.headers, opts.headers, cfg.defaultHeaders); | ||
@@ -154,2 +154,6 @@ if (opts.path) { | ||
if(opts.accept) { | ||
req.headers['accept'] = opts.accept; | ||
} | ||
// http://guide.couchdb.org/draft/security.html#cookies | ||
@@ -162,3 +166,3 @@ if (cfg.cookie) { | ||
// http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options | ||
if (typeof opts.qs === 'object' && !_.isEmpty(opts.qs)) { | ||
if (typeof opts.qs === 'object' && !isEmpty(opts.qs)) { | ||
['startkey', 'endkey', 'key', 'keys'].forEach(function(key) { | ||
@@ -669,3 +673,3 @@ if (key in opts.qs) { | ||
doc = _.extend({_attachments: {}}, doc); | ||
doc = Object.assign({_attachments: {}}, doc); | ||
@@ -713,3 +717,3 @@ var multipart = []; | ||
encoding: null, | ||
contentType: 'multipart/related', | ||
accept: 'multipart/related', | ||
qs: qs | ||
@@ -850,3 +854,3 @@ }, callback); | ||
// server level exports | ||
serverScope = _.extend(serverScope, { | ||
serverScope = Object.assign(serverScope, { | ||
db: { | ||
@@ -853,0 +857,0 @@ create: createDb, |
@@ -7,3 +7,3 @@ { | ||
"repository": "http://github.com/apache/couchdb-nano", | ||
"version": "6.4.3", | ||
"version": "6.4.4", | ||
"author": "Apache CouchDB <dev@couchdb.apache.org> (http://couchdb.apache.org)", | ||
@@ -21,7 +21,7 @@ "keywords": [ | ||
"dependencies": { | ||
"request": "~2.83.0", | ||
"cloudant-follow": "~0.16.1", | ||
"cloudant-follow": "~0.17.0", | ||
"debug": "^2.2.0", | ||
"errs": "^0.3.2", | ||
"underscore": "^1.8.3", | ||
"debug": "^2.2.0" | ||
"lodash.isempty": "^4.4.0", | ||
"request": "^2.85.0" | ||
}, | ||
@@ -50,3 +50,3 @@ "devDependencies": { | ||
"engines": { | ||
"node": ">=0.12" | ||
"node": ">=6" | ||
}, | ||
@@ -53,0 +53,0 @@ "pre-commit": [ |
@@ -24,2 +24,4 @@ [![Build Status](https://travis-ci.org/apache/couchdb-nano.svg?branch=master)](https://travis-ci.org/apache/couchdb-nano)![Coverage](https://img.shields.io/badge/coverage-100%-ff69b4.svg)[![dependencies Status](https://david-dm.org/apache/couchdb-nano/status.svg)](https://david-dm.org/apache/couchdb-nano)[![NPM](http://img.shields.io/npm/v/nano.svg?style=flat-square)](https://www.npmjs.com/package/nano) | ||
Note the minimum required version of Node.js is 6. | ||
## Table of contents | ||
@@ -77,2 +79,3 @@ | ||
- [Tests](#tests) | ||
- [Release](#release) | ||
@@ -1027,16 +1030,10 @@ ## Getting started | ||
## License | ||
## Release | ||
copyright 2011 nuno job <nunojob.com> (oo)--',-- | ||
To create a new release of nano. Run the following commands on the master branch | ||
licensed under the apache license, version 2.0 (the "license"); | ||
you may not use this file except in compliance with the license. | ||
you may obtain a copy of the license at | ||
http://www.apache.org/licenses/LICENSE-2.0.html | ||
unless required by applicable law or agreed to in writing, software | ||
distributed under the license is distributed on an "as is" basis, | ||
without warranties or conditions of any kind, either express or implied. | ||
see the license for the specific language governing permissions and | ||
limitations under the license. | ||
```sh | ||
npm version {patch|minor|major} | ||
github push origin master --tags | ||
npm publish | ||
``` |
@@ -22,3 +22,3 @@ // Licensed under the Apache License, Version 2.0 (the 'License'); you may not | ||
encoding: null, | ||
headers: {'content-type': 'multipart/related'}, | ||
headers: {'accept': 'multipart/related'}, | ||
method: 'GET', | ||
@@ -25,0 +25,0 @@ qs: {attachments: true, extra: 'stuff'}, |
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
253696
133
5632
1
80
1037
+ Addedlodash.isempty@^4.4.0
+ Addedajv@6.12.6(transitive)
+ Addedcloudant-follow@0.17.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedlodash.isempty@4.4.0(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removedunderscore@^1.8.3
- Removedajv@5.5.2(transitive)
- Removedboom@4.3.15.3.3(transitive)
- Removedcloudant-follow@0.16.1(transitive)
- Removedco@4.6.0(transitive)
- Removedcryptiles@3.2.1(transitive)
- Removedfast-deep-equal@1.1.0(transitive)
- Removedhar-validator@5.0.3(transitive)
- Removedhawk@6.0.2(transitive)
- Removedhoek@4.3.1(transitive)
- Removedjson-schema-traverse@0.3.1(transitive)
- Removedoauth-sign@0.8.2(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedrequest@2.83.0(transitive)
- Removedsntp@2.1.0(transitive)
- Removedstringstream@0.0.6(transitive)
- Removedtough-cookie@2.3.4(transitive)
- Removedunderscore@1.13.7(transitive)
Updatedcloudant-follow@~0.17.0
Updatedrequest@^2.85.0