@cocreate/crud-server 1.17.28 → 1.18.0
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 +19 -0
- package/package.json +3 -3
- package/src/index.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [1.18.0](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.17.29...v1.18.0) (2023-03-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* dynamically get dburl per db type ([3c32d12](https://github.com/CoCreate-app/CoCreate-crud-server/commit/3c32d1262c54e72aae007a2333f0493cd5c4b036))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* send custom db urls with database request to store in user defined database ([70be46f](https://github.com/CoCreate-app/CoCreate-crud-server/commit/70be46fef1e25406f311ae809adc27a8e38f5018))
|
|
12
|
+
|
|
13
|
+
## [1.17.29](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.17.28...v1.17.29) (2023-02-01)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* bump dependencies ([c7a4b59](https://github.com/CoCreate-app/CoCreate-crud-server/commit/c7a4b5908bd8b7ccb615e93f1c03c14486bb3ffb))
|
|
19
|
+
|
|
1
20
|
## [1.17.28](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.17.27...v1.17.28) (2023-01-31)
|
|
2
21
|
|
|
3
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crud-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "CoCreate-crud-server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate-crud",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://cocreate.app/docs/CoCreate-crud-server",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cocreate/docs": "^1.5.
|
|
44
|
-
"@cocreate/utils": "^1.18.
|
|
43
|
+
"@cocreate/docs": "^1.5.13",
|
|
44
|
+
"@cocreate/utils": "^1.18.2",
|
|
45
45
|
"csvtojson": "^2.0.10",
|
|
46
46
|
"json-2-csv": "^3.10.3"
|
|
47
47
|
}
|
package/src/index.js
CHANGED
|
@@ -117,6 +117,9 @@ class CoCreateCrudServer {
|
|
|
117
117
|
for (let i = 0; i < data.db.length; i++) {
|
|
118
118
|
dbsLength -= 1
|
|
119
119
|
if (this.databases[data.db[i]]) {
|
|
120
|
+
if (socket.dbs && socket.dbs[data.db[i]])
|
|
121
|
+
data['dbs'] = socket.dbs[data.db[i]][0]
|
|
122
|
+
|
|
120
123
|
this.databases[data.db[i]][action](data).then((data) => {
|
|
121
124
|
//ToDo: sorting should take place here in order to return sorted values from multiple dbs
|
|
122
125
|
if (!dbsLength) {
|