@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 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.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.1",
1059
+ "@rollup/plugin-json": "6.1.0",
1060
1060
  "@rollup/plugin-node-resolve": "15.2.3",
1061
- "@testing-library/jest-dom": "6.1.4",
1062
- "@testing-library/react": "14.0.0",
1063
- "@types/jest": "29.5.6",
1064
- "@types/react": "18.2.33",
1065
- "@types/react-dom": "18.2.14",
1066
- "@typescript-eslint/eslint-plugin": "6.9.0",
1067
- "@typescript-eslint/parser": "6.9.0",
1068
- ajv: "8.12.0",
1069
- eslint: "8.52.0",
1070
- "eslint-plugin-react": "7.33.2",
1071
- glob: "10.3.10",
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.2.0",
1077
- "react-dom": "18.2.0",
1078
- rollup: "4.1.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.21",
1080
+ "rollup-plugin-sass": "1.12.22",
1081
1081
  "rollup-plugin-typescript2": "0.36.0",
1082
- "ts-jest": "29.1.1",
1083
- "ts-node": "10.9.1",
1084
- typescript: "5.2.2"
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.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.1",
40
+ "@rollup/plugin-json": "6.1.0",
41
41
  "@rollup/plugin-node-resolve": "15.2.3",
42
- "@testing-library/jest-dom": "6.1.4",
43
- "@testing-library/react": "14.0.0",
44
- "@types/jest": "29.5.6",
45
- "@types/react": "18.2.33",
46
- "@types/react-dom": "18.2.14",
47
- "@typescript-eslint/eslint-plugin": "6.9.0",
48
- "@typescript-eslint/parser": "6.9.0",
49
- "ajv": "8.12.0",
50
- "eslint": "8.52.0",
51
- "eslint-plugin-react": "7.33.2",
52
- "glob": "10.3.10",
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.2.0",
58
- "react-dom": "18.2.0",
59
- "rollup": "4.1.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.21",
61
+ "rollup-plugin-sass": "1.12.22",
62
62
  "rollup-plugin-typescript2": "0.36.0",
63
- "ts-jest": "29.1.1",
64
- "ts-node": "10.9.1",
65
- "typescript": "5.2.2"
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 {