Skip to content

Commit 305883a

Browse files
dependabot[bot]pikaxyyx990803
authored
build(deps-dev): bump typescript from 4.3.5 to 4.4.2 (#4482)
* build(deps-dev): bump typescript from 4.3.5 to 4.4.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * build(deps-dev): bump typescript from 4.3.5 to 4.4.2 * test: fix nodeOps types Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Rodrigues <[email protected]> Co-authored-by: Evan You <[email protected]>
1 parent 592cdbd commit 305883a

File tree

25 files changed

+41
-35
lines changed

25 files changed

+41
-35
lines changed

packages/compiler-core/src/transforms/transformExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export function processExpression(
233233
ast = parse(source, {
234234
plugins: [...context.expressionPlugins, ...babelParserDefaultPlugins]
235235
}).program
236-
} catch (e) {
236+
} catch (e: any) {
237237
context.onError(
238238
createCompilerError(
239239
ErrorCodes.X_INVALID_EXPRESSION,

packages/compiler-core/src/validateExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function validateBrowserExpression(
4646
? ` ${exp} `
4747
: `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`
4848
)
49-
} catch (e) {
49+
} catch (e: any) {
5050
let message = e.message
5151
const keywordMatch = exp
5252
.replace(stripStringRE, '')

packages/compiler-sfc/__tests__/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function assertCode(code: string) {
2222
sourceType: 'module',
2323
plugins: [...babelParserDefaultPlugins, 'typescript']
2424
})
25-
} catch (e) {
25+
} catch (e: any) {
2626
console.log(code)
2727
throw e
2828
}

packages/compiler-sfc/src/compileScript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export function compileScript(
210210
bindings,
211211
scriptAst: scriptAst.body
212212
}
213-
} catch (e) {
213+
} catch (e: any) {
214214
// silently fallback if parse fails since user may be using custom
215215
// babel syntax
216216
return script
@@ -281,7 +281,7 @@ export function compileScript(
281281
): Program {
282282
try {
283283
return _parse(input, options).program
284-
} catch (e) {
284+
} catch (e: any) {
285285
e.message = `[@vue/compiler-sfc] ${e.message}\n\n${
286286
sfc.filename
287287
}\n${generateCodeFrame(source, e.pos + offset, e.pos + offset + 1)}`

packages/compiler-sfc/src/compileStyle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function doCompileStyle(
205205
// force synchronous transform (we know we only have sync plugins)
206206
code = result.css
207207
outMap = result.map
208-
} catch (e) {
208+
} catch (e: any) {
209209
errors.push(e)
210210
}
211211

packages/compiler-sfc/src/compileTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function compileTemplate(
127127
...options,
128128
source: preprocess(options, preprocessor)
129129
})
130-
} catch (e) {
130+
} catch (e: any) {
131131
return {
132132
code: `export default function render() {}`,
133133
source: options.source,

packages/compiler-sfc/src/stylePreprocessors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const scss: StylePreprocessor = (source, map, options, load = require) => {
4545
}
4646

4747
return { code: result.css.toString(), errors: [], dependencies }
48-
} catch (e) {
48+
} catch (e: any) {
4949
return { code: '', errors: [e], dependencies: [] }
5050
}
5151
}
@@ -114,7 +114,7 @@ const styl: StylePreprocessor = (source, map, options, load = require) => {
114114
}
115115

116116
return { code: result, errors: [], dependencies }
117-
} catch (e) {
117+
} catch (e: any) {
118118
return { code: '', errors: [e], dependencies: [] }
119119
}
120120
}

packages/ref-transform/__tests__/refTransform.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function assertCode(code: string) {
99
sourceType: 'module',
1010
plugins: [...babelParserDefaultPlugins, 'typescript']
1111
})
12-
} catch (e) {
12+
} catch (e: any) {
1313
console.log(code)
1414
throw e
1515
}

packages/runtime-core/__tests__/apiCreateApp.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('api: createApp', () => {
8484
const bar = inject('bar')
8585
try {
8686
inject('__proto__')
87-
} catch (e) {}
87+
} catch (e: any) {}
8888
return () => `${foo},${bar}`
8989
}
9090
}

packages/runtime-core/__tests__/apiSetupHelpers.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('SFC <script setup> helpers', () => {
179179
)
180180
__temp = await __temp
181181
__restore()
182-
} catch (e) {
182+
} catch (e: any) {
183183
// ignore
184184
}
185185
// register the lifecycle after an await statement

0 commit comments

Comments
 (0)