Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-component-data

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-component-data - npm Package Compare versions

Comparing version 7.6.0 to 7.6.3

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc