Files
med-notes/.pnpm-store/v10/files/85/758de33ece760ad38615d49d3fd17a4a7b5e88eee57cc82e5b7697475dadf95bcb5d70b4ce3c99ddb888ea13af243beea4d521f073d6fd012384362ccedb08
2025-05-09 05:30:08 +02:00

25 lines
569 B
Plaintext

// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const isLinux = () => process.platform === 'linux';
let report = null;
const getReport = () => {
if (!report) {
/* istanbul ignore next */
if (isLinux() && process.report) {
const orig = process.report.excludeNetwork;
process.report.excludeNetwork = true;
report = process.report.getReport();
process.report.excludeNetwork = orig;
} else {
report = {};
}
}
return report;
};
module.exports = { isLinux, getReport };