@lwrjs/markdown-view-provider 0.22.8 → 0.22.10

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.
@@ -26,8 +26,8 @@ __markAsModule(exports);
26
26
  __export(exports, {
27
27
  default: () => src_default
28
28
  });
29
- var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
30
29
  var import_path = __toModule(require("path"));
30
+ var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
31
31
  var import_gray_matter = __toModule(require("gray-matter"));
32
32
  var import_markdown_parser = __toModule(require("./markdown-parser/markdown-parser.cjs"));
33
33
  var import_vfile = __toModule(require("vfile"));
@@ -91,7 +91,7 @@ var MarkdownViewProvider = class {
91
91
  };
92
92
  }
93
93
  };
94
- const fullPath = import_path.default.resolve(sourcePath);
94
+ const fullPath = (0, import_shared_utils.toForwardSlash)(import_path.default.resolve(sourcePath));
95
95
  if (this.watcher && !this.cachedViews.has(fullPath)) {
96
96
  this.cachedViews.set(fullPath, {compiledView, viewId});
97
97
  this.watcher.add(fullPath);
package/build/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getViewSourceFromFile, canResolveView } from '@lwrjs/shared-utils';
2
1
  import path from 'path';
2
+ import { getViewSourceFromFile, canResolveView, toForwardSlash } from '@lwrjs/shared-utils';
3
3
  import grayMatter from 'gray-matter';
4
4
  import createMarkdownParser from './markdown-parser/markdown-parser.js';
5
5
  import vfile from 'vfile';
@@ -67,7 +67,7 @@ export default class MarkdownViewProvider {
67
67
  },
68
68
  };
69
69
  // Watch for changes
70
- const fullPath = path.resolve(sourcePath);
70
+ const fullPath = toForwardSlash(path.resolve(sourcePath));
71
71
  if (this.watcher && !this.cachedViews.has(fullPath)) {
72
72
  this.cachedViews.set(fullPath, { compiledView, viewId });
73
73
  this.watcher.add(fullPath);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.22.8",
7
+ "version": "0.22.10",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "build": "tsc -b"
34
34
  },
35
35
  "dependencies": {
36
- "@lwrjs/shared-utils": "0.22.8",
36
+ "@lwrjs/shared-utils": "0.22.10",
37
37
  "gray-matter": "^4.0.2",
38
38
  "hast-util-has-property": "^1.0.4",
39
39
  "hast-util-heading-rank": "^1.0.1",
@@ -49,10 +49,10 @@
49
49
  "vfile": "^4.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@lwrjs/types": "0.22.8"
52
+ "@lwrjs/types": "0.22.10"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=22.0.0"
56
56
  },
57
- "gitHead": "66f71f33f5b12fa4e7c7969f0a6239a590c999d1"
57
+ "gitHead": "52b77087a10567ad62b48bde04607c627580105d"
58
58
  }