@cocreate/mongodb 1.2.2 → 1.2.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 +14 -0
- package/package.json +1 -2
- package/src/index.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.2.4](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.2.3...v1.2.4) (2023-04-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* removed uglify.js from dev dependencies ([2a9dcee](https://github.com/CoCreate-app/CoCreate-mongodb/commit/2a9dcee7c88ee46f80c0fc178798bc5bc3ee0dbe))
|
|
7
|
+
|
|
8
|
+
## [1.2.3](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.2.2...v1.2.3) (2023-04-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* data.filter.query error solved using if condition ([ab65717](https://github.com/CoCreate-app/CoCreate-mongodb/commit/ab65717ac77d900860b88c6a258a80e5d06194e9))
|
|
14
|
+
|
|
1
15
|
## [1.2.2](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.2.1...v1.2.2) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/mongodb",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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",
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"mini-css-extract-plugin": "^1.5.0",
|
|
55
55
|
"style-loader": "^3.3.1",
|
|
56
56
|
"terser-webpack-plugin": "^5.1.1",
|
|
57
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
58
57
|
"webpack": "^5.24.4",
|
|
59
58
|
"webpack-cli": "^4.5.0",
|
|
60
59
|
"webpack-log": "^3.0.1"
|
package/src/index.js
CHANGED
|
@@ -134,8 +134,11 @@ function collection(action, data) {
|
|
|
134
134
|
|
|
135
135
|
if (result) {
|
|
136
136
|
for (let res of result) {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
if (data.filter && data.filter.query) {
|
|
138
|
+
let isFilter = queryData(res, data.filter.query)
|
|
139
|
+
if (isFilter)
|
|
140
|
+
collectionArray.push({ name: res.name, database, db: 'mongodb' })
|
|
141
|
+
} else
|
|
139
142
|
collectionArray.push({ name: res.name, database, db: 'mongodb' })
|
|
140
143
|
}
|
|
141
144
|
}
|