mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
14dffcc3af
commit
eef4b740ff
5 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
import type fsMod from 'node:fs';
|
import type fsMod from 'node:fs';
|
||||||
import type { Plugin as VitePlugin } from 'vite';
|
import type { Plugin as VitePlugin } from 'vite';
|
||||||
import type { AstroSettings } from '../types/astro.js';
|
|
||||||
import { shouldAppendForwardSlash } from '../core/build/util.js';
|
import { shouldAppendForwardSlash } from '../core/build/util.js';
|
||||||
|
import type { AstroSettings } from '../types/astro.js';
|
||||||
import {
|
import {
|
||||||
NOOP_ACTIONS,
|
NOOP_ACTIONS,
|
||||||
RESOLVED_VIRTUAL_INTERNAL_MODULE_ID,
|
RESOLVED_VIRTUAL_INTERNAL_MODULE_ID,
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { z } from 'zod';
|
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 { ActionCalledFromServerError } from '../../../core/errors/errors-data.js';
|
||||||
import { AstroError } from '../../../core/errors/errors.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 { removeTrailingForwardSlash } from '../../../core/path.js';
|
||||||
|
import { apiContextRoutesSymbol } from '../../../core/render-context.js';
|
||||||
import type { APIContext } from '../../../types/public/index.js';
|
import type { APIContext } from '../../../types/public/index.js';
|
||||||
import { ACTION_RPC_ROUTE_PATTERN } from '../../consts.js';
|
import { ACTION_RPC_ROUTE_PATTERN } from '../../consts.js';
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -2,8 +2,8 @@ import { parse as devalueParse, stringify as devalueStringify } from 'devalue';
|
||||||
import type { z } from 'zod';
|
import type { z } from 'zod';
|
||||||
import { REDIRECT_STATUS_CODES } from '../../../core/constants.js';
|
import { REDIRECT_STATUS_CODES } from '../../../core/constants.js';
|
||||||
import { ActionsReturnedInvalidDataError } from '../../../core/errors/errors-data.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 { 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 { ACTION_QUERY_PARAMS as _ACTION_QUERY_PARAMS } from '../../consts.js';
|
||||||
import type {
|
import type {
|
||||||
ErrorInferenceObject,
|
ErrorInferenceObject,
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {
|
import {
|
||||||
ActionError,
|
ActionError,
|
||||||
|
appendForwardSlash,
|
||||||
deserializeActionResult,
|
deserializeActionResult,
|
||||||
getActionQueryString,
|
getActionQueryString,
|
||||||
appendForwardSlash,
|
|
||||||
} from 'astro:actions';
|
} from 'astro:actions';
|
||||||
|
|
||||||
const ENCODED_DOT = '%2E';
|
const ENCODED_DOT = '%2E';
|
||||||
|
|
|
@ -568,7 +568,7 @@ it('Should support trailing slash', async () => {
|
||||||
const fixture = await loadFixture({
|
const fixture = await loadFixture({
|
||||||
root: './fixtures/actions/',
|
root: './fixtures/actions/',
|
||||||
adapter: testAdapter(),
|
adapter: testAdapter(),
|
||||||
trailingSlash: "always"
|
trailingSlash: 'always',
|
||||||
});
|
});
|
||||||
const devServer = await fixture.startDevServer();
|
const devServer = await fixture.startDevServer();
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
Loading…
Reference in a new issue