Skip to content

Commit 56cf660

Browse files
committed
chore: upgrade deps
1 parent 15a97b1 commit 56cf660

File tree

3 files changed

+194
-155
lines changed

3 files changed

+194
-155
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@
7777
"@sucrase/jest-plugin": "^2.1.0",
7878
"@textlint-rule/textlint-rule-no-unmatched-pair": "^1.0.7",
7979
"@types/jest": "^26.0.14",
80-
"@types/node": "^16.0.0",
81-
"@typescript-eslint/eslint-plugin": "^5.35.0",
82-
"@typescript-eslint/parser": "^5.35.0",
80+
"@types/node": "^16.18.8",
81+
"@typescript-eslint/eslint-plugin": "^5.46.0",
82+
"@typescript-eslint/parser": "^5.46.0",
8383
"@vue/server-renderer": "^3.2.4",
8484
"algoliasearch": "^4.9.0",
8585
"api-docs-gen": "^0.4.0",
8686
"brotli": "^1.3.2",
8787
"convert-hrtime": "^5.0.0",
8888
"esbuild-register": "^2.3.0",
89-
"eslint": "^8.22.0",
89+
"eslint": "^8.29.0",
9090
"eslint-config-prettier": "^8.5.0",
9191
"eslint-plugin-prettier": "^4.2.0",
92-
"eslint-plugin-vue": "^9.4.0",
92+
"eslint-plugin-vue": "^9.8.0",
9393
"execa": "^5.0.0",
9494
"fixpack": "^4.0.0",
9595
"http-server": "^14.0.0",
@@ -100,9 +100,9 @@
100100
"minimist": "^1.2.5",
101101
"npm-run-all": "^4.1.5",
102102
"opener": "^1.5.2",
103-
"pathe": "^0.3.0",
103+
"pathe": "^0.3.9",
104104
"picocolors": "^1.0.0",
105-
"prettier": "^2.7.1",
105+
"prettier": "^2.8.1",
106106
"puppeteer": "^9.0.0",
107107
"rc": "^1.2.8",
108108
"rimraf": "^3.0.2",

packages/shared/src/utils.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export function format(message: string, ...args: any): string {
5151
const hasSymbol =
5252
typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol'
5353

54-
export const makeSymbol = (name: string): symbol | string => hasSymbol ? Symbol(name) : name
54+
export const makeSymbol = (name: string): symbol | string =>
55+
hasSymbol ? Symbol(name) : name
5556

5657
export const generateFormatCacheKey = (
5758
locale: string,
@@ -136,10 +137,12 @@ export const isString = (val: unknown): val is string => typeof val === 'string'
136137
export const isBoolean = (val: unknown): val is boolean =>
137138
typeof val === 'boolean'
138139
export const isSymbol = (val: unknown): val is symbol => typeof val === 'symbol'
139-
export const isObject = (val: unknown): val is Record<any, any> => // eslint-disable-line
140+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
141+
export const isObject = (val: unknown): val is Record<any, any> =>
140142
val !== null && typeof val === 'object'
141143

142-
export const isPromise = <T = any>(val: unknown): val is Promise<T> => { // eslint-disable-line
144+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
145+
export const isPromise = <T = any>(val: unknown): val is Promise<T> => {
143146
return isObject(val) && isFunction(val.then) && isFunction(val.catch)
144147
}
145148

0 commit comments

Comments
 (0)