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.4 to 1.0.5

32

helpers/loadOnServer.js

@@ -39,3 +39,3 @@ 'use strict';

props = (0, _objectWithoutProperties3.default)(_ref2$renderProps, ['components', 'routes', 'params', 'location', 'router']);
var i;
var i, test;
return _regenerator2.default.wrap(function _callee$(_context) {

@@ -46,6 +46,6 @@ while (1) {

components = (0, _preload2.getComponents)(components);
console.log(components);
console.log(components.length);
if (!components.length) {
_context.next = 20;
_context.next = 23;
break;

@@ -61,3 +61,3 @@ }

if ((_context.t1 = _context.t0()).done) {
_context.next = 14;
_context.next = 17;
break;

@@ -69,7 +69,8 @@ }

if (!components.hasOwnProperty(i)) {
_context.next = 12;
_context.next = 15;
break;
}
_context.next = 11;
console.log(components[i], components[i].preload);
_context.next = 12;
return components[i].preload({

@@ -88,3 +89,6 @@ getState: getState,

case 11:
case 12:
test = _context.sent;
console.log(test);
dispatch((0, _preload.push)({

@@ -96,13 +100,13 @@ displayName: components[i].displayName,

case 12:
case 15:
_context.next = 6;
break;
case 14:
case 17:
dispatch((0, _preload.finish)());
_context.next = 20;
_context.next = 23;
break;
case 17:
_context.prev = 17;
case 20:
_context.prev = 20;
_context.t2 = _context['catch'](3);

@@ -112,3 +116,3 @@

case 20:
case 23:
case 'end':

@@ -118,3 +122,3 @@ return _context.stop();

}
}, _callee, undefined, [[3, 17]]);
}, _callee, undefined, [[3, 20]]);
}));

@@ -121,0 +125,0 @@

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

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

@@ -8,3 +8,3 @@ import {push, start, finish, error} from '../actions/preload'

components = getComponents(components)
console.log(components)
console.log(components.length)
if (components.length) {

@@ -15,3 +15,4 @@ try {

if (components.hasOwnProperty(i)) {
await components[i].preload({
console.log(components[i], components[i].preload)
const test = await components[i].preload({
getState,

@@ -26,2 +27,3 @@ dispatch,

}, props)
console.log(test)
dispatch(push({

@@ -28,0 +30,0 @@ displayName: components[i].displayName,

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