From eef4b740ffe56b167188fd1723b73a2a327d4640 Mon Sep 17 00:00:00 2001 From: Magomed Chabaev Date: Wed, 11 Dec 2024 16:07:47 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/actions/plugins.ts | 2 +- packages/astro/src/actions/runtime/virtual/server.ts | 6 +++--- packages/astro/src/actions/runtime/virtual/shared.ts | 2 +- packages/astro/templates/actions.mjs | 2 +- packages/astro/test/actions.test.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/astro/src/actions/plugins.ts b/packages/astro/src/actions/plugins.ts index c97e3ea835..f5bd074dfc 100644 --- a/packages/astro/src/actions/plugins.ts +++ b/packages/astro/src/actions/plugins.ts @@ -1,7 +1,7 @@ import type fsMod from 'node:fs'; import type { Plugin as VitePlugin } from 'vite'; -import type { AstroSettings } from '../types/astro.js'; import { shouldAppendForwardSlash } from '../core/build/util.js'; +import type { AstroSettings } from '../types/astro.js'; import { NOOP_ACTIONS, RESOLVED_VIRTUAL_INTERNAL_MODULE_ID, diff --git a/packages/astro/src/actions/runtime/virtual/server.ts b/packages/astro/src/actions/runtime/virtual/server.ts index 8005c4d56a..10624134b2 100644 --- a/packages/astro/src/actions/runtime/virtual/server.ts +++ b/packages/astro/src/actions/runtime/virtual/server.ts @@ -1,10 +1,10 @@ import { z } from 'zod'; +import type { Pipeline } from '../../../core/base-pipeline.js'; +import { shouldAppendForwardSlash } from '../../../core/build/util.js'; import { ActionCalledFromServerError } from '../../../core/errors/errors-data.js'; import { AstroError } from '../../../core/errors/errors.js'; -import type { Pipeline } from '../../../core/base-pipeline.js'; -import { apiContextRoutesSymbol } from '../../../core/render-context.js'; -import { shouldAppendForwardSlash } from '../../../core/build/util.js'; import { removeTrailingForwardSlash } from '../../../core/path.js'; +import { apiContextRoutesSymbol } from '../../../core/render-context.js'; import type { APIContext } from '../../../types/public/index.js'; import { ACTION_RPC_ROUTE_PATTERN } from '../../consts.js'; import { diff --git a/packages/astro/src/actions/runtime/virtual/shared.ts b/packages/astro/src/actions/runtime/virtual/shared.ts index 36fb53c379..02cc07b52c 100644 --- a/packages/astro/src/actions/runtime/virtual/shared.ts +++ b/packages/astro/src/actions/runtime/virtual/shared.ts @@ -2,8 +2,8 @@ import { parse as devalueParse, stringify as devalueStringify } from 'devalue'; import type { z } from 'zod'; import { REDIRECT_STATUS_CODES } from '../../../core/constants.js'; import { ActionsReturnedInvalidDataError } from '../../../core/errors/errors-data.js'; -import { appendForwardSlash as _appendForwardSlash } from '../../../core/path.js'; import { AstroError } from '../../../core/errors/errors.js'; +import { appendForwardSlash as _appendForwardSlash } from '../../../core/path.js'; import { ACTION_QUERY_PARAMS as _ACTION_QUERY_PARAMS } from '../../consts.js'; import type { ErrorInferenceObject, diff --git a/packages/astro/templates/actions.mjs b/packages/astro/templates/actions.mjs index e7343448b4..93aaa4d762 100644 --- a/packages/astro/templates/actions.mjs +++ b/packages/astro/templates/actions.mjs @@ -1,8 +1,8 @@ import { ActionError, + appendForwardSlash, deserializeActionResult, getActionQueryString, - appendForwardSlash, } from 'astro:actions'; const ENCODED_DOT = '%2E'; diff --git a/packages/astro/test/actions.test.js b/packages/astro/test/actions.test.js index 98e642102e..2af8ebdd97 100644 --- a/packages/astro/test/actions.test.js +++ b/packages/astro/test/actions.test.js @@ -568,7 +568,7 @@ it('Should support trailing slash', async () => { const fixture = await loadFixture({ root: './fixtures/actions/', adapter: testAdapter(), - trailingSlash: "always" + trailingSlash: 'always', }); const devServer = await fixture.startDevServer(); const formData = new FormData();