Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
BREAKING: rename files (#104)
Browse files Browse the repository at this point in the history
* remove files

* add lowercase files

* remove files

* add files
  • Loading branch information
boywithkeyboard committed Jul 16, 2023
1 parent 8f76ef3 commit 82f2c73
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 20 deletions.
6 changes: 3 additions & 3 deletions cheetah.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2023 Samuel Kopp. All rights reserved. Apache-2.0 license.
import { base, Method } from './base.ts'
import { Collection } from './Collection.ts'
import { Context } from './Context.ts'
import { Exception } from './Exception.ts'
import { Collection } from './collection.ts'
import { Context } from './context.ts'
import { Exception } from './exception.ts'
import { Extension, validExtension } from './extensions.ts'
import { Handler, HandlerOrSchema, Payload } from './handler.ts'

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions Context.ts → context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023 Samuel Kopp. All rights reserved. Apache-2.0 license.
import { ZodType } from 'https://deno.land/x/zod@v3.21.4/types.ts'
import { RequestContext } from './RequestContext.ts'
import { ResponseContext } from './ResponseContext.ts'
import { RequestContext } from './request_context.ts'
import { ResponseContext } from './response_context.ts'
import { AppContext } from './cheetah.ts'
import { ObjectType, Payload } from './handler.ts'

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2023 Samuel Kopp. All rights reserved. Apache-2.0 license.
export { Collection } from './Collection.ts'
export type { Context } from './Context.ts'
export { Exception } from './Exception.ts'
export { cheetah as default } from './cheetah.ts'
export type { AppConfig, AppContext } from './cheetah.ts'
export { Collection } from './collection.ts'
export { Context } from './context.ts'
export { Exception } from './exception.ts'
export { createExtension } from './extensions.ts'
export type { Extension } from './extensions.ts'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions x/mod.ts

This file was deleted.

File renamed without changes.
8 changes: 4 additions & 4 deletions x/x.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from 'https://deno.land/std@0.194.0/testing/asserts.ts'
import { cheetah } from '../cheetah.ts'
import { h, jsx } from './jsx.tsx'
import { createKey, importKey, jwt } from './mod.ts'
import { createKey, importKey, sign, verify } from './jwt.ts'

Deno.test('x', async (t) => {
await t.step('jwt', async () => {
Expand All @@ -15,10 +15,10 @@ Deno.test('x', async (t) => {

assertInstanceOf(cryptoKey, CryptoKey)

const token = await jwt.sign({ example: 'object' }, key)
const token = await sign({ example: 'object' }, key)

assertEquals(await jwt.verify(token, key) !== undefined, true)
assertEquals(await jwt.verify(token, cryptoKey) !== undefined, true)
assertEquals(await verify(token, key) !== undefined, true)
assertEquals(await verify(token, cryptoKey) !== undefined, true)
})

await t.step('jsx', async () => {
Expand Down

0 comments on commit 82f2c73

Please sign in to comment.