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

pouchdb-adapter-idb

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-adapter-idb - npm Package Compare versions

Comparing version 7.1.1 to 7.2.1

11

lib/index.es.js

@@ -1969,4 +1969,11 @@ import { preprocessAttachments, processDocs, isLocalId, parseDoc } from 'pouchdb-adapter-utils';

req.onerror = function () {
var msg = 'Failed to open indexedDB, are you in private browsing mode?';
req.onerror = function (e) {
var msg = e.target.error && e.target.error.message;
if (!msg) {
msg = 'Failed to open indexedDB, are you in private browsing mode?';
} else if (msg.indexOf("stored database is a higher version") !== -1) {
msg = new Error('This DB was created with the newer "indexeddb" adapter, but you are trying to open it with the older "idb" adapter');
}
guardedConsole('error', msg);

@@ -1973,0 +1980,0 @@ callback(createError(IDB_ERROR, msg));

@@ -1971,4 +1971,11 @@ 'use strict';

req.onerror = function () {
var msg = 'Failed to open indexedDB, are you in private browsing mode?';
req.onerror = function (e) {
var msg = e.target.error && e.target.error.message;
if (!msg) {
msg = 'Failed to open indexedDB, are you in private browsing mode?';
} else if (msg.indexOf("stored database is a higher version") !== -1) {
msg = new Error('This DB was created with the newer "indexeddb" adapter, but you are trying to open it with the older "idb" adapter');
}
pouchdbUtils.guardedConsole('error', msg);

@@ -1975,0 +1982,0 @@ callback(pouchdbErrors.createError(pouchdbErrors.IDB_ERROR, msg));

16

package.json
{
"name": "pouchdb-adapter-idb",
"version": "7.1.1",
"version": "7.2.1",
"description": "PouchDB adapter using IndexedDB as its data store.",

@@ -12,9 +12,9 @@ "main": "./lib/index.js",

"dependencies": {
"pouchdb-adapter-utils": "7.1.1",
"pouchdb-binary-utils": "7.1.1",
"pouchdb-collections": "7.1.1",
"pouchdb-errors": "7.1.1",
"pouchdb-json": "7.1.1",
"pouchdb-merge": "7.1.1",
"pouchdb-utils": "7.1.1"
"pouchdb-adapter-utils": "7.2.1",
"pouchdb-binary-utils": "7.2.1",
"pouchdb-collections": "7.2.1",
"pouchdb-errors": "7.2.1",
"pouchdb-json": "7.2.1",
"pouchdb-merge": "7.2.1",
"pouchdb-utils": "7.2.1"
},

@@ -21,0 +21,0 @@ "module": "./lib/index.es.js",

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