@aeriajs/compiler 0.0.75 → 0.0.77
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/dist/ast.d.ts +1 -0
- package/dist/lexer.d.ts +1 -1
- package/dist/lexer.js +1 -0
- package/dist/parser.js +1 -0
- package/dist/semantic.js +10 -12
- package/package.json +3 -3
package/dist/ast.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export type CollectionNode = NodeBase<'collection'> & {
|
|
|
79
79
|
functions?: FunctionNode[];
|
|
80
80
|
functionSets?: [string, symbol][];
|
|
81
81
|
required?: RequiredProperties;
|
|
82
|
+
immutable?: readonly string[];
|
|
82
83
|
indexes?: readonly string[];
|
|
83
84
|
presets?: DescriptionPreset[];
|
|
84
85
|
form?: readonly string[];
|
package/dist/lexer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Token } from './token.js';
|
|
2
2
|
import { Diagnostic } from './diagnostic.js';
|
|
3
|
-
export declare const COLLECTION_KEYWORDS: readonly ["actions", "additionalProperties", "filters", "form", "formLayout", "functions", "icon", "indexes", "individualActions", "layout", "middlewares", "owned", "presets", "properties", "required", "search", "table", "tableMeta", "unique", "writable"];
|
|
3
|
+
export declare const COLLECTION_KEYWORDS: readonly ["actions", "additionalProperties", "filters", "form", "formLayout", "functions", "icon", "immutable", "indexes", "individualActions", "layout", "middlewares", "owned", "presets", "properties", "required", "search", "table", "tableMeta", "unique", "writable"];
|
|
4
4
|
export declare const COLLECTION_ACTIONS_KEYWORDS: readonly ["ask", "button", "clearItem", "effect", "event", "fetchItem", "function", "icon", "label", "params", "query", "requires", "roles", "route", "selection", "setItem", "translate"];
|
|
5
5
|
export declare const COLLECTION_SEARCH_KEYWORDS: readonly ["indexes", "placeholder", "exactMatches"];
|
|
6
6
|
export declare const COLLECTION_LAYOUT_KEYWORDS: readonly ["name", "options"];
|
package/dist/lexer.js
CHANGED
package/dist/parser.js
CHANGED
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 (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.77",
|
|
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.
|
|
25
|
-
"@aeriajs/types": "^0.0.
|
|
24
|
+
"@aeriajs/common": "^0.0.163",
|
|
25
|
+
"@aeriajs/types": "^0.0.138"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@aeriajs/common": "link:../common",
|