Skip to content

Commit

Permalink
fix: missing createError imports
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 24, 2024
1 parent 818937b commit 551daba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/runtime/server/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { AnalyticsEngineDataPoint, AnalyticsEngineDataset } from '@cloudflare/workers-types/experimental'
import { ofetch } from 'ofetch'
import { joinURL } from 'ufo'
import { createError } from 'h3'
import { useRuntimeConfig } from '#imports'

const _datasets: Record<string, AnalyticsEngineDataset> = {}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/utils/blob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { R2Bucket } from '@cloudflare/workers-types/experimental'
import { ofetch } from 'ofetch'
import mime from 'mime'
import type { H3Event } from 'h3'
import { setHeader } from 'h3'
import { setHeader, createError } from 'h3'
import { defu } from 'defu'
import { randomUUID } from 'uncrypto'
import { parse } from 'pathe'
Expand Down
1 change: 1 addition & 0 deletions src/runtime/server/utils/database.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { D1Database } from '@cloudflare/workers-types/experimental'
import { ofetch } from 'ofetch'
import { joinURL } from 'ufo'
import { createError } from 'h3'
import type { H3Error } from 'h3'
import { useRuntimeConfig } from '#imports'

Expand Down
1 change: 1 addition & 0 deletions src/runtime/server/utils/kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createStorage } from 'unstorage'
import httpDriver from 'unstorage/drivers/http'
import cloudflareKVBindingDriver from 'unstorage/drivers/cloudflare-kv-binding'
import { joinURL } from 'ufo'
import { createError } from 'h3'
import { useRuntimeConfig } from '#imports'

let _kv: Storage
Expand Down

0 comments on commit 551daba

Please sign in to comment.