Skip to content

Commit bc6e6cc

Browse files
matthewpastrobot-houston
authored andcommitted
[ci] format
1 parent 9b3241d commit bc6e6cc

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

packages/astro/src/assets/utils/getAssetsPrefix.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import type { AssetsPrefix } from '../../core/app/types.js';
22

3-
export function getAssetsPrefix(
4-
fileExtension: string,
5-
assetsPrefix?: AssetsPrefix,
6-
): string {
3+
export function getAssetsPrefix(fileExtension: string, assetsPrefix?: AssetsPrefix): string {
74
let prefix = '';
85
if (!assetsPrefix) {
96
prefix = '';

packages/astro/src/core/render/ssr-element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export function createStylesheetElementSet(
5252
assetsPrefix?: AssetsPrefix,
5353
queryParams?: URLSearchParams,
5454
): Set<SSRElement> {
55-
return new Set(stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)));
55+
return new Set(
56+
stylesheets.map((s) => createStylesheetElement(s, base, assetsPrefix, queryParams)),
57+
);
5658
}
5759

5860
export function createModuleScriptElement(

packages/integrations/netlify/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ export default function netlifyIntegration(
691691
return {};
692692
},
693693
assetQueryParams: process.env.DEPLOY_ID
694-
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
695-
: undefined,
694+
? new URLSearchParams({ dpl: process.env.DEPLOY_ID })
695+
: undefined,
696696
},
697697
});
698698
},

packages/integrations/netlify/test/functions/skew-protection.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ describe(
4242
it('Manifest contains internalFetchHeaders', async () => {
4343
// The manifest is embedded in the build output
4444
// Check the manifest file which contains the serialized manifest
45-
const manifestURL = new URL(
46-
'./fixtures/skew-protection/.netlify/build/',
47-
import.meta.url,
48-
);
45+
const manifestURL = new URL('./fixtures/skew-protection/.netlify/build/', import.meta.url);
4946

5047
// Find the manifest file (it has a hash in the name)
5148
const { readdir } = await import('node:fs/promises');

packages/integrations/vercel/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ function getAdapter({
137137
return {};
138138
}
139139
: undefined,
140-
assetQueryParams: skewProtection && process.env.VERCEL_DEPLOYMENT_ID
141-
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
142-
: undefined,
140+
assetQueryParams:
141+
skewProtection && process.env.VERCEL_DEPLOYMENT_ID
142+
? new URLSearchParams({ dpl: process.env.VERCEL_DEPLOYMENT_ID })
143+
: undefined,
143144
},
144145
};
145146
}

0 commit comments

Comments
 (0)