0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 11:51:01 +01:00

chore(utils): Move cf module (#1831)

* move cloudflare

* typo

* fix import order

* rename

* missing import
This commit is contained in:
watany 2023-12-20 14:23:00 +09:00 committed by GitHub
parent 4e08b8e15a
commit a1c7144d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
// @denoify-ignore
import type { KVNamespace } from '@cloudflare/workers-types'
import type { MiddlewareHandler } from '../../types'
import { getContentFromKVAsset } from '../../utils/cloudflare'
import { getFilePath } from '../../utils/filepath'
import { getMimeType } from '../../utils/mime'
import { getContentFromKVAsset } from './utils'
export type ServeStaticOptions = {
root?: string

View File

@ -1,4 +1,4 @@
import { getContentFromKVAsset } from './cloudflare'
import { getContentFromKVAsset } from './utils'
// Mock
const store: { [key: string]: string } = {