Commit 551daba 1 parent 818937b commit 551daba Copy full SHA for 551daba
File tree 4 files changed +4
-1
lines changed
4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import type { AnalyticsEngineDataPoint , AnalyticsEngineDataset } from '@cloudflare/workers-types/experimental'
2
2
import { ofetch } from 'ofetch'
3
3
import { joinURL } from 'ufo'
4
+ import { createError } from 'h3'
4
5
import { useRuntimeConfig } from '#imports'
5
6
6
7
const _datasets : Record < string , AnalyticsEngineDataset > = { }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type { R2Bucket } from '@cloudflare/workers-types/experimental'
4
4
import { ofetch } from 'ofetch'
5
5
import mime from 'mime'
6
6
import type { H3Event } from 'h3'
7
- import { setHeader } from 'h3'
7
+ import { setHeader , createError } from 'h3'
8
8
import { defu } from 'defu'
9
9
import { randomUUID } from 'uncrypto'
10
10
import { parse } from 'pathe'
Original file line number Diff line number Diff line change 1
1
import type { D1Database } from '@cloudflare/workers-types/experimental'
2
2
import { ofetch } from 'ofetch'
3
3
import { joinURL } from 'ufo'
4
+ import { createError } from 'h3'
4
5
import type { H3Error } from 'h3'
5
6
import { useRuntimeConfig } from '#imports'
6
7
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { createStorage } from 'unstorage'
3
3
import httpDriver from 'unstorage/drivers/http'
4
4
import cloudflareKVBindingDriver from 'unstorage/drivers/cloudflare-kv-binding'
5
5
import { joinURL } from 'ufo'
6
+ import { createError } from 'h3'
6
7
import { useRuntimeConfig } from '#imports'
7
8
8
9
let _kv : Storage
You can’t perform that action at this time.
0 commit comments