@docusaurus/utils 3.10.1-canary-6651 → 3.10.1-canary-6653

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/lib/urlUtils.d.ts CHANGED
@@ -32,8 +32,8 @@ export declare function fileToPath(file: string): string;
32
32
  * Similar to `encodeURI`, but uses `encodeURIComponent` and assumes there's no
33
33
  * query.
34
34
  *
35
- * `encodeURI("/question?/answer")` => `"/question?/answer#section"`;
36
- * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23foo"`
35
+ * `encodeURI("/question?/answer")` => `"/question?/answer"`;
36
+ * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23section"`
37
37
  */
38
38
  export declare function encodePath(userPath: string): string;
39
39
  /**
package/lib/urlUtils.js CHANGED
@@ -127,8 +127,8 @@ function fileToPath(file) {
127
127
  * Similar to `encodeURI`, but uses `encodeURIComponent` and assumes there's no
128
128
  * query.
129
129
  *
130
- * `encodeURI("/question?/answer")` => `"/question?/answer#section"`;
131
- * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23foo"`
130
+ * `encodeURI("/question?/answer")` => `"/question?/answer"`;
131
+ * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23section"`
132
132
  */
133
133
  function encodePath(userPath) {
134
134
  return userPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/utils",
3
- "version": "3.10.1-canary-6651",
3
+ "version": "3.10.1-canary-6653",
4
4
  "description": "Node utility functions for Docusaurus packages.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/logger": "3.10.1-canary-6651",
22
- "@docusaurus/types": "3.10.1-canary-6651",
23
- "@docusaurus/utils-common": "3.10.1-canary-6651",
21
+ "@docusaurus/logger": "3.10.1-canary-6653",
22
+ "@docusaurus/types": "3.10.1-canary-6653",
23
+ "@docusaurus/utils-common": "3.10.1-canary-6653",
24
24
  "escape-string-regexp": "^4.0.0",
25
25
  "execa": "^5.1.1",
26
26
  "file-loader": "^6.2.0",
@@ -47,8 +47,7 @@
47
47
  "@types/dedent": "^0.7.0",
48
48
  "@types/micromatch": "^4.0.10",
49
49
  "@types/react-dom": "^19.2.3",
50
- "dedent": "^0.7.0",
51
- "tmp-promise": "^3.0.3"
50
+ "dedent": "^0.7.0"
52
51
  },
53
- "gitHead": "24bda5c01915c8e8c37b1177d1f9368f8eb3aa1a"
52
+ "gitHead": "239dcb7c1dfb1fda489591af67ac0a06864af4b6"
54
53
  }
package/src/urlUtils.ts CHANGED
@@ -138,8 +138,8 @@ export function fileToPath(file: string): string {
138
138
  * Similar to `encodeURI`, but uses `encodeURIComponent` and assumes there's no
139
139
  * query.
140
140
  *
141
- * `encodeURI("/question?/answer")` => `"/question?/answer#section"`;
142
- * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23foo"`
141
+ * `encodeURI("/question?/answer")` => `"/question?/answer"`;
142
+ * `encodePath("/question?/answer#section")` => `"/question%3F/answer%23section"`
143
143
  */
144
144
  export function encodePath(userPath: string): string {
145
145
  return userPath