@docusaurus/plugin-content-docs 0.0.0-5847 → 0.0.0-5850
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/lastUpdate.js +1 -1
- package/package.json +9 -9
- package/src/lastUpdate.ts +2 -1
package/lib/lastUpdate.js
CHANGED
|
@@ -19,7 +19,7 @@ async function getFileLastUpdate(filePath) {
|
|
|
19
19
|
// Wrap in try/catch in case the shell commands fail
|
|
20
20
|
// (e.g. project doesn't use Git, etc).
|
|
21
21
|
try {
|
|
22
|
-
const result = (0, utils_1.getFileCommitDate)(filePath, {
|
|
22
|
+
const result = await (0, utils_1.getFileCommitDate)(filePath, {
|
|
23
23
|
age: 'newest',
|
|
24
24
|
includeAuthor: true,
|
|
25
25
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-docs",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5850",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@docusaurus/core": "0.0.0-
|
|
39
|
-
"@docusaurus/logger": "0.0.0-
|
|
40
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
41
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
42
|
-
"@docusaurus/types": "0.0.0-
|
|
43
|
-
"@docusaurus/utils": "0.0.0-
|
|
44
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
38
|
+
"@docusaurus/core": "0.0.0-5850",
|
|
39
|
+
"@docusaurus/logger": "0.0.0-5850",
|
|
40
|
+
"@docusaurus/mdx-loader": "0.0.0-5850",
|
|
41
|
+
"@docusaurus/module-type-aliases": "0.0.0-5850",
|
|
42
|
+
"@docusaurus/types": "0.0.0-5850",
|
|
43
|
+
"@docusaurus/utils": "0.0.0-5850",
|
|
44
|
+
"@docusaurus/utils-validation": "0.0.0-5850",
|
|
45
45
|
"@types/react-router-config": "^5.0.7",
|
|
46
46
|
"combine-promises": "^1.1.0",
|
|
47
47
|
"fs-extra": "^11.1.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=18.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "eb765ec0c438553dc61bdd1de3e61cf6357bbbbf"
|
|
69
69
|
}
|
package/src/lastUpdate.ts
CHANGED
|
@@ -25,10 +25,11 @@ export async function getFileLastUpdate(
|
|
|
25
25
|
// Wrap in try/catch in case the shell commands fail
|
|
26
26
|
// (e.g. project doesn't use Git, etc).
|
|
27
27
|
try {
|
|
28
|
-
const result = getFileCommitDate(filePath, {
|
|
28
|
+
const result = await getFileCommitDate(filePath, {
|
|
29
29
|
age: 'newest',
|
|
30
30
|
includeAuthor: true,
|
|
31
31
|
});
|
|
32
|
+
|
|
32
33
|
return {timestamp: result.timestamp, author: result.author};
|
|
33
34
|
} catch (err) {
|
|
34
35
|
if (err instanceof GitNotFoundError) {
|