@docusaurus/plugin-content-docs 0.0.0-4331 → 0.0.0-4332
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 +2 -2
- package/package.json +9 -9
- package/src/lastUpdate.ts +2 -2
package/lib/lastUpdate.js
CHANGED
|
@@ -35,11 +35,11 @@ async function getFileLastUpdate(filePath) {
|
|
|
35
35
|
}
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
const result = shelljs_1.default.exec(`git log -1 --format=%ct,%an ${filePath}`, {
|
|
38
|
+
const result = shelljs_1.default.exec(`git log -1 --format=%ct,%an "${filePath}"`, {
|
|
39
39
|
silent: true,
|
|
40
40
|
});
|
|
41
41
|
if (result.code !== 0) {
|
|
42
|
-
throw new Error(`Retrieval of git history failed at ${filePath} with exit code ${result.code}: ${result.stderr}`);
|
|
42
|
+
throw new Error(`Retrieval of git history failed at "${filePath}" with exit code ${result.code}: ${result.stderr}`);
|
|
43
43
|
}
|
|
44
44
|
return getTimestampAndAuthor(result.stdout.trim());
|
|
45
45
|
}
|
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-4332",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-docs.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4332",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4332",
|
|
23
|
+
"@docusaurus/mdx-loader": "0.0.0-4332",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-4332",
|
|
25
|
+
"@docusaurus/utils-validation": "0.0.0-4332",
|
|
26
26
|
"combine-promises": "^1.1.0",
|
|
27
27
|
"escape-string-regexp": "^4.0.0",
|
|
28
28
|
"fs-extra": "^10.0.0",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"webpack": "^5.61.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
42
|
-
"@docusaurus/types": "0.0.0-
|
|
41
|
+
"@docusaurus/module-type-aliases": "0.0.0-4332",
|
|
42
|
+
"@docusaurus/types": "0.0.0-4332",
|
|
43
43
|
"@types/js-yaml": "^4.0.0",
|
|
44
44
|
"@types/picomatch": "^2.2.1",
|
|
45
45
|
"commander": "^5.1.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": ">=14"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "9b03ea6ebbf88ce6d52bfd5b6abe7f55c52a66a8"
|
|
57
57
|
}
|
package/src/lastUpdate.ts
CHANGED
|
@@ -43,12 +43,12 @@ export async function getFileLastUpdate(
|
|
|
43
43
|
return null;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const result = shell.exec(`git log -1 --format=%ct,%an ${filePath}`, {
|
|
46
|
+
const result = shell.exec(`git log -1 --format=%ct,%an "${filePath}"`, {
|
|
47
47
|
silent: true,
|
|
48
48
|
});
|
|
49
49
|
if (result.code !== 0) {
|
|
50
50
|
throw new Error(
|
|
51
|
-
`Retrieval of git history failed at ${filePath} with exit code ${result.code}: ${result.stderr}`,
|
|
51
|
+
`Retrieval of git history failed at "${filePath}" with exit code ${result.code}: ${result.stderr}`,
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
return getTimestampAndAuthor(result.stdout.trim());
|