@tramvai/module-router 2.159.1 → 2.159.4

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.
@@ -11,8 +11,12 @@ const clientTokens = [
11
11
  useFactory: ({ store }) => {
12
12
  return {
13
13
  onBlock: async (navigation) => {
14
- var _a;
15
- let error = new BlockError({ message: `Url ${(_a = navigation.to) === null || _a === void 0 ? void 0 : _a.actualPath} is blocked` });
14
+ var _a, _b, _c;
15
+ let error = new BlockError({
16
+ message: `Url ${(_a = navigation.to) === null || _a === void 0 ? void 0 : _a.actualPath} is blocked`,
17
+ prevUrl: (_c = (_b = navigation.fromUrl) === null || _b === void 0 ? void 0 : _b.href) !== null && _c !== void 0 ? _c : window.location.href,
18
+ nextUrl: navigation.url.href,
19
+ });
16
20
  error = makeErrorSilent(error);
17
21
  store.dispatch(setPageErrorEvent(error));
18
22
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-router",
3
- "version": "2.159.1",
3
+ "version": "2.159.4",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "browser": {
@@ -28,25 +28,25 @@
28
28
  "@tinkoff/errors": "0.3.8",
29
29
  "@tinkoff/router": "0.2.19",
30
30
  "@tinkoff/url": "0.8.6",
31
- "@tramvai/react": "2.159.1",
31
+ "@tramvai/react": "2.159.4",
32
32
  "@tramvai/safe-strings": "0.5.12",
33
- "@tramvai/tokens-child-app": "2.159.1",
34
- "@tramvai/tokens-render": "2.159.1",
35
- "@tramvai/tokens-router": "2.159.1",
36
- "@tramvai/tokens-server": "2.159.1",
37
- "@tramvai/experiments": "2.159.1"
33
+ "@tramvai/tokens-child-app": "2.159.4",
34
+ "@tramvai/tokens-render": "2.159.4",
35
+ "@tramvai/tokens-router": "2.159.4",
36
+ "@tramvai/tokens-server": "2.159.4",
37
+ "@tramvai/experiments": "2.159.4"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@tinkoff/utils": "^2.1.2",
41
- "@tramvai/cli": "2.159.1",
42
- "@tramvai/core": "2.159.1",
43
- "@tramvai/module-log": "2.159.1",
44
- "@tramvai/module-server": "2.159.1",
45
- "@tramvai/papi": "2.159.1",
46
- "@tramvai/state": "2.159.1",
47
- "@tramvai/test-helpers": "2.159.1",
48
- "@tramvai/test-mocks": "2.159.1",
49
- "@tramvai/tokens-common": "2.159.1",
41
+ "@tramvai/cli": "2.159.4",
42
+ "@tramvai/core": "2.159.4",
43
+ "@tramvai/module-log": "2.159.4",
44
+ "@tramvai/module-server": "2.159.4",
45
+ "@tramvai/papi": "2.159.4",
46
+ "@tramvai/state": "2.159.4",
47
+ "@tramvai/test-helpers": "2.159.4",
48
+ "@tramvai/test-mocks": "2.159.4",
49
+ "@tramvai/tokens-common": "2.159.4",
50
50
  "@tinkoff/dippy": "0.8.16",
51
51
  "react": "*",
52
52
  "tslib": "^2.4.0"