@bigcommerce/stencil-cli 5.2.1 → 5.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "5.2.1",
3
+ "version": "5.2.4",
4
4
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@bigcommerce/stencil-paper": "4.0.0",
50
- "@bigcommerce/stencil-styles": "3.0.0",
50
+ "@bigcommerce/stencil-styles": "4.0.0",
51
51
  "@hapi/boom": "^8.0.1",
52
52
  "@hapi/glue": "^6.2.0",
53
53
  "@hapi/h2o2": "^8.3.2",
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
@@ -16,6 +16,7 @@ class RedirectResponse {
16
16
  for (const [name, values] of Object.entries(this.headers)) {
17
17
  switch (name) {
18
18
  case 'transfer-encoding':
19
+ case 'content-length':
19
20
  break;
20
21
  case 'set-cookie':
21
22
  // Cookies should be an array