pouchdb-adapter-idb
Advanced tools
Comparing version 7.1.1 to 7.2.1
@@ -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)); |
{ | ||
"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", |
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
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
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
127041
3515
1
+ Addedinherits@2.0.4(transitive)
+ Addedpouchdb-adapter-utils@7.2.1(transitive)
+ Addedpouchdb-binary-utils@7.2.1(transitive)
+ Addedpouchdb-collections@7.2.1(transitive)
+ Addedpouchdb-errors@7.2.1(transitive)
+ Addedpouchdb-json@7.2.1(transitive)
+ Addedpouchdb-md5@7.2.1(transitive)
+ Addedpouchdb-merge@7.2.1(transitive)
+ Addedpouchdb-utils@7.2.1(transitive)
+ Addeduuid@3.3.3(transitive)
- Removedinherits@2.0.3(transitive)
- Removedpouchdb-adapter-utils@7.1.1(transitive)
- Removedpouchdb-binary-utils@7.1.1(transitive)
- Removedpouchdb-collections@7.1.1(transitive)
- Removedpouchdb-errors@7.1.1(transitive)
- Removedpouchdb-json@7.1.1(transitive)
- Removedpouchdb-md5@7.1.1(transitive)
- Removedpouchdb-merge@7.1.1(transitive)
- Removedpouchdb-utils@7.1.1(transitive)
- Removeduuid@3.2.1(transitive)
Updatedpouchdb-adapter-utils@7.2.1
Updatedpouchdb-binary-utils@7.2.1
Updatedpouchdb-collections@7.2.1
Updatedpouchdb-errors@7.2.1
Updatedpouchdb-json@7.2.1
Updatedpouchdb-merge@7.2.1
Updatedpouchdb-utils@7.2.1