Skip to content

Commit

Permalink
prepare for jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jul 17, 2024
1 parent 8df1dbb commit 9cbd750
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions graphiql/render.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { filterXSS } from 'https://esm.sh/xss@1.0.15'
import { filterXSS } from 'npm:xss@1.0.15'
import { getLoadingMarkup } from './markup.ts'

export interface MiddlewareOptions {
Expand Down Expand Up @@ -133,7 +133,7 @@ const renderConfig = (config: unknown) => {
})
}

export function renderPlaygroundPage(options: RenderPageOptions) {
export function renderPlaygroundPage(options: RenderPageOptions): string {
const extendedOptions:
& Partial<{
canSaveConfig: boolean
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function GraphQLHTTP<
...options
}: GQLOptions<Req, ReqCtx, Context>,
reqCtx?: (req: Req) => ReqCtx,
) {
): (req: Request) => Promise<Response> {
const handler = createHandler(options)

return async function handleRequest(req: Request): Promise<Response> {
Expand Down

0 comments on commit 9cbd750

Please sign in to comment.