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

react-isomorphic-tools

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-isomorphic-tools - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

helpers/preload.js

@@ -148,4 +148,4 @@ 'use strict';

var getComponents = function getComponents(components) {
console.log(components);
return components.filter(function (item) {
console.log(item, typeof item == 'function', item.hasOwnProperty('preload'), item.hasOwnProperty('preload') && typeof item.preload == 'function');
return typeof item == 'function' && item.hasOwnProperty('preload') && typeof item.preload == 'function';

@@ -152,0 +152,0 @@ });

{
"name": "react-isomorphic-tools",
"version": "1.0.2",
"version": "1.0.3",
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering",

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

@@ -58,6 +58,8 @@ import lodash from 'lodash'

const getComponents = (components) => {
console.log(components)
return components.filter((item)=>typeof item == 'function' && item.hasOwnProperty('preload') && typeof item.preload == 'function')
return components.filter((item)=>{
console.log(item, typeof item == 'function', item.hasOwnProperty('preload'), item.hasOwnProperty('preload') && typeof item.preload == 'function')
return typeof item == 'function' && item.hasOwnProperty('preload') && typeof item.preload == 'function'
})
}
export {loadData, getComponents}
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