@steroidsjs/core 2.2.106 → 2.2.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,7 @@ var JwtHttpComponent = /** @class */ (function (_super) {
112
112
  if (!(error.response.status === 401
113
113
  && error.config
114
114
  && !error.config._isRetry
115
- && originalRequest.url !== this.getUrl((_c = this.refreshTokenRequest) === null || _c === void 0 ? void 0 : _c.url))) return [3 /*break*/, 4];
115
+ && originalRequest.url !== this.getUrl((_c = this.refreshTokenRequest) === null || _c === void 0 ? void 0 : _c.url))) return [3 /*break*/, 5];
116
116
  this.removeAccessToken();
117
117
  store = this._components.store;
118
118
  _e.label = 1;
@@ -135,7 +135,10 @@ var JwtHttpComponent = /** @class */ (function (_super) {
135
135
  _a = _e.sent();
136
136
  store.dispatch(auth_1.logout());
137
137
  return [3 /*break*/, 4];
138
- case 4: throw error;
138
+ case 4:
139
+ store.dispatch(auth_1.logout());
140
+ _e.label = 5;
141
+ case 5: throw error;
139
142
  }
140
143
  });
141
144
  }); });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.106",
3
+ "version": "2.2.108",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -213,8 +213,7 @@ function Router(props) {
213
213
  return activeRoute && activeRoute.role !== exports.ROUTER_ROLE_MODAL;
214
214
  });
215
215
  if (parentRouteId) {
216
- // TODO route params?..
217
- dispatch(router_1.goToRoute(parentRouteId));
216
+ dispatch(router_1.goToRoute(parentRouteId, routeParams));
218
217
  }
219
218
  }
220
219
  });