pouchdb-adapter-http
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -5,4 +5,4 @@ 'use strict'; | ||
var Promise = _interopDefault(require('pouchdb-promise')); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var Promise = _interopDefault(require('pouchdb-promise')); | ||
var ajaxCore = _interopDefault(require('pouchdb-ajax')); | ||
@@ -17,2 +17,3 @@ var getArguments = _interopDefault(require('argsarray')); | ||
function pool(promiseFactories, limit) { | ||
@@ -209,2 +210,5 @@ return new Promise(function (resolve, reject) { | ||
var reqOpts = pouchdbUtils.assign(pouchdbUtils.clone(ajaxOpts), reqAjax, options); | ||
var defaultHeaders = pouchdbUtils.clone(ajaxOpts.headers || {}); | ||
reqOpts.headers = pouchdbUtils.assign(defaultHeaders, reqAjax.headers, | ||
options.headers || {}); | ||
log(reqOpts.method + ' ' + reqOpts.url); | ||
@@ -211,0 +215,0 @@ return api._ajax(reqOpts, callback); |
{ | ||
"name": "pouchdb-adapter-http", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "PouchDB adapter using HTTP (e.g. a remote CouchDB) as its data store.", | ||
@@ -10,16 +10,17 @@ "main": "./lib/index.js", | ||
"repository": "https://github.com/pouchdb/pouchdb", | ||
"jsnext:main": "./src/index.js", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"jsnext:main": "./lib/index.es.js", | ||
"dependencies": { | ||
"argsarray": "0.0.1", | ||
"debug": "2.6.0", | ||
"pouchdb-ajax": "6.1.1", | ||
"pouchdb-binary-utils": "6.1.1", | ||
"pouchdb-errors": "6.1.1", | ||
"pouchdb-promise": "6.1.1", | ||
"pouchdb-utils": "6.1.1" | ||
} | ||
"pouchdb-ajax": "6.1.2", | ||
"pouchdb-binary-utils": "6.1.2", | ||
"pouchdb-errors": "6.1.2", | ||
"pouchdb-promise": "6.1.2", | ||
"pouchdb-utils": "6.1.2" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"tonic-example.js" | ||
] | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
71296
5
1788
+ Addedpouchdb-ajax@6.1.2(transitive)
+ Addedpouchdb-binary-utils@6.1.2(transitive)
+ Addedpouchdb-collections@6.1.2(transitive)
+ Addedpouchdb-errors@6.1.2(transitive)
+ Addedpouchdb-promise@6.1.2(transitive)
+ Addedpouchdb-utils@6.1.2(transitive)
- Removedpouchdb-ajax@6.1.1(transitive)
- Removedpouchdb-binary-utils@6.1.1(transitive)
- Removedpouchdb-collections@6.1.1(transitive)
- Removedpouchdb-errors@6.1.1(transitive)
- Removedpouchdb-promise@6.1.1(transitive)
- Removedpouchdb-utils@6.1.1(transitive)
Updatedpouchdb-ajax@6.1.2
Updatedpouchdb-binary-utils@6.1.2
Updatedpouchdb-errors@6.1.2
Updatedpouchdb-promise@6.1.2
Updatedpouchdb-utils@6.1.2