@nr1e/commons 0.0.3-alpha.3 → 0.0.3-alpha.5
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/errors/errors.d.ts +44 -36
- package/errors/errors.js +73 -59
- package/errors/errors.js.map +1 -1
- package/package.json +1 -1
package/errors/errors.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { HttpStatusCode } from '../http';
|
|
2
|
-
|
|
3
|
-
* Checks if the given parameter is an Error.
|
|
4
|
-
*
|
|
5
|
-
* @param item the parameter to check
|
|
6
|
-
*/
|
|
7
|
-
export declare function isError(item: unknown): item is Error;
|
|
2
|
+
export { isError } from '../lang';
|
|
8
3
|
/**
|
|
9
4
|
* An extended version of Error that includes an HttpStatusCode.
|
|
10
5
|
* This can be useful in middleware error handlers to determine http status codes to return to the client.
|
|
@@ -15,41 +10,48 @@ export interface HttpError extends Error {
|
|
|
15
10
|
/**
|
|
16
11
|
* Checks if the given parameter is an HttpError.
|
|
17
12
|
*
|
|
18
|
-
* @param e
|
|
13
|
+
* @param e The parameter to check
|
|
19
14
|
*/
|
|
20
15
|
export declare function isHttpError(e?: unknown): e is HttpError;
|
|
16
|
+
/**
|
|
17
|
+
* Thrown when a resource cannot be found.
|
|
18
|
+
*/
|
|
19
|
+
export declare class NotFoundError extends Error implements HttpError {
|
|
20
|
+
readonly statusCode = HttpStatusCode.NOT_FOUND;
|
|
21
|
+
constructor(message?: string);
|
|
22
|
+
}
|
|
21
23
|
/**
|
|
22
24
|
* Checks if the given parameter is a NotFoundError.
|
|
23
25
|
*
|
|
24
|
-
* @param e
|
|
26
|
+
* @param e The parameter to check
|
|
25
27
|
*/
|
|
26
28
|
export declare function isNotFoundError(e?: unknown): e is NotFoundError;
|
|
27
29
|
/**
|
|
28
|
-
* Thrown when a
|
|
30
|
+
* Thrown when a request is missing authentication credentials.
|
|
29
31
|
*/
|
|
30
|
-
export declare class
|
|
31
|
-
readonly statusCode = HttpStatusCode.
|
|
32
|
+
export declare class UnauthorizedError extends Error implements HttpError {
|
|
33
|
+
readonly statusCode = HttpStatusCode.UNAUTHORIZED;
|
|
32
34
|
constructor(message?: string);
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
|
-
* Checks if the given parameter is a
|
|
37
|
+
* Checks if the given parameter is a UnauthorizedError.
|
|
36
38
|
*
|
|
37
|
-
* @param e
|
|
39
|
+
* @param e The parameter to check
|
|
38
40
|
*/
|
|
39
|
-
export declare function
|
|
41
|
+
export declare function isUnauthorizedError(e?: unknown): e is UnauthorizedError;
|
|
40
42
|
/**
|
|
41
|
-
* Thrown when
|
|
43
|
+
* Thrown when credentials are present, but the requested operations is not allowed.
|
|
42
44
|
*/
|
|
43
45
|
export declare class ForbiddenError extends Error implements HttpError {
|
|
44
46
|
readonly statusCode = HttpStatusCode.FORBIDDEN;
|
|
45
47
|
constructor(message?: string);
|
|
46
48
|
}
|
|
47
49
|
/**
|
|
48
|
-
* Checks if the given
|
|
50
|
+
* Checks if the given parameter is a ForbiddenError.
|
|
49
51
|
*
|
|
50
|
-
* @param e
|
|
52
|
+
* @param e The parameter to check
|
|
51
53
|
*/
|
|
52
|
-
export declare function
|
|
54
|
+
export declare function isForbiddenError(e?: unknown): e is ForbiddenError;
|
|
53
55
|
/**
|
|
54
56
|
* Thrown when a validation error occurs.
|
|
55
57
|
*/
|
|
@@ -58,11 +60,11 @@ export declare class ValidationError extends Error implements HttpError {
|
|
|
58
60
|
constructor(message?: string);
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
61
|
-
* Checks if the given
|
|
63
|
+
* Checks if the given variable is a ValidationError.
|
|
62
64
|
*
|
|
63
|
-
* @param e
|
|
65
|
+
* @param e The variable to check
|
|
64
66
|
*/
|
|
65
|
-
export declare function
|
|
67
|
+
export declare function isValidationError(e?: unknown): e is ValidationError;
|
|
66
68
|
/**
|
|
67
69
|
* Thrown when a bad request is made.
|
|
68
70
|
*/
|
|
@@ -71,11 +73,11 @@ export declare class BadRequestError extends Error implements HttpError {
|
|
|
71
73
|
constructor(message?: string);
|
|
72
74
|
}
|
|
73
75
|
/**
|
|
74
|
-
* Checks if the given parameter is a
|
|
76
|
+
* Checks if the given parameter is a BadRequestError.
|
|
75
77
|
*
|
|
76
|
-
* @param e
|
|
78
|
+
* @param e The parameter to check
|
|
77
79
|
*/
|
|
78
|
-
export declare function
|
|
80
|
+
export declare function isBadRequestError(e?: unknown): e is BadRequestError;
|
|
79
81
|
/**
|
|
80
82
|
* Throws when an internal server error occurs.
|
|
81
83
|
*/
|
|
@@ -84,11 +86,11 @@ export declare class InternalServerError extends Error implements HttpError {
|
|
|
84
86
|
constructor(message?: string);
|
|
85
87
|
}
|
|
86
88
|
/**
|
|
87
|
-
* Checks if the given parameter is a
|
|
89
|
+
* Checks if the given parameter is a InternalServerError.
|
|
88
90
|
*
|
|
89
|
-
* @param e
|
|
91
|
+
* @param e The parameter to check
|
|
90
92
|
*/
|
|
91
|
-
export declare function
|
|
93
|
+
export declare function isInternalServerError(e?: unknown): e is InternalServerError;
|
|
92
94
|
/**
|
|
93
95
|
* Thrown when a conflict occurs.
|
|
94
96
|
*/
|
|
@@ -97,11 +99,11 @@ export declare class ConflictError extends Error implements HttpError {
|
|
|
97
99
|
constructor(message?: string);
|
|
98
100
|
}
|
|
99
101
|
/**
|
|
100
|
-
* Checks if the given parameter is a
|
|
102
|
+
* Checks if the given parameter is a ConflictError.
|
|
101
103
|
*
|
|
102
|
-
* @param e
|
|
104
|
+
* @param e The parameter to check
|
|
103
105
|
*/
|
|
104
|
-
export declare function
|
|
106
|
+
export declare function isConflictError(e?: unknown): e is ConflictError;
|
|
105
107
|
/**
|
|
106
108
|
* Thrown when a unsupported media type is used.
|
|
107
109
|
*/
|
|
@@ -110,11 +112,11 @@ export declare class UnsupportedMediaTypeError extends Error implements HttpErro
|
|
|
110
112
|
constructor(message?: string);
|
|
111
113
|
}
|
|
112
114
|
/**
|
|
113
|
-
* Checks if the given parameter is a
|
|
115
|
+
* Checks if the given parameter is a UnsupportedMediaTypeError.
|
|
114
116
|
*
|
|
115
|
-
* @param e
|
|
117
|
+
* @param e The parameter to check
|
|
116
118
|
*/
|
|
117
|
-
export declare function
|
|
119
|
+
export declare function isUnsupportedMediaTypeError(e?: unknown): e is UnsupportedMediaTypeError;
|
|
118
120
|
/**
|
|
119
121
|
* Thrown when a requested operation is not implemented.
|
|
120
122
|
*/
|
|
@@ -124,11 +126,11 @@ export declare class NotImplementedError extends Error implements HttpError {
|
|
|
124
126
|
constructor(message?: string);
|
|
125
127
|
}
|
|
126
128
|
/**
|
|
127
|
-
* Checks if the given parameter is a
|
|
129
|
+
* Checks if the given parameter is a NotImplementedError.
|
|
128
130
|
*
|
|
129
|
-
* @param e
|
|
131
|
+
* @param e The parameter to check
|
|
130
132
|
*/
|
|
131
|
-
export declare function
|
|
133
|
+
export declare function isNotImplementedError(e?: unknown): e is NotImplementedError;
|
|
132
134
|
/**
|
|
133
135
|
* Thrown when an illegal argument is passed to a function.
|
|
134
136
|
*/
|
|
@@ -136,6 +138,12 @@ export declare class IllegalArgumentError extends Error {
|
|
|
136
138
|
readonly argName: string;
|
|
137
139
|
constructor(argName: string, message?: string);
|
|
138
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Checks if the given parameter is a IllegalArgumentError.
|
|
143
|
+
*
|
|
144
|
+
* @param e The parameter to check
|
|
145
|
+
*/
|
|
146
|
+
export declare function isIllegalArgumentError(e?: unknown): e is IllegalArgumentError;
|
|
139
147
|
/**
|
|
140
148
|
* Converts the given parameter to an HttpError.
|
|
141
149
|
*
|
package/errors/errors.js
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toError = exports.IllegalArgumentError = exports.
|
|
3
|
+
exports.toError = exports.isIllegalArgumentError = exports.IllegalArgumentError = exports.isNotImplementedError = exports.NotImplementedError = exports.isUnsupportedMediaTypeError = exports.UnsupportedMediaTypeError = exports.isConflictError = exports.ConflictError = exports.isInternalServerError = exports.InternalServerError = exports.isBadRequestError = exports.BadRequestError = exports.isValidationError = exports.ValidationError = exports.isForbiddenError = exports.ForbiddenError = exports.isUnauthorizedError = exports.UnauthorizedError = exports.isNotFoundError = exports.NotFoundError = exports.isHttpError = exports.isError = void 0;
|
|
4
4
|
const http_1 = require("../http");
|
|
5
5
|
const lang_1 = require("../lang");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* @param item the parameter to check
|
|
10
|
-
*/
|
|
11
|
-
function isError(item) {
|
|
12
|
-
return item instanceof Error;
|
|
13
|
-
}
|
|
14
|
-
exports.isError = isError;
|
|
6
|
+
var lang_2 = require("../lang");
|
|
7
|
+
Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return lang_2.isError; } });
|
|
15
8
|
/**
|
|
16
9
|
* Checks if the given parameter is an HttpError.
|
|
17
10
|
*
|
|
18
|
-
* @param e
|
|
11
|
+
* @param e The parameter to check
|
|
19
12
|
*/
|
|
20
13
|
function isHttpError(e) {
|
|
21
14
|
return (0, lang_1.isObject)(e) && !!(e && e.stack && e.statusCode && e.message && e.name);
|
|
22
15
|
}
|
|
23
16
|
exports.isHttpError = isHttpError;
|
|
17
|
+
/**
|
|
18
|
+
* Thrown when a resource cannot be found.
|
|
19
|
+
*/
|
|
20
|
+
class NotFoundError extends Error {
|
|
21
|
+
constructor(message) {
|
|
22
|
+
message = message !== null && message !== void 0 ? message : 'Not found';
|
|
23
|
+
super(message);
|
|
24
|
+
this.statusCode = http_1.HttpStatusCode.NOT_FOUND;
|
|
25
|
+
this.name = 'NotFoundError';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.NotFoundError = NotFoundError;
|
|
24
29
|
/**
|
|
25
30
|
* Checks if the given parameter is a NotFoundError.
|
|
26
31
|
*
|
|
27
|
-
* @param e
|
|
32
|
+
* @param e The parameter to check
|
|
28
33
|
*/
|
|
29
34
|
function isNotFoundError(e) {
|
|
30
35
|
return isHttpError(e) && e.name === 'NotFoundError';
|
|
31
36
|
}
|
|
32
37
|
exports.isNotFoundError = isNotFoundError;
|
|
33
38
|
/**
|
|
34
|
-
* Thrown when a
|
|
39
|
+
* Thrown when a request is missing authentication credentials.
|
|
35
40
|
*/
|
|
36
|
-
class
|
|
41
|
+
class UnauthorizedError extends Error {
|
|
37
42
|
constructor(message) {
|
|
38
|
-
message = message !== null && message !== void 0 ? message : '
|
|
43
|
+
message = message !== null && message !== void 0 ? message : 'Unauthorized';
|
|
39
44
|
super(message);
|
|
40
|
-
this.statusCode = http_1.HttpStatusCode.
|
|
41
|
-
this.name = '
|
|
45
|
+
this.statusCode = http_1.HttpStatusCode.UNAUTHORIZED;
|
|
46
|
+
this.name = 'UnauthorizedError';
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
|
-
exports.
|
|
49
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
45
50
|
/**
|
|
46
|
-
* Checks if the given parameter is a
|
|
51
|
+
* Checks if the given parameter is a UnauthorizedError.
|
|
47
52
|
*
|
|
48
|
-
* @param e
|
|
53
|
+
* @param e The parameter to check
|
|
49
54
|
*/
|
|
50
|
-
function
|
|
51
|
-
return isHttpError(e) && e.name === '
|
|
55
|
+
function isUnauthorizedError(e) {
|
|
56
|
+
return isHttpError(e) && e.name === 'UnauthorizedError';
|
|
52
57
|
}
|
|
53
|
-
exports.
|
|
58
|
+
exports.isUnauthorizedError = isUnauthorizedError;
|
|
54
59
|
/**
|
|
55
|
-
* Thrown when
|
|
60
|
+
* Thrown when credentials are present, but the requested operations is not allowed.
|
|
56
61
|
*/
|
|
57
62
|
class ForbiddenError extends Error {
|
|
58
63
|
constructor(message) {
|
|
@@ -64,14 +69,14 @@ class ForbiddenError extends Error {
|
|
|
64
69
|
}
|
|
65
70
|
exports.ForbiddenError = ForbiddenError;
|
|
66
71
|
/**
|
|
67
|
-
* Checks if the given
|
|
72
|
+
* Checks if the given parameter is a ForbiddenError.
|
|
68
73
|
*
|
|
69
|
-
* @param e
|
|
74
|
+
* @param e The parameter to check
|
|
70
75
|
*/
|
|
71
|
-
function
|
|
72
|
-
return isHttpError(e) && e.name === '
|
|
76
|
+
function isForbiddenError(e) {
|
|
77
|
+
return isHttpError(e) && e.name === 'ForbiddenError';
|
|
73
78
|
}
|
|
74
|
-
exports.
|
|
79
|
+
exports.isForbiddenError = isForbiddenError;
|
|
75
80
|
/**
|
|
76
81
|
* Thrown when a validation error occurs.
|
|
77
82
|
*/
|
|
@@ -85,14 +90,14 @@ class ValidationError extends Error {
|
|
|
85
90
|
}
|
|
86
91
|
exports.ValidationError = ValidationError;
|
|
87
92
|
/**
|
|
88
|
-
* Checks if the given
|
|
93
|
+
* Checks if the given variable is a ValidationError.
|
|
89
94
|
*
|
|
90
|
-
* @param e
|
|
95
|
+
* @param e The variable to check
|
|
91
96
|
*/
|
|
92
|
-
function
|
|
93
|
-
return isHttpError(e) && e.name === '
|
|
97
|
+
function isValidationError(e) {
|
|
98
|
+
return isHttpError(e) && e.name === 'ValidationError';
|
|
94
99
|
}
|
|
95
|
-
exports.
|
|
100
|
+
exports.isValidationError = isValidationError;
|
|
96
101
|
/**
|
|
97
102
|
* Thrown when a bad request is made.
|
|
98
103
|
*/
|
|
@@ -106,14 +111,14 @@ class BadRequestError extends Error {
|
|
|
106
111
|
}
|
|
107
112
|
exports.BadRequestError = BadRequestError;
|
|
108
113
|
/**
|
|
109
|
-
* Checks if the given parameter is a
|
|
114
|
+
* Checks if the given parameter is a BadRequestError.
|
|
110
115
|
*
|
|
111
|
-
* @param e
|
|
116
|
+
* @param e The parameter to check
|
|
112
117
|
*/
|
|
113
|
-
function
|
|
114
|
-
return isHttpError(e) && e.name === '
|
|
118
|
+
function isBadRequestError(e) {
|
|
119
|
+
return isHttpError(e) && e.name === 'BadRequestError';
|
|
115
120
|
}
|
|
116
|
-
exports.
|
|
121
|
+
exports.isBadRequestError = isBadRequestError;
|
|
117
122
|
/**
|
|
118
123
|
* Throws when an internal server error occurs.
|
|
119
124
|
*/
|
|
@@ -127,14 +132,14 @@ class InternalServerError extends Error {
|
|
|
127
132
|
}
|
|
128
133
|
exports.InternalServerError = InternalServerError;
|
|
129
134
|
/**
|
|
130
|
-
* Checks if the given parameter is a
|
|
135
|
+
* Checks if the given parameter is a InternalServerError.
|
|
131
136
|
*
|
|
132
|
-
* @param e
|
|
137
|
+
* @param e The parameter to check
|
|
133
138
|
*/
|
|
134
|
-
function
|
|
135
|
-
return isHttpError(e) && e.name === '
|
|
139
|
+
function isInternalServerError(e) {
|
|
140
|
+
return isHttpError(e) && e.name === 'InternalServerError';
|
|
136
141
|
}
|
|
137
|
-
exports.
|
|
142
|
+
exports.isInternalServerError = isInternalServerError;
|
|
138
143
|
/**
|
|
139
144
|
* Thrown when a conflict occurs.
|
|
140
145
|
*/
|
|
@@ -148,14 +153,14 @@ class ConflictError extends Error {
|
|
|
148
153
|
}
|
|
149
154
|
exports.ConflictError = ConflictError;
|
|
150
155
|
/**
|
|
151
|
-
* Checks if the given parameter is a
|
|
156
|
+
* Checks if the given parameter is a ConflictError.
|
|
152
157
|
*
|
|
153
|
-
* @param e
|
|
158
|
+
* @param e The parameter to check
|
|
154
159
|
*/
|
|
155
|
-
function
|
|
156
|
-
return isHttpError(e) && e.name === '
|
|
160
|
+
function isConflictError(e) {
|
|
161
|
+
return isHttpError(e) && e.name === 'ConflictError';
|
|
157
162
|
}
|
|
158
|
-
exports.
|
|
163
|
+
exports.isConflictError = isConflictError;
|
|
159
164
|
/**
|
|
160
165
|
* Thrown when a unsupported media type is used.
|
|
161
166
|
*/
|
|
@@ -169,14 +174,14 @@ class UnsupportedMediaTypeError extends Error {
|
|
|
169
174
|
}
|
|
170
175
|
exports.UnsupportedMediaTypeError = UnsupportedMediaTypeError;
|
|
171
176
|
/**
|
|
172
|
-
* Checks if the given parameter is a
|
|
177
|
+
* Checks if the given parameter is a UnsupportedMediaTypeError.
|
|
173
178
|
*
|
|
174
|
-
* @param e
|
|
179
|
+
* @param e The parameter to check
|
|
175
180
|
*/
|
|
176
|
-
function
|
|
177
|
-
return isHttpError(e) && e.name === '
|
|
181
|
+
function isUnsupportedMediaTypeError(e) {
|
|
182
|
+
return isHttpError(e) && e.name === 'UnsupportedMediaTypeError';
|
|
178
183
|
}
|
|
179
|
-
exports.
|
|
184
|
+
exports.isUnsupportedMediaTypeError = isUnsupportedMediaTypeError;
|
|
180
185
|
/**
|
|
181
186
|
* Thrown when a requested operation is not implemented.
|
|
182
187
|
*/
|
|
@@ -191,14 +196,14 @@ class NotImplementedError extends Error {
|
|
|
191
196
|
}
|
|
192
197
|
exports.NotImplementedError = NotImplementedError;
|
|
193
198
|
/**
|
|
194
|
-
* Checks if the given parameter is a
|
|
199
|
+
* Checks if the given parameter is a NotImplementedError.
|
|
195
200
|
*
|
|
196
|
-
* @param e
|
|
201
|
+
* @param e The parameter to check
|
|
197
202
|
*/
|
|
198
|
-
function
|
|
199
|
-
return
|
|
203
|
+
function isNotImplementedError(e) {
|
|
204
|
+
return isHttpError(e) && e.name === 'NotImplementedError';
|
|
200
205
|
}
|
|
201
|
-
exports.
|
|
206
|
+
exports.isNotImplementedError = isNotImplementedError;
|
|
202
207
|
/**
|
|
203
208
|
* Thrown when an illegal argument is passed to a function.
|
|
204
209
|
*/
|
|
@@ -211,6 +216,15 @@ class IllegalArgumentError extends Error {
|
|
|
211
216
|
}
|
|
212
217
|
}
|
|
213
218
|
exports.IllegalArgumentError = IllegalArgumentError;
|
|
219
|
+
/**
|
|
220
|
+
* Checks if the given parameter is a IllegalArgumentError.
|
|
221
|
+
*
|
|
222
|
+
* @param e The parameter to check
|
|
223
|
+
*/
|
|
224
|
+
function isIllegalArgumentError(e) {
|
|
225
|
+
return (0, lang_1.isError)(e) && e.name === 'IllegalArgumentError';
|
|
226
|
+
}
|
|
227
|
+
exports.isIllegalArgumentError = isIllegalArgumentError;
|
|
214
228
|
/**
|
|
215
229
|
* Converts the given parameter to an HttpError.
|
|
216
230
|
*
|
package/errors/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["errors.ts"],"names":[],"mappings":";;;AAAA,kCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["errors.ts"],"names":[],"mappings":";;;AAAA,kCAAuC;AACvC,kCAA0C;AAC1C,gCAAgC;AAAxB,+FAAA,OAAO,OAAA;AAUf;;;;GAIG;AACH,SAAgB,WAAW,CAAC,CAAW;IACrC,OAAO,IAAA,eAAQ,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAChF,CAAC;AAFD,kCAEC;AAED;;GAEG;AACH,MAAa,aAAc,SAAQ,KAAK;IAEtC,YAAY,OAAgB;QAC1B,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,WAAW,CAAC;QACjC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,eAAU,GAAG,qBAAc,CAAC,SAAS,CAAC;QAI7C,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAPD,sCAOC;AAED;;;;GAIG;AACH,SAAgB,eAAe,CAAC,CAAW;IACzC,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAe,CAAC;AACtD,CAAC;AAFD,0CAEC;AAED;;GAEG;AACH,MAAa,iBAAkB,SAAQ,KAAK;IAE1C,YAAY,OAAgB;QAC1B,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,cAAc,CAAC;QACpC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,eAAU,GAAG,qBAAc,CAAC,YAAY,CAAC;QAIhD,IAAI,CAAC,IAAI,GAAG,mBAAmB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