react-isomorphic-tools
Advanced tools
Comparing version 3.0.0-alpha.20 to 3.0.0-alpha.21
@@ -147,4 +147,58 @@ 'use strict'; | ||
}; | ||
this.push = function () { | ||
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(to) { | ||
var location; | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
while (1) { | ||
switch (_context2.prev = _context2.next) { | ||
case 0: | ||
location = _this.makeLocation(to); | ||
_context2.next = 3; | ||
return _this.resolve(location); | ||
case 3: | ||
_this.history.push(location); | ||
case 4: | ||
case 'end': | ||
return _context2.stop(); | ||
} | ||
} | ||
}, _callee2, _this); | ||
})); | ||
return function (_x2) { | ||
return _ref4.apply(this, arguments); | ||
}; | ||
}(); | ||
this.replace = function () { | ||
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(to) { | ||
var location; | ||
return regeneratorRuntime.wrap(function _callee3$(_context3) { | ||
while (1) { | ||
switch (_context3.prev = _context3.next) { | ||
case 0: | ||
location = _this.makeLocation(to); | ||
_context3.next = 3; | ||
return _this.resolve(location); | ||
case 3: | ||
_this.history.replace(location); | ||
case 4: | ||
case 'end': | ||
return _context3.stop(); | ||
} | ||
} | ||
}, _callee3, _this); | ||
})); | ||
return function (_x3) { | ||
return _ref5.apply(this, arguments); | ||
}; | ||
}(); | ||
}; | ||
exports.default = AbstractResolver; |
@@ -165,60 +165,4 @@ 'use strict'; | ||
}(); | ||
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; |
{ | ||
"name": "react-isomorphic-tools", | ||
"version": "3.0.0-alpha.20", | ||
"version": "3.0.0-alpha.21", | ||
"description": "Authorization, Fetcher, Preload. Tools for ServerSide rendering", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
137304
1337