nestjs-i18n
Advanced tools
Comparing version 10.3.4 to 10.3.5
@@ -11,3 +11,3 @@ "use strict"; | ||
...options, | ||
exceptionFactory: (0, utils_1.i18nValidationErrorFactory)(), | ||
exceptionFactory: utils_1.i18nValidationErrorFactory, | ||
}); | ||
@@ -14,0 +14,0 @@ } |
@@ -7,3 +7,3 @@ import { I18nOptionResolver, I18nValidationError, I18nValidationException } from '../interfaces'; | ||
export declare function shouldResolve(e: I18nOptionResolver): any; | ||
export declare function i18nValidationErrorFactory(): (errors: ValidationError[]) => I18nValidationException; | ||
export declare function i18nValidationErrorFactory(errors: ValidationError[]): I18nValidationException; | ||
export declare function i18nValidationMessage<K = Record<string, unknown>>(key: Path<K>, args?: any): (a: ValidationArguments) => string; | ||
@@ -10,0 +10,0 @@ export declare function formatI18nErrors<K = Record<string, unknown>>(errors: I18nValidationError[], i18n: I18nService<K>, options?: TranslateOptions): I18nValidationError[]; |
@@ -25,6 +25,6 @@ "use strict"; | ||
} | ||
function i18nValidationErrorFactory() { | ||
return (errors) => { | ||
return new interfaces_1.I18nValidationException(errors.map((e) => validationErrorToI18n(e))); | ||
}; | ||
function i18nValidationErrorFactory(errors) { | ||
return new interfaces_1.I18nValidationException(errors.map((e) => { | ||
return validationErrorToI18n(e); | ||
})); | ||
} | ||
@@ -31,0 +31,0 @@ exports.i18nValidationErrorFactory = i18nValidationErrorFactory; |
{ | ||
"name": "nestjs-i18n", | ||
"version": "10.3.4", | ||
"version": "10.3.5", | ||
"homepage": "https://nestjs-i18n.com", | ||
@@ -44,4 +44,4 @@ "description": "The i18n module for Nest.", | ||
"coveralls": "npm run test:cov && cat ./coverage/lcov.info | coveralls", | ||
"lint": "eslint . --ext .ts", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"lint": "eslint '{src,apps,libs,test}/**/*.ts'", | ||
"lint:fix": "eslint '{src,apps,libs,test}/**/*.ts' --fix", | ||
"docusaurus": "docusaurus", | ||
@@ -60,8 +60,7 @@ "doc:start": "docusaurus start", | ||
"@apollo/client": "^3.6.9", | ||
"@docusaurus/core": "^2.2.0", | ||
"@docusaurus/module-type-aliases": "^2.2.0", | ||
"@docusaurus/preset-classic": "^2.2.0", | ||
"@docusaurus/core": "^2.4.3", | ||
"@docusaurus/module-type-aliases": "^2.4.3", | ||
"@docusaurus/preset-classic": "^2.4.3", | ||
"@grpc/grpc-js": "^1.6.7", | ||
"@grpc/proto-loader": "^0.7.4", | ||
"@mdx-js/react": "^1.6.22", | ||
"@nestjs/apollo": "^10.1.0", | ||
@@ -75,14 +74,14 @@ "@nestjs/common": "^9.0.11", | ||
"@nestjs/testing": "^9.0.11", | ||
"@tsconfig/docusaurus": "^1.0.6", | ||
"@tsconfig/docusaurus": "^2.0.1", | ||
"@types/accept-language-parser": "^1.5.3", | ||
"@types/cookie": "^0.5.1", | ||
"@types/hbs": "^4.0.1", | ||
"@types/jest": "^29.2.4", | ||
"@types/js-yaml": "^4.0.5", | ||
"@types/node": "^18.0.0", | ||
"@types/cookie": "^0.5.2", | ||
"@types/hbs": "^4.0.2", | ||
"@types/jest": "^29.5.5", | ||
"@types/js-yaml": "^4.0.6", | ||
"@types/node": "^20.6.3", | ||
"@types/string-format": "^2.0.0", | ||
"@types/supertest": "^2.0.12", | ||
"@types/validator": "^13.7.3", | ||
"@typescript-eslint/eslint-plugin": "^5.30.0", | ||
"@typescript-eslint/parser": "^5.30.0", | ||
"@types/validator": "^13.11.1", | ||
"@typescript-eslint/eslint-plugin": "^6.7.2", | ||
"@typescript-eslint/parser": "^6.7.2", | ||
"apollo-cache-inmemory": "^1.6.6", | ||
@@ -95,16 +94,17 @@ "apollo-client": "^2.6.10", | ||
"class-validator": "^0.14.0", | ||
"clsx": "^1.1.1", | ||
"ejs": "^3.1.8", | ||
"eslint": "^8.18.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.1.0", | ||
"docusaurus-plugin-typedoc": "^0.20.1", | ||
"ejs": "^3.1.9", | ||
"eslint": "^8.49.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"graphql-subscriptions": "^2.0.0", | ||
"graphql-tag": "^2.12.6", | ||
"hbs": "^4.2.0", | ||
"jest": "^29.3.1", | ||
"prism-react-renderer": "^1.3.3", | ||
"jest": "^29.7.0", | ||
"pug": "^3.0.2", | ||
"reflect-metadata": "^0.1.13", | ||
"supertest": "^6.2.3", | ||
"ts-jest": "^29.0.3", | ||
"supertest": "^6.3.3", | ||
"ts-jest": "^29.1.1", | ||
"typedoc": "^0.25.1", | ||
"typedoc-plugin-markdown": "^3.16.0", | ||
"typescript": "^4.8.3" | ||
@@ -111,0 +111,0 @@ }, |
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
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
336797
142131