Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev authored and astrobot-houston committed Aug 5, 2024
1 parent 81d7150 commit d532df1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/actions/runtime/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/actions/runtime/virtual/shared.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/render-context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { deserializeActionResult } from '../actions/runtime/virtual/shared.js';
import type {
APIContext,
AstroGlobal,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/templates/actions.mjs
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/actions.test.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit d532df1

Please sign in to comment.