@nest-yalc-2/errors 1.3.4 → 2.0.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.
- package/package.json +5 -5
- package/src/__tests__/database-exception.filter.spec.ts +1 -1
- package/src/__tests__/default.error.spec.ts +1 -1
- package/src/__tests__/errors.enum.spec.ts +1 -1
- package/src/__tests__/http-exception.filter.spec.ts +54 -1
- package/src/__tests__/http-status-code-to-errors.spec.ts +1 -1
- package/src/__tests__/input-validation.error.spec.ts +1 -1
- package/src/__tests__/login.error.spec.ts +1 -1
- package/src/__tests__/system-exception.filter.spec.ts +1 -1
- package/src/__tests__/verification.error.spec.ts +1 -1
- package/src/filters/database-exception.filter.d.ts +2 -1
- package/src/filters/database-exception.filter.js +5 -46
- package/src/filters/database-exception.filter.js.map +1 -1
- package/src/filters/database-exception.filter.ts +4 -2
- package/src/filters/http-exception.filter.d.ts +4 -3
- package/src/filters/http-exception.filter.js +5 -46
- package/src/filters/http-exception.filter.js.map +1 -1
- package/src/filters/http-exception.filter.ts +4 -3
- package/src/filters/system-exception.filter.js +4 -12
- package/src/filters/system-exception.filter.js.map +1 -1
- package/src/filters/system-exception.filter.ts +1 -1
- package/src/filters/validation-exception.filter.d.ts +2 -2
- package/src/filters/validation-exception.filter.js +4 -45
- package/src/filters/validation-exception.filter.js.map +1 -1
- package/src/filters/validation-exception.filter.ts +3 -1
- package/src/index.d.ts +2 -4
- package/src/index.js +3 -18
- package/src/index.js.map +1 -1
- package/src/index.ts +2 -4
- package/src/default.error.d.ts +0 -93
- package/src/default.error.js +0 -266
- package/src/default.error.js.map +0 -1
- package/src/default.error.ts +0 -640
- package/src/error.class.d.ts +0 -103
- package/src/error.class.js +0 -170
- package/src/error.class.js.map +0 -1
- package/src/error.class.ts +0 -319
- package/src/error.enum.d.ts +0 -29
- package/src/error.enum.js +0 -41
- package/src/error.enum.js.map +0 -1
- package/src/error.enum.ts +0 -45
- package/src/error.helper.d.ts +0 -2
- package/src/error.helper.js +0 -20
- package/src/error.helper.js.map +0 -1
- package/src/error.helper.ts +0 -34
- package/src/http-status-code-to-errors.d.ts +0 -4
- package/src/http-status-code-to-errors.js +0 -24
- package/src/http-status-code-to-errors.js.map +0 -1
- package/src/http-status-code-to-errors.ts +0 -41
- package/src/result.error.d.ts +0 -4
- package/src/result.error.js +0 -24
- package/src/result.error.js.map +0 -1
- package/src/result.error.ts +0 -25
package/src/default.error.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { ImprovedLoggerService } from '@nest-yalc-2/logger/logger-abstract.service.js';
|
|
2
|
-
import { ClassType, Mixin } from '@nest-yalc-2/types/globals.d.js';
|
|
3
|
-
import { HttpException, HttpExceptionOptions, HttpStatus, LogLevel } from '@nestjs/common';
|
|
4
|
-
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
5
|
-
export declare const ON_DEFAULT_ERROR_EVENT = "onDefaultError";
|
|
6
|
-
export interface ISharedErrorProperties {
|
|
7
|
-
data?: any;
|
|
8
|
-
config?: any;
|
|
9
|
-
internalMessage?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
eventName?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IHttpExceptionArguments {
|
|
14
|
-
response?: Partial<IBetterResponseInterface>;
|
|
15
|
-
errorCode?: HttpStatus | number;
|
|
16
|
-
}
|
|
17
|
-
export interface IHttpExceptionParentArguments extends Omit<IHttpExceptionArguments, 'errorCode'> {
|
|
18
|
-
}
|
|
19
|
-
export interface IErrorPayload extends ISharedErrorProperties {
|
|
20
|
-
response?: Partial<IBetterResponseInterface>;
|
|
21
|
-
cause?: IFormattedCause;
|
|
22
|
-
errorName?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface IErrorEventPayload extends IErrorPayload {
|
|
25
|
-
message?: string;
|
|
26
|
-
stack?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface ILogErrorPayload extends Omit<IErrorEventPayload, keyof IHttpExceptionArguments> {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}
|
|
31
|
-
type loggerOptionType = {
|
|
32
|
-
instance?: ImprovedLoggerService;
|
|
33
|
-
level?: LogLevel;
|
|
34
|
-
} | false;
|
|
35
|
-
export interface IAbstractDefaultError extends Omit<HttpException, 'cause' | 'message'>, Omit<IErrorEventPayload, 'response'> {
|
|
36
|
-
logger?: loggerOptionType;
|
|
37
|
-
eventEmitter?: EventEmitter2;
|
|
38
|
-
getResponse(): IBetterResponseInterface;
|
|
39
|
-
getInternalMessage(): string | undefined;
|
|
40
|
-
getDescription(): string | undefined;
|
|
41
|
-
getEventPayload(): IErrorEventPayload;
|
|
42
|
-
setErrorInfo(options: IAbstractDefaultErrorOptions & {
|
|
43
|
-
response?: Partial<IBetterResponseInterface>;
|
|
44
|
-
}): void;
|
|
45
|
-
mergeErrorInfo(info: IAbstractDefaultErrorOptions & {
|
|
46
|
-
response?: Partial<IBetterResponseInterface>;
|
|
47
|
-
cause?: Error;
|
|
48
|
-
}): void;
|
|
49
|
-
}
|
|
50
|
-
export interface IAbstractDefaultErrorConstructor<TErrorClass extends ClassType<HttpException> = ClassType<HttpException>> {
|
|
51
|
-
new (options: IAbstractDefaultErrorOptions, ...args: ConstructorParameters<TErrorClass>): IAbstractDefaultError;
|
|
52
|
-
}
|
|
53
|
-
export interface IAbstractDefaultErrorOptions extends ISharedErrorProperties {
|
|
54
|
-
masks?: string[];
|
|
55
|
-
logger?: loggerOptionType | boolean;
|
|
56
|
-
eventEmitter?: EventEmitter2 | boolean;
|
|
57
|
-
eventName?: string;
|
|
58
|
-
stack?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface IDefaultErrorBaseOptions extends Omit<IAbstractDefaultErrorOptions, 'internalMessage'>, HttpExceptionOptions, IHttpExceptionParentArguments {
|
|
61
|
-
}
|
|
62
|
-
export interface IDefaultErrorOptions extends Omit<IAbstractDefaultErrorOptions, 'internalMessage'>, HttpExceptionOptions, IHttpExceptionArguments {
|
|
63
|
-
}
|
|
64
|
-
export interface IBetterResponseInterface {
|
|
65
|
-
error?: string;
|
|
66
|
-
statusCode: number;
|
|
67
|
-
statusCodeDescription: string;
|
|
68
|
-
message: string;
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
}
|
|
71
|
-
export declare const newDefaultError: <T extends ClassType<HttpException> = typeof HttpException>(base: T, options: IAbstractDefaultErrorOptions, ...args: ConstructorParameters<T>) => IAbstractDefaultError;
|
|
72
|
-
interface IFormattedCause {
|
|
73
|
-
message?: string;
|
|
74
|
-
stack?: string;
|
|
75
|
-
parentCause?: IFormattedCause;
|
|
76
|
-
[key: string]: any;
|
|
77
|
-
}
|
|
78
|
-
export declare function formatCause(error?: any): IFormattedCause | undefined;
|
|
79
|
-
export declare const DefaultErrorMixin: <T extends ClassType<HttpException> = ClassType<HttpException>>(base?: T) => IAbstractDefaultErrorConstructor<T>;
|
|
80
|
-
export type DefaultErrorMixin = Mixin<typeof DefaultErrorMixin>;
|
|
81
|
-
export interface IDefaultErrorBaseConstructor<T extends ClassType<HttpException> = ClassType<HttpException>> {
|
|
82
|
-
new (internalMessage?: string, options?: Omit<IAbstractDefaultErrorOptions, 'internalMessage'>, ...args: ConstructorParameters<T>): IAbstractDefaultError;
|
|
83
|
-
}
|
|
84
|
-
export declare function DefaultErrorBase<T extends ClassType<HttpException> = ClassType<HttpException>>(base?: T): IDefaultErrorBaseConstructor<T>;
|
|
85
|
-
declare const DefaultError_base: IDefaultErrorBaseConstructor<typeof HttpException>;
|
|
86
|
-
export declare class DefaultError extends DefaultError_base {
|
|
87
|
-
static defaultStatusCode: HttpStatus;
|
|
88
|
-
constructor(internalMessage?: string, options?: IDefaultErrorOptions);
|
|
89
|
-
}
|
|
90
|
-
export declare const errorToDefaultError: (error: Error | HttpException | DefaultError, options?: IDefaultErrorOptions) => DefaultError;
|
|
91
|
-
export declare function isDefaultErrorMixin(error: any): error is IAbstractDefaultError;
|
|
92
|
-
export declare function isDefaultErrorMixinClass(error: any): error is typeof DefaultError;
|
|
93
|
-
export {};
|
package/src/default.error.js
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.errorToDefaultError = exports.DefaultError = exports.DefaultErrorMixin = exports.newDefaultError = exports.ON_DEFAULT_ERROR_EVENT = void 0;
|
|
4
|
-
exports.formatCause = formatCause;
|
|
5
|
-
exports.DefaultErrorBase = DefaultErrorBase;
|
|
6
|
-
exports.isDefaultErrorMixin = isDefaultErrorMixin;
|
|
7
|
-
exports.isDefaultErrorMixinClass = isDefaultErrorMixinClass;
|
|
8
|
-
const event_helper_js_1 = require("@nest-yalc-2/event-manager/event.helper.js");
|
|
9
|
-
const global_emitter_js_1 = require("@nest-yalc-2/event-manager/global-emitter.js");
|
|
10
|
-
const logger_factory_js_1 = require("@nest-yalc-2/logger/logger.factory.js");
|
|
11
|
-
const logger_helper_js_1 = require("@nest-yalc-2/logger/logger.helper.js");
|
|
12
|
-
const http_helper_js_1 = require("@nest-yalc-2/utils/http.helper.js");
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const error_enum_js_1 = require("./error.enum.js");
|
|
15
|
-
const object_helper_js_1 = require("@nest-yalc-2/utils/object.helper.js");
|
|
16
|
-
const class_helper_js_1 = require("@nest-yalc-2/utils/class.helper.js");
|
|
17
|
-
exports.ON_DEFAULT_ERROR_EVENT = 'onDefaultError';
|
|
18
|
-
const newDefaultError = (base, options, ...args) => {
|
|
19
|
-
return new ((0, exports.DefaultErrorMixin)(base))(options, ...args);
|
|
20
|
-
};
|
|
21
|
-
exports.newDefaultError = newDefaultError;
|
|
22
|
-
function formatCause(error) {
|
|
23
|
-
if (!error) {
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
...error,
|
|
28
|
-
message: error.message ?? error.toString(),
|
|
29
|
-
stack: error.stack,
|
|
30
|
-
parentCause: error.cause ? formatCause(error.cause) : undefined,
|
|
31
|
-
cause: undefined,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const DefaultErrorMixin = (base) => {
|
|
35
|
-
const BaseClass = base ?? common_1.HttpException;
|
|
36
|
-
class _AbstractDefaultError extends BaseClass {
|
|
37
|
-
static { this.defaultStatusCode = common_1.HttpStatus.INTERNAL_SERVER_ERROR; }
|
|
38
|
-
constructor(options, ...args) {
|
|
39
|
-
super(...args);
|
|
40
|
-
this.__DefaultErrorMixin = Object.freeze(true);
|
|
41
|
-
const message = options.internalMessage ?? this.message;
|
|
42
|
-
this.setErrorInfo(options);
|
|
43
|
-
if (options.logger) {
|
|
44
|
-
const { instance, level } = options.logger !== true
|
|
45
|
-
? options.logger
|
|
46
|
-
: { instance: undefined, level: undefined };
|
|
47
|
-
this.logger = {
|
|
48
|
-
instance: instance ?? (0, logger_factory_js_1.AppLoggerFactory)('DefaultError'),
|
|
49
|
-
level: level ?? (0, event_helper_js_1.getLogLevelByStatus)(this.getStatus()),
|
|
50
|
-
};
|
|
51
|
-
if (this.logger.level === 'error') {
|
|
52
|
-
this.logger.instance.error(message, this.resolvedStack, {
|
|
53
|
-
data: this.eventPayload,
|
|
54
|
-
stack: this.resolvedStack,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.logger.instance?.[this.logger.level]?.(message, {
|
|
59
|
-
data: this.eventPayload,
|
|
60
|
-
stack: this.resolvedStack,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const eventEmitter = options.eventEmitter === true || options.eventEmitter === undefined
|
|
65
|
-
? (0, global_emitter_js_1.getYalcGlobalEventEmitter)()
|
|
66
|
-
: options.eventEmitter;
|
|
67
|
-
if (eventEmitter !== false) {
|
|
68
|
-
this.eventName ??= exports.ON_DEFAULT_ERROR_EVENT;
|
|
69
|
-
this.eventEmitter = eventEmitter;
|
|
70
|
-
this.eventEmitter.emit(this.eventName, {
|
|
71
|
-
...this.eventPayload,
|
|
72
|
-
eventName: this.eventName,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
setErrorInfo(options) {
|
|
77
|
-
const stack = options.stack ?? this.stack;
|
|
78
|
-
const errorCode = this.getStatus();
|
|
79
|
-
this.cause = formatCause(this.cause);
|
|
80
|
-
this.internalMessage = options.internalMessage ?? this.cause?.message;
|
|
81
|
-
this.eventName = options.eventName;
|
|
82
|
-
this.description =
|
|
83
|
-
options.description ?? (0, http_helper_js_1.getHttpStatusDescription)(errorCode);
|
|
84
|
-
this.betterResponse = _AbstractDefaultError.buildResponse(this.message, this.description, errorCode, options?.response ?? super.getResponse());
|
|
85
|
-
this.data = options.masks
|
|
86
|
-
? (0, logger_helper_js_1.maskDataInObject)(options.data, options.masks)
|
|
87
|
-
: options.data;
|
|
88
|
-
const cause = this.cause;
|
|
89
|
-
const payload = {
|
|
90
|
-
data: this.data,
|
|
91
|
-
eventName: this.eventName,
|
|
92
|
-
description: this.description,
|
|
93
|
-
internalMessage: this.internalMessage,
|
|
94
|
-
errorName: this.name,
|
|
95
|
-
...this.betterResponse,
|
|
96
|
-
stack,
|
|
97
|
-
cause,
|
|
98
|
-
};
|
|
99
|
-
this.resolvedStack = stack;
|
|
100
|
-
this.eventPayload = payload;
|
|
101
|
-
}
|
|
102
|
-
mergeErrorInfo(info) {
|
|
103
|
-
const { internalMessage, description, eventName, data, stack, cause, response, ...rest } = info;
|
|
104
|
-
if (internalMessage)
|
|
105
|
-
this.internalMessage = internalMessage;
|
|
106
|
-
if (description)
|
|
107
|
-
this.description = description;
|
|
108
|
-
if (eventName)
|
|
109
|
-
this.eventName = eventName;
|
|
110
|
-
if (data)
|
|
111
|
-
this.data = (0, object_helper_js_1.deepMergeWithoutArrayConcat)(this.data ?? {}, data);
|
|
112
|
-
if (stack)
|
|
113
|
-
this.resolvedStack = stack;
|
|
114
|
-
if (cause) {
|
|
115
|
-
this.cause = formatCause(cause);
|
|
116
|
-
this.eventPayload.cause = this.cause;
|
|
117
|
-
}
|
|
118
|
-
if (response) {
|
|
119
|
-
this.betterResponse = {
|
|
120
|
-
...this.betterResponse,
|
|
121
|
-
..._AbstractDefaultError.buildResponse(this.message, this.description, this.getStatus(), response),
|
|
122
|
-
};
|
|
123
|
-
this.message = this.betterResponse.message;
|
|
124
|
-
}
|
|
125
|
-
this.eventPayload = {
|
|
126
|
-
...this.eventPayload,
|
|
127
|
-
...rest,
|
|
128
|
-
data: this.data,
|
|
129
|
-
eventName: this.eventName,
|
|
130
|
-
description: this.description,
|
|
131
|
-
internalMessage: this.internalMessage,
|
|
132
|
-
errorName: this.name,
|
|
133
|
-
...this.betterResponse,
|
|
134
|
-
stack: this.resolvedStack,
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
getEventPayload() {
|
|
138
|
-
return this.eventPayload;
|
|
139
|
-
}
|
|
140
|
-
getInternalMessage() {
|
|
141
|
-
return this.internalMessage;
|
|
142
|
-
}
|
|
143
|
-
getDescription() {
|
|
144
|
-
return this.description;
|
|
145
|
-
}
|
|
146
|
-
getResponse() {
|
|
147
|
-
return this.betterResponse;
|
|
148
|
-
}
|
|
149
|
-
toString() {
|
|
150
|
-
return `${this.internalMessage ?? this.message} -\n [INFO: ${JSON.stringify(this.eventPayload, null, 2)}]`;
|
|
151
|
-
}
|
|
152
|
-
static buildResponse(message, codeDescription, statusCode, response) {
|
|
153
|
-
let responseObj = {};
|
|
154
|
-
if (typeof response === 'string' || response instanceof String) {
|
|
155
|
-
message = response;
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
responseObj = response;
|
|
159
|
-
}
|
|
160
|
-
const baseBody = common_1.HttpException.createBody(message, (0, error_enum_js_1.getHttpStatusNameByCode)(statusCode), statusCode);
|
|
161
|
-
return {
|
|
162
|
-
statusCodeDescription: codeDescription,
|
|
163
|
-
...baseBody,
|
|
164
|
-
message,
|
|
165
|
-
...responseObj,
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return _AbstractDefaultError;
|
|
170
|
-
};
|
|
171
|
-
exports.DefaultErrorMixin = DefaultErrorMixin;
|
|
172
|
-
function DefaultErrorBase(base) {
|
|
173
|
-
return class extends (0, exports.DefaultErrorMixin)(base ?? common_1.HttpException) {
|
|
174
|
-
static { this.defaultStatusCode = common_1.HttpStatus.INTERNAL_SERVER_ERROR; }
|
|
175
|
-
constructor(internalMessage, options, ...args) {
|
|
176
|
-
super({ ...(options ?? {}), internalMessage }, ...args);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
class DefaultError extends DefaultErrorBase(common_1.HttpException) {
|
|
181
|
-
static { this.defaultStatusCode = common_1.HttpStatus.INTERNAL_SERVER_ERROR; }
|
|
182
|
-
constructor(internalMessage, options) {
|
|
183
|
-
const { description, cause, response, errorCode, ...defaultOptions } = options ?? {};
|
|
184
|
-
super(internalMessage, { ...defaultOptions, description }, response ?? {}, errorCode ?? common_1.HttpStatus.INTERNAL_SERVER_ERROR, {
|
|
185
|
-
description,
|
|
186
|
-
cause,
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
exports.DefaultError = DefaultError;
|
|
191
|
-
const errorToDefaultError = (error, options = {}) => {
|
|
192
|
-
try {
|
|
193
|
-
if (isDefaultErrorMixin(error)) {
|
|
194
|
-
return error;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
catch (e) { }
|
|
198
|
-
try {
|
|
199
|
-
if (error instanceof common_1.HttpException) {
|
|
200
|
-
JSON.stringify(error.cause);
|
|
201
|
-
return new DefaultError(error.message, {
|
|
202
|
-
errorCode: error.getStatus(),
|
|
203
|
-
response: {
|
|
204
|
-
message: error.getResponse().toString(),
|
|
205
|
-
error: error.name,
|
|
206
|
-
statusCode: error.getStatus(),
|
|
207
|
-
statusCodeDescription: (0, http_helper_js_1.getHttpStatusDescription)(error.getStatus()),
|
|
208
|
-
},
|
|
209
|
-
stack: error.stack,
|
|
210
|
-
cause: error.cause,
|
|
211
|
-
...options,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
catch (e) { }
|
|
216
|
-
let name;
|
|
217
|
-
try {
|
|
218
|
-
name = error.name ?? 'UnknownError';
|
|
219
|
-
if (typeof name !== 'string') {
|
|
220
|
-
name = 'UnknownError';
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
catch (e) {
|
|
224
|
-
name = 'UnknownError';
|
|
225
|
-
}
|
|
226
|
-
let message;
|
|
227
|
-
try {
|
|
228
|
-
message = error.message ?? 'UnknownError';
|
|
229
|
-
if (typeof message !== 'string') {
|
|
230
|
-
message = 'UnknownError';
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
catch (e) {
|
|
234
|
-
message = 'UnknownError';
|
|
235
|
-
}
|
|
236
|
-
let stack;
|
|
237
|
-
try {
|
|
238
|
-
JSON.stringify(error.stack);
|
|
239
|
-
stack = error.stack;
|
|
240
|
-
}
|
|
241
|
-
catch (e) { }
|
|
242
|
-
let cause;
|
|
243
|
-
try {
|
|
244
|
-
const errorCause = error.cause;
|
|
245
|
-
JSON.stringify(errorCause);
|
|
246
|
-
cause = errorCause;
|
|
247
|
-
}
|
|
248
|
-
catch (e) { }
|
|
249
|
-
return new DefaultError(message, {
|
|
250
|
-
stack,
|
|
251
|
-
cause,
|
|
252
|
-
response: {
|
|
253
|
-
error: name,
|
|
254
|
-
},
|
|
255
|
-
...options,
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
|
-
exports.errorToDefaultError = errorToDefaultError;
|
|
259
|
-
function isDefaultErrorMixin(error) {
|
|
260
|
-
return error.__DefaultErrorMixin !== undefined;
|
|
261
|
-
}
|
|
262
|
-
function isDefaultErrorMixinClass(error) {
|
|
263
|
-
return ((0, class_helper_js_1.isClass)(error) &&
|
|
264
|
-
error.defaultStatusCode !== undefined);
|
|
265
|
-
}
|
|
266
|
-
//# sourceMappingURL=default.error.js.map
|
package/src/default.error.js.map
D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