@cocreate/indexeddb 1.5.15 → 1.5.16

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,11 @@
1
+ ## [1.5.16](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.5.15...v1.5.16) (2022-12-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump dependencies ([ddfbb93](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/ddfbb9315125d19e4f02d48577b29aaf45df1994))
7
+ * removed !data.document condition that resulted in preventing readDocuments using filter ([8a2b9a9](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/8a2b9a9243e3f25328b1eb68d4caa53d5b0327ee))
8
+
1
9
  ## [1.5.15](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.5.14...v1.5.15) (2022-12-25)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
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",
@@ -60,8 +60,8 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/docs": "^1.4.25",
64
- "@cocreate/hosting": "^1.6.26",
65
- "@cocreate/utils": "^1.17.6"
63
+ "@cocreate/docs": "^1.4.26",
64
+ "@cocreate/hosting": "^1.6.27",
65
+ "@cocreate/utils": "^1.17.7"
66
66
  }
67
67
  }
package/src/index.js CHANGED
@@ -624,7 +624,7 @@ const document = (action, data) => {
624
624
  })
625
625
 
626
626
  } else {
627
- if (data.filter || action == 'readDocument' && !data.document) {
627
+ if (data.filter || action == 'readDocument') {
628
628
  db.close()
629
629
  readDocuments(data, database, collection).then((filterDocs) => {
630
630
  getDatabase({database}).then((db) => {