@aeriajs/compiler 0.0.75 → 0.0.76

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.
Files changed (2) hide show
  1. package/dist/semantic.js +10 -12
  2. package/package.json +3 -3
package/dist/semantic.js CHANGED
@@ -64,18 +64,16 @@ export const analyze = async (ast, options, errors = []) => {
64
64
  }
65
65
  };
66
66
  const recurseProperty = async (node) => {
67
- if ('type' in node.property && node.property.type === 'object') {
68
- if (typeof node.nestedAdditionalProperties === 'object') {
69
- await recurseProperty(node.nestedAdditionalProperties);
70
- }
71
- if (node.nestedProperties) {
72
- await checkObjectLocalProperties(node, 'required');
73
- await checkObjectLocalProperties(node, 'writable');
74
- await checkObjectLocalProperties(node, 'form');
75
- for (const propName in node.nestedProperties) {
76
- const subProperty = node.nestedProperties[propName];
77
- await recurseProperty(subProperty);
78
- }
67
+ if (typeof node.nestedAdditionalProperties === 'object') {
68
+ await recurseProperty(node.nestedAdditionalProperties);
69
+ }
70
+ if (node.nestedProperties) {
71
+ await checkObjectLocalProperties(node, 'required');
72
+ await checkObjectLocalProperties(node, 'writable');
73
+ await checkObjectLocalProperties(node, 'form');
74
+ for (const propName in node.nestedProperties) {
75
+ const subProperty = node.nestedProperties[propName];
76
+ await recurseProperty(subProperty);
79
77
  }
80
78
  }
81
79
  else if ('$ref' in node.property) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/compiler",
3
3
  "type": "module",
4
- "version": "0.0.75",
4
+ "version": "0.0.76",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "dist"
22
22
  ],
23
23
  "peerDependencies": {
24
- "@aeriajs/common": "^0.0.162",
25
- "@aeriajs/types": "^0.0.137"
24
+ "@aeriajs/common": "^0.0.163",
25
+ "@aeriajs/types": "^0.0.138"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@aeriajs/common": "link:../common",