mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 12:33:47 +08:00
The breaking changes in 9.0.0 ( https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#900--2021-06-07) do not affect us, as we are running Node 14+ and are compatible with ESM-first loading. R=szuend@chromium.org Bug: none Change-Id: I53dbfdd492ddded2e0a41676606471240bb4b129 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2975286 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
20 lines
427 B
JavaScript
20 lines
427 B
JavaScript
'use strict';
|
||
const chalk = require('chalk');
|
||
const isUnicodeSupported = require('is-unicode-supported');
|
||
|
||
const main = {
|
||
info: chalk.blue('ℹ'),
|
||
success: chalk.green('✔'),
|
||
warning: chalk.yellow('⚠'),
|
||
error: chalk.red('✖')
|
||
};
|
||
|
||
const fallback = {
|
||
info: chalk.blue('i'),
|
||
success: chalk.green('√'),
|
||
warning: chalk.yellow('‼'),
|
||
error: chalk.red('×')
|
||
};
|
||
|
||
module.exports = isUnicodeSupported() ? main : fallback;
|