summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/core/app/index.ts4
-rw-r--r--packages/astro/test/csrf-protection.test.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts
index cb7a8d9db..116151610 100644
--- a/packages/astro/src/core/app/index.ts
+++ b/packages/astro/src/core/app/index.ts
@@ -18,6 +18,7 @@ import { getSetCookiesFromResponse } from '../cookies/index.js';
import { AstroError, AstroErrorData } from '../errors/index.js';
import { consoleLogDestination } from '../logger/console.js';
import { AstroIntegrationLogger, Logger } from '../logger/core.js';
+import { sequence } from '../middleware/index.js';
import {
appendForwardSlash,
collapseDuplicateSlashes,
@@ -30,9 +31,8 @@ import { RenderContext } from '../render-context.js';
import { createAssetLink } from '../render/ssr-element.js';
import { ensure404Route } from '../routing/astro-designed-error-pages.js';
import { matchRoute } from '../routing/match.js';
-import { AppPipeline } from './pipeline.js';
-import { sequence } from '../middleware/index.js';
import { createOriginCheckMiddleware } from './middlewares.js';
+import { AppPipeline } from './pipeline.js';
export { deserializeManifest } from './common.js';
export interface RenderOptions {
diff --git a/packages/astro/test/csrf-protection.test.js b/packages/astro/test/csrf-protection.test.js
index ab76a18f5..25aa9d059 100644
--- a/packages/astro/test/csrf-protection.test.js
+++ b/packages/astro/test/csrf-protection.test.js
@@ -1,7 +1,7 @@
+import assert from 'node:assert/strict';
import { before, describe, it } from 'node:test';
-import { loadFixture } from './test-utils.js';
import testAdapter from './test-adapter.js';
-import assert from 'node:assert/strict';
+import { loadFixture } from './test-utils.js';
describe('CSRF origin check', () => {
let app;