-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raplaced validator with Deno module validator4oak (#31)
* Raplaced validator with Deno module validator4oak * Fixed wrong dep path - was using local ^^
- Loading branch information
Showing
13 changed files
with
267 additions
and
202 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export { Application, Router } from 'https://deno.land/x/oak@v14.1.1/mod.ts'; | ||
export type { Middleware, Next } from 'https://deno.land/x/oak@v14.1.1/mod.ts'; | ||
export { Context } from 'https://deno.land/x/oak@v14.1.1/context.ts'; | ||
export { Application, Router } from 'https://deno.land/x/oak@14.2.0/mod.ts'; | ||
export type { Middleware, Next } from 'https://deno.land/x/oak@14.2.0/mod.ts'; | ||
export { Context } from 'https://deno.land/x/oak@14.2.0/context.ts'; | ||
export { load } from 'https://deno.land/std@0.218.2/dotenv/mod.ts'; | ||
export { checkValue, Switcher } from 'https://deno.land/x/switcher4deno@v1.0.7/mod.ts'; | ||
export { bold, cyan, green } from 'https://deno.land/std@0.218.2/fmt/colors.ts'; | ||
export { ValidatorFn, ValidatorMiddleware } from 'https://deno.land/x/validator4oak@v1.0.0/mod.ts'; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface FeatureRequestDto { | ||
export type FeatureRequestDto = { | ||
feature: string; | ||
value: string; | ||
} | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export interface ResponseDto { | ||
export type ResponseDto = { | ||
code: number; | ||
message: string; | ||
} | ||
}; | ||
|
||
export interface FeatureResponseDto extends ResponseDto { | ||
export type FeatureResponseDto = ResponseDto & { | ||
status: boolean; | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ class FeatureService { | |
} | ||
} | ||
|
||
interface Param { | ||
type Param = { | ||
value: string; | ||
} | ||
}; | ||
|
||
export default FeatureService; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export { testing } from 'https://deno.land/x/oak@v14.1.1/mod.ts'; | ||
export type { Middleware } from 'https://deno.land/x/oak@v14.1.1/mod.ts'; | ||
export { testing } from 'https://deno.land/x/oak@14.2.0/mod.ts'; | ||
export type { Middleware } from 'https://deno.land/x/oak@14.2.0/mod.ts'; | ||
export { assert, assertEquals, assertFalse, assertObjectMatch } from 'https://deno.land/std@0.218.2/assert/mod.ts'; | ||
export { superoak } from 'https://deno.land/x/superoak@4.8.1/mod.ts'; | ||
export { Switcher } from 'https://deno.land/x/switcher4deno@v1.0.7/mod.ts'; |
This file contains 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