@lwrjs/nunjucks-view-provider 0.10.12 → 0.10.14

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.
@@ -78,7 +78,7 @@ var NunJucksViewProvider = class {
78
78
  }
79
79
  const sourceDir = import_path.default.dirname(sourcePath);
80
80
  const viewSource = (0, import_shared_utils.getViewSourceFromFile)(sourcePath);
81
- const {content, data} = (0, import_gray_matter.default)(viewSource.originalSource);
81
+ const {content, data} = (0, import_gray_matter.default)(viewSource.originalSource, {});
82
82
  const {contentDir, layoutsDir, rootDir, watcher} = this;
83
83
  const nunjucksCustomLoader = new import_nunjucks_env_utils.NunjucksCustomLoader({contentDir, layoutsDir, rootDir, sourceDir});
84
84
  if (watcher) {
package/build/es/index.js CHANGED
@@ -52,7 +52,7 @@ export default class NunJucksViewProvider {
52
52
  // Retrieve the file contents and create the Compiled View
53
53
  const sourceDir = path.dirname(sourcePath);
54
54
  const viewSource = getViewSourceFromFile(sourcePath);
55
- const { content, data } = grayMatter(viewSource.originalSource);
55
+ const { content, data } = grayMatter(viewSource.originalSource, {}); // Pass empty options bucket to disable gray-matter cache
56
56
  const { contentDir, layoutsDir, rootDir, watcher } = this;
57
57
  // In order to resolve relative paths for Nunjucks, we need to create a CustomLoader per View discovered
58
58
  // Although we could reuse it, the perf is negligible and the code its cleaner this way
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.10.12",
7
+ "version": "0.10.14",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,16 +30,16 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/shared-utils": "0.10.12",
33
+ "@lwrjs/shared-utils": "0.10.14",
34
34
  "gray-matter": "^4.0.2",
35
35
  "nunjucks": "^3.2.4",
36
36
  "parse5-sax-parser": "^6.0.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@lwrjs/types": "0.10.12"
39
+ "@lwrjs/types": "0.10.14"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=16.0.0"
43
43
  },
44
- "gitHead": "d8e2e471803239473e3bc4c68a9bccf3485d57a3"
44
+ "gitHead": "18b56d8abc53162b35a591b13a728ab749d8148c"
45
45
  }