@uxf/router 11.111.2 → 11.114.0

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/router.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/router",
3
- "version": "11.111.2",
3
+ "version": "11.114.0",
4
4
  "description": "UXF Router",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/router#readme",
@@ -26,12 +26,12 @@
26
26
  "true-case-path": "2.2.1"
27
27
  },
28
28
  "peerDependencies": {
29
- "@uxf/core": "11.111.2",
29
+ "@uxf/core": "11.114.0",
30
30
  "next": ">= 12",
31
31
  "superstruct": "^2.0.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@uxf/core": "11.111.2",
34
+ "@uxf/core": "11.114.0",
35
35
  "next": "16.1.6",
36
36
  "superstruct": "^2.0.2"
37
37
  }
package/router.js CHANGED
@@ -39,7 +39,6 @@ function createRouter(routes, routerOptions) {
39
39
  throw new Error(`Route '${String(route)}' not found.`);
40
40
  }
41
41
  const restParams = {};
42
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
43
42
  Object.keys(params !== null && params !== void 0 ? params : empty_object_1.EMPTY_OBJECT).forEach((key) => {
44
43
  const value = params[key];
45
44
  const segment = `[${key}]`;
@@ -132,7 +131,6 @@ function createRouter(routes, routerOptions) {
132
131
  pathname: typeof routes[route].path === "string"
133
132
  ? routes[route].path
134
133
  : routes[route].path[(_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (0, throw_error_1.throwError)("Locale is required")],
135
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
136
134
  query: params !== null && params !== void 0 ? params : null,
137
135
  };
138
136
  },