Skip to content

Commit

Permalink
fixes format
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Mar 26, 2024
1 parent 7ef5c66 commit 6ff286d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cloudflare/src/entrypoints/image-service.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ExternalImageService } from 'astro';

import { joinPaths } from '@astrojs/internal-helpers/path';
import { baseService } from 'astro/assets';
import { isESMImportedImage, isRemoteAllowed } from '../utils/assets.js';
import { joinPaths } from '@astrojs/internal-helpers/path';

const service: ExternalImageService = {
...baseService,
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { AstroConfig, AstroIntegration, RouteData } from 'astro';
import { createReadStream } from 'node:fs';
import { appendFile, rename, stat } from 'node:fs/promises';
import { createInterface } from 'node:readline/promises';
import { removeLeadingForwardSlash } from '@astrojs/internal-helpers/path';
import { createRedirectsFromAstroRoutes } from '@astrojs/underscore-redirects';
import { AstroError } from 'astro/errors';
import { getPlatformProxy } from 'wrangler';
import { removeLeadingForwardSlash } from '@astrojs/internal-helpers/path';
import { createRoutesFile, getParts } from './utils/generate-routes-json.js';
import { setImageConfig } from './utils/image-config.js';
import { wasmModuleLoader } from './utils/wasm-module-loader.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/src/utils/assets.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AstroConfig, ImageMetadata, RemotePattern } from 'astro';
import { isRemotePath } from '@astrojs/internal-helpers/path';
import type { AstroConfig, ImageMetadata, RemotePattern } from 'astro';

export function isESMImportedImage(src: ImageMetadata | string): src is ImageMetadata {
return typeof src === 'object';
Expand Down

0 comments on commit 6ff286d

Please sign in to comment.