@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 CHANGED
@@ -1,3 +1,7 @@
1
+ ### NSS 1.3.1 (11 Dec 2021)
2
+
3
+ - Bug Fix: Added missing content-types (MIME types) for several standard and non-standard file types.
4
+
1
5
  ### NSS 1.3.0 (23 Nov 2021)
2
6
 
3
7
  - Bug Fix: Inject script and styles are now correctly added to HTML files only.
@@ -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.0",
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
@@ -34,7 +34,7 @@ function NodeSimpleServer(options) {
34
34
  const SEP = Path.sep;
35
35
  let SERVER = null;
36
36
  let SOCKET = null;
37
- const VERSION = '1.3.0'; // Update on releases.
37
+ const VERSION = '1.3.1'; // Update on releases.
38
38
  const WATCHING = [];
39
39
 
40
40
  /**