@cocreate/mongodb 1.17.0 → 1.17.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 +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.17.1](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.17.0...v1.17.1) (2024-01-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* handle stroage if $storage string ([732a2b9](https://github.com/CoCreate-app/CoCreate-mongodb/commit/732a2b9e0ac6cb10225a202df204f046e6728733))
|
|
7
|
+
|
|
1
8
|
# [1.17.0](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.16.1...v1.17.0) (2024-01-17)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -294,6 +294,14 @@ function object(method, data) {
|
|
|
294
294
|
let $storage = data[type][i].$storage || []
|
|
295
295
|
let $database = data[type][i].$database || []
|
|
296
296
|
let $array = data[type][i].$array || []
|
|
297
|
+
|
|
298
|
+
if (!Array.isArray($storage))
|
|
299
|
+
$storage = [data[type][i].$storage]
|
|
300
|
+
if (!Array.isArray($database))
|
|
301
|
+
$database = [data[type][i].$database]
|
|
302
|
+
if (!Array.isArray($array))
|
|
303
|
+
$array = [data[type][i].$array]
|
|
304
|
+
|
|
297
305
|
$storage.push(data.storageName)
|
|
298
306
|
$database.push(database)
|
|
299
307
|
$array.push(array)
|