@opra/cli 1.5.5 → 1.5.6
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.
|
@@ -136,7 +136,7 @@ async function _generateEnumTypeCode(currentFile, dataType, intent) {
|
|
|
136
136
|
*/
|
|
137
137
|
async function _generateComplexTypeCode(currentFile, dataType, intent) {
|
|
138
138
|
let out = intent === 'root' ? `interface ${dataType.name} ` : '';
|
|
139
|
-
const ownFields = [...dataType.fields()].filter(f => f.origin === dataType);
|
|
139
|
+
const ownFields = [...dataType.fields('*')].filter(f => f.origin === dataType);
|
|
140
140
|
if (dataType.base) {
|
|
141
141
|
const base = await this.generateDataType(dataType.base, 'extends', currentFile);
|
|
142
142
|
let baseDef = base.kind === 'embedded' ? base.code : base.typeName;
|
|
@@ -27,7 +27,7 @@ async function generateHttpController(controller) {
|
|
|
27
27
|
if (options?.description)
|
|
28
28
|
out += ` - ${(0, string_utils_js_1.wrapJSDocString)(options?.description)}`;
|
|
29
29
|
if (type instanceof common_1.ComplexType && type.embedded) {
|
|
30
|
-
for (const f of type.fields()) {
|
|
30
|
+
for (const f of type.fields('*')) {
|
|
31
31
|
out += await generateParamDoc(name + '.' + f.name, f.type, f);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -126,7 +126,7 @@ export async function _generateEnumTypeCode(currentFile, dataType, intent) {
|
|
|
126
126
|
*/
|
|
127
127
|
export async function _generateComplexTypeCode(currentFile, dataType, intent) {
|
|
128
128
|
let out = intent === 'root' ? `interface ${dataType.name} ` : '';
|
|
129
|
-
const ownFields = [...dataType.fields()].filter(f => f.origin === dataType);
|
|
129
|
+
const ownFields = [...dataType.fields('*')].filter(f => f.origin === dataType);
|
|
130
130
|
if (dataType.base) {
|
|
131
131
|
const base = await this.generateDataType(dataType.base, 'extends', currentFile);
|
|
132
132
|
let baseDef = base.kind === 'embedded' ? base.code : base.typeName;
|
|
@@ -23,7 +23,7 @@ export async function generateHttpController(controller) {
|
|
|
23
23
|
if (options?.description)
|
|
24
24
|
out += ` - ${wrapJSDocString(options?.description)}`;
|
|
25
25
|
if (type instanceof ComplexType && type.embedded) {
|
|
26
|
-
for (const f of type.fields()) {
|
|
26
|
+
for (const f of type.fields('*')) {
|
|
27
27
|
out += await generateParamDoc(name + '.' + f.name, f.type, f);
|
|
28
28
|
}
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "Opra CLI tools",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@browsery/type-is": "^1.6.18-r5",
|
|
9
|
-
"@opra/client": "^1.5.
|
|
10
|
-
"@opra/common": "^1.5.
|
|
9
|
+
"@opra/client": "^1.5.6",
|
|
10
|
+
"@opra/common": "^1.5.6",
|
|
11
11
|
"ansi-colors": "^4.1.3",
|
|
12
12
|
"commander": "^12.0.0",
|
|
13
13
|
"js-string-escape": "^1.0.1",
|