update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
18
electron/node_modules/builder-util/out/log.js
generated
vendored
18
electron/node_modules/builder-util/out/log.js
generated
vendored
|
|
@ -1,15 +1,17 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.log = exports.Logger = exports.PADDING = exports.setPrinter = exports.debug = void 0;
|
||||
exports.log = exports.Logger = exports.shouldDisableNonErrorLoggingVitest = exports.PADDING = exports.debug = void 0;
|
||||
exports.setPrinter = setPrinter;
|
||||
const chalk = require("chalk");
|
||||
const debug_1 = require("debug");
|
||||
let printer = null;
|
||||
exports.debug = debug_1.default("electron-builder");
|
||||
exports.debug = (0, debug_1.default)("electron-builder");
|
||||
function setPrinter(value) {
|
||||
printer = value;
|
||||
}
|
||||
exports.setPrinter = setPrinter;
|
||||
exports.PADDING = 2;
|
||||
// clean up logs since concurrent tests are impossible to track logic execution with console concurrency "noise"
|
||||
exports.shouldDisableNonErrorLoggingVitest = process.env.VITEST && !exports.debug.enabled;
|
||||
class Logger {
|
||||
constructor(stream) {
|
||||
this.stream = stream;
|
||||
|
|
@ -46,6 +48,16 @@ class Logger {
|
|||
}
|
||||
}
|
||||
_doLog(message, fields, level) {
|
||||
if (exports.shouldDisableNonErrorLoggingVitest) {
|
||||
if ([
|
||||
// "warn", // is sometimes a bit too noisy
|
||||
"error",
|
||||
].includes(level)) {
|
||||
// log error message to console so VITEST can capture stacktrace as well
|
||||
console.log(message, fields);
|
||||
}
|
||||
return; // ignore info/warn message during VITEST workflow if debug flag is disabled
|
||||
}
|
||||
// noinspection SuspiciousInstanceOfGuard
|
||||
if (message instanceof Error) {
|
||||
message = message.stack || message.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue