This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ type MetaInfoMapper<T> = {
32
32
33
33
export function createEmptyMeta ( ) : MetaInfoMapper < Required < MetaInfo > > {
34
34
return {
35
- titleTemplate : ( null as unknown ) as undefined ,
35
+ titleTemplate : null as unknown as undefined ,
36
36
37
37
__dangerouslyDisableSanitizers : [ ] ,
38
38
__dangerouslyDisableSanitizersByTagID : { } ,
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ export function compositionApiPlugin(): Plugin & { enforce: 'pre' } {
21
21
/ @ n u x t j s [ \\ / ] c o m p o s i t i o n - a p i (? ! [ \\ / ] ) / g,
22
22
'~composition-api'
23
23
)
24
- const keyedFunctions = / ( u s e S t a t i c | s h a l l o w S s r R e f | s s r P r o m i s e | s s r R e f | r e q S s r R e f | u s e A s y n c ) /
24
+ const keyedFunctions =
25
+ / ( u s e S t a t i c | s h a l l o w S s r R e f | s s r P r o m i s e | s s r R e f | r e q S s r R e f | u s e A s y n c ) /
25
26
if ( ! keyedFunctions . test ( code ) ) {
26
27
return {
27
28
code,
@@ -37,7 +38,7 @@ export function compositionApiPlugin(): Plugin & { enforce: 'pre' } {
37
38
38
39
walk ( ast , {
39
40
enter ( node ) {
40
- const { end } = ( node as unknown ) as {
41
+ const { end } = node as unknown as {
41
42
end : number
42
43
}
43
44
const { callee, arguments : args = [ ] } = node as {
Original file line number Diff line number Diff line change @@ -78,9 +78,8 @@ export default defineComponent({
78
78
79
79
const ttfb = ref (- 1 )
80
80
onMounted (() => {
81
- ttfb .value = globalThis .performance .getEntriesByType (
82
- ' navigation'
83
- )[0 ].responseStart
81
+ ttfb .value =
82
+ globalThis .performance .getEntriesByType (' navigation' )[0 ].responseStart
84
83
})
85
84
86
85
return {
Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ export default defineComponent({
16
16
17
17
const ttfb = ref (- 1 )
18
18
onMounted (() => {
19
- ttfb .value = globalThis .performance .getEntriesByType (
20
- ' navigation'
21
- )[0 ].responseStart
19
+ ttfb .value =
20
+ globalThis .performance .getEntriesByType (' navigation' )[0 ].responseStart
22
21
})
23
22
24
23
return {
You can’t perform that action at this time.
0 commit comments