Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 25, 2022
1 parent b9fd7f2 commit 596a105
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
19 changes: 10 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import escapeStringRegexp from 'escape-string-regexp';
import isUnicodeSupported from 'is-unicode-supported';

Expand Down Expand Up @@ -195,21 +196,21 @@ const common = {
lineUpDownLeftDoubleRightDouble: '╪',
lineCross: '╳',
lineBackslash: '╲',
lineSlash: '╱'
lineSlash: '╱',
};

export const mainSymbols = {
...common,
// The main symbols for those do not look that good on Ubuntu.
...(
platform === 'linux' ?
{
platform === 'linux'
? {
circleQuestionMark: '?⃝',
questionMarkPrefix: '?⃝'
} :
{
questionMarkPrefix: '?⃝',
}
: {
circleQuestionMark: '?',
questionMarkPrefix: '?'
questionMarkPrefix: '?',
}
),
tick: '✔',
Expand Down Expand Up @@ -245,7 +246,7 @@ export const mainSymbols = {
nodejs: '⬢',
oneSeventh: '⅐',
oneNinth: '⅑',
oneTenth: '⅒'
oneTenth: '⅒',
};

export const fallbackSymbols = {
Expand Down Expand Up @@ -285,7 +286,7 @@ export const fallbackSymbols = {
nodejs: '♦',
oneSeventh: '1/7',
oneNinth: '1/9',
oneTenth: '1/10'
oneTenth: '1/10',
};

const shouldUseMain = isUnicodeSupported();
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
],
"dependencies": {
"escape-string-regexp": "^5.0.0",
"is-unicode-supported": "^1.0.0"
"is-unicode-supported": "^1.2.0"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.17.0",
"typescript": "^4.3.5",
"xo": "^0.40.3"
"ava": "^4.1.0",
"tsd": "^0.19.1",
"typescript": "^4.6.3",
"xo": "^0.48.0"
}
}

0 comments on commit 596a105

Please sign in to comment.