@teambit/component-log 1.0.931 → 1.0.933
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/log-cmd.js
CHANGED
|
@@ -20,6 +20,13 @@ function _cliTable() {
|
|
|
20
20
|
};
|
|
21
21
|
return data;
|
|
22
22
|
}
|
|
23
|
+
function _cli() {
|
|
24
|
+
const data = require("@teambit/cli");
|
|
25
|
+
_cli = function () {
|
|
26
|
+
return data;
|
|
27
|
+
};
|
|
28
|
+
return data;
|
|
29
|
+
}
|
|
23
30
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
31
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
32
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
@@ -121,10 +128,10 @@ function paintLog(log) {
|
|
|
121
128
|
deleted,
|
|
122
129
|
deprecated
|
|
123
130
|
} = log;
|
|
124
|
-
const deletedStr = deleted ? _chalk().default.red(
|
|
125
|
-
const deprecatedStr = !deleted && deprecated ? _chalk().default.yellow(
|
|
126
|
-
const title = tag ? `tag ${tag} (${hash})
|
|
127
|
-
return _chalk().default.yellow(title) + paintAuthor(email, username) + (date ? _chalk().default.white(`date: ${date}\n`) : '') + (message ? _chalk().default.white(`\n ${message}\n`) : '');
|
|
131
|
+
const deletedStr = deleted ? ` ${_chalk().default.red(`${_cli().errorSymbol} deleted`)}` : '';
|
|
132
|
+
const deprecatedStr = !deleted && deprecated ? ` ${_chalk().default.yellow(`${_cli().warnSymbol} deprecated`)}` : '';
|
|
133
|
+
const title = tag ? `tag ${tag} (${hash})` : `snap ${hash}`;
|
|
134
|
+
return _chalk().default.yellow(title) + deletedStr + deprecatedStr + '\n' + paintAuthor(email, username) + (date ? _chalk().default.white(`date: ${date}\n`) : '') + (message ? _chalk().default.white(`\n ${message}\n`) : '');
|
|
128
135
|
}
|
|
129
136
|
|
|
130
137
|
/**
|
package/dist/log-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_cliTable","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","LogCmd","constructor","componentLog","name","description","report","id","remote","parents","oneLine","fullHash","fullMessage","showHidden","logOpts","isRemote","shortHash","shortMessage","logs","getLogsWithParents","join","getLogs","logOneLine","reverse","map","paintLog","json","exports","paintAuthor","email","username","c","white","log","message","date","tag","hash","deleted","deprecated","deletedStr","red","deprecatedStr","yellow","title","getEmptyTableWithoutStyle","Table","chars","top","bottom","left","mid","right","middle","style","table","push","toString"],"sources":["log-cmd.ts"],"sourcesContent":["import c from 'chalk';\nimport Table from 'cli-table';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { LegacyComponentLog } from '@teambit/legacy-component-log';\nimport type { ComponentLogMain, LogOpts } from './component-log.main.runtime';\n\ntype LogFlags = {\n remote?: boolean;\n parents?: boolean;\n oneLine?: boolean;\n fullHash?: boolean;\n fullMessage?: boolean;\n showHidden?: boolean;\n};\nexport default class LogCmd implements Command {\n name = 'log <id>';\n description = 'display component version history';\n helpUrl = 'reference/components/navigating-history';\n extendedDescription = `shows chronological history of component versions including tags and snaps with metadata.\ndisplays commit messages, authors, dates, and version information. supports both local and remote component logs.\nuse various format options for compact or detailed views of version history.`;\n group = 'version-control';\n alias = '';\n options = [\n ['r', 'remote', 'show log of a remote component'],\n ['', 'parents', 'show parents and lanes data'],\n ['o', 'one-line', 'show each log entry in one line'],\n ['f', 'full-hash', 'show full hash of the snap (default to the first 9 characters for --one-line/--parents flags)'],\n ['m', 'full-message', 'show full message of the snap (default to the first line for --one-line/--parents flags)'],\n [\n '',\n 'show-hidden',\n 'show hidden snaps (snaps are marked as hidden typically when the following tag has the same files/config)',\n ],\n ['j', 'json', 'json format'],\n ] as CommandOptions;\n remoteOp = true; // should support log against remote\n skipWorkspace = true;\n arguments = [{ name: 'id', description: 'component-id or component-name' }];\n\n constructor(private componentLog: ComponentLogMain) {}\n\n async report(\n [id]: [string],\n { remote = false, parents = false, oneLine = false, fullHash = false, fullMessage, showHidden }: LogFlags\n ) {\n if (!parents && !oneLine) {\n fullHash = true;\n fullMessage = true;\n }\n const logOpts: LogOpts = { isRemote: remote, shortHash: !fullHash, shortMessage: !fullMessage, showHidden };\n if (parents) {\n const logs = await this.componentLog.getLogsWithParents(id, logOpts);\n return logs.join('\\n');\n }\n const logs = await this.componentLog.getLogs(id, logOpts);\n if (oneLine) {\n return logOneLine(logs.reverse());\n }\n // reverse to show from the latest to earliest\n return logs.reverse().map(paintLog).join('\\n');\n }\n\n async json(\n [id]: [string],\n { remote = false, parents = false, oneLine = false, fullHash = false, fullMessage, showHidden }: LogFlags\n ) {\n if (!parents && !oneLine) {\n fullHash = true;\n fullMessage = true;\n }\n const logOpts: LogOpts = { isRemote: remote, shortHash: !fullHash, shortMessage: !fullMessage, showHidden };\n if (parents) {\n return this.componentLog.getLogsWithParents(id, logOpts);\n }\n return this.componentLog.getLogs(id, logOpts);\n }\n}\n\nexport function paintAuthor(email: string | null | undefined, username: string | null | undefined) {\n if (email && username) {\n return c.white(`author: ${username} <${email}>\\n`);\n }\n if (email && !username) {\n return c.white(`author: <${email}>\\n`);\n }\n if (!email && username) {\n return c.white(`author: ${username}\\n`);\n }\n\n return '';\n}\n\nfunction paintLog(log: LegacyComponentLog): string {\n const { message, date, tag, hash, username, email, deleted, deprecated } = log;\n const deletedStr = deleted ? c.red(' [deleted]') : '';\n const deprecatedStr = !deleted && deprecated ? c.yellow(' [deprecated]') : '';\n const title = tag ? `tag ${tag} (${hash})${deletedStr}${deprecatedStr}\\n` : `snap ${hash}\\n`;\n return (\n c.yellow(title) +\n paintAuthor(email, username) +\n (date ? c.white(`date: ${date}\\n`) : '') +\n (message ? c.white(`\\n ${message}\\n`) : '')\n );\n}\n\n/**\n * table with no style and no borders, just to align the columns.\n */\nexport function getEmptyTableWithoutStyle() {\n return new Table({\n chars: {\n top: '',\n 'top-mid': '',\n 'top-left': '',\n 'top-right': '',\n bottom: '',\n 'bottom-mid': '',\n 'bottom-left': '',\n 'bottom-right': '',\n left: '',\n 'left-mid': '',\n mid: '',\n 'mid-mid': '',\n right: '',\n 'right-mid': '',\n middle: ' ',\n },\n style: { 'padding-left': 0, 'padding-right': 0 },\n });\n}\n\nfunction logOneLine(logs: LegacyComponentLog[]) {\n const table = getEmptyTableWithoutStyle();\n\n logs.map(({ hash, tag, username, date, message }) =>\n table.push([hash, tag || '', username || '', date || '', message || ''])\n );\n\n return table.toString();\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;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAC,uBAAAG,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,G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,CAAC,CAAC;AACzB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_cliTable","_cli","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","LogCmd","constructor","componentLog","name","description","report","id","remote","parents","oneLine","fullHash","fullMessage","showHidden","logOpts","isRemote","shortHash","shortMessage","logs","getLogsWithParents","join","getLogs","logOneLine","reverse","map","paintLog","json","exports","paintAuthor","email","username","c","white","log","message","date","tag","hash","deleted","deprecated","deletedStr","red","errorSymbol","deprecatedStr","yellow","warnSymbol","title","getEmptyTableWithoutStyle","Table","chars","top","bottom","left","mid","right","middle","style","table","push","toString"],"sources":["log-cmd.ts"],"sourcesContent":["import c from 'chalk';\nimport Table from 'cli-table';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { warnSymbol, errorSymbol } from '@teambit/cli';\nimport type { LegacyComponentLog } from '@teambit/legacy-component-log';\nimport type { ComponentLogMain, LogOpts } from './component-log.main.runtime';\n\ntype LogFlags = {\n remote?: boolean;\n parents?: boolean;\n oneLine?: boolean;\n fullHash?: boolean;\n fullMessage?: boolean;\n showHidden?: boolean;\n};\nexport default class LogCmd implements Command {\n name = 'log <id>';\n description = 'display component version history';\n helpUrl = 'reference/components/navigating-history';\n extendedDescription = `shows chronological history of component versions including tags and snaps with metadata.\ndisplays commit messages, authors, dates, and version information. supports both local and remote component logs.\nuse various format options for compact or detailed views of version history.`;\n group = 'version-control';\n alias = '';\n options = [\n ['r', 'remote', 'show log of a remote component'],\n ['', 'parents', 'show parents and lanes data'],\n ['o', 'one-line', 'show each log entry in one line'],\n ['f', 'full-hash', 'show full hash of the snap (default to the first 9 characters for --one-line/--parents flags)'],\n ['m', 'full-message', 'show full message of the snap (default to the first line for --one-line/--parents flags)'],\n [\n '',\n 'show-hidden',\n 'show hidden snaps (snaps are marked as hidden typically when the following tag has the same files/config)',\n ],\n ['j', 'json', 'json format'],\n ] as CommandOptions;\n remoteOp = true; // should support log against remote\n skipWorkspace = true;\n arguments = [{ name: 'id', description: 'component-id or component-name' }];\n\n constructor(private componentLog: ComponentLogMain) {}\n\n async report(\n [id]: [string],\n { remote = false, parents = false, oneLine = false, fullHash = false, fullMessage, showHidden }: LogFlags\n ) {\n if (!parents && !oneLine) {\n fullHash = true;\n fullMessage = true;\n }\n const logOpts: LogOpts = { isRemote: remote, shortHash: !fullHash, shortMessage: !fullMessage, showHidden };\n if (parents) {\n const logs = await this.componentLog.getLogsWithParents(id, logOpts);\n return logs.join('\\n');\n }\n const logs = await this.componentLog.getLogs(id, logOpts);\n if (oneLine) {\n return logOneLine(logs.reverse());\n }\n // reverse to show from the latest to earliest\n return logs.reverse().map(paintLog).join('\\n');\n }\n\n async json(\n [id]: [string],\n { remote = false, parents = false, oneLine = false, fullHash = false, fullMessage, showHidden }: LogFlags\n ) {\n if (!parents && !oneLine) {\n fullHash = true;\n fullMessage = true;\n }\n const logOpts: LogOpts = { isRemote: remote, shortHash: !fullHash, shortMessage: !fullMessage, showHidden };\n if (parents) {\n return this.componentLog.getLogsWithParents(id, logOpts);\n }\n return this.componentLog.getLogs(id, logOpts);\n }\n}\n\nexport function paintAuthor(email: string | null | undefined, username: string | null | undefined) {\n if (email && username) {\n return c.white(`author: ${username} <${email}>\\n`);\n }\n if (email && !username) {\n return c.white(`author: <${email}>\\n`);\n }\n if (!email && username) {\n return c.white(`author: ${username}\\n`);\n }\n\n return '';\n}\n\nfunction paintLog(log: LegacyComponentLog): string {\n const { message, date, tag, hash, username, email, deleted, deprecated } = log;\n const deletedStr = deleted ? ` ${c.red(`${errorSymbol} deleted`)}` : '';\n const deprecatedStr = !deleted && deprecated ? ` ${c.yellow(`${warnSymbol} deprecated`)}` : '';\n const title = tag ? `tag ${tag} (${hash})` : `snap ${hash}`;\n return (\n c.yellow(title) +\n deletedStr +\n deprecatedStr +\n '\\n' +\n paintAuthor(email, username) +\n (date ? c.white(`date: ${date}\\n`) : '') +\n (message ? c.white(`\\n ${message}\\n`) : '')\n );\n}\n\n/**\n * table with no style and no borders, just to align the columns.\n */\nexport function getEmptyTableWithoutStyle() {\n return new Table({\n chars: {\n top: '',\n 'top-mid': '',\n 'top-left': '',\n 'top-right': '',\n bottom: '',\n 'bottom-mid': '',\n 'bottom-left': '',\n 'bottom-right': '',\n left: '',\n 'left-mid': '',\n mid: '',\n 'mid-mid': '',\n right: '',\n 'right-mid': '',\n middle: ' ',\n },\n style: { 'padding-left': 0, 'padding-right': 0 },\n });\n}\n\nfunction logOneLine(logs: LegacyComponentLog[]) {\n const table = getEmptyTableWithoutStyle();\n\n logs.map(({ hash, tag, username, date, message }) =>\n table.push([hash, tag || '', username || '', date || '', message || ''])\n );\n\n return table.toString();\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;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,KAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuD,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,EAA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C9CuB,KAAK,CAACC,IAAI,CAAC,CAACrB,IAAI,EAAED,GAAG,IAAI,EAAE,EAAEN,QAAQ,IAAI,EAAE,EAAEK,IAAI,IAAI,EAAE,EAAED,OAAO,IAAI,EAAE,CAAC,CACzE,CAAC;EAED,OAAOuB,KAAK,CAACE,QAAQ,CAAC,CAAC;AACzB","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.933/dist/component-log.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.933/dist/component-log.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-log",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.933",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/component-log",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "component-log",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.933"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"p-map-series": "2.1.0",
|
|
17
17
|
"p-map": "4.0.0",
|
|
18
18
|
"cli-table": "0.3.6",
|
|
19
|
+
"@teambit/cli": "0.0.1310",
|
|
19
20
|
"@teambit/harmony": "0.4.7",
|
|
20
21
|
"@teambit/component-id": "1.2.4",
|
|
21
22
|
"@teambit/legacy-component-log": "0.0.417",
|
|
22
|
-
"@teambit/toolbox.path.path": "0.0.16",
|
|
23
|
-
"@teambit/graph.cleargraph": "0.0.11",
|
|
24
|
-
"@teambit/cli": "0.0.1310",
|
|
25
23
|
"@teambit/legacy.component-diff": "0.0.158",
|
|
26
|
-
"@teambit/objects": "0.0.438",
|
|
27
24
|
"@teambit/scope.remotes": "0.0.104",
|
|
28
|
-
"@teambit/
|
|
25
|
+
"@teambit/toolbox.path.path": "0.0.16",
|
|
26
|
+
"@teambit/graph.cleargraph": "0.0.11",
|
|
27
|
+
"@teambit/objects": "0.0.440",
|
|
28
|
+
"@teambit/workspace": "1.0.933"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/diff": "^5.2.3",
|