@docusaurus/core 0.0.0-4873 → 0.0.0-4875

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.
@@ -79,7 +79,7 @@ async function doRender(locals) {
79
79
  const metaAttributes = metaStrings.filter(Boolean);
80
80
  const { generatedFilesDir } = locals;
81
81
  const manifestPath = path.join(generatedFilesDir, 'client-manifest.json');
82
- const manifest = JSON.parse(await fs.readFile(manifestPath, 'utf8'));
82
+ const manifest = await fs.readJSON(manifestPath);
83
83
  // Get all required assets for this particular page based on client
84
84
  // manifest information.
85
85
  const modulesToBeLoaded = [...manifest.entrypoints, ...Array.from(modules)];
@@ -30,7 +30,7 @@ function ensureTranslationFileContent(content) {
30
30
  async function readTranslationFileContent(filePath) {
31
31
  if (await fs_extra_1.default.pathExists(filePath)) {
32
32
  try {
33
- const content = JSON.parse(await fs_extra_1.default.readFile(filePath, 'utf8'));
33
+ const content = await fs_extra_1.default.readJSON(filePath);
34
34
  ensureTranslationFileContent(content);
35
35
  return content;
36
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-4873",
4
+ "version": "0.0.0-4875",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,13 +41,13 @@
41
41
  "@babel/runtime": "^7.17.9",
42
42
  "@babel/runtime-corejs3": "^7.17.9",
43
43
  "@babel/traverse": "^7.17.9",
44
- "@docusaurus/cssnano-preset": "0.0.0-4873",
45
- "@docusaurus/logger": "0.0.0-4873",
46
- "@docusaurus/mdx-loader": "0.0.0-4873",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4875",
45
+ "@docusaurus/logger": "0.0.0-4875",
46
+ "@docusaurus/mdx-loader": "0.0.0-4875",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4873",
49
- "@docusaurus/utils-common": "0.0.0-4873",
50
- "@docusaurus/utils-validation": "0.0.0-4873",
48
+ "@docusaurus/utils": "0.0.0-4875",
49
+ "@docusaurus/utils-common": "0.0.0-4875",
50
+ "@docusaurus/utils-validation": "0.0.0-4875",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.4",
52
52
  "@svgr/webpack": "^6.2.1",
53
53
  "autoprefixer": "^10.4.4",
@@ -105,8 +105,8 @@
105
105
  "webpackbar": "^5.0.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@docusaurus/module-type-aliases": "0.0.0-4873",
109
- "@docusaurus/types": "0.0.0-4873",
108
+ "@docusaurus/module-type-aliases": "0.0.0-4875",
109
+ "@docusaurus/types": "0.0.0-4875",
110
110
  "@types/detect-port": "^1.3.2",
111
111
  "@types/nprogress": "^0.2.0",
112
112
  "@types/react-dom": "^18.0.0",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=14"
129
129
  },
130
- "gitHead": "67f271bb8cbb31afb9451fdc2a422053f1c7d932"
130
+ "gitHead": "ee48d072632c7eb6d03da4acf5800f8d42eee680"
131
131
  }