@docusaurus/utils 0.0.0-4902 → 0.0.0-4912
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/gitUtils.d.ts +4 -4
- package/package.json +6 -6
- package/src/gitUtils.ts +4 -4
package/lib/gitUtils.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ export declare class FileNotTrackedError extends Error {
|
|
|
15
15
|
* It gets the commit date instead of author date so that amended commits
|
|
16
16
|
* can have their dates updated.
|
|
17
17
|
*
|
|
18
|
-
* @throws {GitNotFoundError} If git is not found in `PATH`.
|
|
19
|
-
* @throws {FileNotTrackedError} If the current file is not tracked by git.
|
|
18
|
+
* @throws {@link GitNotFoundError} If git is not found in `PATH`.
|
|
19
|
+
* @throws {@link FileNotTrackedError} If the current file is not tracked by git.
|
|
20
20
|
* @throws Also throws when `git log` exited with non-zero, or when it outputs
|
|
21
21
|
* unexpected text.
|
|
22
22
|
*/
|
|
@@ -41,8 +41,8 @@ file: string, args: {
|
|
|
41
41
|
* It gets the commit date instead of author date so that amended commits
|
|
42
42
|
* can have their dates updated.
|
|
43
43
|
*
|
|
44
|
-
* @throws {GitNotFoundError} If git is not found in `PATH`.
|
|
45
|
-
* @throws {FileNotTrackedError} If the current file is not tracked by git.
|
|
44
|
+
* @throws {@link GitNotFoundError} If git is not found in `PATH`.
|
|
45
|
+
* @throws {@link FileNotTrackedError} If the current file is not tracked by git.
|
|
46
46
|
* @throws Also throws when `git log` exited with non-zero, or when it outputs
|
|
47
47
|
* unexpected text.
|
|
48
48
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/utils",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4912",
|
|
4
4
|
"description": "Node utility functions for Docusaurus packages.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/logger": "0.0.0-
|
|
21
|
+
"@docusaurus/logger": "0.0.0-4912",
|
|
22
22
|
"@svgr/webpack": "^6.2.1",
|
|
23
23
|
"file-loader": "^6.2.0",
|
|
24
24
|
"fs-extra": "^10.1.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"micromatch": "^4.0.5",
|
|
31
31
|
"resolve-pathname": "^3.0.0",
|
|
32
32
|
"shelljs": "^0.8.5",
|
|
33
|
-
"tslib": "^2.
|
|
33
|
+
"tslib": "^2.4.0",
|
|
34
34
|
"url-loader": "^4.1.1",
|
|
35
35
|
"webpack": "^5.72.0"
|
|
36
36
|
},
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"node": ">=14"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@docusaurus/types": "0.0.0-
|
|
41
|
+
"@docusaurus/types": "0.0.0-4912",
|
|
42
42
|
"@types/dedent": "^0.7.0",
|
|
43
43
|
"@types/github-slugger": "^1.3.0",
|
|
44
44
|
"@types/micromatch": "^4.0.2",
|
|
45
|
-
"@types/react-dom": "^18.0.
|
|
45
|
+
"@types/react-dom": "^18.0.2",
|
|
46
46
|
"dedent": "^0.7.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ce377bc115a213a7bfbc2230fbee709722df264d"
|
|
49
49
|
}
|
package/src/gitUtils.ts
CHANGED
|
@@ -19,8 +19,8 @@ export class FileNotTrackedError extends Error {}
|
|
|
19
19
|
* It gets the commit date instead of author date so that amended commits
|
|
20
20
|
* can have their dates updated.
|
|
21
21
|
*
|
|
22
|
-
* @throws {GitNotFoundError} If git is not found in `PATH`.
|
|
23
|
-
* @throws {FileNotTrackedError} If the current file is not tracked by git.
|
|
22
|
+
* @throws {@link GitNotFoundError} If git is not found in `PATH`.
|
|
23
|
+
* @throws {@link FileNotTrackedError} If the current file is not tracked by git.
|
|
24
24
|
* @throws Also throws when `git log` exited with non-zero, or when it outputs
|
|
25
25
|
* unexpected text.
|
|
26
26
|
*/
|
|
@@ -47,8 +47,8 @@ export function getFileCommitDate(
|
|
|
47
47
|
* It gets the commit date instead of author date so that amended commits
|
|
48
48
|
* can have their dates updated.
|
|
49
49
|
*
|
|
50
|
-
* @throws {GitNotFoundError} If git is not found in `PATH`.
|
|
51
|
-
* @throws {FileNotTrackedError} If the current file is not tracked by git.
|
|
50
|
+
* @throws {@link GitNotFoundError} If git is not found in `PATH`.
|
|
51
|
+
* @throws {@link FileNotTrackedError} If the current file is not tracked by git.
|
|
52
52
|
* @throws Also throws when `git log` exited with non-zero, or when it outputs
|
|
53
53
|
* unexpected text.
|
|
54
54
|
*/
|