pouchdb-utils
Advanced tools
Comparing version 6.0.6 to 6.0.7
@@ -547,2 +547,31 @@ 'use strict'; | ||
// forked from | ||
// https://github.com/vmattos/js-extend/blob/7023fd69a9e9552688086b8b8006b1fcf916a306/extend.js | ||
// TODO: I don't know why we have two different extend() functions in PouchDB | ||
var slice = Array.prototype.slice; | ||
var each = Array.prototype.forEach; | ||
function extend$1(obj) { | ||
if (typeof obj !== 'object') { | ||
throw obj + ' is not an object' ; | ||
} | ||
var sources = slice.call(arguments, 1); | ||
each.call(sources, function (source) { | ||
if (source) { | ||
for (var prop in source) { | ||
if (typeof source[prop] === 'object' && obj[prop]) { | ||
extend$1.call(obj, obj[prop], source[prop]); | ||
} else { | ||
obj[prop] = source[prop]; | ||
} | ||
} | ||
} | ||
}); | ||
return obj; | ||
} | ||
function tryFilter(filter, doc, req) { | ||
@@ -839,2 +868,3 @@ try { | ||
exports.extend = extend; | ||
exports.jsExtend = extend$1; | ||
exports.filterChange = filterChange; | ||
@@ -841,0 +871,0 @@ exports.flatten = flatten; |
@@ -510,2 +510,31 @@ 'use strict'; | ||
// forked from | ||
// https://github.com/vmattos/js-extend/blob/7023fd69a9e9552688086b8b8006b1fcf916a306/extend.js | ||
// TODO: I don't know why we have two different extend() functions in PouchDB | ||
var slice = Array.prototype.slice; | ||
var each = Array.prototype.forEach; | ||
function extend$1(obj) { | ||
if (typeof obj !== 'object') { | ||
throw obj + ' is not an object' ; | ||
} | ||
var sources = slice.call(arguments, 1); | ||
each.call(sources, function (source) { | ||
if (source) { | ||
for (var prop in source) { | ||
if (typeof source[prop] === 'object' && obj[prop]) { | ||
extend$1.call(obj, obj[prop], source[prop]); | ||
} else { | ||
obj[prop] = source[prop]; | ||
} | ||
} | ||
} | ||
}); | ||
return obj; | ||
} | ||
function tryFilter(filter, doc, req) { | ||
@@ -802,2 +831,3 @@ try { | ||
exports.extend = extend; | ||
exports.jsExtend = extend$1; | ||
exports.filterChange = filterChange; | ||
@@ -804,0 +834,0 @@ exports.flatten = flatten; |
{ | ||
"name": "pouchdb-utils", | ||
"version": "6.0.6", | ||
"version": "6.0.7", | ||
"description": "Unassorted utilities used by PouchDB.", | ||
@@ -27,5 +27,5 @@ "main": "./lib/index.js", | ||
"inherits": "2.0.3", | ||
"pouchdb-errors": "6.0.6", | ||
"pouchdb-promise": "6.0.6" | ||
"pouchdb-errors": "6.0.7", | ||
"pouchdb-promise": "6.0.7" | ||
} | ||
} |
@@ -9,2 +9,3 @@ import adapterFun from './adapterFun'; | ||
import extend from './extend'; | ||
import jsExtend from './jsExtend'; | ||
import filterChange from './filterChange'; | ||
@@ -35,2 +36,3 @@ import flatten from './flatten'; | ||
extend, | ||
jsExtend, | ||
filterChange, | ||
@@ -37,0 +39,0 @@ flatten, |
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
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
83116
39
2364
+ Addedpouchdb-errors@6.0.7(transitive)
+ Addedpouchdb-promise@6.0.7(transitive)
- Removedpouchdb-errors@6.0.6(transitive)
- Removedpouchdb-promise@6.0.6(transitive)
Updatedpouchdb-errors@6.0.7
Updatedpouchdb-promise@6.0.7