@canyonjs/cli 1.0.21 → 1.0.22

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 +6 -3
  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.21"
8
+ rE: "1.0.22"
9
9
  };
10
10
  function mergeNumberMaps(a = {}, b = {}) {
11
11
  const result = {
@@ -101,8 +101,11 @@ async function mapCommand(params, options) {
101
101
  await axios.post(dsn, {
102
102
  ...p,
103
103
  coverage: data
104
- }).then((r)=>r).catch((err)=>{
105
- if (err.response) log(err.response);
104
+ }).then((r)=>{
105
+ log(JSON.stringify(r.data, null, 2));
106
+ return r;
107
+ }).catch((err)=>{
108
+ log(String(err));
106
109
  return err;
107
110
  });
108
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canyonjs/cli",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {