nestjs-i18n
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -129,3 +129,3 @@ "use strict"; | ||
static sanitizeI18nOptions(options) { | ||
options = Object.assign({}, defaultOptions, options); | ||
options = Object.assign(Object.assign({}, defaultOptions), options); | ||
options.path = path.normalize(options.path + path.sep); | ||
@@ -132,0 +132,0 @@ if (!options.filePattern.startsWith('*.')) { |
@@ -129,3 +129,3 @@ "use strict"; | ||
static sanitizeI18nOptions(options) { | ||
options = Object.assign({}, defaultOptions, options); | ||
options = Object.assign(Object.assign({}, defaultOptions), options); | ||
options.path = path.normalize(options.path + path.sep); | ||
@@ -132,0 +132,0 @@ if (!options.filePattern.startsWith('*.')) { |
@@ -1,3 +0,3 @@ | ||
export interface I18nResolver<TRequest = any> { | ||
resolve(req: TRequest): string | void; | ||
export interface I18nResolver<TRequest = any, TResponse = string> { | ||
resolve(req: TRequest): TResponse; | ||
} |
@@ -5,3 +5,3 @@ import { I18nResolver } from '../index'; | ||
constructor(keys?: string[]); | ||
resolve(req: any): any; | ||
resolve(req: any): string; | ||
} |
@@ -5,3 +5,3 @@ import { I18nResolver } from '../index'; | ||
constructor(keys: string[]); | ||
resolve(req: any): any; | ||
resolve(req: any): string; | ||
} |
{ | ||
"name": "nestjs-i18n", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "", | ||
@@ -28,31 +28,31 @@ "author": "Toon van Strijp", | ||
"devDependencies": { | ||
"@nestjs/common": "^6.6.2", | ||
"@nestjs/core": "^6.6.2", | ||
"@nestjs/graphql": "^6.4.2", | ||
"@nestjs/platform-express": "^6.6.2", | ||
"@nestjs/platform-fastify": "^6.6.2", | ||
"@nestjs/testing": "^6.6.2", | ||
"@nestjs/common": "^6.7.2", | ||
"@nestjs/core": "^6.7.2", | ||
"@nestjs/graphql": "^6.5.1", | ||
"@nestjs/platform-express": "^6.7.2", | ||
"@nestjs/platform-fastify": "^6.7.2", | ||
"@nestjs/testing": "^6.7.2", | ||
"@types/commander": "^2.12.2", | ||
"@types/flat": "0.0.28", | ||
"@types/jest": "^24.0.18", | ||
"@types/lodash": "^4.14.138", | ||
"@types/node": "^12.7.2", | ||
"@types/lodash": "^4.14.139", | ||
"@types/node": "^12.7.7", | ||
"@types/string-format": "^2.0.0", | ||
"@types/supertest": "^2.0.8", | ||
"apollo-server-express": "^2.8.1", | ||
"fastify": "^2.7.1", | ||
"graphql": "^14.4.2", | ||
"apollo-server-express": "^2.9.4", | ||
"fastify": "^2.8.0", | ||
"graphql": "^14.5.8", | ||
"graphql-tools": "^4.0.5", | ||
"husky": "3.0.4", | ||
"husky": "3.0.5", | ||
"jest": "^24.9.0", | ||
"lint-staged": "9.2.5", | ||
"lint-staged": "9.3.0", | ||
"prettier": "1.18.2", | ||
"reflect-metadata": "^0.1.13", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "3.5.3" | ||
"ts-jest": "^24.1.0", | ||
"typescript": "3.6.3" | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"commander": "^3.0.0", | ||
"commander": "^3.0.1", | ||
"flat": "^4.1.0", | ||
@@ -59,0 +59,0 @@ "lodash": "^4.17.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
1207579
Updatedcommander@^3.0.1