mod-build 3.5.1---beta.1 → 3.5.1---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.
|
@@ -16,7 +16,7 @@ function streamSharedCompsToDestination(gulp, siteSettings, fileName) {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function getListOfSharedComponents(gulp, gulpPlugins, siteSettings) {
|
|
19
|
-
return new Promise(
|
|
19
|
+
return new Promise(resolve => { // eslint-disable-line no-undef
|
|
20
20
|
request(`https://${siteSettings.nodeEnv}/quote/resources/mod-site/shared-components/all.json`, function(err, resp, body) {
|
|
21
21
|
if (resp.statusCode !== 200) {
|
|
22
22
|
throw new Error(`${resp.statusCode}: Error while fetching shared-components/all.json`);
|
|
@@ -25,7 +25,7 @@ function getListOfSharedComponents(gulp, gulpPlugins, siteSettings) {
|
|
|
25
25
|
const componentPromises = listOfComponents.map(function(resource) {
|
|
26
26
|
return streamSharedCompsToDestination(gulp, siteSettings, `${resource}`);
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
resolve(Promise.all(componentPromises)); // eslint-disable-line no-undef
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
}
|