@docusaurus/plugin-client-redirects 0.0.0-4695 → 0.0.0-4698
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.
|
@@ -69,8 +69,7 @@ async function writeRedirectFile(file) {
|
|
|
69
69
|
if (await fs_extra_1.default.pathExists(file.fileAbsolutePath)) {
|
|
70
70
|
throw new Error('The redirect plugin is not supposed to override existing files.');
|
|
71
71
|
}
|
|
72
|
-
await fs_extra_1.default.
|
|
73
|
-
await fs_extra_1.default.writeFile(file.fileAbsolutePath, file.fileContent,
|
|
72
|
+
await fs_extra_1.default.outputFile(file.fileAbsolutePath, file.fileContent,
|
|
74
73
|
// Hard security to prevent file overrides
|
|
75
74
|
// See https://stackoverflow.com/a/34187712/82609
|
|
76
75
|
{ flag: 'wx' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-client-redirects",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4698",
|
|
4
4
|
"description": "Client redirects plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-client-redirects.d.ts",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/utils": "0.0.0-
|
|
24
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4698",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-4698",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-4698",
|
|
24
|
+
"@docusaurus/utils-common": "0.0.0-4698",
|
|
25
|
+
"@docusaurus/utils-validation": "0.0.0-4698",
|
|
26
26
|
"eta": "^1.12.3",
|
|
27
27
|
"fs-extra": "^10.0.1",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"tslib": "^2.3.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
+
"@docusaurus/types": "0.0.0-4698"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "767623e1e1a5f3dfea660eb8a6733b65de59f1c0"
|
|
42
42
|
}
|
|
@@ -92,8 +92,7 @@ export async function writeRedirectFile(
|
|
|
92
92
|
'The redirect plugin is not supposed to override existing files.',
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
await fs.
|
|
96
|
-
await fs.writeFile(
|
|
95
|
+
await fs.outputFile(
|
|
97
96
|
file.fileAbsolutePath,
|
|
98
97
|
file.fileContent,
|
|
99
98
|
// Hard security to prevent file overrides
|