@websolutespa/bom-mixer-models 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -2
- package/src/route/route.interceptor.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -903,7 +903,7 @@ async function routeAutoDetection(request, next) {
|
|
|
903
903
|
const detectedRoute = detectedLocaleRoutes.length > 0 ? detectedLocaleRoutes[0] : detectedMarketRoutes.find((x) => {
|
|
904
904
|
const market2 = markets.find((m) => m.id === x.market);
|
|
905
905
|
const marketLocale = market2.defaultLanguage ? (0, import_bom_core5.asEquatable)(market2.defaultLanguage) : defaultMarketLocale;
|
|
906
|
-
x.locale === marketLocale;
|
|
906
|
+
return x.locale === marketLocale;
|
|
907
907
|
});
|
|
908
908
|
if (detectedRoute && detectedRoute.id !== url.pathname) {
|
|
909
909
|
console.log("routeInterceptor.routeAutoDetection", detectedLocale, detectedCountry, detectedRoute.id);
|
package/dist/index.mjs
CHANGED
|
@@ -803,7 +803,7 @@ async function routeAutoDetection(request, next) {
|
|
|
803
803
|
const detectedRoute = detectedLocaleRoutes.length > 0 ? detectedLocaleRoutes[0] : detectedMarketRoutes.find((x) => {
|
|
804
804
|
const market2 = markets.find((m) => m.id === x.market);
|
|
805
805
|
const marketLocale = market2.defaultLanguage ? asEquatable(market2.defaultLanguage) : defaultMarketLocale;
|
|
806
|
-
x.locale === marketLocale;
|
|
806
|
+
return x.locale === marketLocale;
|
|
807
807
|
});
|
|
808
808
|
if (detectedRoute && detectedRoute.id !== url.pathname) {
|
|
809
809
|
console.log("routeInterceptor.routeAutoDetection", detectedLocale, detectedCountry, detectedRoute.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/bom-mixer-models",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Mixer Models module of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"lint": "eslint *.ts*",
|
|
17
17
|
"compile": "tsup ./src/index.ts --format esm,cjs --dts",
|
|
18
18
|
"prepack": "bom prepack",
|
|
19
|
-
"postpack": "bom postpack"
|
|
19
|
+
"postpack": "bom postpack",
|
|
20
|
+
"release": "npm publish --access public --tag bom2"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {},
|
|
22
23
|
"peerDependencies": {
|
|
@@ -96,7 +96,7 @@ export async function routeAutoDetection(request: NextRequest, next: NextFetchEv
|
|
|
96
96
|
detectedMarketRoutes.find(x => {
|
|
97
97
|
const market = markets.find(m => m.id === x.market)!;
|
|
98
98
|
const marketLocale = (market.defaultLanguage ? asEquatable(market.defaultLanguage as string) : defaultMarketLocale);
|
|
99
|
-
x.locale === marketLocale;
|
|
99
|
+
return x.locale === marketLocale;
|
|
100
100
|
})!;
|
|
101
101
|
if (detectedRoute && detectedRoute.id !== url.pathname) {
|
|
102
102
|
console.log('routeInterceptor.routeAutoDetection', detectedLocale, detectedCountry, detectedRoute.id);
|