Skip to content

Commit

Permalink
Merge pull request #3 from x-spacy/feat/message-parameters
Browse files Browse the repository at this point in the history
feat: add message parameteres to exception
  • Loading branch information
gutyerrez authored Jun 1, 2024
2 parents a13b07f + e74c272 commit 676efa7
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 138 deletions.
4 changes: 2 additions & 2 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '@x-spacy/exceptions' {
export class Exception {
constructor(status: number, name: string, message?: string);
constructor(status: number, name: string, message?: string, parameters?: Record<string, string | number>);
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"build": "sh scripts/build.sh"
},
"dependencies": {
"@x-spacy/eslint-config": "^1.0.0",
"i18next": "^23.11.4"
"i18next": "^23.11.5"
},
"devDependencies": {
"@babel/cli": "^7.24.6",
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"eslint": "^9.3.0",
"@x-spacy/eslint-config": "^1.7.1",
"eslint": "^9.4.0",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit 676efa7

Please sign in to comment.