mod-build 3.7.31 → 3.7.32-beta.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.
@@ -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.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",