This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { clone } from 'radash'; | |
| import type { JSONContent } from '@tiptap/core'; | |
| export function highlightContent(content: JSONContent[], words: string[]) { | |
| let i = 0; | |
| const result: JSONContent[] = []; | |
| while (i < content.length) { | |
| const child = content[i]!; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { honoRouter } from '@api-node/lib/hono'; | |
| import { zValidator } from '@hono/zod-validator'; | |
| import { Dispatcher, ProxyAgent } from 'undici'; | |
| import { z } from 'zod'; | |
| export const betterFetchRouter = honoRouter.all( | |
| '/', | |
| zValidator( | |
| 'header', | |
| z.object({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |
OlderNewer