@emoyly/problem 4.1.9 → 4.1.12

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 (61) hide show
  1. package/{dist/defaults → defaults}/4xx.d.ts +147 -147
  2. package/{dist/defaults → defaults}/4xx.js +151 -151
  3. package/{dist/defaults → defaults}/5xx.d.ts +57 -57
  4. package/{dist/defaults → defaults}/5xx.js +61 -61
  5. package/{dist/defaults → defaults}/aws.d.ts +12 -12
  6. package/{dist/defaults → defaults}/aws.js +16 -16
  7. package/{dist/defaults → defaults}/cloudflare.d.ts +47 -47
  8. package/{dist/defaults → defaults}/cloudflare.js +52 -52
  9. package/{dist/defaults → defaults}/iis.d.ts +17 -17
  10. package/{dist/defaults → defaults}/iis.js +21 -21
  11. package/{dist/defaults → defaults}/index.d.ts +7 -7
  12. package/{dist/defaults → defaults}/index.js +17 -17
  13. package/{dist/defaults → defaults}/nginx.d.ts +32 -32
  14. package/{dist/defaults → defaults}/nginx.js +36 -36
  15. package/{dist/defaults → defaults}/others.d.ts +37 -37
  16. package/{dist/defaults → defaults}/others.js +40 -40
  17. package/{dist/index.d.ts → index.d.ts} +4 -4
  18. package/{dist/index.js → index.js} +34 -34
  19. package/{dist/middleware → middleware}/axios.d.ts +13 -13
  20. package/{dist/middleware → middleware}/axios.js +36 -36
  21. package/{dist/middleware → middleware}/base.d.ts +24 -24
  22. package/{dist/middleware → middleware}/base.js +49 -49
  23. package/{dist/middleware → middleware}/express.d.ts +19 -19
  24. package/{dist/middleware → middleware}/express.js +57 -57
  25. package/package.json +7 -25
  26. package/{dist/parsers → parsers}/axios.d.ts +3 -3
  27. package/{dist/parsers → parsers}/axios.js +39 -39
  28. package/{dist/parsers → parsers}/http.d.ts +3 -3
  29. package/{dist/parsers → parsers}/http.js +15 -15
  30. package/{dist/parsers → parsers}/jsonwebtoken.d.ts +3 -3
  31. package/{dist/parsers → parsers}/jsonwebtoken.js +96 -96
  32. package/{dist/parsers → parsers}/mikroorm.d.ts +3 -3
  33. package/{dist/parsers → parsers}/mikroorm.js +15 -15
  34. package/{dist/parsers → parsers}/tsoa.d.ts +3 -3
  35. package/{dist/parsers → parsers}/tsoa.js +17 -17
  36. package/{dist/problem.d.ts → problem.d.ts} +13 -13
  37. package/{dist/problem.js → problem.js} +50 -50
  38. package/{dist/tsconfig.tsbuildinfo → tsconfig.tsbuildinfo} +795 -795
  39. package/{dist/typings → typings}/events.d.ts +2 -2
  40. package/{dist/typings → typings}/events.js +2 -2
  41. package/{dist/typings → typings}/index.d.ts +5 -5
  42. package/{dist/typings → typings}/index.js +17 -17
  43. package/{dist/typings → typings}/middleware.d.ts +9 -9
  44. package/{dist/typings → typings}/middleware.js +2 -2
  45. package/{dist/typings → typings}/misc.d.ts +3 -3
  46. package/{dist/typings → typings}/misc.js +2 -2
  47. package/{dist/typings → typings}/parser.d.ts +9 -9
  48. package/{dist/typings → typings}/parser.js +2 -2
  49. package/{dist/typings → typings}/problem.d.ts +23 -23
  50. package/{dist/typings → typings}/problem.js +12 -12
  51. package/{dist/util → util}/events.d.ts +16 -16
  52. package/{dist/util → util}/events.js +29 -29
  53. package/{dist/util → util}/getProblems.d.ts +5 -5
  54. package/{dist/util → util}/getProblems.js +45 -45
  55. package/{dist/util → util}/version.d.ts +3 -3
  56. package/{dist/util → util}/version.js +20 -20
  57. package/dist/LICENSE +0 -21
  58. package/dist/README.md +0 -59
  59. package/dist/SECURITY.md +0 -12
  60. package/dist/package.json +0 -45
  61. package/dist/yarn.lock +0 -2076
@@ -1,147 +1,147 @@
1
- export declare const statusCodes: {
2
- 400: {
3
- status: number;
4
- title: string;
5
- type: string;
6
- };
7
- 401: {
8
- status: number;
9
- title: string;
10
- type: string;
11
- };
12
- 402: {
13
- status: number;
14
- title: string;
15
- type: string;
16
- };
17
- 403: {
18
- status: number;
19
- title: string;
20
- type: string;
21
- };
22
- 404: {
23
- status: number;
24
- title: string;
25
- type: string;
26
- };
27
- 406: {
28
- status: number;
29
- title: string;
30
- type: string;
31
- };
32
- 405: {
33
- status: number;
34
- title: string;
35
- type: string;
36
- };
37
- 407: {
38
- status: number;
39
- title: string;
40
- type: string;
41
- };
42
- 408: {
43
- status: number;
44
- title: string;
45
- type: string;
46
- };
47
- 409: {
48
- status: number;
49
- title: string;
50
- type: string;
51
- };
52
- 410: {
53
- status: number;
54
- title: string;
55
- type: string;
56
- };
57
- 411: {
58
- status: number;
59
- title: string;
60
- type: string;
61
- };
62
- 412: {
63
- status: number;
64
- title: string;
65
- type: string;
66
- };
67
- 413: {
68
- status: number;
69
- title: string;
70
- type: string;
71
- };
72
- 414: {
73
- status: number;
74
- title: string;
75
- type: string;
76
- };
77
- 415: {
78
- status: number;
79
- title: string;
80
- type: string;
81
- };
82
- 416: {
83
- status: number;
84
- title: string;
85
- type: string;
86
- };
87
- 417: {
88
- status: number;
89
- title: string;
90
- type: string;
91
- };
92
- 418: {
93
- status: number;
94
- title: string;
95
- type: string;
96
- };
97
- 421: {
98
- status: number;
99
- title: string;
100
- type: string;
101
- };
102
- 422: {
103
- status: number;
104
- title: string;
105
- type: string;
106
- };
107
- 423: {
108
- status: number;
109
- title: string;
110
- type: string;
111
- };
112
- 424: {
113
- status: number;
114
- title: string;
115
- type: string;
116
- };
117
- 425: {
118
- status: number;
119
- title: string;
120
- type: string;
121
- };
122
- 426: {
123
- status: number;
124
- title: string;
125
- type: string;
126
- };
127
- 428: {
128
- status: number;
129
- title: string;
130
- type: string;
131
- };
132
- 429: {
133
- status: number;
134
- title: string;
135
- type: string;
136
- };
137
- 431: {
138
- status: number;
139
- title: string;
140
- type: string;
141
- };
142
- 451: {
143
- status: number;
144
- title: string;
145
- type: string;
146
- };
147
- };
1
+ export declare const statusCodes: {
2
+ 400: {
3
+ status: number;
4
+ title: string;
5
+ type: string;
6
+ };
7
+ 401: {
8
+ status: number;
9
+ title: string;
10
+ type: string;
11
+ };
12
+ 402: {
13
+ status: number;
14
+ title: string;
15
+ type: string;
16
+ };
17
+ 403: {
18
+ status: number;
19
+ title: string;
20
+ type: string;
21
+ };
22
+ 404: {
23
+ status: number;
24
+ title: string;
25
+ type: string;
26
+ };
27
+ 406: {
28
+ status: number;
29
+ title: string;
30
+ type: string;
31
+ };
32
+ 405: {
33
+ status: number;
34
+ title: string;
35
+ type: string;
36
+ };
37
+ 407: {
38
+ status: number;
39
+ title: string;
40
+ type: string;
41
+ };
42
+ 408: {
43
+ status: number;
44
+ title: string;
45
+ type: string;
46
+ };
47
+ 409: {
48
+ status: number;
49
+ title: string;
50
+ type: string;
51
+ };
52
+ 410: {
53
+ status: number;
54
+ title: string;
55
+ type: string;
56
+ };
57
+ 411: {
58
+ status: number;
59
+ title: string;
60
+ type: string;
61
+ };
62
+ 412: {
63
+ status: number;
64
+ title: string;
65
+ type: string;
66
+ };
67
+ 413: {
68
+ status: number;
69
+ title: string;
70
+ type: string;
71
+ };
72
+ 414: {
73
+ status: number;
74
+ title: string;
75
+ type: string;
76
+ };
77
+ 415: {
78
+ status: number;
79
+ title: string;
80
+ type: string;
81
+ };
82
+ 416: {
83
+ status: number;
84
+ title: string;
85
+ type: string;
86
+ };
87
+ 417: {
88
+ status: number;
89
+ title: string;
90
+ type: string;
91
+ };
92
+ 418: {
93
+ status: number;
94
+ title: string;
95
+ type: string;
96
+ };
97
+ 421: {
98
+ status: number;
99
+ title: string;
100
+ type: string;
101
+ };
102
+ 422: {
103
+ status: number;
104
+ title: string;
105
+ type: string;
106
+ };
107
+ 423: {
108
+ status: number;
109
+ title: string;
110
+ type: string;
111
+ };
112
+ 424: {
113
+ status: number;
114
+ title: string;
115
+ type: string;
116
+ };
117
+ 425: {
118
+ status: number;
119
+ title: string;
120
+ type: string;
121
+ };
122
+ 426: {
123
+ status: number;
124
+ title: string;
125
+ type: string;
126
+ };
127
+ 428: {
128
+ status: number;
129
+ title: string;
130
+ type: string;
131
+ };
132
+ 429: {
133
+ status: number;
134
+ title: string;
135
+ type: string;
136
+ };
137
+ 431: {
138
+ status: number;
139
+ title: string;
140
+ type: string;
141
+ };
142
+ 451: {
143
+ status: number;
144
+ title: string;
145
+ type: string;
146
+ };
147
+ };
@@ -1,151 +1,151 @@
1
- "use strict";
2
- // Source: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.statusCodes = void 0;
5
- exports.statusCodes = {
6
- 400: {
7
- status: 400,
8
- title: 'Bad Request',
9
- type: '/errors/defaults/4xx/badrequest',
10
- },
11
- 401: {
12
- status: 401,
13
- title: 'Unauthorized',
14
- type: '/errors/defaults/4xx/unauthorized',
15
- },
16
- 402: {
17
- status: 402,
18
- title: 'Payment Required',
19
- type: '/errors/defaults/4xx/paymentrequired',
20
- },
21
- 403: {
22
- status: 403,
23
- title: 'Forbidden',
24
- type: '/errors/defaults/4xx/forbidden',
25
- },
26
- 404: {
27
- status: 404,
28
- title: 'Not Found',
29
- type: '/errors/defaults/4xx/notfound',
30
- },
31
- 406: {
32
- status: 406,
33
- title: 'Not Acceptable',
34
- type: 'errors/defaults/4xx/notacceptable'
35
- },
36
- 405: {
37
- status: 405,
38
- title: 'Method Not Allowed',
39
- type: 'errors/defaults/4xx/methodnotallowed'
40
- },
41
- 407: {
42
- status: 407,
43
- title: 'Proxy Authentication Required (RFC 7235)',
44
- type: 'errors/defaults/4xx/proxyauthenticationrequired'
45
- },
46
- 408: {
47
- status: 408,
48
- title: 'Request Timeout',
49
- type: 'errors/defaults/4xx/requesttimeout'
50
- },
51
- 409: {
52
- status: 409,
53
- title: 'Conflict',
54
- type: 'errors/defaults/4xx/conflict'
55
- },
56
- 410: {
57
- status: 410,
58
- title: 'Gone',
59
- type: 'errors/defaults/4xx/gone'
60
- },
61
- 411: {
62
- status: 411,
63
- title: 'Length Required',
64
- type: 'errors/defaults/4xx/lengthrequired'
65
- },
66
- 412: {
67
- status: 412,
68
- title: 'Precondition Failed (RFC 7232)',
69
- type: 'errors/defaults/4xx/preconditionfailed'
70
- },
71
- 413: {
72
- status: 413,
73
- title: 'Payload Too Large (RFC 7231)',
74
- type: 'errors/defaults/4xx/payloadtoolarge'
75
- },
76
- 414: {
77
- status: 414,
78
- title: 'URI Too Long (RFC 7231)',
79
- type: 'errors/defaults/4xx/uritoolong'
80
- },
81
- 415: {
82
- status: 415,
83
- title: 'Unsupported Media Type (RFC 7231)',
84
- type: 'errors/defaults/4xx/unsupportedmediatype'
85
- },
86
- 416: {
87
- status: 416,
88
- title: 'Range Not Satisfiable (RFC 7233)',
89
- type: 'errors/defaults/4xx/rangenotsatisfiable'
90
- },
91
- 417: {
92
- status: 417,
93
- title: 'Expectation Failed',
94
- type: 'errors/defaults/4xx/expectationfailed'
95
- },
96
- 418: {
97
- status: 418,
98
- title: 'I\'m a teapot (RFC 2324, RFC 7168)',
99
- type: 'errors/defaults/4xx/i\'mateapot'
100
- },
101
- 421: {
102
- status: 421,
103
- title: 'Misdirected Request (RFC 7540)',
104
- type: 'errors/defaults/4xx/misdirectedrequest'
105
- },
106
- 422: {
107
- status: 422,
108
- title: 'Unprocessable Entity (WebDAV; RFC 4918)',
109
- type: 'errors/defaults/4xx/unprocessableentity'
110
- },
111
- 423: {
112
- status: 423,
113
- title: 'Locked (WebDAV; RFC 4918)',
114
- type: 'errors/defaults/4xx/locked'
115
- },
116
- 424: {
117
- status: 424,
118
- title: 'Failed Dependency (WebDAV; RFC 4918)',
119
- type: 'errors/defaults/4xx/faileddependency'
120
- },
121
- 425: {
122
- status: 425,
123
- title: 'Too Early (RFC 8470)',
124
- type: 'errors/defaults/4xx/tooearly'
125
- },
126
- 426: {
127
- status: 426,
128
- title: 'Upgrade Required',
129
- type: 'errors/defaults/4xx/upgraderequired'
130
- },
131
- 428: {
132
- status: 428,
133
- title: 'Precondition Required (RFC 6585)',
134
- type: 'errors/defaults/4xx/preconditionrequired'
135
- },
136
- 429: {
137
- status: 429,
138
- title: 'Too Many Requests (RFC 6585)',
139
- type: 'errors/defaults/4xx/toomanyrequests'
140
- },
141
- 431: {
142
- status: 431,
143
- title: 'Request Header Fields Too Large (RFC 6585)',
144
- type: 'errors/defaults/4xx/requestheaderfieldstoolarge'
145
- },
146
- 451: {
147
- status: 451,
148
- title: 'Unavailable For Legal Reasons (RFC 7725)',
149
- type: 'errors/defaults/4xx/unavailableforlegalreasons'
150
- },
151
- };
1
+ "use strict";
2
+ // Source: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.statusCodes = void 0;
5
+ exports.statusCodes = {
6
+ 400: {
7
+ status: 400,
8
+ title: 'Bad Request',
9
+ type: '/errors/defaults/4xx/badrequest',
10
+ },
11
+ 401: {
12
+ status: 401,
13
+ title: 'Unauthorized',
14
+ type: '/errors/defaults/4xx/unauthorized',
15
+ },
16
+ 402: {
17
+ status: 402,
18
+ title: 'Payment Required',
19
+ type: '/errors/defaults/4xx/paymentrequired',
20
+ },
21
+ 403: {
22
+ status: 403,
23
+ title: 'Forbidden',
24
+ type: '/errors/defaults/4xx/forbidden',
25
+ },
26
+ 404: {
27
+ status: 404,
28
+ title: 'Not Found',
29
+ type: '/errors/defaults/4xx/notfound',
30
+ },
31
+ 406: {
32
+ status: 406,
33
+ title: 'Not Acceptable',
34
+ type: 'errors/defaults/4xx/notacceptable'
35
+ },
36
+ 405: {
37
+ status: 405,
38
+ title: 'Method Not Allowed',
39
+ type: 'errors/defaults/4xx/methodnotallowed'
40
+ },
41
+ 407: {
42
+ status: 407,
43
+ title: 'Proxy Authentication Required (RFC 7235)',
44
+ type: 'errors/defaults/4xx/proxyauthenticationrequired'
45
+ },
46
+ 408: {
47
+ status: 408,
48
+ title: 'Request Timeout',
49
+ type: 'errors/defaults/4xx/requesttimeout'
50
+ },
51
+ 409: {
52
+ status: 409,
53
+ title: 'Conflict',
54
+ type: 'errors/defaults/4xx/conflict'
55
+ },
56
+ 410: {
57
+ status: 410,
58
+ title: 'Gone',
59
+ type: 'errors/defaults/4xx/gone'
60
+ },
61
+ 411: {
62
+ status: 411,
63
+ title: 'Length Required',
64
+ type: 'errors/defaults/4xx/lengthrequired'
65
+ },
66
+ 412: {
67
+ status: 412,
68
+ title: 'Precondition Failed (RFC 7232)',
69
+ type: 'errors/defaults/4xx/preconditionfailed'
70
+ },
71
+ 413: {
72
+ status: 413,
73
+ title: 'Payload Too Large (RFC 7231)',
74
+ type: 'errors/defaults/4xx/payloadtoolarge'
75
+ },
76
+ 414: {
77
+ status: 414,
78
+ title: 'URI Too Long (RFC 7231)',
79
+ type: 'errors/defaults/4xx/uritoolong'
80
+ },
81
+ 415: {
82
+ status: 415,
83
+ title: 'Unsupported Media Type (RFC 7231)',
84
+ type: 'errors/defaults/4xx/unsupportedmediatype'
85
+ },
86
+ 416: {
87
+ status: 416,
88
+ title: 'Range Not Satisfiable (RFC 7233)',
89
+ type: 'errors/defaults/4xx/rangenotsatisfiable'
90
+ },
91
+ 417: {
92
+ status: 417,
93
+ title: 'Expectation Failed',
94
+ type: 'errors/defaults/4xx/expectationfailed'
95
+ },
96
+ 418: {
97
+ status: 418,
98
+ title: 'I\'m a teapot (RFC 2324, RFC 7168)',
99
+ type: 'errors/defaults/4xx/i\'mateapot'
100
+ },
101
+ 421: {
102
+ status: 421,
103
+ title: 'Misdirected Request (RFC 7540)',
104
+ type: 'errors/defaults/4xx/misdirectedrequest'
105
+ },
106
+ 422: {
107
+ status: 422,
108
+ title: 'Unprocessable Entity (WebDAV; RFC 4918)',
109
+ type: 'errors/defaults/4xx/unprocessableentity'
110
+ },
111
+ 423: {
112
+ status: 423,
113
+ title: 'Locked (WebDAV; RFC 4918)',
114
+ type: 'errors/defaults/4xx/locked'
115
+ },
116
+ 424: {
117
+ status: 424,
118
+ title: 'Failed Dependency (WebDAV; RFC 4918)',
119
+ type: 'errors/defaults/4xx/faileddependency'
120
+ },
121
+ 425: {
122
+ status: 425,
123
+ title: 'Too Early (RFC 8470)',
124
+ type: 'errors/defaults/4xx/tooearly'
125
+ },
126
+ 426: {
127
+ status: 426,
128
+ title: 'Upgrade Required',
129
+ type: 'errors/defaults/4xx/upgraderequired'
130
+ },
131
+ 428: {
132
+ status: 428,
133
+ title: 'Precondition Required (RFC 6585)',
134
+ type: 'errors/defaults/4xx/preconditionrequired'
135
+ },
136
+ 429: {
137
+ status: 429,
138
+ title: 'Too Many Requests (RFC 6585)',
139
+ type: 'errors/defaults/4xx/toomanyrequests'
140
+ },
141
+ 431: {
142
+ status: 431,
143
+ title: 'Request Header Fields Too Large (RFC 6585)',
144
+ type: 'errors/defaults/4xx/requestheaderfieldstoolarge'
145
+ },
146
+ 451: {
147
+ status: 451,
148
+ title: 'Unavailable For Legal Reasons (RFC 7725)',
149
+ type: 'errors/defaults/4xx/unavailableforlegalreasons'
150
+ },
151
+ };