@bigcommerce/stencil-cli 5.2.1 → 5.2.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Draft
2
2
 
3
+ ### 5.2.2 (2022-09-29)
4
+
5
+ - fix: STRF-9174 review section is shown on quick-view page ([991](https://github.com/bigcommerce/stencil-cli/pull/991))
6
+
3
7
  ### 5.2.1 (2022-09-30)
4
8
 
5
9
  - fix: STRF-9832 custom template frontmatter is prioritized over default one ([983](https://github.com/bigcommerce/stencil-cli/pull/983))
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
5
5
  "main": "index.js",
6
6
  "engines": {
package/server/index.js CHANGED
@@ -33,8 +33,6 @@ function buildManifest(srcManifest, options) {
33
33
  pluginsByName['./plugins/renderer/renderer.module'].storeUrl = storeUrl;
34
34
  pluginsByName['./plugins/renderer/renderer.module'].storeSettingsLocale =
35
35
  options.storeSettingsLocale;
36
- pluginsByName['./plugins/renderer/renderer.module'].customLayouts =
37
- options.dotStencilFile.customLayouts;
38
36
  pluginsByName['./plugins/theme-assets/theme-assets.module'].themePath = options.themePath;
39
37
 
40
38
  resManifest.register.plugins = _.reduce(
@@ -457,7 +457,9 @@ internals.buildReqHeaders = ({
457
457
  'stencil-custom-templates': templates,
458
458
  };
459
459
 
460
- if (!request.headers['stencil-config'] && stencilConfig) {
460
+ const config = request.headers['stencil-config'];
461
+
462
+ if ((!config || config === '{}') && stencilConfig) {
461
463
  headers['stencil-config'] = JSON.stringify(stencilConfig);
462
464
  }
463
465
  // eslint-disable-next-line no-param-reassign