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.
- package/dist/utils/hostData.js +2 -1
- package/package.json +1 -1
package/dist/utils/hostData.js
CHANGED
|
@@ -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 =
|
|
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
|
}
|