@teambit/component-compare 1.0.623 → 1.0.624
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/diff-cmd.js
CHANGED
|
@@ -33,7 +33,7 @@ class DiffCmd {
|
|
|
33
33
|
constructor(componentCompareMain) {
|
|
34
34
|
this.componentCompareMain = componentCompareMain;
|
|
35
35
|
_defineProperty(this, "name", 'diff [component-pattern] [version] [to-version]');
|
|
36
|
-
_defineProperty(this, "group", '
|
|
36
|
+
_defineProperty(this, "group", 'info-analysis');
|
|
37
37
|
_defineProperty(this, "description", "show the diff between the components' current source files and config, and their latest snapshot or tag");
|
|
38
38
|
_defineProperty(this, "helpUrl", 'docs/components/merging-changes#compare-component-snaps');
|
|
39
39
|
_defineProperty(this, "arguments", [{
|
package/dist/diff-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_legacy2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DiffCmd","constructor","componentCompareMain","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","version","toVersion","verbose","table","parent","diffResults","diffByCLIValues","length","chalk","yellow","outputDiffResults","exports"],"sources":["diff-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport { DiffResults, outputDiffResults } from '@teambit/legacy.component-diff';\nimport { ComponentCompareMain } from './component-compare.main.runtime';\n\nexport class DiffCmd implements Command {\n name = 'diff [component-pattern] [version] [to-version]';\n group = '
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_legacy","_legacy2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DiffCmd","constructor","componentCompareMain","name","description","COMPONENT_PATTERN_HELP","cmd","report","pattern","version","toVersion","verbose","table","parent","diffResults","diffByCLIValues","length","chalk","yellow","outputDiffResults","exports"],"sources":["diff-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport { DiffResults, outputDiffResults } from '@teambit/legacy.component-diff';\nimport { ComponentCompareMain } from './component-compare.main.runtime';\n\nexport class DiffCmd implements Command {\n name = 'diff [component-pattern] [version] [to-version]';\n group = 'info-analysis';\n description =\n \"show the diff between the components' current source files and config, and their latest snapshot or tag\";\n helpUrl = 'docs/components/merging-changes#compare-component-snaps';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n {\n name: 'version',\n description: `the base version to compare from. if omitted, compares the workspace's current files to the component's latest version.`,\n },\n {\n name: 'to-version',\n description: `the target version to compare against \"version\".\nif both \"version\" and \"to-version\" are provided, compare those two versions directly (ignoring the workspace).`,\n },\n ];\n alias = '';\n options = [\n ['p', 'parent', 'compare the specified \"version\" to its immediate parent instead of comparing to the current one'],\n ['v', 'verbose', 'show a more verbose output where possible'],\n ['t', 'table', 'show tables instead of plain text for dependencies diff'],\n ] as CommandOptions;\n examples = [\n { cmd: 'diff', description: 'show diff for all modified components' },\n { cmd: 'diff foo', description: 'show diff for a component \"foo\"' },\n { cmd: 'diff foo 0.0.1', description: 'show diff for a component \"foo\" from the current state to version 0.0.1' },\n { cmd: 'diff foo 0.0.1 0.0.2', description: 'show diff for a component \"foo\" from version 0.0.1 to version 0.0.2' },\n {\n cmd: \"diff '$codeModified' \",\n description: 'show diff only for components with modified files. ignore config changes',\n },\n {\n cmd: 'diff foo 0.0.2 --parent',\n description: 'compare \"foo@0.0.2\" to its parent version. showing what changed in 0.0.2',\n },\n ];\n loader = true;\n\n constructor(private componentCompareMain: ComponentCompareMain) {}\n\n async report(\n [pattern, version, toVersion]: [string, string, string],\n { verbose = false, table = false, parent }: { verbose?: boolean; table: boolean; parent?: boolean }\n ) {\n const diffResults: DiffResults[] = await this.componentCompareMain.diffByCLIValues(pattern, version, toVersion, {\n verbose,\n table,\n parent,\n });\n if (!diffResults.length) {\n return chalk.yellow('there are no modified components to diff');\n }\n return outputDiffResults(diffResults);\n }\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;AAEA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgF,SAAAC,uBAAAI,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,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,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EE,GAAG,EAAE,yBAAyB;MAC9BF,WAAW,EAAE;IACf,CAAC,CACF;IAAAtB,eAAA,iBACQ,IAAI;EAEoD;EAEjE,MAAMyB,MAAMA,CACV,CAACC,OAAO,EAAEC,OAAO,EAAEC,SAAS,CAA2B,EACvD;IAAEC,OAAO,GAAG,KAAK;IAAEC,KAAK,GAAG,KAAK;IAAEC;EAAgE,CAAC,EACnG;IACA,MAAMC,WAA0B,GAAG,MAAM,IAAI,CAACZ,oBAAoB,CAACa,eAAe,CAACP,OAAO,EAAEC,OAAO,EAAEC,SAAS,EAAE;MAC9GC,OAAO;MACPC,KAAK;MACLC;IACF,CAAC,CAAC;IACF,IAAI,CAACC,WAAW,CAACE,MAAM,EAAE;MACvB,OAAOC,gBAAK,CAACC,MAAM,CAAC,0CAA0C,CAAC;IACjE;IACA,OAAO,IAAAC,4BAAiB,EAACL,WAAW,CAAC;EACvC;AACF;AAACM,OAAA,CAAApB,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.624/dist/component-compare.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-compare@1.0.624/dist/component-compare.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-compare",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.624",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/component-compare",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "component-compare",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.624"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"@teambit/component-id": "1.2.4",
|
|
21
21
|
"@teambit/component.ui.component-compare.compare-aspects.compare-aspects": "0.0.152",
|
|
22
22
|
"@teambit/component.ui.component-compare.models.component-compare-props": "0.0.119",
|
|
23
|
-
"@teambit/component": "1.0.
|
|
24
|
-
"@teambit/builder": "1.0.
|
|
25
|
-
"@teambit/cli": "0.0.
|
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
|
27
|
-
"@teambit/graphql": "1.0.
|
|
28
|
-
"@teambit/importer": "1.0.
|
|
23
|
+
"@teambit/component": "1.0.624",
|
|
24
|
+
"@teambit/builder": "1.0.624",
|
|
25
|
+
"@teambit/cli": "0.0.1201",
|
|
26
|
+
"@teambit/dependency-resolver": "1.0.624",
|
|
27
|
+
"@teambit/graphql": "1.0.624",
|
|
28
|
+
"@teambit/importer": "1.0.624",
|
|
29
29
|
"@teambit/legacy.component-diff": "0.0.104",
|
|
30
30
|
"@teambit/legacy.consumer-component": "0.0.51",
|
|
31
|
-
"@teambit/logger": "0.0.
|
|
32
|
-
"@teambit/objects": "0.0.
|
|
33
|
-
"@teambit/scope": "1.0.
|
|
34
|
-
"@teambit/tester": "1.0.
|
|
35
|
-
"@teambit/workspace": "1.0.
|
|
31
|
+
"@teambit/logger": "0.0.1294",
|
|
32
|
+
"@teambit/objects": "0.0.131",
|
|
33
|
+
"@teambit/scope": "1.0.624",
|
|
34
|
+
"@teambit/tester": "1.0.624",
|
|
35
|
+
"@teambit/workspace": "1.0.624",
|
|
36
36
|
"@teambit/component.ui.component-compare.changelog": "0.0.208",
|
|
37
37
|
"@teambit/component.ui.component-compare.component-compare": "0.0.220",
|
|
38
38
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.516",
|
|
39
|
-
"@teambit/ui": "1.0.
|
|
39
|
+
"@teambit/ui": "1.0.624",
|
|
40
40
|
"@teambit/legacy.constants": "0.0.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|