snyk 1.1068.0 → 1.1069.0
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/cli/263.index.js +391 -2443
- package/dist/cli/263.index.js.map +1 -1
- package/dist/cli/535.index.js +2 -2
- package/dist/cli/535.index.js.map +1 -1
- package/dist/cli/index.js +8 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -27894,8 +27894,15 @@ async function getStandardData(args) {
|
|
|
27894
27894
|
const shasum = crypto.createHash('sha1');
|
|
27895
27895
|
const durationMs = Date.now() - START_TIME;
|
|
27896
27896
|
const metrics = getMetrics(durationMs);
|
|
27897
|
+
let osNameString;
|
|
27898
|
+
try {
|
|
27899
|
+
osNameString = osName(os.platform(), os.release());
|
|
27900
|
+
}
|
|
27901
|
+
catch (e) {
|
|
27902
|
+
osNameString = 'unknown';
|
|
27903
|
+
}
|
|
27897
27904
|
const data = {
|
|
27898
|
-
os:
|
|
27905
|
+
os: osNameString,
|
|
27899
27906
|
osPlatform: os.platform(),
|
|
27900
27907
|
osRelease: os.release(),
|
|
27901
27908
|
osArch: os.arch(),
|