@cocreate/mongodb 1.13.0 → 1.13.1
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 +7 -0
- package/package.json +1 -1
- package/src/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.13.1](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.13.0...v1.13.1) (2023-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* handle object value string ([a97f529](https://github.com/CoCreate-app/CoCreate-mongodb/commit/a97f529b6991d6e7bf9967b7cd4bb6e7a0d6178d))
|
|
7
|
+
|
|
1
8
|
# [1.13.0](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.12.3...v1.13.0) (2023-11-19)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -272,7 +272,9 @@ function object(method, data) {
|
|
|
272
272
|
|
|
273
273
|
if (!data[type])
|
|
274
274
|
data[type] = []
|
|
275
|
-
if (data[type]
|
|
275
|
+
else if (typeof data[type] === 'string')
|
|
276
|
+
data[type] = [{ _id: data[type] }]
|
|
277
|
+
else if (!Array.isArray(data[type]))
|
|
276
278
|
data[type] = [data[type]]
|
|
277
279
|
|
|
278
280
|
let isFilter
|