@teambit/insights 1.0.623 → 1.0.625
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/insights.cmd.js
CHANGED
@@ -20,7 +20,7 @@ class InsightsCmd {
|
|
20
20
|
this.insights = insights;
|
21
21
|
_defineProperty(this, "name", 'insights [names...]');
|
22
22
|
_defineProperty(this, "description", 'Insights on component graph');
|
23
|
-
_defineProperty(this, "group", '
|
23
|
+
_defineProperty(this, "group", 'workspace-tools');
|
24
24
|
_defineProperty(this, "private", true);
|
25
25
|
_defineProperty(this, "options", [['l', 'list', 'list all insights'], ['j', 'json', 'return the insights in json format'], ['', 'include-deps', 'include component dependencies that are not in this workspace']]);
|
26
26
|
}
|
package/dist/insights.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","InsightsCmd","constructor","insights","report","names","options","list","results","json","JSON","stringify","runInsights","renderData","includeDeps","template","listInsights","exports","elements","map","result","chalk","cyan","bold","message","renderedData","join"],"sources":["insights.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { InsightResult } from './insight';\nimport { InsightsMain } from './insights.main.runtime';\n\nexport default class InsightsCmd implements Command {\n name = 'insights [names...]';\n description = 'Insights on component graph';\n group = '
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","InsightsCmd","constructor","insights","report","names","options","list","results","json","JSON","stringify","runInsights","renderData","includeDeps","template","listInsights","exports","elements","map","result","chalk","cyan","bold","message","renderedData","join"],"sources":["insights.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { InsightResult } from './insight';\nimport { InsightsMain } from './insights.main.runtime';\n\nexport default class InsightsCmd implements Command {\n name = 'insights [names...]';\n description = 'Insights on component graph';\n group = 'workspace-tools';\n private = true;\n options = [\n ['l', 'list', 'list all insights'],\n ['j', 'json', 'return the insights in json format'],\n ['', 'include-deps', 'include component dependencies that are not in this workspace'],\n ] as CommandOptions;\n constructor(private insights: InsightsMain) {}\n\n async report([names]: [string[]], options: { list: boolean; includeDeps: boolean }): Promise<string> {\n if (options.list) {\n const results = await this.json([names], options);\n return JSON.stringify(results, null, 2);\n }\n const results = await this.insights.runInsights(names, { renderData: true, includeDeps: options.includeDeps });\n return template(results);\n }\n\n async json([names]: [string[]], { list, includeDeps }: { list: boolean; includeDeps: boolean }) {\n if (list) {\n const results = this.insights.listInsights();\n return results;\n }\n return this.insights.runInsights(names, { renderData: false, includeDeps });\n }\n}\n\nfunction template(results: InsightResult[]): string {\n const elements = results\n .map((result) => {\n return `\\n${chalk.cyan.bold(result.message)}\n ${result.renderedData}`;\n })\n .join('\\n');\n return elements;\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IA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WAAW,EAAER,OAAO,CAACQ;IAAY,CAAC,CAAC;IAC9G,OAAOC,QAAQ,CAACP,OAAO,CAAC;EAC1B;EAEA,MAAMC,IAAIA,CAAC,CAACJ,KAAK,CAAa,EAAE;IAAEE,IAAI;IAAEO;EAAqD,CAAC,EAAE;IAC9F,IAAIP,IAAI,EAAE;MACR,MAAMC,OAAO,GAAG,IAAI,CAACL,QAAQ,CAACa,YAAY,CAAC,CAAC;MAC5C,OAAOR,OAAO;IAChB;IACA,OAAO,IAAI,CAACL,QAAQ,CAACS,WAAW,CAACP,KAAK,EAAE;MAAEQ,UAAU,EAAE,KAAK;MAAEC;IAAY,CAAC,CAAC;EAC7E;AACF;AAACG,OAAA,CAAAnC,OAAA,GAAAmB,WAAA;AAED,SAASc,QAAQA,CAACP,OAAwB,EAAU;EAClD,MAAMU,QAAQ,GAAGV,OAAO,CACrBW,GAAG,CAAEC,MAAM,IAAK;IACf,OAAO,KAAKC,gBAAK,CAACC,IAAI,CAACC,IAAI,CAACH,MAAM,CAACI,OAAO,CAAC;AACjD,IAAIJ,MAAM,CAACK,YAAY,EAAE;EACrB,CAAC,CAAC,CACDC,IAAI,CAAC,IAAI,CAAC;EACb,OAAOR,QAAQ;AACjB","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
;
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.explorer_insights@1.0.
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.explorer_insights@1.0.625/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.625",
|
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.625"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
@@ -16,11 +16,11 @@
|
|
16
16
|
"@teambit/component-id": "1.2.4",
|
17
17
|
"@teambit/harmony": "0.4.7",
|
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.625",
|
20
|
+
"@teambit/component": "1.0.625",
|
21
|
+
"@teambit/cli": "0.0.1202",
|
22
22
|
"@teambit/component-issues": "0.0.159",
|
23
|
-
"@teambit/issues": "1.0.
|
23
|
+
"@teambit/issues": "1.0.625"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
26
|
"@types/semver": "7.5.8",
|