qase-javascript-commons 2.2.18 → 2.2.19

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.
@@ -28,6 +28,7 @@ const os = __importStar(require("os"));
28
28
  const cp = __importStar(require("child_process"));
29
29
  const fs = __importStar(require("fs"));
30
30
  const path = __importStar(require("path"));
31
+ const child_process_1 = require("child_process");
31
32
  /**
32
33
  * Gets detailed OS information based on the platform
33
34
  * @returns {string} Detailed OS information
@@ -121,7 +122,7 @@ function getPackageVersion(packageName) {
121
122
  // Try using npm list as fallback with recursive search
122
123
  let output = null;
123
124
  try {
124
- output = execCommand(`npm list --depth=10 --json`);
125
+ output = (0, child_process_1.execSync)(`npm list --depth=10 --json`, { stdio: "pipe" }).toString();
125
126
  if (!output)
126
127
  return null;
127
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.2.18",
3
+ "version": "2.2.19",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",