summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <ematipico@users.noreply.github.com> 2024-04-10 13:55:07 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-04-10 13:55:07 +0000
commitcdd0c7ca36277f2599bfaa6c577029fa416394fe (patch)
treeba5b698c8ac0852cef2f79d1ee2ad870c76305f9
parent683d51a5eecafbbfbfed3910a3f1fbf0b3531b99 (diff)
downloadastro-cdd0c7ca36277f2599bfaa6c577029fa416394fe.tar.gz
astro-cdd0c7ca36277f2599bfaa6c577029fa416394fe.tar.zst
astro-cdd0c7ca36277f2599bfaa6c577029fa416394fe.zip
[ci] format
-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;