@codacy/verity-cli 0.29.4-experimental.5fcba03 → 0.29.4-experimental.988bfb7

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.
Files changed (2) hide show
  1. package/bin/verity.js +7 -4
  2. package/package.json +1 -1
package/bin/verity.js CHANGED
@@ -17216,7 +17216,7 @@ function channelSilence(input) {
17216
17216
  // src/lib/cli-version.ts
17217
17217
  function cliVersion() {
17218
17218
  try {
17219
- return true ? "0.29.4-experimental.5fcba03" : "dev";
17219
+ return true ? "0.29.4-experimental.988bfb7" : "dev";
17220
17220
  } catch {
17221
17221
  return "dev";
17222
17222
  }
@@ -18208,10 +18208,13 @@ function toRepoRelative(path, repoRoot2) {
18208
18208
  }
18209
18209
  function isInsideRepo(path, repoRoot2) {
18210
18210
  const p = path.replace(/\\/g, "/");
18211
- if (!p.startsWith("/")) return true;
18211
+ if (!isAbsolutePath(p)) return true;
18212
18212
  if (!repoRoot2) return true;
18213
18213
  return candidateRoots(repoRoot2).some((root) => p === root || p.startsWith(root + "/"));
18214
18214
  }
18215
+ function isAbsolutePath(p) {
18216
+ return p.startsWith("/") || /^[A-Za-z]:\//.test(p);
18217
+ }
18215
18218
  function fold(transcriptPath, opts = {}) {
18216
18219
  const result = {
18217
18220
  authored: [],
@@ -21996,8 +21999,8 @@ function registerTelemetryCommands(program2) {
21996
21999
  }
21997
22000
 
21998
22001
  // src/cli.ts
21999
- program.name("verity").description("CLI for Verity quality gate service").version("0.29.4-experimental.5fcba03").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr").hook("preAction", async (_thisCommand, actionCommand) => {
22000
- installStderrLog(actionCommand.name(), process.argv.slice(2), "0.29.4-experimental.5fcba03");
22002
+ program.name("verity").description("CLI for Verity quality gate service").version("0.29.4-experimental.988bfb7").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr").hook("preAction", async (_thisCommand, actionCommand) => {
22003
+ installStderrLog(actionCommand.name(), process.argv.slice(2), "0.29.4-experimental.988bfb7");
22001
22004
  setUserNamedServiceUrl(program.opts().serviceUrl);
22002
22005
  try {
22003
22006
  await foldLegacyLocalCredential();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.29.4-experimental.5fcba03",
3
+ "version": "0.29.4-experimental.988bfb7",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",