@lwrjs/markdown-view-provider 0.11.8 → 0.11.9

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.
@@ -73,7 +73,7 @@ var MarkdownViewProvider = class {
73
73
  throw new Error("Markdown View Provider must be initialized");
74
74
  }
75
75
  const viewSource = (0, import_shared_utils.getViewSourceFromFile)(sourcePath);
76
- const {content, data: viewMetadata} = (0, import_gray_matter.default)(viewSource.originalSource);
76
+ const {content, data: viewMetadata} = (0, import_gray_matter.default)(viewSource.originalSource, {});
77
77
  const vFile = (0, import_vfile.default)({path: sourcePath, contents: content});
78
78
  const {html, metadata: markdownMetadata} = await this.markdown.render(vFile);
79
79
  const {layoutTemplate, ...nonLwrManagedMetadata} = viewMetadata;
package/build/es/index.js CHANGED
@@ -47,7 +47,7 @@ export default class MarkdownViewProvider {
47
47
  }
48
48
  // Retrieve the file contents and create the Compiled View
49
49
  const viewSource = getViewSourceFromFile(sourcePath);
50
- const { content, data: viewMetadata } = grayMatter(viewSource.originalSource);
50
+ const { content, data: viewMetadata } = grayMatter(viewSource.originalSource, {}); // Pass empty options bucket to disable gray-matter cache
51
51
  // Keeping this information in vfile which will be passed to plugins.
52
52
  const vFile = vfile({ path: sourcePath, contents: content });
53
53
  const { html, metadata: markdownMetadata } = await this.markdown.render(vFile);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.8",
7
+ "version": "0.11.9",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/shared-utils": "0.11.8",
33
+ "@lwrjs/shared-utils": "0.11.9",
34
34
  "gray-matter": "^4.0.2",
35
35
  "hast-util-has-property": "^1.0.4",
36
36
  "hast-util-heading-rank": "^1.0.1",
@@ -46,10 +46,10 @@
46
46
  "vfile": "^4.2.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@lwrjs/types": "0.11.8"
49
+ "@lwrjs/types": "0.11.9"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=16.0.0"
53
53
  },
54
- "gitHead": "cf43e3672b6c2bb872b81c4704a7c23990752f9b"
54
+ "gitHead": "ea81230e871ef5dc4f2d0d3c7f04e63d2d3253e9"
55
55
  }