@opra/cli 1.19.4 → 1.19.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.
|
@@ -186,9 +186,10 @@ async function _generateComplexTypeCode(currentFile, dataType, intent) {
|
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
188
188
|
const x = await this.generateDataType(field.type, 'typeDef', currentFile);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
const s = x.kind === 'embedded' ? x.code : x.typeName;
|
|
190
|
+
if (field.isArray) {
|
|
191
|
+
out += /[a-zA-Z]\w*/.test(s) ? s + '[]' : '(' + s + ')[]';
|
|
192
|
+
}
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
if (dataType.additionalFields)
|
|
@@ -176,9 +176,10 @@ export async function _generateComplexTypeCode(currentFile, dataType, intent) {
|
|
|
176
176
|
}
|
|
177
177
|
else {
|
|
178
178
|
const x = await this.generateDataType(field.type, 'typeDef', currentFile);
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
const s = x.kind === 'embedded' ? x.code : x.typeName;
|
|
180
|
+
if (field.isArray) {
|
|
181
|
+
out += /[a-zA-Z]\w*/.test(s) ? s + '[]' : '(' + s + ')[]';
|
|
182
|
+
}
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
if (dataType.additionalFields)
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/cli",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.5",
|
|
4
4
|
"description": "Opra CLI tools",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@browsery/type-is": "^
|
|
8
|
+
"@browsery/type-is": "^2.0.1",
|
|
9
9
|
"ansi-colors": "^4.1.3",
|
|
10
|
-
"commander": "^14.0.
|
|
10
|
+
"commander": "^14.0.1",
|
|
11
11
|
"js-string-escape": "^1.0.1",
|
|
12
12
|
"putil-flattentext": "^2.1.1",
|
|
13
13
|
"putil-varhelpers": "^1.6.5",
|
|
14
14
|
"tslib": "^2.8.1"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@opra/client": "^1.19.
|
|
18
|
-
"@opra/common": "^1.19.
|
|
17
|
+
"@opra/client": "^1.19.5",
|
|
18
|
+
"@opra/common": "^1.19.5"
|
|
19
19
|
},
|
|
20
20
|
"type": "module",
|
|
21
21
|
"exports": {
|