@changesmith/cli 1.6.0 → 1.6.3

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 CHANGED
@@ -32,7 +32,7 @@ function getApiUrl() {
32
32
  function setApiUrl(url2) {
33
33
  userConfig.set("apiUrl", url2);
34
34
  }
35
- var MIN_TOKEN_LENGTH = 50;
35
+ var MIN_TOKEN_LENGTH = 40;
36
36
  var MAX_TOKEN_LENGTH = 4096;
37
37
  function getEnvToken() {
38
38
  const raw = process.env.CHANGESMITH_TOKEN?.trim();
@@ -473,9 +473,7 @@ function startLocalGeneration(body) {
473
473
  });
474
474
  }
475
475
  function getLocalGenerationResult(jobId) {
476
- return request(
477
- `/api/generate/local/${encodeURIComponent(jobId)}`
478
- );
476
+ return request(`/api/generate/local/${encodeURIComponent(jobId)}`);
479
477
  }
480
478
 
481
479
  // src/changelog.ts
@@ -14664,7 +14662,9 @@ var localCommand = new Command3("local").description("Generate a changelog from
14664
14662
  process.exit(1);
14665
14663
  }
14666
14664
  if (await isShallowClone()) {
14667
- console.error(chalk3.yellow("Warning: This is a shallow clone. Commit history may be incomplete."));
14665
+ console.error(
14666
+ chalk3.yellow("Warning: This is a shallow clone. Commit history may be incomplete.")
14667
+ );
14668
14668
  console.log(chalk3.gray("For full history, run: git fetch --unshallow"));
14669
14669
  }
14670
14670
  let targetVersion = version2;
@@ -14689,9 +14689,7 @@ var localCommand = new Command3("local").description("Generate a changelog from
14689
14689
  console.log(chalk3.gray(`Using previous tag as start: ${fromRef}`));
14690
14690
  } else {
14691
14691
  console.error(chalk3.red("Error: No previous tag found."));
14692
- console.log(
14693
- chalk3.gray("Specify a starting ref with --from:")
14694
- );
14692
+ console.log(chalk3.gray("Specify a starting ref with --from:"));
14695
14693
  console.log(chalk3.gray(` changesmith local ${targetVersion} --from HEAD~50`));
14696
14694
  console.log(chalk3.gray(` changesmith local ${targetVersion} --from abc1234`));
14697
14695
  process.exit(1);
@@ -15260,7 +15258,7 @@ async function getProjectConfigValue(key) {
15260
15258
 
15261
15259
  // src/index.ts
15262
15260
  var program = new Command8();
15263
- program.name("changesmith").description("Generate beautiful changelogs from your git history").version("1.5.0");
15261
+ program.name("changesmith").description("Generate beautiful changelogs from your git history").version("1.6.3");
15264
15262
  program.addCommand(initCommand);
15265
15263
  program.addCommand(localCommand);
15266
15264
  program.addCommand(githubCommand);