mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
81d7150e02
commit
d532df1222
5 changed files with 5 additions and 5 deletions
packages/astro
src
templates
test
|
@ -7,12 +7,12 @@ import {
|
|||
import { AstroError } from '../../core/errors/errors.js';
|
||||
import { defineMiddleware } from '../../core/middleware/index.js';
|
||||
import { formContentTypes, hasContentType } from './utils.js';
|
||||
import { getAction } from './virtual/get-action.js';
|
||||
import {
|
||||
type SafeResult,
|
||||
type SerializedActionResult,
|
||||
serializeActionResult,
|
||||
} from './virtual/shared.js';
|
||||
import { getAction } from './virtual/get-action.js';
|
||||
|
||||
export type Locals = {
|
||||
_actionsInternal: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { parse as devalueParse, stringify as devalueStringify } from 'devalue';
|
||||
import type { z } from 'zod';
|
||||
import type { ErrorInferenceObject, MaybePromise } from '../utils.js';
|
||||
import { stringify as devalueStringify, parse as devalueParse } from 'devalue';
|
||||
|
||||
export const ACTION_ERROR_CODES = [
|
||||
'BAD_REQUEST',
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { deserializeActionResult } from '../actions/runtime/virtual/shared.js';
|
||||
import type {
|
||||
APIContext,
|
||||
AstroGlobal,
|
||||
|
@ -11,6 +10,7 @@ import type {
|
|||
SSRResult,
|
||||
} from '../@types/astro.js';
|
||||
import type { ActionAPIContext } from '../actions/runtime/utils.js';
|
||||
import { deserializeActionResult } from '../actions/runtime/virtual/shared.js';
|
||||
import { createCallAction, createGetActionResult, hasActionsInternal } from '../actions/utils.js';
|
||||
import {
|
||||
computeCurrentLocale,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ActionError, getActionQueryString, deserializeActionResult } from 'astro:actions';
|
||||
import { ActionError, deserializeActionResult, getActionQueryString } from 'astro:actions';
|
||||
|
||||
function toActionProxy(actionCallback = {}, aggregatedPath = '') {
|
||||
return new Proxy(actionCallback, {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import assert from 'node:assert/strict';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import * as cheerio from 'cheerio';
|
||||
import * as devalue from 'devalue';
|
||||
import testAdapter from './test-adapter.js';
|
||||
import { loadFixture } from './test-utils.js';
|
||||
import * as devalue from 'devalue';
|
||||
|
||||
describe('Astro Actions', () => {
|
||||
let fixture;
|
||||
|
|
Loading…
Reference in a new issue