@dnax/core 0.63.1 → 0.63.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/driver/mongo/rest.ts +6 -0
- package/index.ts +2 -0
- package/package.json +3 -2
package/driver/mongo/rest.ts
CHANGED
|
@@ -1305,6 +1305,9 @@ class useRest {
|
|
|
1305
1305
|
$currentDate: {
|
|
1306
1306
|
updatedAt: true,
|
|
1307
1307
|
},
|
|
1308
|
+
$setOnInsert: {
|
|
1309
|
+
createdAt: new Date(),
|
|
1310
|
+
},
|
|
1308
1311
|
},
|
|
1309
1312
|
{
|
|
1310
1313
|
upsert: options?.upsert ?? false,
|
|
@@ -1410,6 +1413,9 @@ class useRest {
|
|
|
1410
1413
|
collection: collection,
|
|
1411
1414
|
tenant_id: this.#tenant_id,
|
|
1412
1415
|
}),
|
|
1416
|
+
$setOnInsert: {
|
|
1417
|
+
createdAt: new Date(),
|
|
1418
|
+
},
|
|
1413
1419
|
$currentDate: {
|
|
1414
1420
|
updatedAt: true,
|
|
1415
1421
|
},
|
package/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import Joi from "joi";
|
|
|
6
6
|
import { $ } from "bun";
|
|
7
7
|
import define from "./define";
|
|
8
8
|
import * as utils from "./utils";
|
|
9
|
+
import { z } from "zod";
|
|
9
10
|
import { dataCache } from "./lib/bento";
|
|
10
11
|
import { FilesystemSftpAdapter } from "./lib/media";
|
|
11
12
|
import { crypt } from "./lib/crypto";
|
|
@@ -35,6 +36,7 @@ export {
|
|
|
35
36
|
Task,
|
|
36
37
|
crypt,
|
|
37
38
|
$,
|
|
39
|
+
z,
|
|
38
40
|
contextStorage,
|
|
39
41
|
Adapter,
|
|
40
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnax/core",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.3",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"ssh2": "^1.16.0",
|
|
57
57
|
"ufo": "^1.5.4",
|
|
58
58
|
"urlencode": "^2.0.0",
|
|
59
|
-
"uuid": "^11.1.0"
|
|
59
|
+
"uuid": "^11.1.0",
|
|
60
|
+
"zod": "^3.25.48"
|
|
60
61
|
}
|
|
61
62
|
}
|