@tsed/exceptions 6.102.7 → 6.102.8-rc.1

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.
Files changed (53) hide show
  1. package/lib/cjs/package.json +3 -0
  2. package/lib/esm/clientErrors/BadMapping.js +1 -1
  3. package/lib/esm/clientErrors/BadRequest.js +1 -1
  4. package/lib/esm/clientErrors/Conflict.js +1 -1
  5. package/lib/esm/clientErrors/ExpectationFailed.js +1 -1
  6. package/lib/esm/clientErrors/Forbidden.js +1 -1
  7. package/lib/esm/clientErrors/Gone.js +1 -1
  8. package/lib/esm/clientErrors/ImATeapot.js +1 -1
  9. package/lib/esm/clientErrors/LengthRequired.js +1 -1
  10. package/lib/esm/clientErrors/MethodNotAllowed.js +1 -1
  11. package/lib/esm/clientErrors/MisdirectedRequest.js +1 -1
  12. package/lib/esm/clientErrors/NotAcceptable.js +1 -1
  13. package/lib/esm/clientErrors/NotFound.js +1 -1
  14. package/lib/esm/clientErrors/PaymentRequired.js +1 -1
  15. package/lib/esm/clientErrors/PreconditionFailed.js +1 -1
  16. package/lib/esm/clientErrors/PreconditionRequired.js +1 -1
  17. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +1 -1
  18. package/lib/esm/clientErrors/RequestEntityTooLarge.js +1 -1
  19. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +1 -1
  20. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +1 -1
  21. package/lib/esm/clientErrors/RequestTimeout.js +1 -1
  22. package/lib/esm/clientErrors/RequestURITooLong.js +1 -1
  23. package/lib/esm/clientErrors/TooManyRequests.js +1 -1
  24. package/lib/esm/clientErrors/Unauthorized.js +1 -1
  25. package/lib/esm/clientErrors/UnavailableForLegalReasons.js +1 -1
  26. package/lib/esm/clientErrors/UnprocessableEntity.js +1 -1
  27. package/lib/esm/clientErrors/UnsupportedMediaType.js +1 -1
  28. package/lib/esm/clientErrors/UpgradeRequired.js +1 -1
  29. package/lib/esm/clientErrors/index.js +27 -27
  30. package/lib/esm/core/index.js +1 -1
  31. package/lib/esm/index.js +4 -4
  32. package/lib/esm/package.json +3 -0
  33. package/lib/esm/redirections/MovedPermanently.js +1 -1
  34. package/lib/esm/redirections/MovedTemporarily.js +1 -1
  35. package/lib/esm/redirections/MultipleChoices.js +1 -1
  36. package/lib/esm/redirections/NotModified.js +1 -1
  37. package/lib/esm/redirections/PermanentRedirect.js +1 -1
  38. package/lib/esm/redirections/SeeOther.js +1 -1
  39. package/lib/esm/redirections/TemporaryRedirect.js +1 -1
  40. package/lib/esm/redirections/UseProxy.js +1 -1
  41. package/lib/esm/redirections/index.js +8 -8
  42. package/lib/esm/serverErrors/BadGateway.js +1 -1
  43. package/lib/esm/serverErrors/BandwidthLimitExceeded.js +1 -1
  44. package/lib/esm/serverErrors/GatewayTimeout.js +1 -1
  45. package/lib/esm/serverErrors/InternalServerError.js +1 -1
  46. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +1 -1
  47. package/lib/esm/serverErrors/NotExtended.js +1 -1
  48. package/lib/esm/serverErrors/NotImplemented.js +1 -1
  49. package/lib/esm/serverErrors/ProxyError.js +1 -1
  50. package/lib/esm/serverErrors/ServiceUnvailable.js +1 -1
  51. package/lib/esm/serverErrors/VariantAlsoNegotiates.js +1 -1
  52. package/lib/esm/serverErrors/index.js +10 -10
  53. package/package.json +3 -2
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BadMapping extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(BadMapping.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BadRequest extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(BadRequest.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class Conflict extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(Conflict.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ExpectationFailed extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(ExpectationFailed.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class Forbidden extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(Forbidden.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class Gone extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(Gone.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ImATeapot extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(ImATeapot.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class LengthRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(LengthRequired.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class MethodNotAllowed extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(MethodNotAllowed.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class MisdirectedRequest extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(MisdirectedRequest.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NotAcceptable extends Exception {
3
3
  constructor(message, origin = "You must accept content-type " + message) {
4
4
  super(NotAcceptable.STATUS, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NotFound extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(NotFound.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class PaymentRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(PaymentRequired.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class PreconditionFailed extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(PreconditionFailed.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class PreconditionRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(PreconditionRequired.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ProxyAuthentificationRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(ProxyAuthentificationRequired.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class RequestEntityTooLarge extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(RequestEntityTooLarge.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class RequestHeaderFieldsTooLarge extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class RequestRangeUnsatisfiable extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(RequestRangeUnsatisfiable.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class RequestTimeout extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(RequestTimeout.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class RequestURITooLong extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(RequestURITooLong.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class TooManyRequests extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(TooManyRequests.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class Unauthorized extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(Unauthorized.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class UnavailableForLegalReasons extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(UnavailableForLegalReasons.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class UnprocessableEntity extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(UnprocessableEntity.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class UnsupportedMediaType extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(UnsupportedMediaType.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class UpgradeRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(UpgradeRequired.STATUS, message, origin);
@@ -1,28 +1,28 @@
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
+ export * from "./BadMapping.js";
2
+ export * from "./BadRequest.js";
3
+ export * from "./Conflict.js";
4
+ export * from "./ExpectationFailed.js";
5
+ export * from "./Forbidden.js";
6
+ export * from "./Gone.js";
7
+ export * from "./ImATeapot.js";
8
+ export * from "./LengthRequired.js";
9
+ export * from "./MethodNotAllowed.js";
10
+ export * from "./MisdirectedRequest.js";
11
+ export * from "./NotAcceptable.js";
12
+ export * from "./NotFound.js";
13
+ export * from "./PaymentRequired.js";
14
+ export * from "./PreconditionFailed.js";
15
+ export * from "./PreconditionRequired.js";
16
+ export * from "./ProxyAuthentificationRequired.js";
17
+ export * from "./RequestRangeUnsatisfiable.js";
18
+ export * from "./RequestEntityTooLarge.js";
19
+ export * from "./RequestHeaderFieldsTooLarge.js";
20
+ export * from "./RequestTimeout.js";
21
+ export * from "./RequestURITooLong.js";
22
+ export * from "./TooManyRequests.js";
23
+ export * from "./Unauthorized.js";
24
+ export * from "./UnsupportedMediaType.js";
25
+ export * from "./UpgradeRequired.js";
26
+ export * from "./UnavailableForLegalReasons.js";
27
+ export * from "./UnprocessableEntity.js";
28
28
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from "./Exception";
1
+ export * from "./Exception.js";
2
2
  //# sourceMappingURL=index.js.map
package/lib/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./core";
2
- export * from "./clientErrors";
3
- export * from "./redirections";
4
- export * from "./serverErrors";
1
+ export * from "./core.js";
2
+ export * from "./clientErrors.js";
3
+ export * from "./redirections.js";
4
+ export * from "./serverErrors.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class MovedPermanently extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(MovedPermanently.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class MovedTemporarily extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(MovedTemporarily.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class MultipleChoices extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(MultipleChoices.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NotModified extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(NotModified.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class PermanentRedirect extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(PermanentRedirect.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class SeeOther extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(SeeOther.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class TemporaryRedirect extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(TemporaryRedirect.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class UseProxy extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(UseProxy.STATUS, message, origin);
@@ -1,9 +1,9 @@
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 "./UseProxy";
1
+ export * from "./MovedPermanently.js";
2
+ export * from "./MovedTemporarily.js";
3
+ export * from "./MultipleChoices.js";
4
+ export * from "./NotModified.js";
5
+ export * from "./PermanentRedirect.js";
6
+ export * from "./SeeOther.js";
7
+ export * from "./TemporaryRedirect.js";
8
+ export * from "./UseProxy.js";
9
9
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BadGateway extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(BadGateway.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BandwidthLimitExceeded extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(BandwidthLimitExceeded.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class GatewayTimeout extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(GatewayTimeout.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class InternalServerError extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(InternalServerError.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NetworkAuthenticationRequired extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(NetworkAuthenticationRequired.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NotExtended extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(NotExtended.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class NotImplemented extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(NotImplemented.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ProxyError extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(ProxyError.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ServiceUnvailable extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(ServiceUnvailable.STATUS, message, origin);
@@ -1,4 +1,4 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class VariantAlsoNegotiates extends Exception {
3
3
  constructor(message, origin) {
4
4
  super(VariantAlsoNegotiates.STATUS, message, origin);
@@ -1,11 +1,11 @@
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";
1
+ export * from "./BadGateway.js";
2
+ export * from "./GatewayTimeout.js";
3
+ export * from "./InternalServerError.js";
4
+ export * from "./NotImplemented.js";
5
+ export * from "./ProxyError.js";
6
+ export * from "./ServiceUnvailable.js";
7
+ export * from "./NetworkAuthenticationRequired.js";
8
+ export * from "./NotExtended.js";
9
+ export * from "./VariantAlsoNegotiates.js";
10
+ export * from "./BandwidthLimitExceeded.js";
11
11
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tsed/exceptions",
3
- "version": "6.102.7",
3
+ "version": "6.102.8-rc.1",
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",
7
7
  "main": "./lib/cjs/index.js",
8
+ "module": "./lib/esm/index.js",
8
9
  "typings": "./lib/types/index.d.ts",
9
10
  "exports": {
10
11
  "types": "./lib/types/index.d.ts",
@@ -30,7 +31,7 @@
30
31
  "bugs": {
31
32
  "url": "https://github.com/tsedio/tsed/issues"
32
33
  },
33
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/specs/exceptions",
34
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/specs/exceptions",
34
35
  "author": "Romain Lenzotti",
35
36
  "license": "MIT"
36
37
  }