@docusaurus/plugin-content-blog 3.10.1-canary-6609 → 3.10.1-canary-6611

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.
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
1
7
  import type { BlogPostFrontMatter } from '@docusaurus/plugin-content-blog';
2
8
  export declare function validateBlogPostFrontMatter(frontMatter: {
3
9
  [key: string]: unknown;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateBlogPostFrontMatter = validateBlogPostFrontMatter;
4
2
  /**
5
3
  * Copyright (c) Facebook, Inc. and its affiliates.
6
4
  *
7
5
  * This source code is licensed under the MIT license found in the
8
6
  * LICENSE file in the root directory of this source tree.
9
7
  */
8
+ /* eslint-disable camelcase */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.validateBlogPostFrontMatter = validateBlogPostFrontMatter;
10
11
  const utils_validation_1 = require("@docusaurus/utils-validation");
11
12
  const authorsSocials_1 = require("./authorsSocials");
12
13
  const BlogPostFrontMatterAuthorSchema = utils_validation_1.JoiFrontMatter.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "3.10.1-canary-6609",
3
+ "version": "3.10.1-canary-6611",
4
4
  "description": "Blog plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-content-blog.d.ts",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@docusaurus/core": "3.10.1-canary-6609",
35
- "@docusaurus/logger": "3.10.1-canary-6609",
36
- "@docusaurus/mdx-loader": "3.10.1-canary-6609",
37
- "@docusaurus/theme-common": "3.10.1-canary-6609",
38
- "@docusaurus/types": "3.10.1-canary-6609",
39
- "@docusaurus/utils": "3.10.1-canary-6609",
40
- "@docusaurus/utils-common": "3.10.1-canary-6609",
41
- "@docusaurus/utils-validation": "3.10.1-canary-6609",
34
+ "@docusaurus/core": "3.10.1-canary-6611",
35
+ "@docusaurus/logger": "3.10.1-canary-6611",
36
+ "@docusaurus/mdx-loader": "3.10.1-canary-6611",
37
+ "@docusaurus/theme-common": "3.10.1-canary-6611",
38
+ "@docusaurus/types": "3.10.1-canary-6611",
39
+ "@docusaurus/utils": "3.10.1-canary-6611",
40
+ "@docusaurus/utils-common": "3.10.1-canary-6611",
41
+ "@docusaurus/utils-validation": "3.10.1-canary-6611",
42
42
  "cheerio": "^1.2.0",
43
43
  "combine-promises": "^1.1.0",
44
44
  "feed": "^4.2.2",
@@ -63,5 +63,5 @@
63
63
  "@total-typescript/shoehorn": "^0.1.2",
64
64
  "tree-node-cli": "^1.6.0"
65
65
  },
66
- "gitHead": "e2ade0dcd6905504171b71c273f7ffae3fd1da2d"
66
+ "gitHead": "1415301312e8a95204263b5c23892b818deff26c"
67
67
  }
package/src/blogUtils.ts CHANGED
@@ -415,7 +415,7 @@ export async function generateBlogPosts(
415
415
  } catch (err) {
416
416
  throw new Error(
417
417
  `Processing of blog source file path=${blogSourceFile} failed.`,
418
- {cause: err as Error},
418
+ {cause: err},
419
419
  );
420
420
  }
421
421
  }
package/src/feed.ts CHANGED
@@ -323,7 +323,7 @@ async function createBlogFeedFile({
323
323
  await fs.outputFile(outputPath, feedContent);
324
324
  } catch (err) {
325
325
  throw new Error(`Generating ${feedType} feed failed.`, {
326
- cause: err as Error,
326
+ cause: err,
327
327
  });
328
328
  }
329
329
  }
@@ -4,6 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ /* eslint-disable camelcase */
8
+
7
9
  import {
8
10
  ContentVisibilitySchema,
9
11
  FrontMatterLastUpdateSchema,
@@ -7,8 +7,7 @@
7
7
  /// <reference types="@docusaurus/module-type-aliases" />
8
8
 
9
9
  declare module '@docusaurus/plugin-content-blog' {
10
- import type {LoadedMDXContent} from '@docusaurus/mdx-loader';
11
- import type {MDXOptions} from '@docusaurus/mdx-loader';
10
+ import type {LoadedMDXContent, MDXOptions} from '@docusaurus/mdx-loader';
12
11
  import type {
13
12
  FrontMatterTag,
14
13
  TagMetadata,