@tsed/exceptions 6.95.9 → 6.96.2
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 +2 -2
- package/lib/cjs/clientErrors/BadMapping.d.ts +0 -6
- package/lib/cjs/clientErrors/BadRequest.d.ts +0 -5
- package/lib/cjs/clientErrors/Conflict.d.ts +0 -5
- package/lib/cjs/clientErrors/ExpectationFailed.d.ts +0 -5
- package/lib/cjs/clientErrors/Forbidden.d.ts +0 -5
- package/lib/cjs/clientErrors/Gone.d.ts +0 -5
- package/lib/cjs/clientErrors/ImATeapot.d.ts +0 -6
- package/lib/cjs/clientErrors/LengthRequired.d.ts +0 -5
- package/lib/cjs/clientErrors/MethodNotAllowed.d.ts +0 -5
- package/lib/cjs/clientErrors/MisdirectedRequest.d.ts +0 -5
- package/lib/cjs/clientErrors/NotAcceptable.d.ts +0 -5
- package/lib/cjs/clientErrors/NotFound.d.ts +0 -5
- package/lib/cjs/clientErrors/PaymentRequired.d.ts +0 -5
- package/lib/cjs/clientErrors/PreconditionFailed.d.ts +0 -5
- package/lib/cjs/clientErrors/PreconditionRequired.d.ts +0 -5
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.d.ts +0 -5
- package/lib/cjs/clientErrors/RequestEntityTooLarge.d.ts +0 -5
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.d.ts +0 -5
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.d.ts +0 -5
- package/lib/cjs/clientErrors/RequestTimeout.d.ts +0 -5
- package/lib/cjs/clientErrors/RequestURITooLong.d.ts +0 -5
- package/lib/cjs/clientErrors/TooManyRequests.d.ts +0 -5
- package/lib/cjs/clientErrors/Unauthorized.d.ts +0 -5
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.d.ts +0 -5
- package/lib/cjs/clientErrors/UnprocessableEntity.d.ts +0 -5
- package/lib/cjs/clientErrors/UnsupportedMediaType.d.ts +0 -5
- package/lib/cjs/clientErrors/UpgradeRequired.d.ts +0 -5
- package/lib/cjs/clientErrors/index.d.ts +0 -27
- package/lib/cjs/core/Exception.d.ts +0 -45
- package/lib/cjs/core/index.d.ts +0 -1
- package/lib/cjs/index.d.ts +0 -4
- package/lib/cjs/redirections/MovedPermanently.d.ts +0 -5
- package/lib/cjs/redirections/MovedTemporarily.d.ts +0 -6
- package/lib/cjs/redirections/MultipleChoices.d.ts +0 -5
- package/lib/cjs/redirections/NotModified.d.ts +0 -5
- package/lib/cjs/redirections/PermanentRedirect.d.ts +0 -5
- package/lib/cjs/redirections/SeeOther.d.ts +0 -5
- package/lib/cjs/redirections/TemporaryRedirect.d.ts +0 -5
- package/lib/cjs/redirections/TooManyRedirects.d.ts +0 -5
- package/lib/cjs/redirections/UseProxy.d.ts +0 -5
- package/lib/cjs/redirections/index.d.ts +0 -9
- package/lib/cjs/serverErrors/BadGateway.d.ts +0 -5
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.d.ts +0 -5
- package/lib/cjs/serverErrors/GatewayTimeout.d.ts +0 -5
- package/lib/cjs/serverErrors/InternalServerError.d.ts +0 -5
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.d.ts +0 -5
- package/lib/cjs/serverErrors/NotExtended.d.ts +0 -5
- package/lib/cjs/serverErrors/NotImplemented.d.ts +0 -5
- package/lib/cjs/serverErrors/ProxyError.d.ts +0 -6
- package/lib/cjs/serverErrors/ServiceUnvailable.d.ts +0 -5
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.d.ts +0 -5
- package/lib/cjs/serverErrors/index.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/exceptions",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.96.2",
|
|
4
4
|
"description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build:esm": "tsc --build tsconfig.compile.esm.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tsed/schema": "6.
|
|
21
|
+
"@tsed/schema": "6.96.2",
|
|
22
22
|
"tslib": "2.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from "./BadMapping";
|
|
2
|
-
export * from "./BadRequest";
|
|
3
|
-
export * from "./Conflict";
|
|
4
|
-
export * from "./ExpectationFailed";
|
|
5
|
-
export * from "./Forbidden";
|
|
6
|
-
export * from "./Gone";
|
|
7
|
-
export * from "./ImATeapot";
|
|
8
|
-
export * from "./LengthRequired";
|
|
9
|
-
export * from "./MethodNotAllowed";
|
|
10
|
-
export * from "./MisdirectedRequest";
|
|
11
|
-
export * from "./NotAcceptable";
|
|
12
|
-
export * from "./NotFound";
|
|
13
|
-
export * from "./PaymentRequired";
|
|
14
|
-
export * from "./PreconditionFailed";
|
|
15
|
-
export * from "./PreconditionRequired";
|
|
16
|
-
export * from "./ProxyAuthentificationRequired";
|
|
17
|
-
export * from "./RequestRangeUnsatisfiable";
|
|
18
|
-
export * from "./RequestEntityTooLarge";
|
|
19
|
-
export * from "./RequestHeaderFieldsTooLarge";
|
|
20
|
-
export * from "./RequestTimeout";
|
|
21
|
-
export * from "./RequestURITooLong";
|
|
22
|
-
export * from "./TooManyRequests";
|
|
23
|
-
export * from "./Unauthorized";
|
|
24
|
-
export * from "./UnsupportedMediaType";
|
|
25
|
-
export * from "./UpgradeRequired";
|
|
26
|
-
export * from "./UnavailableForLegalReasons";
|
|
27
|
-
export * from "./UnprocessableEntity";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare class Exception extends Error {
|
|
2
|
-
/**
|
|
3
|
-
* Exception base name
|
|
4
|
-
* @type {string}
|
|
5
|
-
*/
|
|
6
|
-
name: string;
|
|
7
|
-
/**
|
|
8
|
-
* Message of the exception
|
|
9
|
-
*/
|
|
10
|
-
message: string;
|
|
11
|
-
/**
|
|
12
|
-
* Exception type
|
|
13
|
-
* @type {string}
|
|
14
|
-
*/
|
|
15
|
-
type: string;
|
|
16
|
-
/**
|
|
17
|
-
* Stack calling
|
|
18
|
-
*/
|
|
19
|
-
stack: string;
|
|
20
|
-
origin: Error & any;
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Code Status
|
|
23
|
-
*/
|
|
24
|
-
status: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
body: any;
|
|
29
|
-
/**
|
|
30
|
-
* Headers must be sent to the response
|
|
31
|
-
*/
|
|
32
|
-
headers: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
};
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
constructor(status?: number, message?: string, origin?: Error | string | any);
|
|
37
|
-
setHeaders(headers: {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}): this;
|
|
40
|
-
setHeader(key: string, value: any): this;
|
|
41
|
-
setOrigin(origin: Error | string | any): void;
|
|
42
|
-
toString(): string;
|
|
43
|
-
}
|
|
44
|
-
export declare class HTTPException extends Exception {
|
|
45
|
-
}
|
package/lib/cjs/core/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Exception";
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./MovedPermanently";
|
|
2
|
-
export * from "./MovedTemporarily";
|
|
3
|
-
export * from "./MultipleChoices";
|
|
4
|
-
export * from "./NotModified";
|
|
5
|
-
export * from "./PermanentRedirect";
|
|
6
|
-
export * from "./SeeOther";
|
|
7
|
-
export * from "./TemporaryRedirect";
|
|
8
|
-
export * from "./TooManyRedirects";
|
|
9
|
-
export * from "./UseProxy";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./BadGateway";
|
|
2
|
-
export * from "./GatewayTimeout";
|
|
3
|
-
export * from "./InternalServerError";
|
|
4
|
-
export * from "./NotImplemented";
|
|
5
|
-
export * from "./ProxyError";
|
|
6
|
-
export * from "./ServiceUnvailable";
|
|
7
|
-
export * from "./NetworkAuthenticationRequired";
|
|
8
|
-
export * from "./NotExtended";
|
|
9
|
-
export * from "./VariantAlsoNegotiates";
|
|
10
|
-
export * from "./BandwidthLimitExceeded";
|