@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 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 === -1)
116
+ if (posB === 0)
117
117
  return;
118
118
  const posC = moduleUrl.indexOf('/', posB);
119
119
  if (posC === -1)
@@ -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: Record<string, string>;
48
+ dependencies?: Record<string, string>;
44
49
  theme: object;
45
50
  icon: string;
46
51
  locale: string;
47
52
  };
48
- zovaModule: {
49
- capabilities: {
50
- monkey: boolean;
51
- sync: boolean;
52
- icon: boolean;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-info",
3
- "version": "1.0.17",
3
+ "version": "1.0.20",
4
4
  "description": "cabloy module-info",
5
5
  "publishConfig": {
6
6
  "access": "public"