@tsed/exceptions 6.107.5 → 6.108.0

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HTTPException = exports.Exception = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const change_case_1 = require("change-case");
6
- const statuses_1 = (0, tslib_1.__importDefault)(require("statuses"));
6
+ const statuses_1 = tslib_1.__importDefault(require("statuses"));
7
7
  function getStatusConstant(status) {
8
8
  return status === 200 ? "SUCCESS" : (0, change_case_1.constantCase)(String((0, statuses_1.default)(status)));
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":";;;;AAAA,6CAAyC;AACzC,qEAAgC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,0BAAY,EAAC,MAAM,CAAC,IAAA,kBAAQ,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAa,SAAU,SAAQ,KAAK;IAmClC,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAnCjB;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAKvC;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAcvC;;WAEG;QACI,YAAO,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AA7ED,8BA6EC;AAED,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C","sourcesContent":["import {constantCase} from \"change-case\";\nimport statuses from \"statuses\";\n\nfunction getStatusConstant(status: number) {\n return status === 200 ? \"SUCCESS\" : constantCase(String(statuses(status)));\n}\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
1
+ {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":";;;;AAAA,6CAAyC;AACzC,gEAAgC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,0BAAY,EAAC,MAAM,CAAC,IAAA,kBAAQ,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAa,SAAU,SAAQ,KAAK;IAmClC,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAnCjB;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAKvC;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAcvC;;WAEG;QACI,YAAO,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AA7ED,8BA6EC;AAED,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C","sourcesContent":["import {constantCase} from \"change-case\";\nimport statuses from \"statuses\";\n\nfunction getStatusConstant(status: number) {\n return status === 200 ? \"SUCCESS\" : constantCase(String(statuses(status)));\n}\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
package/lib/cjs/index.js CHANGED
@@ -4,50 +4,50 @@
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const tslib_1 = require("tslib");
7
- (0, tslib_1.__exportStar)(require("./clientErrors/BadMapping"), exports);
8
- (0, tslib_1.__exportStar)(require("./clientErrors/BadRequest"), exports);
9
- (0, tslib_1.__exportStar)(require("./clientErrors/Conflict"), exports);
10
- (0, tslib_1.__exportStar)(require("./clientErrors/ExpectationFailed"), exports);
11
- (0, tslib_1.__exportStar)(require("./clientErrors/Forbidden"), exports);
12
- (0, tslib_1.__exportStar)(require("./clientErrors/Gone"), exports);
13
- (0, tslib_1.__exportStar)(require("./clientErrors/ImATeapot"), exports);
14
- (0, tslib_1.__exportStar)(require("./clientErrors/LengthRequired"), exports);
15
- (0, tslib_1.__exportStar)(require("./clientErrors/MethodNotAllowed"), exports);
16
- (0, tslib_1.__exportStar)(require("./clientErrors/MisdirectedRequest"), exports);
17
- (0, tslib_1.__exportStar)(require("./clientErrors/NotAcceptable"), exports);
18
- (0, tslib_1.__exportStar)(require("./clientErrors/NotFound"), exports);
19
- (0, tslib_1.__exportStar)(require("./clientErrors/PaymentRequired"), exports);
20
- (0, tslib_1.__exportStar)(require("./clientErrors/PreconditionFailed"), exports);
21
- (0, tslib_1.__exportStar)(require("./clientErrors/PreconditionRequired"), exports);
22
- (0, tslib_1.__exportStar)(require("./clientErrors/ProxyAuthentificationRequired"), exports);
23
- (0, tslib_1.__exportStar)(require("./clientErrors/RequestEntityTooLarge"), exports);
24
- (0, tslib_1.__exportStar)(require("./clientErrors/RequestHeaderFieldsTooLarge"), exports);
25
- (0, tslib_1.__exportStar)(require("./clientErrors/RequestRangeUnsatisfiable"), exports);
26
- (0, tslib_1.__exportStar)(require("./clientErrors/RequestTimeout"), exports);
27
- (0, tslib_1.__exportStar)(require("./clientErrors/RequestURITooLong"), exports);
28
- (0, tslib_1.__exportStar)(require("./clientErrors/TooManyRequests"), exports);
29
- (0, tslib_1.__exportStar)(require("./clientErrors/Unauthorized"), exports);
30
- (0, tslib_1.__exportStar)(require("./clientErrors/UnavailableForLegalReasons"), exports);
31
- (0, tslib_1.__exportStar)(require("./clientErrors/UnprocessableEntity"), exports);
32
- (0, tslib_1.__exportStar)(require("./clientErrors/UnsupportedMediaType"), exports);
33
- (0, tslib_1.__exportStar)(require("./clientErrors/UpgradeRequired"), exports);
34
- (0, tslib_1.__exportStar)(require("./core/Exception"), exports);
35
- (0, tslib_1.__exportStar)(require("./redirections/MovedPermanently"), exports);
36
- (0, tslib_1.__exportStar)(require("./redirections/MovedTemporarily"), exports);
37
- (0, tslib_1.__exportStar)(require("./redirections/MultipleChoices"), exports);
38
- (0, tslib_1.__exportStar)(require("./redirections/NotModified"), exports);
39
- (0, tslib_1.__exportStar)(require("./redirections/PermanentRedirect"), exports);
40
- (0, tslib_1.__exportStar)(require("./redirections/SeeOther"), exports);
41
- (0, tslib_1.__exportStar)(require("./redirections/TemporaryRedirect"), exports);
42
- (0, tslib_1.__exportStar)(require("./redirections/UseProxy"), exports);
43
- (0, tslib_1.__exportStar)(require("./serverErrors/BadGateway"), exports);
44
- (0, tslib_1.__exportStar)(require("./serverErrors/BandwidthLimitExceeded"), exports);
45
- (0, tslib_1.__exportStar)(require("./serverErrors/GatewayTimeout"), exports);
46
- (0, tslib_1.__exportStar)(require("./serverErrors/InternalServerError"), exports);
47
- (0, tslib_1.__exportStar)(require("./serverErrors/NetworkAuthenticationRequired"), exports);
48
- (0, tslib_1.__exportStar)(require("./serverErrors/NotExtended"), exports);
49
- (0, tslib_1.__exportStar)(require("./serverErrors/NotImplemented"), exports);
50
- (0, tslib_1.__exportStar)(require("./serverErrors/ProxyError"), exports);
51
- (0, tslib_1.__exportStar)(require("./serverErrors/ServiceUnvailable"), exports);
52
- (0, tslib_1.__exportStar)(require("./serverErrors/VariantAlsoNegotiates"), exports);
7
+ tslib_1.__exportStar(require("./clientErrors/BadMapping"), exports);
8
+ tslib_1.__exportStar(require("./clientErrors/BadRequest"), exports);
9
+ tslib_1.__exportStar(require("./clientErrors/Conflict"), exports);
10
+ tslib_1.__exportStar(require("./clientErrors/ExpectationFailed"), exports);
11
+ tslib_1.__exportStar(require("./clientErrors/Forbidden"), exports);
12
+ tslib_1.__exportStar(require("./clientErrors/Gone"), exports);
13
+ tslib_1.__exportStar(require("./clientErrors/ImATeapot"), exports);
14
+ tslib_1.__exportStar(require("./clientErrors/LengthRequired"), exports);
15
+ tslib_1.__exportStar(require("./clientErrors/MethodNotAllowed"), exports);
16
+ tslib_1.__exportStar(require("./clientErrors/MisdirectedRequest"), exports);
17
+ tslib_1.__exportStar(require("./clientErrors/NotAcceptable"), exports);
18
+ tslib_1.__exportStar(require("./clientErrors/NotFound"), exports);
19
+ tslib_1.__exportStar(require("./clientErrors/PaymentRequired"), exports);
20
+ tslib_1.__exportStar(require("./clientErrors/PreconditionFailed"), exports);
21
+ tslib_1.__exportStar(require("./clientErrors/PreconditionRequired"), exports);
22
+ tslib_1.__exportStar(require("./clientErrors/ProxyAuthentificationRequired"), exports);
23
+ tslib_1.__exportStar(require("./clientErrors/RequestEntityTooLarge"), exports);
24
+ tslib_1.__exportStar(require("./clientErrors/RequestHeaderFieldsTooLarge"), exports);
25
+ tslib_1.__exportStar(require("./clientErrors/RequestRangeUnsatisfiable"), exports);
26
+ tslib_1.__exportStar(require("./clientErrors/RequestTimeout"), exports);
27
+ tslib_1.__exportStar(require("./clientErrors/RequestURITooLong"), exports);
28
+ tslib_1.__exportStar(require("./clientErrors/TooManyRequests"), exports);
29
+ tslib_1.__exportStar(require("./clientErrors/Unauthorized"), exports);
30
+ tslib_1.__exportStar(require("./clientErrors/UnavailableForLegalReasons"), exports);
31
+ tslib_1.__exportStar(require("./clientErrors/UnprocessableEntity"), exports);
32
+ tslib_1.__exportStar(require("./clientErrors/UnsupportedMediaType"), exports);
33
+ tslib_1.__exportStar(require("./clientErrors/UpgradeRequired"), exports);
34
+ tslib_1.__exportStar(require("./core/Exception"), exports);
35
+ tslib_1.__exportStar(require("./redirections/MovedPermanently"), exports);
36
+ tslib_1.__exportStar(require("./redirections/MovedTemporarily"), exports);
37
+ tslib_1.__exportStar(require("./redirections/MultipleChoices"), exports);
38
+ tslib_1.__exportStar(require("./redirections/NotModified"), exports);
39
+ tslib_1.__exportStar(require("./redirections/PermanentRedirect"), exports);
40
+ tslib_1.__exportStar(require("./redirections/SeeOther"), exports);
41
+ tslib_1.__exportStar(require("./redirections/TemporaryRedirect"), exports);
42
+ tslib_1.__exportStar(require("./redirections/UseProxy"), exports);
43
+ tslib_1.__exportStar(require("./serverErrors/BadGateway"), exports);
44
+ tslib_1.__exportStar(require("./serverErrors/BandwidthLimitExceeded"), exports);
45
+ tslib_1.__exportStar(require("./serverErrors/GatewayTimeout"), exports);
46
+ tslib_1.__exportStar(require("./serverErrors/InternalServerError"), exports);
47
+ tslib_1.__exportStar(require("./serverErrors/NetworkAuthenticationRequired"), exports);
48
+ tslib_1.__exportStar(require("./serverErrors/NotExtended"), exports);
49
+ tslib_1.__exportStar(require("./serverErrors/NotImplemented"), exports);
50
+ tslib_1.__exportStar(require("./serverErrors/ProxyError"), exports);
51
+ tslib_1.__exportStar(require("./serverErrors/ServiceUnvailable"), exports);
52
+ tslib_1.__exportStar(require("./serverErrors/VariantAlsoNegotiates"), exports);
53
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yEAA0C;AAC1C,yEAA0C;AAC1C,uEAAwC;AACxC,gFAAiD;AACjD,wEAAyC;AACzC,mEAAoC;AACpC,wEAAyC;AACzC,6EAA8C;AAC9C,+EAAgD;AAChD,iFAAkD;AAClD,4EAA6C;AAC7C,uEAAwC;AACxC,8EAA+C;AAC/C,iFAAkD;AAClD,mFAAoD;AACpD,4FAA6D;AAC7D,oFAAqD;AACrD,0FAA2D;AAC3D,wFAAyD;AACzD,6EAA8C;AAC9C,gFAAiD;AACjD,8EAA+C;AAC/C,2EAA4C;AAC5C,yFAA0D;AAC1D,kFAAmD;AACnD,mFAAoD;AACpD,8EAA+C;AAC/C,gEAAiC;AACjC,+EAAgD;AAChD,+EAAgD;AAChD,8EAA+C;AAC/C,0EAA2C;AAC3C,gFAAiD;AACjD,uEAAwC;AACxC,gFAAiD;AACjD,uEAAwC;AACxC,yEAA0C;AAC1C,qFAAsD;AACtD,6EAA8C;AAC9C,kFAAmD;AACnD,4FAA6D;AAC7D,0EAA2C;AAC3C,6EAA8C;AAC9C,yEAA0C;AAC1C,gFAAiD;AACjD,oFAAqD","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./clientErrors/BadMapping\";\nexport * from \"./clientErrors/BadRequest\";\nexport * from \"./clientErrors/Conflict\";\nexport * from \"./clientErrors/ExpectationFailed\";\nexport * from \"./clientErrors/Forbidden\";\nexport * from \"./clientErrors/Gone\";\nexport * from \"./clientErrors/ImATeapot\";\nexport * from \"./clientErrors/LengthRequired\";\nexport * from \"./clientErrors/MethodNotAllowed\";\nexport * from \"./clientErrors/MisdirectedRequest\";\nexport * from \"./clientErrors/NotAcceptable\";\nexport * from \"./clientErrors/NotFound\";\nexport * from \"./clientErrors/PaymentRequired\";\nexport * from \"./clientErrors/PreconditionFailed\";\nexport * from \"./clientErrors/PreconditionRequired\";\nexport * from \"./clientErrors/ProxyAuthentificationRequired\";\nexport * from \"./clientErrors/RequestEntityTooLarge\";\nexport * from \"./clientErrors/RequestHeaderFieldsTooLarge\";\nexport * from \"./clientErrors/RequestRangeUnsatisfiable\";\nexport * from \"./clientErrors/RequestTimeout\";\nexport * from \"./clientErrors/RequestURITooLong\";\nexport * from \"./clientErrors/TooManyRequests\";\nexport * from \"./clientErrors/Unauthorized\";\nexport * from \"./clientErrors/UnavailableForLegalReasons\";\nexport * from \"./clientErrors/UnprocessableEntity\";\nexport * from \"./clientErrors/UnsupportedMediaType\";\nexport * from \"./clientErrors/UpgradeRequired\";\nexport * from \"./core/Exception\";\nexport * from \"./redirections/MovedPermanently\";\nexport * from \"./redirections/MovedTemporarily\";\nexport * from \"./redirections/MultipleChoices\";\nexport * from \"./redirections/NotModified\";\nexport * from \"./redirections/PermanentRedirect\";\nexport * from \"./redirections/SeeOther\";\nexport * from \"./redirections/TemporaryRedirect\";\nexport * from \"./redirections/UseProxy\";\nexport * from \"./serverErrors/BadGateway\";\nexport * from \"./serverErrors/BandwidthLimitExceeded\";\nexport * from \"./serverErrors/GatewayTimeout\";\nexport * from \"./serverErrors/InternalServerError\";\nexport * from \"./serverErrors/NetworkAuthenticationRequired\";\nexport * from \"./serverErrors/NotExtended\";\nexport * from \"./serverErrors/NotImplemented\";\nexport * from \"./serverErrors/ProxyError\";\nexport * from \"./serverErrors/ServiceUnvailable\";\nexport * from \"./serverErrors/VariantAlsoNegotiates\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA0C;AAC1C,oEAA0C;AAC1C,kEAAwC;AACxC,2EAAiD;AACjD,mEAAyC;AACzC,8DAAoC;AACpC,mEAAyC;AACzC,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD;AAClD,uEAA6C;AAC7C,kEAAwC;AACxC,yEAA+C;AAC/C,4EAAkD;AAClD,8EAAoD;AACpD,uFAA6D;AAC7D,+EAAqD;AACrD,qFAA2D;AAC3D,mFAAyD;AACzD,wEAA8C;AAC9C,2EAAiD;AACjD,yEAA+C;AAC/C,sEAA4C;AAC5C,oFAA0D;AAC1D,6EAAmD;AACnD,8EAAoD;AACpD,yEAA+C;AAC/C,2DAAiC;AACjC,0EAAgD;AAChD,0EAAgD;AAChD,yEAA+C;AAC/C,qEAA2C;AAC3C,2EAAiD;AACjD,kEAAwC;AACxC,2EAAiD;AACjD,kEAAwC;AACxC,oEAA0C;AAC1C,gFAAsD;AACtD,wEAA8C;AAC9C,6EAAmD;AACnD,uFAA6D;AAC7D,qEAA2C;AAC3C,wEAA8C;AAC9C,oEAA0C;AAC1C,2EAAiD;AACjD,+EAAqD","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./clientErrors/BadMapping\";\nexport * from \"./clientErrors/BadRequest\";\nexport * from \"./clientErrors/Conflict\";\nexport * from \"./clientErrors/ExpectationFailed\";\nexport * from \"./clientErrors/Forbidden\";\nexport * from \"./clientErrors/Gone\";\nexport * from \"./clientErrors/ImATeapot\";\nexport * from \"./clientErrors/LengthRequired\";\nexport * from \"./clientErrors/MethodNotAllowed\";\nexport * from \"./clientErrors/MisdirectedRequest\";\nexport * from \"./clientErrors/NotAcceptable\";\nexport * from \"./clientErrors/NotFound\";\nexport * from \"./clientErrors/PaymentRequired\";\nexport * from \"./clientErrors/PreconditionFailed\";\nexport * from \"./clientErrors/PreconditionRequired\";\nexport * from \"./clientErrors/ProxyAuthentificationRequired\";\nexport * from \"./clientErrors/RequestEntityTooLarge\";\nexport * from \"./clientErrors/RequestHeaderFieldsTooLarge\";\nexport * from \"./clientErrors/RequestRangeUnsatisfiable\";\nexport * from \"./clientErrors/RequestTimeout\";\nexport * from \"./clientErrors/RequestURITooLong\";\nexport * from \"./clientErrors/TooManyRequests\";\nexport * from \"./clientErrors/Unauthorized\";\nexport * from \"./clientErrors/UnavailableForLegalReasons\";\nexport * from \"./clientErrors/UnprocessableEntity\";\nexport * from \"./clientErrors/UnsupportedMediaType\";\nexport * from \"./clientErrors/UpgradeRequired\";\nexport * from \"./core/Exception\";\nexport * from \"./redirections/MovedPermanently\";\nexport * from \"./redirections/MovedTemporarily\";\nexport * from \"./redirections/MultipleChoices\";\nexport * from \"./redirections/NotModified\";\nexport * from \"./redirections/PermanentRedirect\";\nexport * from \"./redirections/SeeOther\";\nexport * from \"./redirections/TemporaryRedirect\";\nexport * from \"./redirections/UseProxy\";\nexport * from \"./serverErrors/BadGateway\";\nexport * from \"./serverErrors/BandwidthLimitExceeded\";\nexport * from \"./serverErrors/GatewayTimeout\";\nexport * from \"./serverErrors/InternalServerError\";\nexport * from \"./serverErrors/NetworkAuthenticationRequired\";\nexport * from \"./serverErrors/NotExtended\";\nexport * from \"./serverErrors/NotImplemented\";\nexport * from \"./serverErrors/ProxyError\";\nexport * from \"./serverErrors/ServiceUnvailable\";\nexport * from \"./serverErrors/VariantAlsoNegotiates\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/exceptions",
3
- "version": "6.107.5",
3
+ "version": "6.108.0",
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",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "change-case": "4.1.2",
24
24
  "statuses": ">=2.0.1",
25
- "tslib": "2.2.0"
25
+ "tslib": "2.3.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/statuses": "2.0.0"