@aeriajs/core 0.0.161 → 0.0.162

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.
@@ -8,6 +8,7 @@ export type TraverseOptionsBase = {
8
8
  fromProperties?: boolean;
9
9
  allowOperators?: boolean;
10
10
  skipUndefined?: boolean;
11
+ preserveHidden?: boolean;
11
12
  recurseDeep?: boolean;
12
13
  recurseReferences?: boolean;
13
14
  };
@@ -317,7 +317,7 @@ const recurse = async (target, ctx) => {
317
317
  ]);
318
318
  }
319
319
  if (property) {
320
- if (property.hidden) {
320
+ if (!ctx.options.preserveHidden && property.hidden) {
321
321
  continue;
322
322
  }
323
323
  if ('getters' in ctx.options && ctx.options.getters && 'getter' in property) {
@@ -279,7 +279,7 @@ const recurse = async (target, ctx) => {
279
279
  ]);
280
280
  }
281
281
  if (property) {
282
- if (property.hidden) {
282
+ if (!ctx.options.preserveHidden && property.hidden) {
283
283
  continue;
284
284
  }
285
285
  if ("getters" in ctx.options && ctx.options.getters && "getter" in property) {
@@ -34,6 +34,7 @@ const internalInsert = async (payload, context) => {
34
34
  : context.description.required,
35
35
  moveFiles: true,
36
36
  skipUndefined: true,
37
+ preserveHidden: true,
37
38
  context,
38
39
  });
39
40
  if (error) {
@@ -29,6 +29,7 @@ const internalInsert = async (payload, context) => {
29
29
  validateRequired: "_id" in payload.what && payload.what._id ? [] : context.description.required,
30
30
  moveFiles: true,
31
31
  skipUndefined: true,
32
+ preserveHidden: true,
32
33
  context
33
34
  });
34
35
  if (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/core",
3
- "version": "0.0.161",
3
+ "version": "0.0.162",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "aeriaMain": "tests/fixtures/aeriaMain.js",
@@ -42,11 +42,11 @@
42
42
  "mongodb-memory-server": "^9.2.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@aeriajs/builtins": "^0.0.161",
45
+ "@aeriajs/builtins": "^0.0.162",
46
46
  "@aeriajs/common": "^0.0.98",
47
47
  "@aeriajs/entrypoint": "^0.0.100",
48
48
  "@aeriajs/http": "^0.0.111",
49
- "@aeriajs/security": "^0.0.161",
49
+ "@aeriajs/security": "^0.0.162",
50
50
  "@aeriajs/types": "^0.0.84",
51
51
  "@aeriajs/validation": "^0.0.101"
52
52
  },