@lwrjs/nunjucks-view-provider 0.11.7 → 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.
- package/build/cjs/index.cjs +1 -1
- package/build/es/index.js +1 -1
- package/package.json +4 -4
package/build/cjs/index.cjs
CHANGED
|
@@ -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.11.
|
|
7
|
+
"version": "0.11.9",
|
|
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.11.
|
|
33
|
+
"@lwrjs/shared-utils": "0.11.9",
|
|
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.11.
|
|
39
|
+
"@lwrjs/types": "0.11.9"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=16.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ea81230e871ef5dc4f2d0d3c7f04e63d2d3253e9"
|
|
45
45
|
}
|