mod-build 3.7.31 → 3.7.32-beta.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
  # Changelog
2
2
 
3
+ ## 3.7.32
4
+
5
+ - Build process will not be stopped if there are any errors while fetching the `editor config`.
6
+
3
7
  ## 3.7.31
4
8
 
5
9
  - Avoided overriding the control's step configuration during the merge with the variation's steps and the default form config.
@@ -6,9 +6,14 @@ function addEditorConfig(gulp, siteSettings) {
6
6
  request(`https://${siteSettings.nodeEnv}/quote/resources/mod-site/configurations/editorconfig`)
7
7
  .on('response', resp => {
8
8
  if (resp.statusCode !== 200) {
9
- throw new Error(`${resp.statusCode} Error while fetching editorconfig`);
9
+ console.warn(`${resp.statusCode} Error while fetching editorconfig - continuing without it.`);
10
+ return resolve();
10
11
  }
11
12
  })
13
+ .on('error', err => {
14
+ console.warn(`Network error while fetching editorconfig: ${err.message} - continuing without it.`);
15
+ resolve();
16
+ })
12
17
  .pipe(source('.editorconfig'))
13
18
  .pipe(gulp.dest('./'))
14
19
  .on('finish', resolve);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.31",
3
+ "version": "3.7.32-beta.2",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",