@tiledesk/tiledesk-server 2.19.1 → 2.19.2

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/CHANGELOG.md CHANGED
@@ -5,9 +5,10 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
- # 2.19.1
8
+ # 2.19.2
9
9
  - Improved vLLM integration in order to support multiple servers
10
10
  - Added custom_regex option for .txt and .md file uploaded in a Knowledge Base
11
+ - Improved extension management in order to support markdown files
11
12
  - Updated tybot-connector to 2.1.1
12
13
 
13
14
  # 2.19.0
@@ -5,6 +5,7 @@ const fs = require('fs');
5
5
  const TEXT_MIME_TYPES = [
6
6
  'text/plain',
7
7
  'text/csv',
8
+ 'text/markdown',
8
9
  'image/svg+xml',
9
10
  'application/xml',
10
11
  'text/xml'
@@ -39,6 +40,9 @@ function areMimeTypesEquivalent(mimeType1, mimeType2) {
39
40
  'image/jpg': ['image/jpeg'],
40
41
  'application/x-zip-compressed': ['application/zip'],
41
42
  'application/zip': ['application/x-zip-compressed'],
43
+ 'text/markdown': ['text/plain', 'text/x-markdown'],
44
+ 'text/plain': ['text/markdown', 'text/x-markdown'],
45
+ 'text/x-markdown': ['text/markdown', 'text/plain'],
42
46
  };
43
47
 
44
48
  // Check if m1 is an alias of m2 or vice versa
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.19.1",
4
+ "version": "2.19.2",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
package/routes/filesp.js CHANGED
@@ -132,6 +132,9 @@ function areMimeTypesEquivalent(mimeType1, mimeType2) {
132
132
  'image/jpg': ['image/jpeg'],
133
133
  'application/x-zip-compressed': ['application/zip'],
134
134
  'application/zip': ['application/x-zip-compressed'],
135
+ 'text/markdown': ['text/plain', 'text/x-markdown'],
136
+ 'text/plain': ['text/markdown', 'text/x-markdown'],
137
+ 'text/x-markdown': ['text/markdown', 'text/plain'],
135
138
  };
136
139
 
137
140
  // Check if m1 is an alias of m2 or vice versa