Skip to content

Commit

Permalink
Change project description
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed Jan 18, 2019
1 parent 6812b2b commit 57ffedb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"description": "Pleasant TypeScript Web Api Framework",
"description": "Delightful NodeJS Web Api Framework powered by KoaJs and TypeScript",
"scripts": {
"test": "jest --maxWorkers=4",
"lint": "tslint -c ./tslint.json --project ./tsconfig.json --format stylish",
Expand Down
16 changes: 0 additions & 16 deletions packages/jwt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,6 @@ export interface AuthDecorator {
value: string[]
}

/*
function decorate(data: AuthDecorator) {
return (...args: any[]) => {
if (args.length === 1)
decorateClass(data)(args[0])
else if (typeof args[2] === "object")
decorateMethod(data)(args[0], args[1])
else {
if (data.type === "authorize:public") throw new Error("JWT1000: @authorize.public() should not be applied on parameter")
decorateParameter(data)(args[0], args[1], args[2])
decorateParameter(<ValidatorDecorator>{ type: "ValidatorDecorator", name: "optional" })(args[0], args[1], args[2])
}
}
}
*/

export class AuthDecoratorImpl {
public() {
return decorate((...args: any[]) => {
Expand Down

0 comments on commit 57ffedb

Please sign in to comment.