@dnax/core 0.14.3 → 0.14.6
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/connect.ts +5 -0
- package/driver/mongo/rest.ts +4 -1
- package/package.json +3 -2
- package/utils/index.ts +7 -0
package/driver/mongo/connect.ts
CHANGED
package/driver/mongo/rest.ts
CHANGED
|
@@ -917,7 +917,10 @@ class useRest {
|
|
|
917
917
|
...(formatData(filter) || {}),
|
|
918
918
|
},
|
|
919
919
|
{
|
|
920
|
-
...formatData(omit(update, omitUpdate)
|
|
920
|
+
...formatData(omit(update, omitUpdate), {
|
|
921
|
+
collection: collection,
|
|
922
|
+
tenant_id: this.#tenant_id,
|
|
923
|
+
}),
|
|
921
924
|
$currentDate: {
|
|
922
925
|
updatedAt: true,
|
|
923
926
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnax/core",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.6",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"groq-sdk": "^0.8.0",
|
|
43
43
|
"hono": "^4.6.3",
|
|
44
44
|
"joi": "^17.13.3",
|
|
45
|
-
"json-joy": "
|
|
45
|
+
"json-joy": "16.8.0",
|
|
46
46
|
"jsonwebtoken": "^9.0.2",
|
|
47
47
|
"mime-types": "^2.1.35",
|
|
48
48
|
"mingo": "^6.4.15",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"openai": "^4.72.0",
|
|
54
54
|
"pidusage": "^3.0.2",
|
|
55
55
|
"radash": "^12.1.0",
|
|
56
|
+
"rfc6902": "^5.1.2",
|
|
56
57
|
"sharp": "^0.33.5",
|
|
57
58
|
"signaldb": "^0.18.0",
|
|
58
59
|
"socket.io": "^4.8.1",
|
package/utils/index.ts
CHANGED
|
@@ -13,11 +13,15 @@ import * as uuid from "uuid";
|
|
|
13
13
|
import * as urlencode from "urlencode";
|
|
14
14
|
import dotJson from "dot-object";
|
|
15
15
|
import deepCopy from "deepcopy";
|
|
16
|
+
import { applyPatch, createPatch, Pointer } from "rfc6902";
|
|
16
17
|
|
|
17
18
|
const JWT_SECRET = process?.env?.JWT_SECRET || "secret-libv";
|
|
18
19
|
import * as _ from "radash";
|
|
19
20
|
import { email } from "../lib/mail";
|
|
20
21
|
|
|
22
|
+
import { deepEqual } from "json-joy/lib/json-equal/deepEqual";
|
|
23
|
+
//import {applyPatch} from "json-joy/lib/json-patch"
|
|
24
|
+
|
|
21
25
|
function copy(data: object): object | any {
|
|
22
26
|
return deepCopy(data);
|
|
23
27
|
}
|
|
@@ -349,4 +353,7 @@ export {
|
|
|
349
353
|
urlencode,
|
|
350
354
|
stringToBoolean,
|
|
351
355
|
copy,
|
|
356
|
+
deepEqual,
|
|
357
|
+
applyPatch,
|
|
358
|
+
createPatch,
|
|
352
359
|
};
|