@parcel/create-react-app 2.3.3-nightly.2633 → 2.3.3-nightly.2638
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/lib/emoji.js +14 -1
- package/package.json +2 -2
package/lib/emoji.js
CHANGED
@@ -4,7 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.warning = exports.success = exports.progress = exports.info = exports.hint = exports.error = void 0;
|
7
|
-
|
7
|
+
|
8
|
+
// From https://github.com/sindresorhus/is-unicode-supported/blob/8f123916d5c25a87c4f966dcc248b7ca5df2b4ca/index.js
|
9
|
+
// This package is ESM-only so it has to be vendored
|
10
|
+
function isUnicodeSupported() {
|
11
|
+
if (process.platform !== 'win32') {
|
12
|
+
return process.env.TERM !== 'linux'; // Linux console (kernel)
|
13
|
+
}
|
14
|
+
|
15
|
+
return Boolean(process.env.CI) || Boolean(process.env.WT_SESSION) || // Windows Terminal
|
16
|
+
process.env.ConEmuTask === '{cmd::Cmder}' || // ConEmu and cmder
|
17
|
+
process.env.TERM_PROGRAM === 'vscode' || process.env.TERM === 'xterm-256color' || process.env.TERM === 'alacritty';
|
18
|
+
}
|
19
|
+
|
20
|
+
const supportsEmoji = isUnicodeSupported(); // Fallback symbols for Windows from https://en.wikipedia.org/wiki/Code_page_437
|
8
21
|
|
9
22
|
const progress = supportsEmoji ? '⏳' : '∞';
|
10
23
|
exports.progress = progress;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/create-react-app",
|
3
|
-
"version": "2.3.3-nightly.
|
3
|
+
"version": "2.3.3-nightly.2638+e294eafd9",
|
4
4
|
"bin": {
|
5
5
|
"parcel-create-react-app": "lib/bin.js"
|
6
6
|
},
|
@@ -33,5 +33,5 @@
|
|
33
33
|
"devDependencies": {
|
34
34
|
"@parcel/babel-register": "2.3.2"
|
35
35
|
},
|
36
|
-
"gitHead": "
|
36
|
+
"gitHead": "e294eafd9a49c056fb4b223c5ace5c0653428ede"
|
37
37
|
}
|