@caboodle-tech/node-simple-server 1.3.0 → 1.3.1
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/changelogs/v1.md +4 -0
- package/js/content-types.js +6 -0
- package/package.json +1 -1
- package/server.js +1 -1
package/changelogs/v1.md
CHANGED
package/js/content-types.js
CHANGED
|
@@ -11,6 +11,7 @@ const contentTypes = {
|
|
|
11
11
|
'.csv': 'text/csv',
|
|
12
12
|
'.doc': 'application/msword',
|
|
13
13
|
'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
14
|
+
'.eot': 'application/vnd.ms-fontobject',
|
|
14
15
|
'.epub': 'application/epub+zip',
|
|
15
16
|
'.gif': 'image/gif',
|
|
16
17
|
'.gz': 'application/gzip',
|
|
@@ -32,6 +33,7 @@ const contentTypes = {
|
|
|
32
33
|
'.odt': 'application/vnd.oasis.opendocument.text',
|
|
33
34
|
'.oga': 'audio/ogg',
|
|
34
35
|
'.ogv': 'video/ogg',
|
|
36
|
+
'.otf': 'font/otf',
|
|
35
37
|
'.pdf': 'application/pdf',
|
|
36
38
|
'.png': 'image/png',
|
|
37
39
|
'.ppt': 'application/vnd.ms-powerpoint',
|
|
@@ -41,12 +43,16 @@ const contentTypes = {
|
|
|
41
43
|
'.tif': 'image/tiff',
|
|
42
44
|
'.tiff': 'image/tiff',
|
|
43
45
|
'.ts': 'video/mp2t',
|
|
46
|
+
'.ttf': 'font/ttf',
|
|
44
47
|
'.txt': 'text/plain',
|
|
45
48
|
'.vsd': 'application/vnd.visio',
|
|
46
49
|
'.wav': 'audio/wav',
|
|
47
50
|
'.weba': 'audio/webm',
|
|
48
51
|
'.webm': 'video/webm',
|
|
52
|
+
'.webmanifest': 'application/manifest+json',
|
|
49
53
|
'.webp': 'image/webp',
|
|
54
|
+
'.woff': 'font/woff',
|
|
55
|
+
'.woff2': 'font/woff2',
|
|
50
56
|
'.xhtml': 'application/xhtml+xml',
|
|
51
57
|
'.xls': 'application/vnd.ms-excel',
|
|
52
58
|
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caboodle-tech/node-simple-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Node Simple Server (NSS): A small but effective node based server for development sites and self controlled live reloading.",
|
|
5
5
|
"main": "server.js",
|
|
6
6
|
"scripts": {
|
package/server.js
CHANGED