@cocreate/crud-server 1.13.1 → 1.13.3
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/CoCreate.config.js +1 -1
- package/package.json +2 -2
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.13.3](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.13.2...v1.13.3) (2022-11-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* @cocreate/docs bug fix ([de8881d](https://github.com/CoCreate-app/CoCreate-crud-server/commit/de8881d76ba776707994e1574b94bb4264e60e1a))
|
|
7
|
+
|
|
8
|
+
## [1.13.2](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.13.1...v1.13.2) (2022-11-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add timeStamp if does not already exist ([3f8f432](https://github.com/CoCreate-app/CoCreate-crud-server/commit/3f8f432e0fa9da67945b70fdbd05e9821afb15cb))
|
|
14
|
+
|
|
1
15
|
## [1.13.1](https://github.com/CoCreate-app/CoCreate-crud-server/compare/v1.13.0...v1.13.1) (2022-11-21)
|
|
2
16
|
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/crud-server",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "CoCreate-crud-server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cocreate-crud",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"homepage": "https://cocreate.app/docs/CoCreate-crud-server",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cocreate/docs": "^1.3.
|
|
43
|
+
"@cocreate/docs": "^1.3.24",
|
|
44
44
|
"csvtojson": "^2.0.10",
|
|
45
45
|
"json-2-csv": "^3.10.3",
|
|
46
46
|
"mongodb": "^4.4.0"
|
package/src/index.js
CHANGED
|
@@ -82,7 +82,8 @@ class CoCreateCrudServer {
|
|
|
82
82
|
async db(socket, action, data) {
|
|
83
83
|
return new Promise(async (resolve) => {
|
|
84
84
|
try {
|
|
85
|
-
data['timeStamp']
|
|
85
|
+
if (!data['timeStamp'])
|
|
86
|
+
data['timeStamp'] = new Date().toISOString()
|
|
86
87
|
|
|
87
88
|
if (action == 'updateDocument' && data.upsert != false)
|
|
88
89
|
data.upsert = true
|