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 6.1.3 to 6.1.5

15

lib/fetchComponentData.js

@@ -46,11 +46,12 @@ 'use strict';

branch.forEach(function (branch) {
queue.defer(function (callback) {
var Component = branch.route.component;
if (!Component) return;
while (Component.WrappedComponent) {
Component = Component.WrappedComponent;
}
if (!Component.fetchData) return;
var Component = branch.route.component;
if (!Component) return callback();
while (Component.WrappedComponent) {
Component = Component.WrappedComponent;
}
if (!Component.fetchData) return;
queue.defer(function (callback) {
var match = branch.match;

@@ -57,0 +58,0 @@

{
"name": "fetch-component-data",
"version": "6.1.3",
"version": "6.1.5",
"description": "Small util functions for Frameworkstein",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -22,11 +22,12 @@ import _ from 'lodash' // eslint-disable-line

branch.forEach(branch => {
queue.defer(callback => {
let Component = branch.route.component
if (!Component) return
while (Component.WrappedComponent) {
Component = Component.WrappedComponent
}
if (!Component.fetchData) return
let Component = branch.route.component
if (!Component) return callback()
while (Component.WrappedComponent) {
Component = Component.WrappedComponent
}
if (!Component.fetchData) return
queue.defer(callback => {
const match = branch.match

@@ -33,0 +34,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