gimpact 0.1.2 → 0.1.4
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/index.js +4 -4
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -1219,8 +1219,8 @@ var subcommandToMode = {
|
|
|
1219
1219
|
ownership: { mode: "ownership" }
|
|
1220
1220
|
};
|
|
1221
1221
|
|
|
1222
|
-
// src/cli/
|
|
1223
|
-
function
|
|
1222
|
+
// src/cli/commands/utils/options-mapper.ts
|
|
1223
|
+
function mapToAnalyzerOptions(options) {
|
|
1224
1224
|
const subcommandConfig = subcommandToMode[options.subcommand];
|
|
1225
1225
|
const mode = subcommandConfig.mode;
|
|
1226
1226
|
const periodUnit = subcommandConfig.periodUnit ?? options.periodUnit;
|
|
@@ -1260,7 +1260,7 @@ function adaptToAnalyzerOptions(options) {
|
|
|
1260
1260
|
return analyzerOptions;
|
|
1261
1261
|
}
|
|
1262
1262
|
|
|
1263
|
-
// src/cli/
|
|
1263
|
+
// src/cli/commands/utils/time-range-formatter.ts
|
|
1264
1264
|
function buildTimeRangeDescription(options) {
|
|
1265
1265
|
if (options.since && options.until) {
|
|
1266
1266
|
return `${options.since.toISOString().split("T")[0]} to ${options.until.toISOString().split("T")[0]}`;
|
|
@@ -2034,7 +2034,7 @@ async function main() {
|
|
|
2034
2034
|
console.error(chalk7.red(validationResult.error));
|
|
2035
2035
|
process.exit(1);
|
|
2036
2036
|
}
|
|
2037
|
-
const analyzerOptions =
|
|
2037
|
+
const analyzerOptions = mapToAnalyzerOptions(options);
|
|
2038
2038
|
const timeRangeDescription = buildTimeRangeDescription(options);
|
|
2039
2039
|
p.intro(chalk7.bgCyan(chalk7.black(" gimpact ")));
|
|
2040
2040
|
const s = p.spinner();
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gimpact",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Visualize Git contribution impact by developer",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/kotaitos/gimpact.git"
|
|
9
|
+
},
|
|
6
10
|
"bin": {
|
|
7
11
|
"gimpact": "./dist/index.js"
|
|
8
12
|
},
|