@skyra/i18next-backend
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,11 @@ # Changelog | ||
# [@skyra/i18next-backend@2.0.2](https://github.com/skyra-project/archid-components/compare/@skyra/i18next-backend@2.0.1...@skyra/i18next-backend@2.0.2) - (2023-03-25) | ||
## 🐛 Bug Fixes | ||
- **i18next-backend:** Update i18next and @types/node ([77cd04c](https://github.com/skyra-project/archid-components/commit/77cd04cbb99a8c76a71f524c00ef207eb0584bc7)) | ||
- **deps:** Update all non-major dependencies ([df22552](https://github.com/skyra-project/archid-components/commit/df22552999e2aa863023388fc6014a3701f9f8d8)) | ||
- **deps:** Update all non-major dependencies ([08fca58](https://github.com/skyra-project/archid-components/commit/08fca581eb8075f359baeb33f6eeb744d33a6a9d)) | ||
- **deps:** Update all non-major dependencies (#207) ([4768f93](https://github.com/skyra-project/archid-components/commit/4768f93bbf7dab023c592f6bd8dbb6c278aa1d83)) | ||
# [@skyra/i18next-backend@2.0.1](https://github.com/skyra-project/archid-components/compare/@skyra/i18next-backend@2.0.0...@skyra/i18next-backend@2.0.1) - (2022-12-11) | ||
@@ -7,0 +16,0 @@ |
@@ -39,2 +39,4 @@ "use strict"; | ||
__publicField(this, "type", "backend"); | ||
__publicField(this, "paths"); | ||
__publicField(this, "i18nextOptions"); | ||
} | ||
@@ -68,11 +70,5 @@ init(_, backendOptions, i18nextOptions) { | ||
try { | ||
return { | ||
status: "fulfilled", | ||
value: _Backend.readPathSync(_Backend.resolvePath(language, namespace, path)) | ||
}; | ||
return { status: "fulfilled", value: _Backend.readPathSync(_Backend.resolvePath(language, namespace, path)) }; | ||
} catch (error) { | ||
return { | ||
status: "rejected", | ||
reason: error | ||
}; | ||
return { status: "rejected", reason: error }; | ||
} | ||
@@ -91,3 +87,6 @@ }); | ||
if (filtered.length === 0) { | ||
throw new AggregateError(results.map((result) => result.reason), "Could not find the file in any of the registered paths"); | ||
throw new AggregateError( | ||
results.map((result) => result.reason), | ||
"Could not find the file in any of the registered paths" | ||
); | ||
} | ||
@@ -94,0 +93,0 @@ return Object.assign({}, ...filtered.map((result) => result.value)); |
{ | ||
"name": "@skyra/i18next-backend", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A fast and modern filesystem-based i18next backend for Node.js.", | ||
@@ -19,2 +19,3 @@ "author": "@skyra", | ||
"watch": "tsup --watch", | ||
"typecheck": "tsc -p tsconfig.eslint.json", | ||
"lint": "eslint src --ext ts --fix -c ../../package.json", | ||
@@ -26,10 +27,10 @@ "prepack": "yarn build", | ||
"dependencies": { | ||
"tslib": "^2.4.1" | ||
"tslib": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@favware/cliff-jumper": "^1.9.0", | ||
"@types/node": "^18.11.13", | ||
"i18next": "^22.4.0", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4" | ||
"@favware/cliff-jumper": "^2.0.0", | ||
"@types/node": "^18.15.9", | ||
"i18next": "^22.4.13", | ||
"tsup": "^6.7.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -36,0 +37,0 @@ "repository": { |
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
30732
214
Updatedtslib@^2.5.0