zova-module-a-action 5.1.8 → 5.1.10

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.
@@ -20,15 +20,15 @@ export default async function (options: IMetadataCustomGenerateOptions): Promise
20
20
 
21
21
  async function generateRestAction(options: IMetadataCustomGenerateOptions, globFile: IGlobBeanFile) {
22
22
  const { moduleName, modulePath } = options;
23
- const { beanName, beanNameCapitalize, fileNameJS } = globFile;
23
+ const { beanName, beanNameCapitalize } = globFile;
24
24
  // options
25
25
  const typeOptionsName = `IActionOptions${beanNameCapitalize}`;
26
26
  // import
27
27
  const contentImports: string[] = [];
28
28
  contentImports.push("import type { TypeActionOptionsRest } from 'zova-module-a-action';");
29
- contentImports.push(`import type { ${typeOptionsName} } from '../../src/bean/${fileNameJS}';`);
29
+ contentImports.push(`import type { ${typeOptionsName} } from 'zova-module-${moduleName}';`);
30
30
  // component
31
- const componentNamePrefix = 'AA';
31
+ const componentNamePrefix = 'BBA';
32
32
  const componentName = beanName;
33
33
  const componentNameFull = `${componentNamePrefix}${toUpperCaseFirstChar(combineResourceName(componentName, moduleName, true, true))}`;
34
34
  const contentComponent = `export function ${componentNameFull}(
@@ -15,15 +15,15 @@ export default async function (options) {
15
15
  }
16
16
  async function generateRestAction(options, globFile) {
17
17
  const { moduleName, modulePath } = options;
18
- const { beanName, beanNameCapitalize, fileNameJS } = globFile;
18
+ const { beanName, beanNameCapitalize } = globFile;
19
19
  // options
20
20
  const typeOptionsName = `IActionOptions${beanNameCapitalize}`;
21
21
  // import
22
22
  const contentImports = [];
23
23
  contentImports.push("import type { TypeActionOptionsRest } from 'zova-module-a-action';");
24
- contentImports.push(`import type { ${typeOptionsName} } from '../../src/bean/${fileNameJS}';`);
24
+ contentImports.push(`import type { ${typeOptionsName} } from 'zova-module-${moduleName}';`);
25
25
  // component
26
- const componentNamePrefix = 'AA';
26
+ const componentNamePrefix = 'BBA';
27
27
  const componentName = beanName;
28
28
  const componentNameFull = `${componentNamePrefix}${toUpperCaseFirstChar(combineResourceName(componentName, moduleName, true, true))}`;
29
29
  const contentComponent = `export function ${componentNameFull}(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-action",
3
- "version": "5.1.8",
4
- "gitHead": "8cb2168b0a2607c216a4d9b81bc9e16088895fc5",
3
+ "version": "5.1.10",
4
+ "gitHead": "4caf955ae46d889cab5dd7efc981f562b3b54aa2",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"