@teambit/component-log 0.0.422 → 0.0.424
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/component-log.main.runtime.d.ts +1 -2
- package/dist/component-log.main.runtime.js +3 -10
- package/dist/component-log.main.runtime.js.map +1 -1
- package/dist/log-cmd.d.ts +1 -1
- package/dist/log-cmd.js +1 -2
- package/dist/log-cmd.js.map +1 -1
- package/dist/{preview-1682911859633.js → preview-1683084947241.js} +2 -2
- package/package-tar/teambit-component-log-0.0.424.tgz +0 -0
- package/package.json +5 -6
- package/package-tar/teambit-component-log-0.0.422.tgz +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CLIMain } from '@teambit/cli';
|
|
2
2
|
import { Workspace } from '@teambit/workspace';
|
|
3
|
-
import type { CommunityMain } from '@teambit/community';
|
|
4
3
|
export declare type FileLog = {
|
|
5
4
|
hash: string;
|
|
6
5
|
tag?: string;
|
|
@@ -21,7 +20,7 @@ export declare class ComponentLogMain {
|
|
|
21
20
|
static slots: never[];
|
|
22
21
|
static dependencies: import("@teambit/harmony").Aspect[];
|
|
23
22
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
24
|
-
static provider([cli, workspace
|
|
23
|
+
static provider([cli, workspace]: [CLIMain, Workspace]): Promise<ComponentLogMain>;
|
|
25
24
|
}
|
|
26
25
|
export declare type ComponentLogInfo = {
|
|
27
26
|
hash: string;
|
|
@@ -51,13 +51,6 @@ function _pMapSeries() {
|
|
|
51
51
|
};
|
|
52
52
|
return data;
|
|
53
53
|
}
|
|
54
|
-
function _community() {
|
|
55
|
-
const data = require("@teambit/community");
|
|
56
|
-
_community = function () {
|
|
57
|
-
return data;
|
|
58
|
-
};
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
54
|
function _path() {
|
|
62
55
|
const data = require("@teambit/legacy/dist/utils/path");
|
|
63
56
|
_path = function () {
|
|
@@ -191,15 +184,15 @@ class ComponentLogMain {
|
|
|
191
184
|
const parents = logInfo.parents.length ? `Parent(s): ${logInfo.parents.join(', ')}` : '<N/A>';
|
|
192
185
|
return `${_chalk().default.yellow(logInfo.hash)} ${logInfo.username || ''} ${logInfo.date || ''} ${logInfo.message}, ${parents}`;
|
|
193
186
|
}
|
|
194
|
-
static async provider([cli, workspace
|
|
187
|
+
static async provider([cli, workspace]) {
|
|
195
188
|
const componentLog = new ComponentLogMain(workspace);
|
|
196
|
-
cli.register(new (_logCmd().default)(componentLog
|
|
189
|
+
cli.register(new (_logCmd().default)(componentLog), new (_logFileCmd().LogFileCmd)(componentLog));
|
|
197
190
|
return componentLog;
|
|
198
191
|
}
|
|
199
192
|
}
|
|
200
193
|
exports.ComponentLogMain = ComponentLogMain;
|
|
201
194
|
(0, _defineProperty2().default)(ComponentLogMain, "slots", []);
|
|
202
|
-
(0, _defineProperty2().default)(ComponentLogMain, "dependencies", [_cli().CLIAspect, _workspace().default
|
|
195
|
+
(0, _defineProperty2().default)(ComponentLogMain, "dependencies", [_cli().CLIAspect, _workspace().default]);
|
|
203
196
|
(0, _defineProperty2().default)(ComponentLogMain, "runtime", _cli().MainRuntime);
|
|
204
197
|
_componentLog().ComponentLogAspect.addRuntime(ComponentLogMain);
|
|
205
198
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ComponentLogMain","constructor","workspace","getLogs","id","isRemote","shortHash","consumer","bitId","BitId","parse","remote","getRemoteByName","scope","log","OutsideWorkspaceError","componentId","resolveComponentId","logs","forEach","date","moment","Date","parseInt","format","undefined","getLogsWithParents","graph","buildSnapGraph","sorted","toposort","map","node","stringifyLogInfoOneLine","attr","getFileLog","filePath","getComponentIdByPath","Error","rootDir","componentDir","relative","toString","filePathAsLinux","pathNormalizeToLinux","filePathRelativeInComponent","replace","results","lastFile","pMapSeries","logItem","component","get","changeVersion","tag","hash","fileInComp","filesystem","files","find","f","lastResult","length","lastHash","fileHash","toSourceAsLinuxEOL","diff","getFilesDiff","push","username","email","message","fileDiff","diffOutput","logInfo","parents","join","chalk","yellow","provider","cli","community","componentLog","register","LogCmd","getDocsDomain","LogFileCmd","CLIAspect","WorkspaceAspect","CommunityAspect","MainRuntime","ComponentLogAspect","addRuntime"],"sources":["component-log.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport moment from 'moment';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport pMapSeries from 'p-map-series';\nimport { CommunityAspect } from '@teambit/community';\nimport { pathNormalizeToLinux } from '@teambit/legacy/dist/utils/path';\nimport { getFilesDiff } from '@teambit/legacy/dist/consumer/component-ops/components-diff';\nimport type { CommunityMain } from '@teambit/community';\nimport chalk from 'chalk';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { ComponentLogAspect } from './component-log.aspect';\nimport LogCmd from './log-cmd';\nimport { buildSnapGraph } from './snap-graph';\nimport { LogFileCmd } from './log-file-cmd';\n\nexport type FileLog = {\n hash: string;\n tag?: string;\n username?: string;\n email?: string;\n date: string;\n message: string;\n fileHash: string;\n fileDiff?: string;\n};\n\nexport class ComponentLogMain {\n constructor(private workspace: Workspace | undefined) {}\n\n async getLogs(id: string, isRemote?: boolean, shortHash = false) {\n if (isRemote) {\n const consumer = this.workspace?.consumer;\n const bitId: BitId = BitId.parse(id, true);\n const remote = await getRemoteByName(bitId.scope as string, consumer);\n return remote.log(bitId);\n }\n if (!this.workspace) throw new OutsideWorkspaceError();\n const componentId = await this.workspace.resolveComponentId(id);\n const logs = await this.workspace.scope.getLogs(componentId, shortHash);\n logs.forEach((log) => {\n log.date = log.date ? moment(new Date(parseInt(log.date))).format('YYYY-MM-DD HH:mm:ss') : undefined;\n });\n return logs;\n }\n\n async getLogsWithParents(id: string) {\n const logs = await this.getLogs(id, false, true);\n const graph = buildSnapGraph(logs);\n const sorted = graph.toposort();\n return sorted.map((node) => this.stringifyLogInfoOneLine(node.attr));\n }\n\n async getFileLog(filePath: string) {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) throw new Error(`unable to find component for file ${filePath}`);\n\n const rootDir = workspace.componentDir(componentId, undefined, { relative: true });\n\n const logs = await this.getLogs(componentId.toString());\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const results: FileLog[] = [];\n let lastFile;\n await pMapSeries(logs, async (logItem) => {\n const component = await workspace.get(componentId.changeVersion(logItem.tag || logItem.hash));\n const fileInComp = component.filesystem.files.find((f) => f.relative === filePathRelativeInComponent);\n const lastResult = results[results.length - 1];\n const lastHash = lastResult?.fileHash;\n let fileHash: string;\n if (!fileInComp) {\n if (!lastHash) return;\n fileHash = '<REMOVED>';\n } else {\n fileHash = fileInComp.toSourceAsLinuxEOL().hash().toString();\n }\n if (fileHash === lastHash) return;\n\n let diff;\n if (lastFile && fileInComp) {\n diff = await getFilesDiff([lastFile], [fileInComp], logItem.hash, lastResult.hash, undefined);\n }\n\n lastFile = fileInComp;\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileDiff: diff?.length ? diff[0].diffOutput : undefined,\n fileHash,\n });\n });\n return results;\n }\n\n private stringifyLogInfoOneLine(logInfo: ComponentLogInfo) {\n const parents = logInfo.parents.length ? `Parent(s): ${logInfo.parents.join(', ')}` : '<N/A>';\n return `${chalk.yellow(logInfo.hash)} ${logInfo.username || ''} ${logInfo.date || ''} ${\n logInfo.message\n }, ${parents}`;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect, CommunityAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, community]: [CLIMain, Workspace, CommunityMain]) {\n const componentLog = new ComponentLogMain(workspace);\n cli.register(new LogCmd(componentLog, community.getDocsDomain()), new LogFileCmd(componentLog));\n return componentLog;\n }\n}\n\nComponentLogAspect.addRuntime(ComponentLogMain);\n\nexport type ComponentLogInfo = {\n hash: string;\n message: string;\n onLane?: boolean;\n parents: string[];\n username?: string;\n email?: string;\n date?: string;\n tag?: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA4C;AAAA;AAarC,MAAMA,gBAAgB,CAAC;EAC5BC,WAAW,CAASC,SAAgC,EAAE;IAAA,KAAlCA,SAAgC,GAAhCA,SAAgC;EAAG;EAEvD,MAAMC,OAAO,CAACC,EAAU,EAAEC,QAAkB,EAAEC,SAAS,GAAG,KAAK,EAAE;IAC/D,IAAID,QAAQ,EAAE;MAAA;MACZ,MAAME,QAAQ,sBAAG,IAAI,CAACL,SAAS,oDAAd,gBAAgBK,QAAQ;MACzC,MAAMC,KAAY,GAAGC,oBAAK,CAACC,KAAK,CAACN,EAAE,EAAE,IAAI,CAAC;MAC1C,MAAMO,MAAM,GAAG,MAAM,IAAAC,0BAAe,EAACJ,KAAK,CAACK,KA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AC;IACpD8E,GAAG,CAACG,QAAQ,CAAC,KAAIC,iBAAM,EAACF,YAAY,EAAED,SAAS,CAACI,aAAa,EAAE,CAAC,EAAE,KAAIC,wBAAU,EAACJ,YAAY,CAAC,CAAC;IAC/F,OAAOA,YAAY;EACrB;AACF;AAAC;AAAA,gCA3FYlF,gBAAgB,WAmFZ,EAAE;AAAA,gCAnFNA,gBAAgB,kBAoFL,CAACuF,gBAAS,EAAEC,oBAAe,EAAEC,4BAAe,CAAC;AAAA,gCApFxDzF,gBAAgB,aAqFV0F,kBAAW;AAQ9BC,kCAAkB,CAACC,UAAU,CAAC5F,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"names":["ComponentLogMain","constructor","workspace","getLogs","id","isRemote","shortHash","consumer","bitId","BitId","parse","remote","getRemoteByName","scope","log","OutsideWorkspaceError","componentId","resolveComponentId","logs","forEach","date","moment","Date","parseInt","format","undefined","getLogsWithParents","graph","buildSnapGraph","sorted","toposort","map","node","stringifyLogInfoOneLine","attr","getFileLog","filePath","getComponentIdByPath","Error","rootDir","componentDir","relative","toString","filePathAsLinux","pathNormalizeToLinux","filePathRelativeInComponent","replace","results","lastFile","pMapSeries","logItem","component","get","changeVersion","tag","hash","fileInComp","filesystem","files","find","f","lastResult","length","lastHash","fileHash","toSourceAsLinuxEOL","diff","getFilesDiff","push","username","email","message","fileDiff","diffOutput","logInfo","parents","join","chalk","yellow","provider","cli","componentLog","register","LogCmd","LogFileCmd","CLIAspect","WorkspaceAspect","MainRuntime","ComponentLogAspect","addRuntime"],"sources":["component-log.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport moment from 'moment';\nimport WorkspaceAspect, { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport pMapSeries from 'p-map-series';\nimport { pathNormalizeToLinux } from '@teambit/legacy/dist/utils/path';\nimport { getFilesDiff } from '@teambit/legacy/dist/consumer/component-ops/components-diff';\nimport chalk from 'chalk';\nimport getRemoteByName from '@teambit/legacy/dist/remotes/get-remote-by-name';\nimport { ComponentLogAspect } from './component-log.aspect';\nimport LogCmd from './log-cmd';\nimport { buildSnapGraph } from './snap-graph';\nimport { LogFileCmd } from './log-file-cmd';\n\nexport type FileLog = {\n hash: string;\n tag?: string;\n username?: string;\n email?: string;\n date: string;\n message: string;\n fileHash: string;\n fileDiff?: string;\n};\n\nexport class ComponentLogMain {\n constructor(private workspace: Workspace | undefined) {}\n\n async getLogs(id: string, isRemote?: boolean, shortHash = false) {\n if (isRemote) {\n const consumer = this.workspace?.consumer;\n const bitId: BitId = BitId.parse(id, true);\n const remote = await getRemoteByName(bitId.scope as string, consumer);\n return remote.log(bitId);\n }\n if (!this.workspace) throw new OutsideWorkspaceError();\n const componentId = await this.workspace.resolveComponentId(id);\n const logs = await this.workspace.scope.getLogs(componentId, shortHash);\n logs.forEach((log) => {\n log.date = log.date ? moment(new Date(parseInt(log.date))).format('YYYY-MM-DD HH:mm:ss') : undefined;\n });\n return logs;\n }\n\n async getLogsWithParents(id: string) {\n const logs = await this.getLogs(id, false, true);\n const graph = buildSnapGraph(logs);\n const sorted = graph.toposort();\n return sorted.map((node) => this.stringifyLogInfoOneLine(node.attr));\n }\n\n async getFileLog(filePath: string) {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) throw new Error(`unable to find component for file ${filePath}`);\n\n const rootDir = workspace.componentDir(componentId, undefined, { relative: true });\n\n const logs = await this.getLogs(componentId.toString());\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const results: FileLog[] = [];\n let lastFile;\n await pMapSeries(logs, async (logItem) => {\n const component = await workspace.get(componentId.changeVersion(logItem.tag || logItem.hash));\n const fileInComp = component.filesystem.files.find((f) => f.relative === filePathRelativeInComponent);\n const lastResult = results[results.length - 1];\n const lastHash = lastResult?.fileHash;\n let fileHash: string;\n if (!fileInComp) {\n if (!lastHash) return;\n fileHash = '<REMOVED>';\n } else {\n fileHash = fileInComp.toSourceAsLinuxEOL().hash().toString();\n }\n if (fileHash === lastHash) return;\n\n let diff;\n if (lastFile && fileInComp) {\n diff = await getFilesDiff([lastFile], [fileInComp], logItem.hash, lastResult.hash, undefined);\n }\n\n lastFile = fileInComp;\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileDiff: diff?.length ? diff[0].diffOutput : undefined,\n fileHash,\n });\n });\n return results;\n }\n\n private stringifyLogInfoOneLine(logInfo: ComponentLogInfo) {\n const parents = logInfo.parents.length ? `Parent(s): ${logInfo.parents.join(', ')}` : '<N/A>';\n return `${chalk.yellow(logInfo.hash)} ${logInfo.username || ''} ${logInfo.date || ''} ${\n logInfo.message\n }, ${parents}`;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace]: [CLIMain, Workspace]) {\n const componentLog = new ComponentLogMain(workspace);\n cli.register(new LogCmd(componentLog), new LogFileCmd(componentLog));\n return componentLog;\n }\n}\n\nComponentLogAspect.addRuntime(ComponentLogMain);\n\nexport type ComponentLogInfo = {\n hash: string;\n message: string;\n onLane?: boolean;\n parents: string[];\n username?: string;\n email?: string;\n date?: string;\n tag?: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAC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AQ,EAAE,SAAAN,IAAI,kCAAJ,MAAMJ,MAAM,GAAGI,IAAI,CAAC,CAAC,CAAC,CAACO,UAAU,GAAGhD,SAAS;QACvDuC;MACF,CAAC,CAAC;IACJ,CAAC,CAAC;IACF,OAAOjB,OAAO;EAChB;EAEQd,uBAAuB,CAACyC,OAAyB,EAAE;IACzD,MAAMC,OAAO,GAAGD,OAAO,CAACC,OAAO,CAACb,MAAM,GAAI,cAAaY,OAAO,CAACC,OAAO,CAACC,IAAI,CAAC,IAAI,CAAE,EAAC,GAAG,OAAO;IAC7F,OAAQ,GAAEC,gBAAK,CAACC,MAAM,CAACJ,OAAO,CAACnB,IAAI,CAAE,IAAGmB,OAAO,CAACL,QAAQ,IAAI,EAAG,IAAGK,OAAO,CAACtD,IAAI,IAAI,EAAG,IACnFsD,OAAO,CAACH,OACT,KAAII,OAAQ,EAAC;EAChB;EAKA,aAAaI,QAAQ,CAAC,CAACC,GAAG,EAAE9E,SAAS,CAAuB,EAAE;IAC5D,MAAM+E,YAAY,GAAG,IAAIjF,gBAAgB,CAACE,SAAS,CAAC;IACpD8E,GAAG,CAACE,QAAQ,CAAC,KAAIC,iBAAM,EAACF,YAAY,CAAC,EAAE,KAAIG,wBAAU,EAACH,YAAY,CAAC,CAAC;IACpE,OAAOA,YAAY;EACrB;AACF;AAAC;AAAA,gCA3FYjF,gBAAgB,WAmFZ,EAAE;AAAA,gCAnFNA,gBAAgB,kBAoFL,CAACqF,gBAAS,EAAEC,oBAAe,CAAC;AAAA,gCApFvCtF,gBAAgB,aAqFVuF,kBAAW;AAQ9BC,kCAAkB,CAACC,UAAU,CAACzF,gBAAgB,CAAC"}
|
package/dist/log-cmd.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export default class LogCmd implements Command {
|
|
|
18
18
|
name: string;
|
|
19
19
|
description: string;
|
|
20
20
|
}[];
|
|
21
|
-
constructor(componentLog: ComponentLogMain
|
|
21
|
+
constructor(componentLog: ComponentLogMain);
|
|
22
22
|
report([id]: [string], { remote, parents, oneLine }: {
|
|
23
23
|
remote: boolean;
|
|
24
24
|
parents: boolean;
|
package/dist/log-cmd.js
CHANGED
|
@@ -33,7 +33,7 @@ function _cliTable() {
|
|
|
33
33
|
class LogCmd {
|
|
34
34
|
// should support log against remote
|
|
35
35
|
|
|
36
|
-
constructor(componentLog
|
|
36
|
+
constructor(componentLog) {
|
|
37
37
|
this.componentLog = componentLog;
|
|
38
38
|
(0, _defineProperty2().default)(this, "name", 'log <id>');
|
|
39
39
|
(0, _defineProperty2().default)(this, "description", 'show components(s) version history');
|
|
@@ -49,7 +49,6 @@ class LogCmd {
|
|
|
49
49
|
name: 'id',
|
|
50
50
|
description: 'component-id or component-name'
|
|
51
51
|
}]);
|
|
52
|
-
this.extendedDescription = `https://${docsDomain}/reference/cli-reference#log`;
|
|
53
52
|
}
|
|
54
53
|
async report([id], {
|
|
55
54
|
remote = false,
|
package/dist/log-cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["LogCmd","constructor","componentLog","
|
|
1
|
+
{"version":3,"names":["LogCmd","constructor","componentLog","name","description","report","id","remote","parents","oneLine","logs","getLogsWithParents","join","getLogs","logOneLine","reverse","map","paintLog","json","paintAuthor","email","username","c","white","log","message","date","tag","hash","title","yellow","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 { Command, CommandOptions } from '@teambit/cli';\nimport { LegacyComponentLog } from '@teambit/legacy-component-log';\nimport { ComponentLogMain } from './component-log.main.runtime';\n\nexport default class LogCmd implements Command {\n name = 'log <id>';\n description = 'show components(s) version history';\n helpUrl = 'docs/components/navigating-history';\n extendedDescription: string;\n group = 'info';\n alias = '';\n options = [\n ['r', 'remote', 'show log of a remote component'],\n ['', 'parents', 'EXPERIMENTAL. show parents and lanes data'],\n ['o', 'one-line', 'show each log entry in one line'],\n ['j', 'json', 'json format'],\n ] as CommandOptions;\n migration = true;\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 }: { remote: boolean; parents: boolean; oneLine?: boolean }\n ) {\n if (parents) {\n const logs = await this.componentLog.getLogsWithParents(id);\n return logs.join('\\n');\n }\n const logs = await this.componentLog.getLogs(id, remote);\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([id]: [string], { remote = false, parents = false }: { remote: boolean; parents: boolean }) {\n if (parents) {\n return this.componentLog.getLogsWithParents(id);\n }\n return this.componentLog.getLogs(id, remote);\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 } = log;\n const title = tag ? `tag ${tag} (${hash})\\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;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKe,MAAMA,MAAM,CAAoB;EAc5B;;EAIjBC,WAAW,CAASC,YAA8B,EAAE;IAAA,KAAhCA,YAA8B,GAA9BA,YAA8B;IAAA,8CAjB3C,UAAU;IAAA,qDACH,oCAAoC;IAAA,iDACxC,oCAAoC;IAAA;IAAA,+CAEtC,MAAM;IAAA,+CACN,EAAE;IAAA,iDACA,CACR,CAAC,GAAG,EAAE,QAAQ,EAAE,gCAAgC,CAAC,EACjD,CAAC,EAAE,EAAE,SAAS,EAAE,2CAA2C,CAAC,EAC5D,CAAC,GAAG,EAAE,UAAU,EAAE,iCAAiC,CAAC,EACpD,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,CAC7B;IAAA,mDACW,IAAI;IAAA,kDACL,IAAI;IAAA,uDACC,IAAI;IAAA,mDACR,CAAC;MAAEC,IAAI,EAAE,IAAI;MAAEC,WAAW,EAAE;IAAiC,CAAC,CAAC;EAEtB;EAErD,MAAMC,MAAM,CACV,CAACC,EAAE,CAAW,EACd;IAAEC,MAAM,GAAG,KAAK;IAAEC,OAAO,GAAG,KAAK;IAAEC,OAAO,GAAG;EAAgE,CAAC,EAC9G;IACA,IAAID,OAAO,EAAE;MACX,MAAME,IAAI,GAAG,MAAM,IAAI,CAACR,YAAY,CAACS,kBAAkB,CAACL,EAAE,CAAC;MAC3D,OAAOI,IAAI,CAACE,IAAI,CAAC,IAAI,CAAC;IACxB;IACA,MAAMF,IAAI,GAAG,MAAM,IAAI,CAACR,YAAY,CAACW,OAAO,CAACP,EAAE,EAAEC,MAAM,CAAC;IACxD,IAAIE,OAAO,EAAE;MACX,OAAOK,UAAU,CAACJ,IAAI,CAACK,O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AK,CAAE,SAAQG,IAAK,IAAG,CAAC,GAAG,EAAE,CAAC,IACvCD,OAAO,GAAGH,gBAAC,CAACC,KAAK,CAAE,WAAUE,OAAQ,IAAG,CAAC,GAAG,EAAE,CAAC;AAEpD;;AAEA;AACA;AACA;AACO,SAASM,yBAAyB,GAAG;EAC1C,OAAO,KAAIC,mBAAK,EAAC;IACfC,KAAK,EAAE;MACLC,GAAG,EAAE,EAAE;MACP,SAAS,EAAE,EAAE;MACb,UAAU,EAAE,EAAE;MACd,WAAW,EAAE,EAAE;MACfC,MAAM,EAAE,EAAE;MACV,YAAY,EAAE,EAAE;MAChB,aAAa,EAAE,EAAE;MACjB,cAAc,EAAE,EAAE;MAClBC,IAAI,EAAE,EAAE;MACR,UAAU,EAAE,EAAE;MACdC,GAAG,EAAE,EAAE;MACP,SAAS,EAAE,EAAE;MACbC,KAAK,EAAE,EAAE;MACT,WAAW,EAAE,EAAE;MACfC,MAAM,EAAE;IACV,CAAC;IACDC,KAAK,EAAE;MAAE,cAAc,EAAE,CAAC;MAAE,eAAe,EAAE;IAAE;EACjD,CAAC,CAAC;AACJ;AAEA,SAAS1B,UAAU,CAACJ,IAA0B,EAAE;EAC9C,MAAM+B,KAAK,GAAGV,yBAAyB,EAAE;EAEzCrB,IAAI,CAACM,GAAG,CAAC,CAAC;IAAEY,IAAI;IAAED,GAAG;IAAEN,QAAQ;IAAEK,IAAI;IAAED;EAAQ,CAAC,KAC9CgB,KAAK,CAACC,IAAI,CAAC,CAACd,IAAI,EAAED,GAAG,IAAI,EAAE,EAAEN,QAAQ,IAAI,EAAE,EAAEK,IAAI,IAAI,EAAE,EAAED,OAAO,IAAI,EAAE,CAAC,CAAC,CACzE;EAED,OAAOgB,KAAK,CAACE,QAAQ,EAAE;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-log@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-log@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-log@0.0.424/dist/component-log.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-log@0.0.424/dist/component-log.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/component-log",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.424",
|
|
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": "0.0.
|
|
9
|
+
"version": "0.0.424"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
|
19
19
|
"@teambit/legacy-bit-id": "0.0.423",
|
|
20
20
|
"@teambit/graph.cleargraph": "0.0.1",
|
|
21
|
-
"@teambit/cli": "0.0.
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/workspace": "0.0.1045",
|
|
21
|
+
"@teambit/cli": "0.0.705",
|
|
22
|
+
"@teambit/workspace": "0.0.1047",
|
|
24
23
|
"@teambit/legacy-component-log": "0.0.399"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
36
|
-
"@teambit/legacy": "1.0.
|
|
35
|
+
"@teambit/legacy": "1.0.484",
|
|
37
36
|
"react": "^16.8.0 || ^17.0.0",
|
|
38
37
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
39
38
|
},
|
|
Binary file
|