@parcel/create-react-app 2.3.3-nightly.2635 → 2.3.3-nightly.2637

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/emoji.js +14 -1
  2. 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
- const supportsEmoji = process.platform !== 'win32' || process.env.TERM === 'xterm-256color'; // Fallback symbols for Windows from https://en.wikipedia.org/wiki/Code_page_437
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.2635+083e530c0",
3
+ "version": "2.3.3-nightly.2637+ef16fad82",
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": "083e530c089a1062ea4a51f45fc0c4e2e6db28ed"
36
+ "gitHead": "ef16fad82001dd112c4dd46d79dce47968bb10b8"
37
37
  }