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

pouchdb-utils

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-utils - npm Package Compare versions

Comparing version 6.0.6 to 6.0.7

src/jsExtend.js

30

lib/index-browser.js

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

6

package.json
{
"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,

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