@tinkoff/router 0.5.96 → 0.5.99
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.
|
@@ -160,7 +160,7 @@ class AbstractRouter {
|
|
|
160
160
|
const { url, replace, params, navigateState, code, viewTransition } = navigateOptions;
|
|
161
161
|
const prevNavigation = redirect
|
|
162
162
|
? this.lastNavigation
|
|
163
|
-
: this.currentNavigation ?? this.lastNavigation;
|
|
163
|
+
: (this.currentNavigation ?? this.lastNavigation);
|
|
164
164
|
if (!url && !prevNavigation) {
|
|
165
165
|
throw new Error('Navigate url should be specified and cannot be omitted for first navigation');
|
|
166
166
|
}
|
|
@@ -160,7 +160,7 @@ class AbstractRouter {
|
|
|
160
160
|
const { url, replace, params, navigateState, code, viewTransition } = navigateOptions;
|
|
161
161
|
const prevNavigation = redirect
|
|
162
162
|
? this.lastNavigation
|
|
163
|
-
: this.currentNavigation ?? this.lastNavigation;
|
|
163
|
+
: (this.currentNavigation ?? this.lastNavigation);
|
|
164
164
|
if (!url && !prevNavigation) {
|
|
165
165
|
throw new Error('Navigate url should be specified and cannot be omitted for first navigation');
|
|
166
166
|
}
|
package/lib/router/abstract.js
CHANGED
|
@@ -169,7 +169,7 @@ class AbstractRouter {
|
|
|
169
169
|
const { url, replace, params, navigateState, code, viewTransition } = navigateOptions;
|
|
170
170
|
const prevNavigation = redirect
|
|
171
171
|
? this.lastNavigation
|
|
172
|
-
: this.currentNavigation ?? this.lastNavigation;
|
|
172
|
+
: (this.currentNavigation ?? this.lastNavigation);
|
|
173
173
|
if (!url && !prevNavigation) {
|
|
174
174
|
throw new Error('Navigate url should be specified and cannot be omitted for first navigation');
|
|
175
175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinkoff/router",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.99",
|
|
4
4
|
"description": "router",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"use-sync-external-store": "^1.2.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@tramvai/core": "5.
|
|
31
|
+
"@tramvai/core": "5.41.2",
|
|
32
32
|
"react": ">=16.14.0",
|
|
33
33
|
"tslib": "^2.4.0"
|
|
34
34
|
},
|