@breautek/router 4.1.1 → 4.1.2
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.
- package/dist/router.js +21 -21
- package/package.json +20 -20
- package/src/Router.tsx +1 -1
package/dist/router.js
CHANGED
|
@@ -537,7 +537,7 @@ class Router extends React__namespace.Component {
|
|
|
537
537
|
}
|
|
538
538
|
exitTransitionPromise.then(() => {
|
|
539
539
|
let entryTransitionPromise = null;
|
|
540
|
-
if (this.$incomingRoute.props.entryTransition) {
|
|
540
|
+
if (this.$incomingRoute && this.$incomingRoute.props.entryTransition) {
|
|
541
541
|
entryTransitionPromise = this.$incomingRoute.props.entryTransition.execute(this.$incomingRoute.getView(), this.$exitingRoute.getView());
|
|
542
542
|
}
|
|
543
543
|
else {
|
|
@@ -1019,7 +1019,7 @@ class TransitionSlide extends TransitionStrategy {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
1021
|
var name = "@breautek/router";
|
|
1022
|
-
var version = "4.1.
|
|
1022
|
+
var version = "4.1.2";
|
|
1023
1023
|
var description = "An alternate react router.";
|
|
1024
1024
|
var main = "dist/router.js";
|
|
1025
1025
|
var types = "dist/src/api.d.ts";
|
|
@@ -1056,32 +1056,32 @@ var peerDependencies = {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
var devDependencies = {
|
|
1058
1058
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
1059
|
-
"@rollup/plugin-json": "6.0
|
|
1059
|
+
"@rollup/plugin-json": "6.1.0",
|
|
1060
1060
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
1061
|
-
"@testing-library/jest-dom": "6.
|
|
1062
|
-
"@testing-library/react": "
|
|
1063
|
-
"@types/jest": "29.5.
|
|
1064
|
-
"@types/react": "18.2
|
|
1065
|
-
"@types/react-dom": "18.
|
|
1066
|
-
"@typescript-eslint/eslint-plugin": "
|
|
1067
|
-
"@typescript-eslint/parser": "
|
|
1068
|
-
ajv: "8.
|
|
1069
|
-
eslint: "8.
|
|
1070
|
-
"eslint-plugin-react": "7.
|
|
1071
|
-
glob: "10.3.
|
|
1061
|
+
"@testing-library/jest-dom": "6.4.5",
|
|
1062
|
+
"@testing-library/react": "15.0.7",
|
|
1063
|
+
"@types/jest": "29.5.12",
|
|
1064
|
+
"@types/react": "18.3.2",
|
|
1065
|
+
"@types/react-dom": "18.3.0",
|
|
1066
|
+
"@typescript-eslint/eslint-plugin": "7.9.0",
|
|
1067
|
+
"@typescript-eslint/parser": "7.9.0",
|
|
1068
|
+
ajv: "8.13.0",
|
|
1069
|
+
eslint: "8.56.0",
|
|
1070
|
+
"eslint-plugin-react": "7.34.1",
|
|
1071
|
+
glob: "10.3.15",
|
|
1072
1072
|
"ignore-styles": "5.0.1",
|
|
1073
1073
|
jest: "29.7.0",
|
|
1074
1074
|
"jest-environment-jsdom": "29.7.0",
|
|
1075
1075
|
"node-sass": "9.0.0",
|
|
1076
|
-
react: "18.
|
|
1077
|
-
"react-dom": "18.
|
|
1078
|
-
rollup: "4.
|
|
1076
|
+
react: "18.3.1",
|
|
1077
|
+
"react-dom": "18.3.1",
|
|
1078
|
+
rollup: "4.17.2",
|
|
1079
1079
|
"rollup-plugin-progress": "1.1.2",
|
|
1080
|
-
"rollup-plugin-sass": "1.12.
|
|
1080
|
+
"rollup-plugin-sass": "1.12.22",
|
|
1081
1081
|
"rollup-plugin-typescript2": "0.36.0",
|
|
1082
|
-
"ts-jest": "29.1.
|
|
1083
|
-
"ts-node": "10.9.
|
|
1084
|
-
typescript: "5.
|
|
1082
|
+
"ts-jest": "29.1.2",
|
|
1083
|
+
"ts-node": "10.9.2",
|
|
1084
|
+
typescript: "5.4.5"
|
|
1085
1085
|
};
|
|
1086
1086
|
var packageInfo = {
|
|
1087
1087
|
name: name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breautek/router",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "An alternate react router.",
|
|
5
5
|
"main": "dist/router.js",
|
|
6
6
|
"types": "dist/src/api.d.ts",
|
|
@@ -37,31 +37,31 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
40
|
-
"@rollup/plugin-json": "6.0
|
|
40
|
+
"@rollup/plugin-json": "6.1.0",
|
|
41
41
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
42
|
-
"@testing-library/jest-dom": "6.
|
|
43
|
-
"@testing-library/react": "
|
|
44
|
-
"@types/jest": "29.5.
|
|
45
|
-
"@types/react": "18.2
|
|
46
|
-
"@types/react-dom": "18.
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "
|
|
48
|
-
"@typescript-eslint/parser": "
|
|
49
|
-
"ajv": "8.
|
|
50
|
-
"eslint": "8.
|
|
51
|
-
"eslint-plugin-react": "7.
|
|
52
|
-
"glob": "10.3.
|
|
42
|
+
"@testing-library/jest-dom": "6.4.5",
|
|
43
|
+
"@testing-library/react": "15.0.7",
|
|
44
|
+
"@types/jest": "29.5.12",
|
|
45
|
+
"@types/react": "18.3.2",
|
|
46
|
+
"@types/react-dom": "18.3.0",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "7.9.0",
|
|
48
|
+
"@typescript-eslint/parser": "7.9.0",
|
|
49
|
+
"ajv": "8.13.0",
|
|
50
|
+
"eslint": "8.56.0",
|
|
51
|
+
"eslint-plugin-react": "7.34.1",
|
|
52
|
+
"glob": "10.3.15",
|
|
53
53
|
"ignore-styles": "5.0.1",
|
|
54
54
|
"jest": "29.7.0",
|
|
55
55
|
"jest-environment-jsdom": "29.7.0",
|
|
56
56
|
"node-sass": "9.0.0",
|
|
57
|
-
"react": "18.
|
|
58
|
-
"react-dom": "18.
|
|
59
|
-
"rollup": "4.
|
|
57
|
+
"react": "18.3.1",
|
|
58
|
+
"react-dom": "18.3.1",
|
|
59
|
+
"rollup": "4.17.2",
|
|
60
60
|
"rollup-plugin-progress": "1.1.2",
|
|
61
|
-
"rollup-plugin-sass": "1.12.
|
|
61
|
+
"rollup-plugin-sass": "1.12.22",
|
|
62
62
|
"rollup-plugin-typescript2": "0.36.0",
|
|
63
|
-
"ts-jest": "29.1.
|
|
64
|
-
"ts-node": "10.9.
|
|
65
|
-
"typescript": "5.
|
|
63
|
+
"ts-jest": "29.1.2",
|
|
64
|
+
"ts-node": "10.9.2",
|
|
65
|
+
"typescript": "5.4.5"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/Router.tsx
CHANGED
|
@@ -185,7 +185,7 @@ export class Router<TRouterProps extends IRouterProps = IRouterProps> extends Re
|
|
|
185
185
|
|
|
186
186
|
exitTransitionPromise.then(() => {
|
|
187
187
|
let entryTransitionPromise = null;
|
|
188
|
-
if (this.$incomingRoute.props.entryTransition) {
|
|
188
|
+
if (this.$incomingRoute && this.$incomingRoute.props.entryTransition) {
|
|
189
189
|
entryTransitionPromise = this.$incomingRoute.props.entryTransition.execute(this.$incomingRoute.getView(), this.$exitingRoute.getView());
|
|
190
190
|
}
|
|
191
191
|
else {
|