react-isomorphic-tools
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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} |
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
61405
1435