@docusaurus/plugin-client-redirects 3.10.1-canary-6610 → 3.10.1-canary-6612

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.
@@ -73,7 +73,7 @@ function validateCollectedRedirects(redirects, pluginContext) {
73
73
  try {
74
74
  return decodeURI(new URL(to, 'https://example.com').pathname);
75
75
  }
76
- catch (e) { }
76
+ catch { }
77
77
  }
78
78
  return undefined;
79
79
  })
@@ -24,7 +24,7 @@ function searchAnchorForwarding(toUrl) {
24
24
  const containsSearchOrAnchor = url.search || url.hash;
25
25
  return !containsSearchOrAnchor;
26
26
  }
27
- catch (e) {
27
+ catch {
28
28
  return false;
29
29
  }
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-client-redirects",
3
- "version": "3.10.1-canary-6610",
3
+ "version": "3.10.1-canary-6612",
4
4
  "description": "Client redirects plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -18,18 +18,18 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "3.10.1-canary-6610",
22
- "@docusaurus/logger": "3.10.1-canary-6610",
23
- "@docusaurus/utils": "3.10.1-canary-6610",
24
- "@docusaurus/utils-common": "3.10.1-canary-6610",
25
- "@docusaurus/utils-validation": "3.10.1-canary-6610",
21
+ "@docusaurus/core": "3.10.1-canary-6612",
22
+ "@docusaurus/logger": "3.10.1-canary-6612",
23
+ "@docusaurus/utils": "3.10.1-canary-6612",
24
+ "@docusaurus/utils-common": "3.10.1-canary-6612",
25
+ "@docusaurus/utils-validation": "3.10.1-canary-6612",
26
26
  "eta": "^2.2.0",
27
27
  "fs-extra": "^11.2.0",
28
28
  "lodash": "^4.17.21",
29
29
  "tslib": "^2.6.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@docusaurus/types": "3.10.1-canary-6610"
32
+ "@docusaurus/types": "3.10.1-canary-6612"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^19.2.5",
@@ -38,5 +38,5 @@
38
38
  "engines": {
39
39
  "node": ">=24.14"
40
40
  },
41
- "gitHead": "0d5acb95facc8da12797122d99a202673d130b93"
41
+ "gitHead": "4d0d5252d3de5fa3ae601808796280171962535e"
42
42
  }
@@ -101,7 +101,7 @@ function validateCollectedRedirects(
101
101
  if (to.startsWith('/')) {
102
102
  try {
103
103
  return decodeURI(new URL(to, 'https://example.com').pathname);
104
- } catch (e) {}
104
+ } catch {}
105
105
  }
106
106
  return undefined;
107
107
  })
@@ -28,7 +28,7 @@ function searchAnchorForwarding(toUrl: string): boolean {
28
28
  const url = new URL(toUrl, 'https://example.com');
29
29
  const containsSearchOrAnchor = url.search || url.hash;
30
30
  return !containsSearchOrAnchor;
31
- } catch (e) {
31
+ } catch {
32
32
  return false;
33
33
  }
34
34
  }