@cocreate/mongodb 1.4.6 → 1.4.7

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.4.7](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.4.6...v1.4.7) (2023-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * renamed db to storage ([5eaa2bb](https://github.com/CoCreate-app/CoCreate-mongodb/commit/5eaa2bb4c5dbfb2470185a4e075b419c8529e1d7))
7
+ * renamed hosts to host. the value can be a string or an array of strings ([3dcbd95](https://github.com/CoCreate-app/CoCreate-mongodb/commit/3dcbd9501b9078324e536f550281c1708a0ff357))
8
+
1
9
  ## [1.4.6](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.4.5...v1.4.6) (2023-06-10)
2
10
 
3
11
 
@@ -10,7 +10,7 @@ module.exports = {
10
10
  "name": "index.html",
11
11
  "path": "/docs/mongodb/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/mongodb",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "mongodb",
package/src/index.js CHANGED
@@ -393,7 +393,7 @@ function document(action, data) {
393
393
  if (data.filter && data.filter['search'])
394
394
  isMatch = searchData(doc, data.filter['search'])
395
395
  if (isMatch) {
396
- doc.db = 'mongodb'
396
+ doc.storage = 'mongodb'
397
397
  doc.database = database
398
398
  doc.collection = collection
399
399
  doc._id = doc._id.toString()
@@ -752,7 +752,7 @@ function createQuery(filters) {
752
752
 
753
753
  function errorHandler(data, error, database, collection) {
754
754
  if (typeof error == 'object')
755
- error['db'] = 'mongodb'
755
+ error['storage'] = 'mongodb'
756
756
  else
757
757
  error = { db: 'mongodb', message: error }
758
758