@cabloy/module-info 1.0.17 → 1.0.20
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 +1 -1
- package/dist/interface.d.ts +16 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -113,7 +113,7 @@ exports.parseName = parseName;
|
|
|
113
113
|
function _parseNameLikeUrl(moduleUrl, prefix) {
|
|
114
114
|
const posA = prefix.length;
|
|
115
115
|
const posB = moduleUrl.indexOf('/', posA) + 1;
|
|
116
|
-
if (posB ===
|
|
116
|
+
if (posB === 0)
|
|
117
117
|
return;
|
|
118
118
|
const posC = moduleUrl.indexOf('/', posB);
|
|
119
119
|
if (posC === -1)
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
export type TypeProjectMode = 'front' | 'api' | 'zova';
|
|
2
2
|
export type TypeProjectEntityType = 'module' | 'suite';
|
|
3
|
+
export interface IModuleCapabilities {
|
|
4
|
+
monkey: boolean;
|
|
5
|
+
sync: boolean;
|
|
6
|
+
icon: boolean;
|
|
7
|
+
theme: boolean;
|
|
8
|
+
locale: boolean;
|
|
9
|
+
}
|
|
3
10
|
export interface IModuleInfo {
|
|
4
11
|
pid: string;
|
|
5
12
|
name: string;
|
|
6
13
|
fullName: string;
|
|
7
14
|
relativeName: string;
|
|
8
15
|
url: string;
|
|
9
|
-
sync?: boolean;
|
|
10
|
-
monkey?: boolean;
|
|
11
|
-
icon?: boolean;
|
|
12
16
|
vendor?: boolean;
|
|
13
17
|
node_modules?: boolean;
|
|
14
18
|
originalName: string;
|
|
19
|
+
capabilities?: IModuleCapabilities;
|
|
15
20
|
}
|
|
16
21
|
export interface ISuiteModuleBase {
|
|
17
22
|
name: string;
|
|
@@ -33,29 +38,23 @@ export interface IBundleVendor {
|
|
|
33
38
|
export interface IModulePackage {
|
|
34
39
|
name: string;
|
|
35
40
|
version: string;
|
|
36
|
-
cabloyModule
|
|
37
|
-
capabilities
|
|
41
|
+
cabloyModule?: {
|
|
42
|
+
capabilities?: {
|
|
38
43
|
monkey: boolean;
|
|
39
44
|
sync: boolean;
|
|
40
45
|
icon: boolean;
|
|
41
46
|
};
|
|
42
47
|
fileVersion: number;
|
|
43
|
-
dependencies
|
|
48
|
+
dependencies?: Record<string, string>;
|
|
44
49
|
theme: object;
|
|
45
50
|
icon: string;
|
|
46
51
|
locale: string;
|
|
47
52
|
};
|
|
48
|
-
zovaModule
|
|
49
|
-
capabilities
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
theme: boolean;
|
|
54
|
-
locale: boolean;
|
|
55
|
-
};
|
|
56
|
-
dependencies: Record<string, string>;
|
|
57
|
-
bundle: {
|
|
58
|
-
vendors: Array<IBundleVendor>;
|
|
53
|
+
zovaModule?: {
|
|
54
|
+
capabilities?: IModuleCapabilities;
|
|
55
|
+
dependencies?: Record<string, string>;
|
|
56
|
+
bundle?: {
|
|
57
|
+
vendors?: Array<IBundleVendor>;
|
|
59
58
|
};
|
|
60
59
|
};
|
|
61
60
|
title: string;
|