mdts 0.4.2 → 0.4.4

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.
@@ -6,9 +6,8 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <link rel="stylesheet" href="/markdown.css" />
8
8
  <title>mdts - Markdown file viewer</title>
9
- <script defer src="bundle.js"></script></head>
9
+ <script defer src="/bundle.js"></script></head>
10
10
  <body>
11
11
  <div id="root"></div>
12
- <script defer src="/bundle.js"></script>
13
12
  </body>
14
13
  </html>
@@ -43,7 +43,7 @@ const outlineRouter = (directory) => {
43
43
  }
44
44
  try {
45
45
  const absolutePath = filePath === 'mdts-welcome-markdown.md'
46
- ? path_1.default.join(__dirname, '../../../public/welcome.md')
46
+ ? path_1.default.join(__dirname, '../public/welcome.md')
47
47
  : path_1.default.join(directory, filePath);
48
48
  const outline = getMarkdownOutline(absolutePath);
49
49
  res.json(outline);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdts",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "A markdown preview server.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",