@coana-tech/cli 14.12.44 → 14.12.45

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/cli.mjs CHANGED
@@ -53555,7 +53555,7 @@ var require_cjs2 = __commonJS({
53555
53555
  var require_lib12 = __commonJS({
53556
53556
  "../../node_modules/.pnpm/write-file-atomic@5.0.1/node_modules/write-file-atomic/lib/index.js"(exports2, module2) {
53557
53557
  "use strict";
53558
- module2.exports = writeFile12;
53558
+ module2.exports = writeFile13;
53559
53559
  module2.exports.sync = writeFileSync4;
53560
53560
  module2.exports._getTmpname = getTmpname;
53561
53561
  module2.exports._cleanupOnExit = cleanupOnExit;
@@ -53680,7 +53680,7 @@ var require_lib12 = __commonJS({
53680
53680
  }
53681
53681
  }
53682
53682
  }
53683
- async function writeFile12(filename, data2, options, callback) {
53683
+ async function writeFile13(filename, data2, options, callback) {
53684
53684
  if (options instanceof Function) {
53685
53685
  callback = options;
53686
53686
  options = {};
@@ -85010,7 +85010,7 @@ var require_lockfile = __commonJS({
85010
85010
  if (eol !== "\n") {
85011
85011
  data2 = data2.replace(/\n/g, eol);
85012
85012
  }
85013
- yield writeFile12(path2, data2);
85013
+ yield writeFile13(path2, data2);
85014
85014
  });
85015
85015
  return function writeFilePreservingEol2(_x30, _x31) {
85016
85016
  return _ref31.apply(this, arguments);
@@ -85022,7 +85022,7 @@ var require_lockfile = __commonJS({
85022
85022
  const file = (_path || _load_path()).default.join(dir, filename);
85023
85023
  const fileLink = (_path || _load_path()).default.join(dir, filename + "-link");
85024
85024
  try {
85025
- yield writeFile12(file, "test");
85025
+ yield writeFile13(file, "test");
85026
85026
  yield link(file, fileLink);
85027
85027
  } catch (err) {
85028
85028
  return false;
@@ -85172,7 +85172,7 @@ var require_lockfile = __commonJS({
85172
85172
  const lockQueue = exports3.lockQueue = new (_blockingQueue || _load_blockingQueue()).default("fs lock");
85173
85173
  const readFileBuffer = exports3.readFileBuffer = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readFile);
85174
85174
  const open = exports3.open = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.open);
85175
- const writeFile12 = exports3.writeFile = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.writeFile);
85175
+ const writeFile13 = exports3.writeFile = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.writeFile);
85176
85176
  const readlink2 = exports3.readlink = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readlink);
85177
85177
  const realpath2 = exports3.realpath = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.realpath);
85178
85178
  const readdir7 = exports3.readdir = (0, (_promise2 || _load_promise2()).promisify)((_fs || _load_fs()).default.readdir);
@@ -113128,7 +113128,7 @@ var require_summary = __commonJS({
113128
113128
  exports2.summary = exports2.markdownSummary = exports2.SUMMARY_DOCS_URL = exports2.SUMMARY_ENV_VAR = void 0;
113129
113129
  var os_1 = __require("os");
113130
113130
  var fs_1 = __require("fs");
113131
- var { access: access5, appendFile, writeFile: writeFile12 } = fs_1.promises;
113131
+ var { access: access5, appendFile, writeFile: writeFile13 } = fs_1.promises;
113132
113132
  exports2.SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY";
113133
113133
  exports2.SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";
113134
113134
  var Summary = class {
@@ -113186,7 +113186,7 @@ var require_summary = __commonJS({
113186
113186
  return __awaiter(this, void 0, void 0, function* () {
113187
113187
  const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite);
113188
113188
  const filePath = yield this.filePath();
113189
- const writeFunc = overwrite ? writeFile12 : appendFile;
113189
+ const writeFunc = overwrite ? writeFile13 : appendFile;
113190
113190
  yield writeFunc(filePath, this._buffer, { encoding: "utf8" });
113191
113191
  return this.emptyBuffer();
113192
113192
  });
@@ -190191,7 +190191,7 @@ var {
190191
190191
  } = import_index.default;
190192
190192
 
190193
190193
  // dist/index.js
190194
- import { mkdir as mkdir3, readFile as readFile29, writeFile as writeFile11 } from "fs/promises";
190194
+ import { mkdir as mkdir3, readFile as readFile29, writeFile as writeFile12 } from "fs/promises";
190195
190195
  import { dirname as dirname14, join as join28, resolve as resolve35 } from "path";
190196
190196
 
190197
190197
  // ../utils/src/tmp-file.ts
@@ -213105,7 +213105,7 @@ async function computeDirectDependencyUpgrades(artifacts, fixesFound) {
213105
213105
 
213106
213106
  // dist/cli-core.js
213107
213107
  import { writeFileSync as writeFileSync3 } from "fs";
213108
- import { mkdir as mkdir2, writeFile as writeFile10 } from "fs/promises";
213108
+ import { mkdir as mkdir2, writeFile as writeFile11 } from "fs/promises";
213109
213109
 
213110
213110
  // ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/index.mjs
213111
213111
  var FORCE_COLOR;
@@ -227343,8 +227343,14 @@ var { root: root2 } = static_exports;
227343
227343
 
227344
227344
  // ../utils/src/maven-utils.ts
227345
227345
  var import_lodash14 = __toESM(require_lodash(), 1);
227346
- import { existsSync as existsSync21, readdirSync as readdirSync4, statSync as statSync3 } from "fs";
227346
+ import { existsSync as existsSync22, readdirSync as readdirSync4, statSync as statSync3 } from "fs";
227347
227347
  import { join as join26 } from "path";
227348
+
227349
+ // ../utils/src/download-utils.ts
227350
+ import { existsSync as existsSync21 } from "fs";
227351
+ import { writeFile as writeFile10 } from "fs/promises";
227352
+
227353
+ // ../utils/src/maven-utils.ts
227348
227354
  var { memoize: memoize3 } = import_lodash14.default;
227349
227355
  var memoizedParseShellArgs = memoize3(parseShellArgs);
227350
227356
  var MAVEN_PUBLIC_REPOSITORIES = [
@@ -228709,7 +228715,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
228709
228715
  }
228710
228716
 
228711
228717
  // dist/version.js
228712
- var version2 = "14.12.44";
228718
+ var version2 = "14.12.45";
228713
228719
 
228714
228720
  // dist/cli-core.js
228715
228721
  var { mapValues, omit, partition, pick } = import_lodash15.default;
@@ -228913,7 +228919,7 @@ var CliCore = class {
228913
228919
  }
228914
228920
  const socketReport = toSocketFactsSocketDependencyTree(artifacts, vulnsWithResults, this.reportId);
228915
228921
  const outputFile = resolve34(this.options.socketMode);
228916
- await writeFile10(outputFile, JSON.stringify(socketReport, null, 2));
228922
+ await writeFile11(outputFile, JSON.stringify(socketReport, null, 2));
228917
228923
  logger.info(kleur_default.green(`Socket report written to: ${outputFile}`));
228918
228924
  }
228919
228925
  async shareErrorLogWithBackend(e, shouldLogSharing) {
@@ -228931,7 +228937,7 @@ var CliCore = class {
228931
228937
  }
228932
228938
  const socketReport = toSocketFacts(report, this.reportDependencyTrees, subPjToWsPathToDirectDependencies);
228933
228939
  const outputFile = resolve34(this.options.socketMode);
228934
- await writeFile10(outputFile, JSON.stringify(socketReport, null, 2));
228940
+ await writeFile11(outputFile, JSON.stringify(socketReport, null, 2));
228935
228941
  logger.info(kleur_default.green(`Socket report written to: ${outputFile}`));
228936
228942
  return;
228937
228943
  }
@@ -229469,7 +229475,7 @@ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument(
229469
229475
  if (options.outputFile) {
229470
229476
  const outputFile = resolve35(options.outputFile);
229471
229477
  await mkdir3(dirname14(outputFile), { recursive: true });
229472
- await writeFile11(outputFile, JSON.stringify(output, null, 2));
229478
+ await writeFile12(outputFile, JSON.stringify(output, null, 2));
229473
229479
  logger.info(`Result written to: ${outputFile}`);
229474
229480
  }
229475
229481
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.44",
3
+ "version": "14.12.45",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {