nestjs-i18n
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -67,2 +67,3 @@ "use strict"; | ||
catch (e) { | ||
logger.error(e); | ||
return {}; | ||
@@ -121,2 +122,3 @@ } | ||
catch (e) { | ||
logger.error(e); | ||
return {}; | ||
@@ -123,0 +125,0 @@ } |
@@ -20,6 +20,6 @@ "use strict"; | ||
if (!fs.existsSync(i18nPath)) { | ||
reject('i18n path does not exists'); | ||
reject(`i18n path (${i18nPath}) cannot be found`); | ||
} | ||
if (!options.filePattern.match(/\*\.[A-z]+/)) { | ||
reject(`filePattern should be formatted like: *.json, *.txt, *.custom etc.`); | ||
reject(`filePattern should be formatted like: *.json, *.txt, *.custom etc`); | ||
} | ||
@@ -26,0 +26,0 @@ const languages = exports.getDirectories(i18nPath).map(dir => path.relative(i18nPath, dir)); |
@@ -67,2 +67,3 @@ "use strict"; | ||
catch (e) { | ||
logger.error(e); | ||
return {}; | ||
@@ -121,2 +122,3 @@ } | ||
catch (e) { | ||
logger.error(e); | ||
return {}; | ||
@@ -123,0 +125,0 @@ } |
@@ -20,6 +20,6 @@ "use strict"; | ||
if (!fs.existsSync(i18nPath)) { | ||
reject('i18n path does not exists'); | ||
reject(`i18n path (${i18nPath}) cannot be found`); | ||
} | ||
if (!options.filePattern.match(/\*\.[A-z]+/)) { | ||
reject(`filePattern should be formatted like: *.json, *.txt, *.custom etc.`); | ||
reject(`filePattern should be formatted like: *.json, *.txt, *.custom etc`); | ||
} | ||
@@ -26,0 +26,0 @@ const languages = exports.getDirectories(i18nPath).map(dir => path.relative(i18nPath, dir)); |
{ | ||
"name": "nestjs-i18n", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Toon van Strijp", |
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
1614189
1035