@bigcommerce/stencil-cli 3.10.0 → 3.10.1
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
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
### Draft
|
|
2
2
|
|
|
3
|
+
### 3.10.1 (2022-02-24)
|
|
4
|
+
|
|
5
|
+
- fix: when there's no regions on the page ([878](https://github.com/bigcommerce/stencil-cli/pull/878))
|
|
6
|
+
- fix: STRF-9667 Storefront fallback logic works incorrectly on store with Stencil CLI ([877](https://github.com/bigcommerce/stencil-cli/pull/877))
|
|
7
|
+
|
|
3
8
|
### 3.10.0 (2022-02-08)
|
|
4
9
|
|
|
5
10
|
- fix(storefront): bctheme-1000 handle regular css in stencil ([845](https://github.com/bigcommerce/stencil-cli/pull/845))
|
|
@@ -31,6 +31,9 @@ async function getRenderedRegionsByPageType({ accessToken, storeUrl, pageType })
|
|
|
31
31
|
}),
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
+
if (!response.data.data) {
|
|
35
|
+
return { renderedRegions: [] };
|
|
36
|
+
}
|
|
34
37
|
const {
|
|
35
38
|
site: {
|
|
36
39
|
content: {
|
|
@@ -75,6 +78,9 @@ async function getRenderedRegionsByPageTypeAndEntityId({
|
|
|
75
78
|
}),
|
|
76
79
|
});
|
|
77
80
|
|
|
81
|
+
if (!response.data.data) {
|
|
82
|
+
return { renderedRegions: [] };
|
|
83
|
+
}
|
|
78
84
|
const {
|
|
79
85
|
site: {
|
|
80
86
|
content: {
|
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -371,7 +371,7 @@ function getAcceptLanguageHeader(request) {
|
|
|
371
371
|
) {
|
|
372
372
|
return internals.options.storeSettingsLocale.default_shopper_language;
|
|
373
373
|
}
|
|
374
|
-
return request.headers['accept-language'];
|
|
374
|
+
return request.headers['accept-language'].toLowerCase();
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
/**
|