@canyonjs/cli 1.0.22 → 1.0.25

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/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import node_fs from "node:fs";
5
5
  import node_path from "node:path";
6
6
  import axios from "axios";
7
7
  var package_namespaceObject = {
8
- rE: "1.0.22"
8
+ rE: "1.0.25"
9
9
  };
10
10
  function mergeNumberMaps(a = {}, b = {}) {
11
11
  const result = {
@@ -61,6 +61,7 @@ function mergeCoverageMaps(target = {}, source = {}) {
61
61
  return out;
62
62
  }
63
63
  async function mapCommand(params, options) {
64
+ log('Current working directory:', process.cwd());
64
65
  const { dsn, repo_id: repoID, sha, provider, build_target, debug, instrument_cwd, filter } = params;
65
66
  if (!node_fs.existsSync(node_path.resolve(process.cwd(), '.canyon_output'))) return void log('不存在');
66
67
  const files = node_fs.readdirSync(node_path.resolve(process.cwd(), '.canyon_output'));
@@ -105,7 +106,8 @@ async function mapCommand(params, options) {
105
106
  log(JSON.stringify(r.data, null, 2));
106
107
  return r;
107
108
  }).catch((err)=>{
108
- log(String(err));
109
+ if (err?.response?.data) log(err?.response?.data);
110
+ else String(err);
109
111
  return err;
110
112
  });
111
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canyonjs/cli",
3
- "version": "1.0.22",
3
+ "version": "1.0.25",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {