fetch-component-data
Advanced tools
Comparing version 7.6.0 to 7.6.3
{ | ||
"name": "fetch-component-data", | ||
"version": "7.6.0", | ||
"version": "7.6.3", | ||
"description": "Small util functions for Frameworkstein", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -49,8 +49,18 @@ | ||
if (Component.fetchData) { | ||
promises.push(executeFetch(Component, {store, action, match, location})) | ||
const p = executeFetch(Component, {store, action, match, location}) | ||
if (options.parallel) { | ||
promises.push(p) | ||
} | ||
else { | ||
const res = await p | ||
if (res) result = {...result, ...res} | ||
} | ||
} | ||
} | ||
const results = await Promise.all(promises) | ||
for (const res of results) { | ||
if (res) result = {...result, ...res} | ||
if (options.parallel) { | ||
const results = await Promise.all(promises) | ||
for (const res of results) { | ||
if (res) result = {...result, ...res} | ||
} | ||
} | ||
@@ -57,0 +67,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21533
465
0