@cocreate/mongodb
Advanced tools
Comparing version
@@ -0,1 +1,9 @@ | ||
## [1.4.7](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.4.6...v1.4.7) (2023-06-11) | ||
### Bug Fixes | ||
* renamed db to storage ([5eaa2bb](https://github.com/CoCreate-app/CoCreate-mongodb/commit/5eaa2bb4c5dbfb2470185a4e075b419c8529e1d7)) | ||
* 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)) | ||
## [1.4.6](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.4.5...v1.4.6) (2023-06-10) | ||
@@ -2,0 +10,0 @@ |
@@ -13,3 +13,3 @@ module.exports = { | ||
"src": "{{./docs/index.html}}", | ||
"hosts": [ | ||
"host": [ | ||
"cocreate.app", | ||
@@ -16,0 +16,0 @@ "general.cocreate.app" |
{ | ||
"name": "@cocreate/mongodb", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -396,3 +396,3 @@ const { MongoClient, ObjectId } = require('mongodb'); | ||
if (isMatch) { | ||
doc.db = 'mongodb' | ||
doc.storage = 'mongodb' | ||
doc.database = database | ||
@@ -756,3 +756,3 @@ doc.collection = collection | ||
if (typeof error == 'object') | ||
error['db'] = 'mongodb' | ||
error['storage'] = 'mongodb' | ||
else | ||
@@ -759,0 +759,0 @@ error = { db: 'mongodb', message: error } |
73788
0.6%