@cocreate/indexeddb 1.10.8 → 1.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/CoCreate.config.js +1 -1
- package/package.json +1 -1
- package/src/index.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.10.9](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.8...v1.10.9) (2023-06-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* renamed db to storage ([a22e3db](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/a22e3db59248bfc5bb75426edbecd8c306680a00))
|
|
7
|
+
* renamed hosts to host. the value can be a string or an array of strings ([b79e991](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/b79e9911e95e06e278639cd8ad9050c5f3271c14))
|
|
8
|
+
|
|
1
9
|
## [1.10.8](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.7...v1.10.8) (2023-06-10)
|
|
2
10
|
|
|
3
11
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -730,7 +730,7 @@ function runDocs({ action, data, objectStore, documents, filterDocs, database, c
|
|
|
730
730
|
if (docsLength > 0) {
|
|
731
731
|
for (let doc of docs) {
|
|
732
732
|
// TODO deDuplcate document_id per collection
|
|
733
|
-
delete doc.
|
|
733
|
+
delete doc.storage
|
|
734
734
|
delete doc.database
|
|
735
735
|
delete doc.collection
|
|
736
736
|
|
|
@@ -741,7 +741,7 @@ function runDocs({ action, data, objectStore, documents, filterDocs, database, c
|
|
|
741
741
|
doc['modified'] = { on: data.timeStamp, by: data.user_id || data.clientId }
|
|
742
742
|
|
|
743
743
|
updateDoc(action, data, doc, objectStore, database, collection).then((doc) => {
|
|
744
|
-
doc.
|
|
744
|
+
doc.storage = 'indexeddb'
|
|
745
745
|
doc.database = database
|
|
746
746
|
doc.collection = collection
|
|
747
747
|
documents.push(doc)
|
|
@@ -784,7 +784,7 @@ function runDocs({ action, data, objectStore, documents, filterDocs, database, c
|
|
|
784
784
|
if (request.result) {
|
|
785
785
|
if (action == 'readDocument')
|
|
786
786
|
doc = request.result
|
|
787
|
-
doc.
|
|
787
|
+
doc.storage = 'indexeddb'
|
|
788
788
|
doc.database = database
|
|
789
789
|
doc.collection = collection
|
|
790
790
|
|
|
@@ -1105,7 +1105,7 @@ async function generateDB(organization = { document: {} }, user = { document: {}
|
|
|
1105
1105
|
|
|
1106
1106
|
function errorHandler(data, error, database, collection) {
|
|
1107
1107
|
if (typeof error == 'object')
|
|
1108
|
-
error['
|
|
1108
|
+
error['storage'] = 'indexeddb'
|
|
1109
1109
|
else
|
|
1110
1110
|
error = { db: 'indexeddb', message: error }
|
|
1111
1111
|
|