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 3.0.0-alpha.16 to 3.0.0-alpha.17

19

dist/redux/index.js

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

});
exports.fetchToState = undefined;
exports.fetchToState = exports.replace = exports.push = exports.resolve = undefined;

@@ -13,7 +13,20 @@ var _FetchToState = require('./FetchToState');

var _ReduxResolver = require('../Resolver/ReduxResolver');
var _ReduxResolver2 = _interopRequireDefault(_ReduxResolver);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _ref = new _FetchToState2.default(),
fetchToState = _ref.fetchToState;
var _ref = new _ReduxResolver2.default(),
resolve = _ref.resolve,
push = _ref.push,
replace = _ref.replace;
exports.resolve = resolve;
exports.push = push;
exports.replace = replace;
var _ref2 = new _FetchToState2.default(),
fetchToState = _ref2.fetchToState;
exports.fetchToState = fetchToState;

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

if (!item.route.component && typeof item.route.getComponent === 'function') {
matched.push(item);
matched.pushItem(item);
}

@@ -112,3 +112,3 @@ });

this.push = function (item) {
this.pushItem = function (item) {
var index = _this.resolved.findIndex(function (i) {

@@ -127,4 +127,14 @@ return i.path === item.path;

};
this.makeLocation = function (to) {
if (typeof location === 'string') {
return {
pathname: to
};
} else {
return to;
}
};
};
exports.default = AbstractResolver;

@@ -16,2 +16,4 @@ 'use strict';

var _reactRouterRedux = require('react-router-redux');
var _AbstractResolver2 = require('./AbstractResolver');

@@ -137,3 +139,3 @@

_this2.push({
_this2.pushItem({
params: params,

@@ -165,4 +167,60 @@ path: path,

}();
this.push = function () {
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(to) {
var dispatch, location;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
dispatch = _this2.store.dispatch;
location = _this2.makeLocation(to);
_context2.next = 4;
return _this2.resolve(location);
case 4:
dispatch((0, _reactRouterRedux.push)(location));
case 5:
case 'end':
return _context2.stop();
}
}
}, _callee2, _this2);
}));
return function (_x2) {
return _ref4.apply(this, arguments);
};
}();
this.replace = function () {
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(to) {
var dispatch, location;
return regeneratorRuntime.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
dispatch = _this2.store.dispatch;
location = _this2.makeLocation(to);
_context3.next = 4;
return _this2.resolve(location);
case 4:
dispatch((0, _reactRouterRedux.replace)(location));
case 5:
case 'end':
return _context3.stop();
}
}
}, _callee3, _this2);
}));
return function (_x3) {
return _ref5.apply(this, arguments);
};
}();
};
exports.default = ReduxResolver;

2

package.json
{
"name": "react-isomorphic-tools",
"version": "3.0.0-alpha.16",
"version": "3.0.0-alpha.17",
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering",

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

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