@cocreate/indexeddb 1.5.2 → 1.5.4

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,18 @@
1
+ ## [1.5.4](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.5.3...v1.5.4) (2022-12-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * bump @cocreate/utils ([1724bfe](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/1724bfe285c629e193baf82a1fdffd2e57b21a0a))
7
+ * sort direction using keyword asc desc ([61d9348](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/61d9348bbf9c31d5a2c262578f663c0030f5271e))
8
+
9
+ ## [1.5.3](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.5.2...v1.5.3) (2022-12-12)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump dependencies ([916c5d7](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/916c5d744c5938ed207914480e73e1f5e60583fd))
15
+
1
16
  ## [1.5.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.5.1...v1.5.2) (2022-12-12)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
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.18",
65
- "@cocreate/hosting": "^1.6.17",
66
- "@cocreate/utils": "^1.16.0"
64
+ "@cocreate/docs": "^1.4.19",
65
+ "@cocreate/hosting": "^1.6.18",
66
+ "@cocreate/utils": "^1.16.2"
67
67
  }
68
68
  }
package/src/index.js CHANGED
@@ -897,7 +897,7 @@ const readDocuments = (data, database, collection) => {
897
897
 
898
898
  if (isIndex) {
899
899
  let direction = data.filter.sort[0].direction
900
- if (direction == -1)
900
+ if (direction == 'desc')
901
901
  direction = 'prev'
902
902
  else
903
903
  direction = 'next'