@teambit/insights 1.0.226 → 1.0.227
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/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +26 -85
- package/dist/{preview-1712632644937.js → preview-1712719054377.js} +1 -1
- package/package.json +7 -7
- package/tsconfig.json +16 -1
- package/dist/all-insights/duplicate-dependencies.d.ts +0 -27
- package/dist/all-insights/find-circulars.d.ts +0 -15
- package/dist/core-insights-getter.d.ts +0 -4
- package/dist/exceptions/insight-already-exists.d.ts +0 -5
- package/dist/exceptions/insight-not-found.d.ts +0 -5
- package/dist/exceptions/no-data-for-insight.d.ts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/insight-manager.d.ts +0 -42
- package/dist/insight.d.ts +0 -29
- package/dist/insights.aspect.d.ts +0 -2
- package/dist/insights.cmd.d.ts +0 -20
- package/dist/insights.compositon.d.ts +0 -1
- package/dist/insights.main.runtime.d.ts +0 -20
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.explorer/insights@1.0.
|
3
|
+
<testsuite name="teambit.explorer/insights@1.0.227" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
@@ -401,8 +401,7 @@
|
|
401
401
|
"line": 64,
|
402
402
|
"character": 43
|
403
403
|
},
|
404
|
-
"name": "RunInsightOptions"
|
405
|
-
"internalFilePath": "insight-manager.ts"
|
404
|
+
"name": "RunInsightOptions"
|
406
405
|
},
|
407
406
|
"isOptional": false,
|
408
407
|
"isSpread": false
|
@@ -431,8 +430,7 @@
|
|
431
430
|
"line": 64,
|
432
431
|
"character": 71
|
433
432
|
},
|
434
|
-
"name": "InsightResult"
|
435
|
-
"internalFilePath": "insight.ts"
|
433
|
+
"name": "InsightResult"
|
436
434
|
}
|
437
435
|
}
|
438
436
|
]
|
@@ -476,8 +474,7 @@
|
|
476
474
|
"line": 86,
|
477
475
|
"character": 22
|
478
476
|
},
|
479
|
-
"name": "RunInsightOptions"
|
480
|
-
"internalFilePath": "insight-manager.ts"
|
477
|
+
"name": "RunInsightOptions"
|
481
478
|
},
|
482
479
|
"isOptional": false,
|
483
480
|
"isSpread": false
|
@@ -506,8 +503,7 @@
|
|
506
503
|
"line": 86,
|
507
504
|
"character": 50
|
508
505
|
},
|
509
|
-
"name": "InsightResult"
|
510
|
-
"internalFilePath": "insight.ts"
|
506
|
+
"name": "InsightResult"
|
511
507
|
}
|
512
508
|
}
|
513
509
|
]
|
@@ -605,8 +601,7 @@
|
|
605
601
|
"line": 28,
|
606
602
|
"character": 14
|
607
603
|
},
|
608
|
-
"name": "RunInsightOptions"
|
609
|
-
"internalFilePath": "insight-manager.ts"
|
604
|
+
"name": "RunInsightOptions"
|
610
605
|
},
|
611
606
|
"isOptional": true,
|
612
607
|
"isSpread": false
|
@@ -628,8 +623,7 @@
|
|
628
623
|
"line": 28,
|
629
624
|
"character": 42
|
630
625
|
},
|
631
|
-
"name": "InsightResult"
|
632
|
-
"internalFilePath": "insight.ts"
|
626
|
+
"name": "InsightResult"
|
633
627
|
}
|
634
628
|
]
|
635
629
|
},
|
@@ -677,11 +671,7 @@
|
|
677
671
|
"line": 34,
|
678
672
|
"character": 36
|
679
673
|
},
|
680
|
-
"name": "Component"
|
681
|
-
"componentId": {
|
682
|
-
"scope": "teambit.component",
|
683
|
-
"name": "component"
|
684
|
-
}
|
674
|
+
"name": "Component"
|
685
675
|
}
|
686
676
|
},
|
687
677
|
"isOptional": false,
|
@@ -818,8 +808,7 @@
|
|
818
808
|
"line": 16,
|
819
809
|
"character": 44
|
820
810
|
},
|
821
|
-
"name": "RunInsightOptions"
|
822
|
-
"internalFilePath": "insight-manager.ts"
|
811
|
+
"name": "RunInsightOptions"
|
823
812
|
},
|
824
813
|
"isOptional": false,
|
825
814
|
"isSpread": false
|
@@ -891,11 +880,7 @@
|
|
891
880
|
"line": 31,
|
892
881
|
"character": 50
|
893
882
|
},
|
894
|
-
"name": "Component"
|
895
|
-
"componentId": {
|
896
|
-
"scope": "teambit.component",
|
897
|
-
"name": "component"
|
898
|
-
}
|
883
|
+
"name": "Component"
|
899
884
|
}
|
900
885
|
},
|
901
886
|
"isOptional": false,
|
@@ -1060,11 +1045,7 @@
|
|
1060
1045
|
"line": 49,
|
1061
1046
|
"character": 52
|
1062
1047
|
},
|
1063
|
-
"name": "GraphMain"
|
1064
|
-
"componentId": {
|
1065
|
-
"scope": "teambit.component",
|
1066
|
-
"name": "graph"
|
1067
|
-
}
|
1048
|
+
"name": "GraphMain"
|
1068
1049
|
},
|
1069
1050
|
{
|
1070
1051
|
"__schema": "TypeRefSchema",
|
@@ -1073,11 +1054,7 @@
|
|
1073
1054
|
"line": 49,
|
1074
1055
|
"character": 63
|
1075
1056
|
},
|
1076
|
-
"name": "CLIMain"
|
1077
|
-
"componentId": {
|
1078
|
-
"scope": "teambit.harmony",
|
1079
|
-
"name": "cli"
|
1080
|
-
}
|
1057
|
+
"name": "CLIMain"
|
1081
1058
|
},
|
1082
1059
|
{
|
1083
1060
|
"__schema": "TypeRefSchema",
|
@@ -1086,11 +1063,7 @@
|
|
1086
1063
|
"line": 49,
|
1087
1064
|
"character": 72
|
1088
1065
|
},
|
1089
|
-
"name": "IssuesMain"
|
1090
|
-
"componentId": {
|
1091
|
-
"scope": "teambit.component",
|
1092
|
-
"name": "issues"
|
1093
|
-
}
|
1066
|
+
"name": "IssuesMain"
|
1094
1067
|
}
|
1095
1068
|
]
|
1096
1069
|
},
|
@@ -1255,12 +1228,7 @@
|
|
1255
1228
|
"line": 10,
|
1256
1229
|
"character": 9
|
1257
1230
|
},
|
1258
|
-
"name": "ComponentID"
|
1259
|
-
"componentId": {
|
1260
|
-
"scope": "teambit.component",
|
1261
|
-
"name": "component-id",
|
1262
|
-
"version": "1.2.0"
|
1263
|
-
}
|
1231
|
+
"name": "ComponentID"
|
1264
1232
|
}
|
1265
1233
|
},
|
1266
1234
|
"isOptional": true
|
@@ -1656,8 +1624,7 @@
|
|
1656
1624
|
"line": 64,
|
1657
1625
|
"character": 43
|
1658
1626
|
},
|
1659
|
-
"name": "RunInsightOptions"
|
1660
|
-
"internalFilePath": "insight-manager.ts"
|
1627
|
+
"name": "RunInsightOptions"
|
1661
1628
|
},
|
1662
1629
|
"isOptional": false,
|
1663
1630
|
"isSpread": false
|
@@ -1686,8 +1653,7 @@
|
|
1686
1653
|
"line": 64,
|
1687
1654
|
"character": 71
|
1688
1655
|
},
|
1689
|
-
"name": "InsightResult"
|
1690
|
-
"internalFilePath": "insight.ts"
|
1656
|
+
"name": "InsightResult"
|
1691
1657
|
}
|
1692
1658
|
}
|
1693
1659
|
]
|
@@ -1731,8 +1697,7 @@
|
|
1731
1697
|
"line": 86,
|
1732
1698
|
"character": 22
|
1733
1699
|
},
|
1734
|
-
"name": "RunInsightOptions"
|
1735
|
-
"internalFilePath": "insight-manager.ts"
|
1700
|
+
"name": "RunInsightOptions"
|
1736
1701
|
},
|
1737
1702
|
"isOptional": false,
|
1738
1703
|
"isSpread": false
|
@@ -1761,8 +1726,7 @@
|
|
1761
1726
|
"line": 86,
|
1762
1727
|
"character": 50
|
1763
1728
|
},
|
1764
|
-
"name": "InsightResult"
|
1765
|
-
"internalFilePath": "insight.ts"
|
1729
|
+
"name": "InsightResult"
|
1766
1730
|
}
|
1767
1731
|
}
|
1768
1732
|
]
|
@@ -2092,8 +2056,7 @@
|
|
2092
2056
|
"line": 28,
|
2093
2057
|
"character": 14
|
2094
2058
|
},
|
2095
|
-
"name": "RunInsightOptions"
|
2096
|
-
"internalFilePath": "insight-manager.ts"
|
2059
|
+
"name": "RunInsightOptions"
|
2097
2060
|
},
|
2098
2061
|
"isOptional": true,
|
2099
2062
|
"isSpread": false
|
@@ -2115,8 +2078,7 @@
|
|
2115
2078
|
"line": 28,
|
2116
2079
|
"character": 42
|
2117
2080
|
},
|
2118
|
-
"name": "InsightResult"
|
2119
|
-
"internalFilePath": "insight.ts"
|
2081
|
+
"name": "InsightResult"
|
2120
2082
|
}
|
2121
2083
|
]
|
2122
2084
|
},
|
@@ -2164,11 +2126,7 @@
|
|
2164
2126
|
"line": 34,
|
2165
2127
|
"character": 36
|
2166
2128
|
},
|
2167
|
-
"name": "Component"
|
2168
|
-
"componentId": {
|
2169
|
-
"scope": "teambit.component",
|
2170
|
-
"name": "component"
|
2171
|
-
}
|
2129
|
+
"name": "Component"
|
2172
2130
|
}
|
2173
2131
|
},
|
2174
2132
|
"isOptional": false,
|
@@ -2316,8 +2274,7 @@
|
|
2316
2274
|
"line": 16,
|
2317
2275
|
"character": 44
|
2318
2276
|
},
|
2319
|
-
"name": "RunInsightOptions"
|
2320
|
-
"internalFilePath": "insight-manager.ts"
|
2277
|
+
"name": "RunInsightOptions"
|
2321
2278
|
},
|
2322
2279
|
"isOptional": false,
|
2323
2280
|
"isSpread": false
|
@@ -2389,11 +2346,7 @@
|
|
2389
2346
|
"line": 31,
|
2390
2347
|
"character": 50
|
2391
2348
|
},
|
2392
|
-
"name": "Component"
|
2393
|
-
"componentId": {
|
2394
|
-
"scope": "teambit.component",
|
2395
|
-
"name": "component"
|
2396
|
-
}
|
2349
|
+
"name": "Component"
|
2397
2350
|
}
|
2398
2351
|
},
|
2399
2352
|
"isOptional": false,
|
@@ -2558,11 +2511,7 @@
|
|
2558
2511
|
"line": 49,
|
2559
2512
|
"character": 52
|
2560
2513
|
},
|
2561
|
-
"name": "GraphMain"
|
2562
|
-
"componentId": {
|
2563
|
-
"scope": "teambit.component",
|
2564
|
-
"name": "graph"
|
2565
|
-
}
|
2514
|
+
"name": "GraphMain"
|
2566
2515
|
},
|
2567
2516
|
{
|
2568
2517
|
"__schema": "TypeRefSchema",
|
@@ -2571,11 +2520,7 @@
|
|
2571
2520
|
"line": 49,
|
2572
2521
|
"character": 63
|
2573
2522
|
},
|
2574
|
-
"name": "CLIMain"
|
2575
|
-
"componentId": {
|
2576
|
-
"scope": "teambit.harmony",
|
2577
|
-
"name": "cli"
|
2578
|
-
}
|
2523
|
+
"name": "CLIMain"
|
2579
2524
|
},
|
2580
2525
|
{
|
2581
2526
|
"__schema": "TypeRefSchema",
|
@@ -2584,11 +2529,7 @@
|
|
2584
2529
|
"line": 49,
|
2585
2530
|
"character": 72
|
2586
2531
|
},
|
2587
|
-
"name": "IssuesMain"
|
2588
|
-
"componentId": {
|
2589
|
-
"scope": "teambit.component",
|
2590
|
-
"name": "issues"
|
2591
|
-
}
|
2532
|
+
"name": "IssuesMain"
|
2592
2533
|
}
|
2593
2534
|
]
|
2594
2535
|
},
|
@@ -2669,7 +2610,7 @@
|
|
2669
2610
|
"componentId": {
|
2670
2611
|
"scope": "teambit.explorer",
|
2671
2612
|
"name": "insights",
|
2672
|
-
"version": "1.0.
|
2613
|
+
"version": "1.0.227"
|
2673
2614
|
},
|
2674
2615
|
"taggedModuleExports": []
|
2675
2616
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
;
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_insights@1.0.
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.explorer_insights@1.0.227/dist/insights.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/insights",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.227",
|
4
4
|
"homepage": "https://bit.cloud/teambit/explorer/insights",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.explorer",
|
8
8
|
"name": "insights",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.227"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
@@ -16,18 +16,18 @@
|
|
16
16
|
"@teambit/component-id": "1.2.0",
|
17
17
|
"@teambit/harmony": "0.4.6",
|
18
18
|
"@teambit/bit-error": "0.0.404",
|
19
|
-
"@teambit/graph": "1.0.
|
20
|
-
"@teambit/component": "1.0.
|
21
|
-
"@teambit/cli": "0.0.
|
19
|
+
"@teambit/graph": "1.0.227",
|
20
|
+
"@teambit/component": "1.0.227",
|
21
|
+
"@teambit/cli": "0.0.860",
|
22
22
|
"@teambit/component-issues": "0.0.143",
|
23
|
-
"@teambit/issues": "1.0.
|
23
|
+
"@teambit/issues": "1.0.227"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/semver": "7.3.4",
|
27
27
|
"@types/lodash": "4.14.165",
|
28
28
|
"@types/mocha": "9.1.0",
|
29
29
|
"chai": "4.3.0",
|
30
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
30
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.30"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
33
|
"react": "^17.0.0 || ^18.0.0",
|
package/tsconfig.json
CHANGED
@@ -20,7 +20,8 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
23
|
+
"noImplicitAny": false,
|
24
|
+
"composite": true
|
24
25
|
},
|
25
26
|
"exclude": [
|
26
27
|
"artifacts",
|
@@ -35,5 +36,19 @@
|
|
35
36
|
"include": [
|
36
37
|
"**/*",
|
37
38
|
"**/*.json"
|
39
|
+
],
|
40
|
+
"references": [
|
41
|
+
{
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_graph@1.0.227"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_issues@1.0.227"
|
52
|
+
}
|
38
53
|
]
|
39
54
|
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { GraphMain } from '@teambit/graph';
|
2
|
-
import { Insight, InsightResult } from '../insight';
|
3
|
-
export declare const INSIGHT_NAME = "duplicate dependencies";
|
4
|
-
type Dependent = {
|
5
|
-
id: string;
|
6
|
-
usedVersion: string;
|
7
|
-
};
|
8
|
-
type VersionWithDependents = {
|
9
|
-
version: string;
|
10
|
-
compId: string;
|
11
|
-
dependents: Dependent[];
|
12
|
-
};
|
13
|
-
export default class DuplicateDependencies implements Insight {
|
14
|
-
name: string;
|
15
|
-
description: string;
|
16
|
-
graphBuilder: GraphMain;
|
17
|
-
constructor(graphBuilder: GraphMain);
|
18
|
-
private runInsight;
|
19
|
-
private formatData;
|
20
|
-
private getDependents;
|
21
|
-
revreseCompareVersions(v1: VersionWithDependents, v2: VersionWithDependents): 0 | 1 | -1;
|
22
|
-
private stringifyDependents;
|
23
|
-
private stringifyDependentsByVersion;
|
24
|
-
private renderData;
|
25
|
-
run(): Promise<InsightResult>;
|
26
|
-
}
|
27
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Component } from '@teambit/component';
|
2
|
-
import { GraphMain } from '@teambit/graph';
|
3
|
-
import { Insight, InsightResult } from '../insight';
|
4
|
-
import { RunInsightOptions } from '../insight-manager';
|
5
|
-
export declare const INSIGHT_CIRCULAR_DEPS_NAME = "circular";
|
6
|
-
export default class FindCycles implements Insight {
|
7
|
-
name: string;
|
8
|
-
description: string;
|
9
|
-
graphBuilder: GraphMain;
|
10
|
-
constructor(graphBuilder: GraphMain);
|
11
|
-
private runInsight;
|
12
|
-
private renderData;
|
13
|
-
run(opts?: RunInsightOptions): Promise<InsightResult>;
|
14
|
-
addAsComponentIssue(components: Component[]): Promise<void>;
|
15
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { GraphMain } from '@teambit/graph';
|
2
|
-
import DuplicateDependencies from './all-insights/duplicate-dependencies';
|
3
|
-
import FindCycles from './all-insights/find-circulars';
|
4
|
-
export default function getCoreInsights(graphBuilder: GraphMain): (FindCycles | DuplicateDependencies)[];
|
package/dist/index.d.ts
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
export { InsightManager } from './insight-manager';
|
2
|
-
export type { Insight } from './insight';
|
3
|
-
export type { InsightsMain } from './insights.main.runtime';
|
4
|
-
export { InsightsAspect } from './insights.aspect';
|
5
|
-
export { INSIGHT_CIRCULAR_DEPS_NAME } from './all-insights/find-circulars';
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ComponentID } from '@teambit/component-id';
|
2
|
-
import { Insight, InsightResult } from './insight';
|
3
|
-
export type RunInsightOptions = {
|
4
|
-
renderData?: boolean;
|
5
|
-
includeDeps?: boolean;
|
6
|
-
ids?: ComponentID[];
|
7
|
-
};
|
8
|
-
export declare class InsightManager {
|
9
|
-
/** insights is an insight registry */
|
10
|
-
readonly insights: Map<string, Insight>;
|
11
|
-
constructor(
|
12
|
-
/**
|
13
|
-
* array of registered insights
|
14
|
-
*/
|
15
|
-
insights: Insight[]);
|
16
|
-
/**
|
17
|
-
* registers a new insight and returns the updated insight registry map
|
18
|
-
*/
|
19
|
-
register(insight: Insight): void;
|
20
|
-
/**
|
21
|
-
* list of all registered insights
|
22
|
-
*/
|
23
|
-
listInsights(): string[];
|
24
|
-
/**
|
25
|
-
* gets a specific insight by its name or undefined if doesn't exist
|
26
|
-
*/
|
27
|
-
getByName(insightName: string): Insight | undefined;
|
28
|
-
/**
|
29
|
-
* deletes a specific insight by its name if exists
|
30
|
-
*/
|
31
|
-
delete(insightName: string): void;
|
32
|
-
/**
|
33
|
-
* execute an array of insights
|
34
|
-
*
|
35
|
-
*/
|
36
|
-
run(insightNames: string[], opts: RunInsightOptions): Promise<InsightResult[]>;
|
37
|
-
/**
|
38
|
-
* execute all insights in the registry
|
39
|
-
*
|
40
|
-
*/
|
41
|
-
runAll(opts: RunInsightOptions): Promise<InsightResult[]>;
|
42
|
-
}
|
package/dist/insight.d.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Component } from '@teambit/component';
|
2
|
-
import { RunInsightOptions } from './insight-manager';
|
3
|
-
export type InsightMetaData = {
|
4
|
-
name: string;
|
5
|
-
description: string;
|
6
|
-
};
|
7
|
-
export type InsightResult = {
|
8
|
-
metaData: InsightMetaData;
|
9
|
-
message: string;
|
10
|
-
data: any;
|
11
|
-
renderedData?: string;
|
12
|
-
};
|
13
|
-
export type RawResult = {
|
14
|
-
message: string;
|
15
|
-
data: any;
|
16
|
-
};
|
17
|
-
export interface Insight {
|
18
|
-
name: string;
|
19
|
-
description: string;
|
20
|
-
/**
|
21
|
-
* runs a specific insight using _runInsight, gets a RawResult, and uses _formatData to transform the output to InsightResult.
|
22
|
-
*/
|
23
|
-
run(opts?: RunInsightOptions): Promise<InsightResult>;
|
24
|
-
/**
|
25
|
-
* add the results from the insights as a component-issue so then bit-status could show them and bit-tag could block
|
26
|
-
* them.
|
27
|
-
*/
|
28
|
-
addAsComponentIssue?(components: Component[]): Promise<void>;
|
29
|
-
}
|
package/dist/insights.cmd.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
-
import { InsightResult } from './insight';
|
3
|
-
import { InsightsMain } from './insights.main.runtime';
|
4
|
-
export default class InsightsCmd implements Command {
|
5
|
-
private insights;
|
6
|
-
name: string;
|
7
|
-
description: string;
|
8
|
-
group: string;
|
9
|
-
private: boolean;
|
10
|
-
options: CommandOptions;
|
11
|
-
constructor(insights: InsightsMain);
|
12
|
-
report([names]: [string[]], options: {
|
13
|
-
list: boolean;
|
14
|
-
includeDeps: boolean;
|
15
|
-
}): Promise<string>;
|
16
|
-
json([names]: [string[]], { list, includeDeps }: {
|
17
|
-
list: boolean;
|
18
|
-
includeDeps: boolean;
|
19
|
-
}): Promise<string[] | InsightResult[]>;
|
20
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
2
|
-
import { GraphMain } from '@teambit/graph';
|
3
|
-
import { IssuesMain } from '@teambit/issues';
|
4
|
-
import { Component } from '@teambit/component';
|
5
|
-
import { InsightResult } from './insight';
|
6
|
-
import { InsightManager, RunInsightOptions } from './insight-manager';
|
7
|
-
export declare class InsightsMain {
|
8
|
-
private insightManager;
|
9
|
-
constructor(insightManager: InsightManager);
|
10
|
-
runInsights(names: string[], opts: RunInsightOptions): Promise<InsightResult[]>;
|
11
|
-
listInsights(): string[];
|
12
|
-
addInsightsAsComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>;
|
13
|
-
static slots: never[];
|
14
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
15
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
16
|
-
static config: {
|
17
|
-
silence: boolean;
|
18
|
-
};
|
19
|
-
static provider([graphMain, cli, issues]: [GraphMain, CLIMain, IssuesMain]): Promise<InsightsMain>;
|
20
|
-
}
|