@dnax/core 0.76.3 → 0.76.5

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 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",
3
+ "version": "0.76.5",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
@@ -8,12 +8,11 @@
8
8
  "@types/bun": "latest",
9
9
  "@types/dot-object": "^2.1.6",
10
10
  "@types/fs-extra": "^11.0.4",
11
- "@types/jsonwebtoken": "9.0.9",
11
+ "@types/jsonwebtoken": "9.0.10",
12
12
  "@types/mime-types": "^3.0.1",
13
- "@types/minio": "^7.1.1",
14
- "@types/nodemailer": "^6.4.17",
13
+ "@types/nodemailer": "^7.0.4",
15
14
  "@types/pidusage": "^2.0.5",
16
- "@types/uuid": "^10.0.0"
15
+ "@types/uuid": "^11.0.0"
17
16
  },
18
17
  "peerDependencies": {
19
18
  "typescript": "^5.9.2"
@@ -34,21 +33,20 @@
34
33
  "dot-object": "2.1.5",
35
34
  "fs-extra": "^11.2.0",
36
35
  "generate-unique-id": "^2.0.3",
37
- "hono": "4.10.4",
38
- "joi": "17.13.3",
36
+ "hono": "4.10.7",
37
+ "joi": "18.0.2",
39
38
  "json-joy": "16.8.0",
40
- "jsonwebtoken": "^9.0.2",
39
+ "jsonwebtoken": "^9.0.3",
41
40
  "mime-types": "^2.1.35",
42
- "minio": "^8.0.5",
43
41
  "moment": "^2.30.1",
44
- "mongodb": "6.20.0",
42
+ "mongodb": "7.0.0",
45
43
  "nodemailer": "^7.0.5",
46
44
  "ora": "^8.2.0",
47
45
  "pidusage": "^4.0.0",
48
46
  "radash": "^12.1.0",
49
47
  "rfc6902": "^5.1.2",
50
- "sharp": "^0.33.5",
51
- "ssh2": "^1.16.0",
48
+ "sharp": "^0.34.5",
49
+ "ssh2": "^1.17.0",
52
50
  "ufo": "^1.5.4",
53
51
  "urlencode": "^2.0.0",
54
52
  "uuid": "^13.0.0"
package/types/index.ts CHANGED
@@ -437,7 +437,7 @@ 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
  }; */