@cocreate/indexeddb 1.10.8 → 1.10.10

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.10.10](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.9...v1.10.10) (2023-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies versions for [@cocreate](https://github.com/cocreate) libraries ([1c49d22](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/1c49d22875367a6b6849e4cafedbd3ab2139824b))
7
+
8
+ ## [1.10.9](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.8...v1.10.9) (2023-06-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * renamed db to storage ([a22e3db](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/a22e3db59248bfc5bb75426edbecd8c306680a00))
14
+ * 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))
15
+
1
16
  ## [1.10.8](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.10.7...v1.10.8) (2023-06-10)
2
17
 
3
18
 
@@ -10,7 +10,7 @@ module.exports = {
10
10
  "name": "index.html",
11
11
  "path": "/docs/indexeddb/index.html",
12
12
  "src": "{{./docs/index.html}}",
13
- "hosts": [
13
+ "host": [
14
14
  "cocreate.app",
15
15
  "general.cocreate.app"
16
16
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.10.8",
3
+ "version": "1.10.10",
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",
@@ -47,7 +47,7 @@
47
47
  "devDependencies": {
48
48
  "@babel/core": "^7.9.6",
49
49
  "@babel/preset-env": "^7.9.6",
50
- "@cocreate/cli": "^1.29.3",
50
+ "@cocreate/cli": "^1.33.0",
51
51
  "babel-loader": "^8.1.0",
52
52
  "clean-webpack-plugin": "^3.0.0",
53
53
  "file-loader": "^6.2.0",
@@ -59,7 +59,7 @@
59
59
  "webpack-log": "^3.0.1"
60
60
  },
61
61
  "dependencies": {
62
- "@cocreate/utils": "^1.21.4",
63
- "@cocreate/uuid": "^1.4.16"
62
+ "@cocreate/utils": "^1.21.5",
63
+ "@cocreate/uuid": "^1.4.17"
64
64
  }
65
65
  }
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.db
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.db = 'indexeddb'
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.db = 'indexeddb'
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['db'] = 'indexeddb'
1108
+ error['storage'] = 'indexeddb'
1109
1109
  else
1110
1110
  error = { db: 'indexeddb', message: error }
1111
1111