nestjs-i18n
Advanced tools
Comparing version 10.4.6 to 10.4.7
@@ -11,4 +11,4 @@ import { ArgumentsHost, ExceptionFilter, ValidationError } from '@nestjs/common'; | ||
protected flattenValidationErrors(validationErrors: ValidationError[]): string[]; | ||
protected buildResponseBody(host: ArgumentsHost, exc: I18nValidationException, errors: string[] | I18nValidationError[] | object): Record<string, unknown>; | ||
protected buildResponseBody(host: ArgumentsHost, exc: I18nValidationException, error: string[] | I18nValidationError[] | object): Record<string, unknown>; | ||
} | ||
export {}; |
@@ -64,5 +64,5 @@ "use strict"; | ||
} | ||
buildResponseBody(host, exc, errors) { | ||
buildResponseBody(host, exc, error) { | ||
if ('responseBodyFormatter' in this.options) { | ||
return this.options.responseBodyFormatter(host, exc, errors); | ||
return this.options.responseBodyFormatter(host, exc, error); | ||
} | ||
@@ -74,4 +74,4 @@ else { | ||
: this.options.errorHttpStatusCode, | ||
message: exc.getResponse(), | ||
errors, | ||
message: error, | ||
error: exc.getResponse(), | ||
}; | ||
@@ -78,0 +78,0 @@ } |
@@ -21,3 +21,3 @@ "use strict"; | ||
exports.convertObjectToTypeDefinition = convertObjectToTypeDefinition; | ||
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed, }); | ||
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }); | ||
const createTypesFile = async (object) => { | ||
@@ -24,0 +24,0 @@ const sourceFile = ts.createSourceFile('placeholder.ts', '', ts.ScriptTarget.ESNext, true, ts.ScriptKind.TS); |
{ | ||
"name": "nestjs-i18n", | ||
"version": "10.4.6", | ||
"version": "10.4.7", | ||
"homepage": "https://nestjs-i18n.com", | ||
@@ -9,3 +9,3 @@ "description": "The i18n module for Nest.", | ||
"engines": { | ||
"node": ">=16" | ||
"node": ">=18" | ||
}, | ||
@@ -12,0 +12,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338950