[ci] format

This commit is contained in:
Matthew Phillips
2025-10-22 13:45:46 +00:00
committed by astrobot-houston
parent 9b3241d8a9
commit bc6e6ccb21
5 changed files with 11 additions and 14 deletions

View File

@@ -1,9 +1,6 @@
import type { AssetsPrefix } from '../../core/app/types.js';
export function getAssetsPrefix(
fileExtension: string,
assetsPrefix?: AssetsPrefix,
): string {
export function getAssetsPrefix(fileExtension: string, assetsPrefix?: AssetsPrefix): string {
let prefix = '';
if (!assetsPrefix) {
prefix = '';

View File

@@ -52,7 +52,9 @@ export function createStylesheetElementSet(
assetsPrefix?: AssetsPrefix,
queryParams?: URLSearchParams,
): Set<SSRElement> {
return new Set(stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)));
return new Set(
stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)),
);
}
export function createModuleScriptElement(

View File

@@ -691,8 +691,8 @@ export default function netlifyIntegration(
return {};
},
assetQueryParams: process.env.DEPLOY_ID
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
: undefined,
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
: undefined,
},
});
},

View File

@@ -42,10 +42,7 @@ describe(
it('Manifest contains internalFetchHeaders', async () => {
// The manifest is embedded in the build output
// Check the manifest file which contains the serialized manifest
const manifestURL = new URL(
'./fixtures/skew-protection/.netlify/build/',
import.meta.url,
);
const manifestURL = new URL('./fixtures/skew-protection/.netlify/build/', import.meta.url);
// Find the manifest file (it has a hash in the name)
const { readdir } = await import('node:fs/promises');

View File

@@ -137,9 +137,10 @@ function getAdapter({
return {};
}
: undefined,
assetQueryParams: skewProtection && process.env.VERCEL_DEPLOYMENT_ID
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
: undefined,
assetQueryParams:
skewProtection && process.env.VERCEL_DEPLOYMENT_ID
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
: undefined,
},
};
}