zova-cli-set-front 1.2.94 → 1.2.96
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/index.js +17 -8
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1810,14 +1810,18 @@ export const OpenApiBaseURL = (sys: ZovaSys) => {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
//
|
|
1812
1812
|
const contentTypes2 = contentTypes.join('\n');
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
if (
|
|
1816
|
-
if (contentTypes2.includes('
|
|
1817
|
-
|
|
1813
|
+
const importsOpenapiValue = [];
|
|
1814
|
+
const importsOpenapiType = [];
|
|
1815
|
+
if (contentSignatures.length > 0) importsOpenapiValue.push('OpenApiBaseURL');
|
|
1816
|
+
if (contentTypes2.includes('components["schemas"]')) importsOpenapiType.push('components');
|
|
1817
|
+
if (contentTypes2.includes('paths[')) importsOpenapiType.push('paths');
|
|
1818
|
+
const contentImportsOpenapiValue = importsOpenapiValue.length > 0 ? `import { ${importsOpenapiValue.join(', ')} } from './openapi/index.js';` : '';
|
|
1819
|
+
const contentImportsOpenapiType = importsOpenapiType.length > 0 ? `import type { ${importsOpenapiType.join(', ')} } from './openapi/index.js';` : '';
|
|
1820
|
+
const contentImportsOpenapi = [contentImportsOpenapiValue, contentImportsOpenapiType].filter(item => !!item).join('\n');
|
|
1818
1821
|
// apiContent
|
|
1819
|
-
const apiContent = `import { Api, BeanApiBase
|
|
1820
|
-
|
|
1822
|
+
const apiContent = `import { Api, BeanApiBase } from 'zova-module-a-api';
|
|
1823
|
+
import type { IApiActionOptions } from 'zova-module-a-api';
|
|
1824
|
+
${contentImportsOpenapi}
|
|
1821
1825
|
|
|
1822
1826
|
${contentTypes2}
|
|
1823
1827
|
|
|
@@ -1852,7 +1856,8 @@ export class ApiMeta${apiName} extends BeanBase {
|
|
|
1852
1856
|
}
|
|
1853
1857
|
`;
|
|
1854
1858
|
const apiSchemaContent = `import { BeanBase } from 'zova';
|
|
1855
|
-
import { ApiSchema
|
|
1859
|
+
import { ApiSchema } from 'zova-module-a-api';
|
|
1860
|
+
import type { IApiSchemaOptions } from 'zova-module-a-api';
|
|
1856
1861
|
${contentImportsApiPath}
|
|
1857
1862
|
|
|
1858
1863
|
@ApiSchema()
|
|
@@ -1987,6 +1992,10 @@ function _patchOpenapiTSOptions(options) {
|
|
|
1987
1992
|
const res = transformCustom(schemaObject, options);
|
|
1988
1993
|
if (res !== undefined) return res;
|
|
1989
1994
|
}
|
|
1995
|
+
// // null
|
|
1996
|
+
// if (schemaObject.type === 'null') {
|
|
1997
|
+
// return NULL;
|
|
1998
|
+
// }
|
|
1990
1999
|
// multipart
|
|
1991
2000
|
if (schemaObject.format === 'binary') {
|
|
1992
2001
|
if (options.path?.includes('multipart~1form-data') || options.path?.includes('application~1octet-stream')) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-cli-set-front",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "1.2.96",
|
|
4
|
+
"gitHead": "93d6ccaace7d8eca543adb7b2dd0b295603eeec0",
|
|
5
5
|
"description": "zova cli-set-front",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"framework",
|
|
@@ -36,21 +36,21 @@
|
|
|
36
36
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
37
37
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
38
38
|
"@babel/plugin-transform-typescript": "^7.28.6",
|
|
39
|
-
"@cabloy/cli": "^3.1.
|
|
39
|
+
"@cabloy/cli": "^3.1.28",
|
|
40
40
|
"@cabloy/extend": "^3.2.8",
|
|
41
|
-
"@cabloy/module-info": "^2.0.
|
|
41
|
+
"@cabloy/module-info": "^2.0.3",
|
|
42
42
|
"@cabloy/openapi-typescript": "^7.9.2",
|
|
43
|
-
"@cabloy/utils": "^2.1.
|
|
43
|
+
"@cabloy/utils": "^2.1.26",
|
|
44
44
|
"@cabloy/vite-plugin-babel": "^1.3.3",
|
|
45
45
|
"@cabloy/vue-babel-plugin-jsx": "^2.0.1",
|
|
46
46
|
"@cabloy/word-utils": "^2.1.14",
|
|
47
47
|
"@typescript/native-preview": "^7.0.0-dev.20260320.1",
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
49
49
|
"babel-plugin-transform-typescript-metadata": "^0.4.0",
|
|
50
|
-
"babel-plugin-zova-bean-module": "^1.2.
|
|
51
|
-
"babel-plugin-zova-bean-use": "^1.1.
|
|
52
|
-
"babel-plugin-zova-behavior": "^1.1.
|
|
53
|
-
"babel-plugin-zova-component": "^1.1.
|
|
50
|
+
"babel-plugin-zova-bean-module": "^1.2.15",
|
|
51
|
+
"babel-plugin-zova-bean-use": "^1.1.15",
|
|
52
|
+
"babel-plugin-zova-behavior": "^1.1.15",
|
|
53
|
+
"babel-plugin-zova-component": "^1.1.15",
|
|
54
54
|
"compressing": "^1.10.0",
|
|
55
55
|
"fs-extra": "^11.3.5",
|
|
56
56
|
"globby": "^14.1.0",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"vite": "^8.0.14",
|
|
66
66
|
"yaml": "^2.8.3",
|
|
67
67
|
"zova-openapi": "^1.1.17",
|
|
68
|
-
"zova-vite": "^1.1.
|
|
68
|
+
"zova-vite": "^1.1.43"
|
|
69
69
|
}
|
|
70
70
|
}
|