@cocreate/indexeddb 1.3.10 → 1.3.12

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.3.12](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.3.11...v1.3.12) (2022-11-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * delete db, database and collection from doc before storing in indexeddb ([642bca1](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/642bca11d98fb89b6f3c2750286971309b1417bc))
7
+
8
+ ## [1.3.11](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.3.10...v1.3.11) (2022-11-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies ([965a43c](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/965a43c1c50bfd3bb6a437739b629e9d7aeb9b2f))
14
+
1
15
  ## [1.3.10](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.3.9...v1.3.10) (2022-11-25)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "indexeddb",
@@ -61,8 +61,8 @@
61
61
  "webpack-log": "^3.0.1"
62
62
  },
63
63
  "dependencies": {
64
- "@cocreate/docs": "^1.4.4",
65
- "@cocreate/hosting": "^1.6.3",
64
+ "@cocreate/docs": "^1.4.5",
65
+ "@cocreate/hosting": "^1.6.4",
66
66
  "@cocreate/utils": "^1.12.0"
67
67
  }
68
68
  }
package/src/index.js CHANGED
@@ -704,6 +704,10 @@ function runDocs({action, data, objectStore, documents, filterDocs, database, co
704
704
  if (docsLength > 0) {
705
705
  for (let doc of docs) {
706
706
  // ToDo deDuplcate document_id per collection
707
+ delete doc.db
708
+ delete doc.database
709
+ delete doc.collection
710
+
707
711
  if (action == 'updateDocument' || action == 'deleteDocument') {
708
712
  if (doc._id) {
709
713
  doc['organization_id'] = data.organization_id