@teambit/insights 1.0.169 → 1.0.171
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.
@@ -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.171" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
@@ -26,7 +26,7 @@ function _componentIssues() {
|
|
26
26
|
return data;
|
27
27
|
}
|
28
28
|
function _issues() {
|
29
|
-
const data =
|
29
|
+
const data = require("@teambit/issues");
|
30
30
|
_issues = function () {
|
31
31
|
return data;
|
32
32
|
};
|
@@ -114,7 +114,7 @@ class InsightsMain {
|
|
114
114
|
}
|
115
115
|
exports.InsightsMain = InsightsMain;
|
116
116
|
_defineProperty(InsightsMain, "slots", []);
|
117
|
-
_defineProperty(InsightsMain, "dependencies", [_graph().GraphAspect, _cli().CLIAspect, _issues().
|
117
|
+
_defineProperty(InsightsMain, "dependencies", [_graph().GraphAspect, _cli().CLIAspect, _issues().IssuesAspect]);
|
118
118
|
_defineProperty(InsightsMain, "runtime", _cli().MainRuntime);
|
119
119
|
_defineProperty(InsightsMain, "config", {
|
120
120
|
silence: false
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_graph","_componentIssues","_issues","
|
1
|
+
{"version":3,"names":["_cli","data","require","_graph","_componentIssues","_issues","_pMapSeries","_interopRequireDefault","_insights","_coreInsightsGetter","_insightManager","_insights2","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","InsightsMain","constructor","insightManager","runInsights","names","opts","results","namesArr","run","runAll","listInsights","addInsightsAsComponentIssues","components","issuesToIgnore","insightNames","insights","map","name","getByName","includes","IssuesClasses","CircularDependencies","pMapSeries","insight","addAsComponentIssue","provider","graphMain","cli","issues","initialInsights","getCoreInsights","InsightManager","insightsMain","registerAddComponentsIssues","bind","insightsCmd","InsightsCmd","register","exports","GraphAspect","CLIAspect","IssuesAspect","MainRuntime","silence","InsightsAspect","addRuntime"],"sources":["insights.main.runtime.ts"],"sourcesContent":["import { CLIAspect, MainRuntime, CLIMain } from '@teambit/cli';\nimport { GraphAspect, GraphMain } from '@teambit/graph';\nimport { IssuesClasses } from '@teambit/component-issues';\nimport { IssuesAspect, IssuesMain } from '@teambit/issues';\nimport pMapSeries from 'p-map-series';\nimport { Component } from '@teambit/component';\nimport { InsightsAspect } from './insights.aspect';\nimport getCoreInsights from './core-insights-getter';\nimport { Insight, InsightResult } from './insight';\nimport { InsightManager, RunInsightOptions } from './insight-manager';\nimport InsightsCmd from './insights.cmd';\n\nexport class InsightsMain {\n constructor(private insightManager: InsightManager) {}\n\n async runInsights(names: string[], opts: RunInsightOptions) {\n if (names) {\n let results: InsightResult[] = [];\n const namesArr = typeof names === 'string' ? [names] : names;\n results = await this.insightManager.run(namesArr, opts);\n return results;\n }\n const results = await this.insightManager.runAll(opts);\n return results;\n }\n\n listInsights() {\n return this.insightManager.listInsights();\n }\n\n async addInsightsAsComponentIssues(components: Component[], issuesToIgnore: string[]) {\n const insightNames: string[] = this.listInsights();\n const insights = insightNames.map((name) => this.insightManager.getByName(name));\n if (!issuesToIgnore.includes(IssuesClasses.CircularDependencies.name)) {\n await pMapSeries(insights, async (insight) => {\n if (insight && insight.addAsComponentIssue) {\n await insight.addAsComponentIssue(components);\n }\n });\n }\n }\n\n static slots = [];\n static dependencies = [GraphAspect, CLIAspect, IssuesAspect];\n static runtime = MainRuntime;\n static config = {\n silence: false,\n };\n static async provider([graphMain, cli, issues]: [GraphMain, CLIMain, IssuesMain]) {\n // get all insights from registry\n const initialInsights: Insight[] = getCoreInsights(graphMain);\n // register all insights in cli\n // TODO - get user-defined insights as well, and use them when instantiating InsightManager and InsightsCmd\n const insightManager = new InsightManager(initialInsights);\n const insightsMain = new InsightsMain(insightManager);\n if (issues) issues.registerAddComponentsIssues(insightsMain.addInsightsAsComponentIssues.bind(insightsMain));\n const insightsCmd = new InsightsCmd(insightsMain);\n cli.register(insightsCmd);\n return insightsMain;\n }\n}\n\nInsightsAspect.addRuntime(InsightsMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,iBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,gBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,YAAA;EAAA,MAAAL,IAAA,GAAAM,sBAAA,CAAAL,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,oBAAA;EAAA,MAAAR,IAAA,GAAAM,sBAAA,CAAAL,OAAA;EAAAO,mBAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAS,gBAAA;EAAA,MA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AG,IAAIhC,YAAY,CAACE,cAAc,CAAC;IACrD,IAAI0B,MAAM,EAAEA,MAAM,CAACK,2BAA2B,CAACD,YAAY,CAACrB,4BAA4B,CAACuB,IAAI,CAACF,YAAY,CAAC,CAAC;IAC5G,MAAMG,WAAW,GAAG,KAAIC,oBAAW,EAACJ,YAAY,CAAC;IACjDL,GAAG,CAACU,QAAQ,CAACF,WAAW,CAAC;IACzB,OAAOH,YAAY;EACrB;AACF;AAACM,OAAA,CAAAtC,YAAA,GAAAA,YAAA;AAAApB,eAAA,CAhDYoB,YAAY,WA8BR,EAAE;AAAApB,eAAA,CA9BNoB,YAAY,kBA+BD,CAACuC,oBAAW,EAAEC,gBAAS,EAAEC,sBAAY,CAAC;AAAA7D,eAAA,CA/BjDoB,YAAY,aAgCN0C,kBAAW;AAAA9D,eAAA,CAhCjBoB,YAAY,YAiCP;EACd2C,OAAO,EAAE;AACX,CAAC;AAeHC,0BAAc,CAACC,UAAU,CAAC7C,YAAY,CAAC"}
|
@@ -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.171/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.171",
|
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.171"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
@@ -16,11 +16,11 @@
|
|
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.
|
19
|
+
"@teambit/graph": "1.0.171",
|
20
|
+
"@teambit/component": "1.0.171",
|
21
21
|
"@teambit/cli": "0.0.851",
|
22
22
|
"@teambit/component-issues": "0.0.141",
|
23
|
-
"@teambit/issues": "1.0.
|
23
|
+
"@teambit/issues": "1.0.171"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/semver": "7.3.4",
|