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](https://github.com/Microsoft/TypeScript/compare/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] <support@github.com> * 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 <carlos@hypermob.co.uk> Co-authored-by: Evan You <yyx990803@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ export function assertCode(code: string) {
|
||||
sourceType: 'module',
|
||||
plugins: [...babelParserDefaultPlugins, 'typescript']
|
||||
})
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
console.log(code)
|
||||
throw e
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ export function compileScript(
|
||||
bindings,
|
||||
scriptAst: scriptAst.body
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
// silently fallback if parse fails since user may be using custom
|
||||
// babel syntax
|
||||
return script
|
||||
@@ -281,7 +281,7 @@ export function compileScript(
|
||||
): Program {
|
||||
try {
|
||||
return _parse(input, options).program
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
e.message = `[@vue/compiler-sfc] ${e.message}\n\n${
|
||||
sfc.filename
|
||||
}\n${generateCodeFrame(source, e.pos + offset, e.pos + offset + 1)}`
|
||||
|
||||
@@ -205,7 +205,7 @@ export function doCompileStyle(
|
||||
// force synchronous transform (we know we only have sync plugins)
|
||||
code = result.css
|
||||
outMap = result.map
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
errors.push(e)
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ export function compileTemplate(
|
||||
...options,
|
||||
source: preprocess(options, preprocessor)
|
||||
})
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return {
|
||||
code: `export default function render() {}`,
|
||||
source: options.source,
|
||||
|
||||
@@ -45,7 +45,7 @@ const scss: StylePreprocessor = (source, map, options, load = require) => {
|
||||
}
|
||||
|
||||
return { code: result.css.toString(), errors: [], dependencies }
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return { code: '', errors: [e], dependencies: [] }
|
||||
}
|
||||
}
|
||||
@@ -114,7 +114,7 @@ const styl: StylePreprocessor = (source, map, options, load = require) => {
|
||||
}
|
||||
|
||||
return { code: result, errors: [], dependencies }
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
return { code: '', errors: [e], dependencies: [] }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user