@dnax/core 0.76.2 → 0.76.4
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/app/hono.ts +8 -0
- package/package.json +3 -3
- package/types/index.ts +3 -3
package/app/hono.ts
CHANGED
|
@@ -753,6 +753,14 @@ function HonoInstance(): typeof app {
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
+
if (col?.privateFields?.length && response?.data) {
|
|
757
|
+
response.data = omit(response.data, col?.privateFields);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (col?.privateFields?.length) {
|
|
761
|
+
response = omit(response, col?.privateFields);
|
|
762
|
+
}
|
|
763
|
+
|
|
756
764
|
// hidden is function
|
|
757
765
|
if (
|
|
758
766
|
col?.api?.fields?.hidden?.length &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnax/core",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.4",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {},
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"mime-types": "^2.1.35",
|
|
42
42
|
"minio": "^8.0.5",
|
|
43
43
|
"moment": "^2.30.1",
|
|
44
|
-
"mongodb": "6.
|
|
44
|
+
"mongodb": "6.21.0",
|
|
45
45
|
"nodemailer": "^7.0.5",
|
|
46
46
|
"ora": "^8.2.0",
|
|
47
47
|
"pidusage": "^4.0.0",
|
|
48
48
|
"radash": "^12.1.0",
|
|
49
49
|
"rfc6902": "^5.1.2",
|
|
50
50
|
"sharp": "^0.33.5",
|
|
51
|
-
"ssh2": "^1.
|
|
51
|
+
"ssh2": "^1.17.0",
|
|
52
52
|
"ufo": "^1.5.4",
|
|
53
53
|
"urlencode": "^2.0.0",
|
|
54
54
|
"uuid": "^13.0.0"
|
package/types/index.ts
CHANGED
|
@@ -437,13 +437,13 @@ export type Collection = {
|
|
|
437
437
|
}>;
|
|
438
438
|
autoRemoveIndexes?: Array<{
|
|
439
439
|
[key: string]: any;
|
|
440
|
-
}
|
|
440
|
+
}>|string[];
|
|
441
441
|
/* validate?:{
|
|
442
442
|
updateSchema?:AnySchema;
|
|
443
443
|
}; */
|
|
444
444
|
};
|
|
445
445
|
|
|
446
|
-
export type TimeSeriesCollection = {
|
|
446
|
+
export type TimeSeriesCollection = Collection &{
|
|
447
447
|
type?: "timeseries";
|
|
448
448
|
init?: (ctx: {
|
|
449
449
|
rest: InstanceType<typeof useRest>;
|
|
@@ -528,7 +528,7 @@ export type TimeSeriesCollection = {
|
|
|
528
528
|
timeseries:{
|
|
529
529
|
timeField:string;
|
|
530
530
|
metaField:string;
|
|
531
|
-
granularity
|
|
531
|
+
granularity?:'seconds'|'minutes'|'hours';
|
|
532
532
|
};
|
|
533
533
|
fields?: Field[];
|
|
534
534
|
api?: {
|