0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

[ci] format

This commit is contained in:
Florian Lefebvre 2024-01-24 22:21:53 +00:00 committed by astrobot-houston
parent fecba30a1a
commit 54acb6aeb4
2 changed files with 4 additions and 5 deletions

View file

@ -409,7 +409,6 @@ export interface ImageServiceConfig<T extends Record<string, any> = Record<strin
* Docs: https://docs.astro.build/reference/configuration-reference/
*/
export interface AstroUserConfig {
/**
* @docs
* @kind heading
@ -568,7 +567,6 @@ export interface AstroUserConfig {
*/
output?: 'static' | 'server' | 'hybrid';
/**
* @docs
* @name adapter
@ -724,7 +722,6 @@ export interface AstroUserConfig {
*/
compressHTML?: boolean;
/**
* @docs
* @name scopedStyleStrategy
@ -1069,7 +1066,7 @@ export interface AstroUserConfig {
*/
enabled: boolean;
};
/**
* @docs
* @kind heading

View file

@ -59,7 +59,9 @@ export const getVersion = (packageManager: string, packageName: string) =>
new Promise<string>(async (resolve) => {
if (v) return resolve(v);
let registry = await getRegistry(packageManager);
const { version } = await fetch(`${registry}/${packageName}/latest`, { redirect: 'follow' }).then(
const { version } = await fetch(`${registry}/${packageName}/latest`, {
redirect: 'follow',
}).then(
(res) => res.json(),
() => ({ version: '' })
);