solid-ui 3.0.0 → 3.0.1-e8256eb

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/dist/solid-ui.js CHANGED
@@ -62,7 +62,7 @@ populateMaps(exports.extensions, exports.types)
62
62
  * Get the default charset for a MIME type.
63
63
  *
64
64
  * @param {string} type
65
- * @return {boolean|string}
65
+ * @return {false|string}
66
66
  */
67
67
 
68
68
  function charset (type) {
@@ -90,7 +90,7 @@ function charset (type) {
90
90
  * Create a full Content-Type header given a MIME type or extension.
91
91
  *
92
92
  * @param {string} str
93
- * @return {boolean|string}
93
+ * @return {false|string}
94
94
  */
95
95
 
96
96
  function contentType (str) {
@@ -118,7 +118,7 @@ function contentType (str) {
118
118
  * Get the default extension for a MIME type.
119
119
  *
120
120
  * @param {string} type
121
- * @return {boolean|string}
121
+ * @return {false|string}
122
122
  */
123
123
 
124
124
  function extension (type) {
@@ -143,7 +143,7 @@ function extension (type) {
143
143
  * Lookup the MIME type for a file path/extension.
144
144
  *
145
145
  * @param {string} path
146
- * @return {boolean|string}
146
+ * @return {false|string}
147
147
  */
148
148
 
149
149
  function lookup (path) {
@@ -830,6 +830,11 @@ var TYPE_SCORES = {
830
830
  // prefer font/woff over application/font-woff
831
831
  font: 2,
832
832
 
833
+ // prefer video/mp4 over audio/mp4 over application/mp4
834
+ // See https://www.rfc-editor.org/rfc/rfc4337.html#section-2
835
+ audio: 2,
836
+ video: 3,
837
+
833
838
  default: 0
834
839
  }
835
840