qase-javascript-commons 2.2.17 → 2.2.18
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/changelog.md +6 -0
- package/dist/utils/hostData.js +8 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
package/dist/utils/hostData.js
CHANGED
|
@@ -119,9 +119,15 @@ function getPackageVersion(packageName) {
|
|
|
119
119
|
return packageJson.version;
|
|
120
120
|
}
|
|
121
121
|
// Try using npm list as fallback with recursive search
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
let output = null;
|
|
123
|
+
try {
|
|
124
|
+
output = execCommand(`npm list --depth=10 --json`);
|
|
125
|
+
if (!output)
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
124
129
|
return null;
|
|
130
|
+
}
|
|
125
131
|
try {
|
|
126
132
|
const npmList = JSON.parse(output);
|
|
127
133
|
// Try direct dependency
|