securityos/node_modules/next/dist/telemetry/flush-and-exit.js

20 lines
481 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "flushAndExit", {
enumerable: true,
get: function() {
return flushAndExit;
}
});
const _shared = require("../trace/shared");
async function flushAndExit(code) {
let telemetry = _shared.traceGlobals.get("telemetry");
if (telemetry) {
await telemetry.flush();
}
process.exit(code);
}
//# sourceMappingURL=flush-and-exit.js.map