Socket
Socket
Sign inDemoInstall

nano

Package Overview
Dependencies
Maintainers
7
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 6.4.3 to 6.4.4

LICENSE

20

lib/nano.js

@@ -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,

12

package.json

@@ -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

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