javascript-solid-server 0.0.116 → 0.0.117

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -104,7 +104,11 @@ export function shouldServeMashlib(request, mashlibEnabled, contentType) {
104
104
  'application/json',
105
105
  'text/n3',
106
106
  'application/n-triples',
107
- 'application/rdf+xml'
107
+ 'application/rdf+xml',
108
+ 'text/markdown',
109
+ 'audio/mpegurl',
110
+ 'application/vnd.apple.mpegurl',
111
+ 'audio/x-scpls'
108
112
  ];
109
113
 
110
114
  const baseType = contentType.split(';')[0].trim().toLowerCase();
package/src/utils/url.js CHANGED
@@ -210,7 +210,11 @@ export function getContentType(filePath) {
210
210
  '.nt': 'application/n-triples',
211
211
  '.rdf': 'application/rdf+xml',
212
212
  '.nq': 'application/n-quads',
213
- '.trig': 'application/trig'
213
+ '.trig': 'application/trig',
214
+ '.md': 'text/markdown',
215
+ '.m3u': 'audio/mpegurl',
216
+ '.m3u8': 'application/vnd.apple.mpegurl',
217
+ '.pls': 'audio/x-scpls'
214
218
  };
215
219
  return types[ext] || 'application/octet-stream';
216
220
  }