@tsed/platform-exceptions 6.95.6 → 6.95.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/lib/cjs/components/ErrorFilter.d.ts +0 -15
- package/lib/cjs/components/ExceptionFilter.d.ts +0 -6
- package/lib/cjs/components/MongooseErrorFilter.d.ts +0 -5
- package/lib/cjs/components/StringErrorFilter.d.ts +0 -5
- package/lib/cjs/decorators/catch.d.ts +0 -7
- package/lib/cjs/domain/ExceptionFiltersContainer.d.ts +0 -14
- package/lib/cjs/domain/ExceptionSchema.d.ts +0 -1
- package/lib/cjs/errors/ResourceNotFound.d.ts +0 -5
- package/lib/cjs/index.d.ts +0 -10
- package/lib/cjs/interfaces/ExceptionFilterMethods.d.ts +0 -4
- package/lib/cjs/services/PlatformExceptions.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/platform-exceptions",
|
|
3
|
-
"version": "6.95.
|
|
3
|
+
"version": "6.95.10",
|
|
4
4
|
"description": "Platform exceptions module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"tslib": "2.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@tsed/core": "6.95.
|
|
25
|
-
"@tsed/di": "6.95.
|
|
26
|
-
"@tsed/exceptions": "6.95.
|
|
27
|
-
"@tsed/schema": "6.95.
|
|
24
|
+
"@tsed/core": "6.95.10",
|
|
25
|
+
"@tsed/di": "6.95.10",
|
|
26
|
+
"@tsed/exceptions": "6.95.10",
|
|
27
|
+
"@tsed/schema": "6.95.10"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@tsed/core": "^6.95.
|
|
31
|
-
"@tsed/di": "^6.95.
|
|
32
|
-
"@tsed/exceptions": "^6.95.
|
|
33
|
-
"@tsed/schema": "^6.95.
|
|
30
|
+
"@tsed/core": "^6.95.10",
|
|
31
|
+
"@tsed/di": "^6.95.10",
|
|
32
|
+
"@tsed/exceptions": "^6.95.10",
|
|
33
|
+
"@tsed/schema": "^6.95.10"
|
|
34
34
|
},
|
|
35
35
|
"repository": "https://github.com/tsedio/tsed",
|
|
36
36
|
"bugs": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Env } from "@tsed/core";
|
|
2
|
-
import { BaseContext } from "@tsed/di";
|
|
3
|
-
import type { ExceptionFilterMethods } from "../interfaces/ExceptionFilterMethods";
|
|
4
|
-
export declare class ErrorFilter implements ExceptionFilterMethods {
|
|
5
|
-
catch(error: any, ctx: BaseContext): void;
|
|
6
|
-
mapError(error: any, env?: Env): {
|
|
7
|
-
name: any;
|
|
8
|
-
message: any;
|
|
9
|
-
status: any;
|
|
10
|
-
errors: any;
|
|
11
|
-
stack: any;
|
|
12
|
-
};
|
|
13
|
-
protected getErrors(error: any): any;
|
|
14
|
-
protected getHeaders(error: any): any;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Type } from "@tsed/core";
|
|
2
|
-
import type { ExceptionFilterMethods } from "../interfaces/ExceptionFilterMethods";
|
|
3
|
-
/**
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
|
-
export declare type ExceptionFilterKey = Type<any> | Symbol | string;
|
|
7
|
-
/**
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export declare const ExceptionFiltersContainer: Map<ExceptionFilterKey, Type<ExceptionFilterMethods<unknown>>>;
|
|
11
|
-
/**
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
|
-
export declare function registerExceptionType(type: ExceptionFilterKey, token: Type<ExceptionFilterMethods>): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./components/StringErrorFilter";
|
|
2
|
-
export * from "./components/ExceptionFilter";
|
|
3
|
-
export * from "./components/ErrorFilter";
|
|
4
|
-
export * from "./components/MongooseErrorFilter";
|
|
5
|
-
export * from "./decorators/catch";
|
|
6
|
-
export * from "./domain/ExceptionFiltersContainer";
|
|
7
|
-
export * from "./domain/ExceptionSchema";
|
|
8
|
-
export * from "./interfaces/ExceptionFilterMethods";
|
|
9
|
-
export * from "./services/PlatformExceptions";
|
|
10
|
-
export * from "./errors/ResourceNotFound";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseContext, InjectorService } from "@tsed/di";
|
|
2
|
-
import { ExceptionFilterKey } from "../domain/ExceptionFiltersContainer";
|
|
3
|
-
import { ExceptionFilterMethods } from "../interfaces/ExceptionFilterMethods";
|
|
4
|
-
/**
|
|
5
|
-
* Catch all errors and return the json error with the right status code when it's possible.
|
|
6
|
-
*
|
|
7
|
-
* @platform
|
|
8
|
-
*/
|
|
9
|
-
export declare class PlatformExceptions {
|
|
10
|
-
types: Map<ExceptionFilterKey, ExceptionFilterMethods>;
|
|
11
|
-
injector: InjectorService;
|
|
12
|
-
$onInit(): void;
|
|
13
|
-
catch(error: unknown, ctx: BaseContext): void;
|
|
14
|
-
resourceNotFound(ctx: BaseContext): void;
|
|
15
|
-
}
|