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.26 to 3.0.0-alpha.27

128

dist/Resolver/AbstractResolver.js

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

this.resolve = function (location) {
return Promise.all([_this.resolveChunks(location), _this.resolveData(location)]);
return _this.isLock() ? _this.unLock() : Promise.all([_this.resolveChunks(location), _this.resolveData(location)]);
};

@@ -149,78 +149,80 @@

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.prev = 1;
_context2.next = 4;
return _this.resolve(location);
this.lock = function () {
AbstractResolver.prototype.locked = true;
};
case 4:
_this.history.push(location);
_context2.next = 16;
break;
this.unLock = function () {
AbstractResolver.prototype.locked = false;
};
case 7:
_context2.prev = 7;
_context2.t0 = _context2['catch'](1);
this.isLock = function () {
return AbstractResolver.prototype.locked;
};
if (!(_context2.t0.code === 303)) {
_context2.next = 14;
break;
}
this.getManager = function (type) {
return 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:
if (!_this.locked) {
_context2.next = 2;
break;
}
_this.preloadSuccess();
_this.push(_context2.t0.to);
_context2.next = 16;
break;
return _context2.abrupt('return');
case 14:
_this.preloadFail(_context2.t0, location);
throw _context2.t0;
case 2:
location = _this.makeLocation(to);
_context2.prev = 3;
case 16:
case 'end':
return _context2.stop();
}
}
}, _callee2, _this, [[1, 7]]);
}));
_this.lock();
_context2.next = 7;
return _this.resolve(location);
return function (_x2) {
return _ref4.apply(this, arguments);
};
}();
case 7:
_this.history[type](location);
_context2.next = 21;
break;
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 10:
_context2.prev = 10;
_context2.t0 = _context2['catch'](3);
case 3:
_this.history.replace(location);
if (!(_context2.t0.code === 303)) {
_context2.next = 18;
break;
}
case 4:
case 'end':
return _context3.stop();
_this.unLock();
_this.preloadSuccess();
_this[type](_context2.t0.to);
_context2.next = 21;
break;
case 18:
_this.unLock();
_this.preloadFail(_context2.t0, location);
throw _context2.t0;
case 21:
case 'end':
return _context2.stop();
}
}
}
}, _callee3, _this);
}));
}, _callee2, _this, [[3, 10]]);
}));
return function (_x3) {
return _ref5.apply(this, arguments);
};
}();
return function (_x2) {
return _ref4.apply(this, arguments);
};
}();
};
this.push = this.getManager('push');
this.replace = this.getManager('replace');
};
exports.default = AbstractResolver;
{
"name": "react-isomorphic-tools",
"version": "3.0.0-alpha.26",
"version": "3.0.0-alpha.27",
"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