Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

Location:
trip-planner-front/node_modules/mime
Files:
1 added
2 deleted
5 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/mime/CHANGELOG.md

    r59329aa re29cc2e  
    11# Changelog
    22
    3 All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
     3## v1.6.0 (24/11/2017)
     4*No changelog for this release.*
    45
    5 ### [2.5.2](https://github.com/broofa/mime/compare/v2.5.0...v2.5.2) (2021-02-17)
     6---
    67
    7 
    8 ### Bug Fixes
    9 
    10 * update to mime-db@1.46.0, fixes [#253](https://github.com/broofa/mime/issues/253) ([f10e6aa](https://github.com/broofa/mime/commit/f10e6aa62e1356de7e2491d7fb4374c8dac65800))
    11 
    12 ## [2.5.0](https://github.com/broofa/mime/compare/v2.4.7...v2.5.0) (2021-01-16)
    13 
    14 
    15 ### Features
    16 
    17 * improved CLI ([#244](https://github.com/broofa/mime/issues/244)) ([c8a8356](https://github.com/broofa/mime/commit/c8a8356e3b27f3ef46b64b89b428fdb547b14d5f))
    18 
    19 ### [2.4.7](https://github.com/broofa/mime/compare/v2.4.6...v2.4.7) (2020-12-16)
    20 
    21 
    22 ### Bug Fixes
    23 
    24 * update to latest mime-db ([43b09ef](https://github.com/broofa/mime/commit/43b09eff0233eacc449af2b1f99a19ba9e104a44))
    25 
    26 ### [2.4.6](https://github.com/broofa/mime/compare/v2.4.5...v2.4.6) (2020-05-27)
    27 
    28 
    29 ### Bug Fixes
    30 
    31 * add cli.js to package.json files ([#237](https://github.com/broofa/mime/issues/237)) ([6c070bc](https://github.com/broofa/mime/commit/6c070bc298fa12a48e2ed126fbb9de641a1e7ebc))
    32 
    33 ### [2.4.5](https://github.com/broofa/mime/compare/v2.4.4...v2.4.5) (2020-05-01)
    34 
    35 
    36 ### Bug Fixes
    37 
    38 * fix [#236](https://github.com/broofa/mime/issues/236) ([7f4ecd0](https://github.com/broofa/mime/commit/7f4ecd0d850ed22c9e3bfda2c11fc74e4dde12a7))
    39 * update to latest mime-db ([c5cb3f2](https://github.com/broofa/mime/commit/c5cb3f2ab8b07642a066efbde1142af1b90c927b))
    40 
    41 ### [2.4.4](https://github.com/broofa/mime/compare/v2.4.3...v2.4.4) (2019-06-07)
    42 
    43 
    44 
    45 ### [2.4.3](https://github.com/broofa/mime/compare/v2.4.2...v2.4.3) (2019-05-15)
    46 
    47 
    48 
    49 ### [2.4.2](https://github.com/broofa/mime/compare/v2.4.1...v2.4.2) (2019-04-07)
    50 
    51 
    52 ### Bug Fixes
    53 
    54 * don't use arrow function introduced in 2.4.1 ([2e00b5c](https://github.com/broofa/mime/commit/2e00b5c))
    55 
    56 
    57 
    58 ### [2.4.1](https://github.com/broofa/mime/compare/v2.4.0...v2.4.1) (2019-04-03)
    59 
    60 
    61 ### Bug Fixes
    62 
    63 * update MDN and mime-db types ([3e567a9](https://github.com/broofa/mime/commit/3e567a9))
    64 
    65 
    66 
    67 # [2.4.0](https://github.com/broofa/mime/compare/v2.3.1...v2.4.0) (2018-11-26)
    68 
    69 
    70 ### Features
    71 
    72 * Bind exported methods ([9d2a7b8](https://github.com/broofa/mime/commit/9d2a7b8))
    73 * update to mime-db@1.37.0 ([49e6e41](https://github.com/broofa/mime/commit/49e6e41))
    74 
    75 
    76 
    77 ### [2.3.1](https://github.com/broofa/mime/compare/v2.3.0...v2.3.1) (2018-04-11)
    78 
    79 
    80 ### Bug Fixes
    81 
    82 * fix [#198](https://github.com/broofa/mime/issues/198) ([25ca180](https://github.com/broofa/mime/commit/25ca180))
    83 
    84 
    85 
    86 # [2.3.0](https://github.com/broofa/mime/compare/v2.2.2...v2.3.0) (2018-04-11)
    87 
    88 
    89 ### Bug Fixes
    90 
    91 * fix [#192](https://github.com/broofa/mime/issues/192) ([5c35df6](https://github.com/broofa/mime/commit/5c35df6))
    92 
    93 
    94 ### Features
    95 
    96 * add travis-ci testing ([d64160f](https://github.com/broofa/mime/commit/d64160f))
    97 
    98 
    99 
    100 ### [2.2.2](https://github.com/broofa/mime/compare/v2.2.1...v2.2.2) (2018-03-30)
    101 
    102 
    103 ### Bug Fixes
    104 
    105 * update types files to mime-db@1.32.0 ([85aac16](https://github.com/broofa/mime/commit/85aac16))
    106 
    107 
    108 ### [2.2.1](https://github.com/broofa/mime/compare/v2.2.0...v2.2.1) (2018-03-30)
    109 
    110 
    111 ### Bug Fixes
    112 
    113 * Retain type->extension mappings for non-default types.  Fixes [#180](https://github.com/broofa/mime/issues/180) ([b5c83fb](https://github.com/broofa/mime/commit/b5c83fb))
    114 
    115 
    116 
    117 # [2.2.0](https://github.com/broofa/mime/compare/v2.1.0...v2.2.0) (2018-01-04)
    118 
    119 
    120 ### Features
    121 
    122 * Retain type->extension mappings for non-default types.  Fixes [#180](https://github.com/broofa/mime/issues/180) ([10f82ac](https://github.com/broofa/mime/commit/10f82ac))
    123 
    124 
    125 
    126 # [2.1.0](https://github.com/broofa/mime/compare/v2.0.5...v2.1.0) (2017-12-22)
    127 
    128 
    129 ### Features
    130 
    131 * Upgrade to mime-db@1.32.0.  Fixes [#185](https://github.com/broofa/mime/issues/185) ([3f775ba](https://github.com/broofa/mime/commit/3f775ba))
    132 
    133 
    134 
    135 ### [2.0.5](https://github.com/broofa/mime/compare/v2.0.1...v2.0.5) (2017-12-22)
    136 
    137 
    138 ### Bug Fixes
    139 
    140 * ES5 support (back to node v0.4) ([f14ccb6](https://github.com/broofa/mime/commit/f14ccb6))
    141 
    142 
    143 
    144 # Changelog
    145 
    146 ### v2.0.4 (24/11/2017)
    147 - [**closed**] Switch to mime-score module for resolving extension contention issues. [#182](https://github.com/broofa/mime/issues/182)
    148 - [**closed**] Update mime-db to 1.31.0 in v1.x branch [#181](https://github.com/broofa/mime/issues/181)
     8## v2.0.4 (24/11/2017)
     9- [**closed**] Switch to mime-score module for resolving extension contention issues. [#182](https://github.com/broofa/node-mime/issues/182)
     10- [**closed**] Update mime-db to 1.31.0 in v1.x branch [#181](https://github.com/broofa/node-mime/issues/181)
    14911
    15012---
    15113
    15214## v1.5.0 (22/11/2017)
    153 - [**closed**] need ES5 version ready in npm package [#179](https://github.com/broofa/mime/issues/179)
    154 - [**closed**] mime-db no trace of iWork - pages / numbers / etc. [#178](https://github.com/broofa/mime/issues/178)
    155 - [**closed**] How it works in brownser ? [#176](https://github.com/broofa/mime/issues/176)
    156 - [**closed**] Missing `./Mime` [#175](https://github.com/broofa/mime/issues/175)
    157 - [**closed**] Vulnerable Regular Expression [#167](https://github.com/broofa/mime/issues/167)
     15- [**closed**] need ES5 version ready in npm package [#179](https://github.com/broofa/node-mime/issues/179)
     16- [**closed**] mime-db no trace of iWork - pages / numbers / etc. [#178](https://github.com/broofa/node-mime/issues/178)
     17- [**closed**] How it works in brownser ? [#176](https://github.com/broofa/node-mime/issues/176)
     18- [**closed**] Missing `./Mime` [#175](https://github.com/broofa/node-mime/issues/175)
     19- [**closed**] Vulnerable Regular Expression [#167](https://github.com/broofa/node-mime/issues/167)
    15820
    15921---
    16022
    161 ### v2.0.3 (25/09/2017)
     23## v2.0.3 (25/09/2017)
    16224*No changelog for this release.*
    16325
    16426---
    16527
    166 ### v1.4.1 (25/09/2017)
    167 - [**closed**] Issue when bundling with webpack [#172](https://github.com/broofa/mime/issues/172)
     28## v1.4.1 (25/09/2017)
     29- [**closed**] Issue when bundling with webpack [#172](https://github.com/broofa/node-mime/issues/172)
    16830
    16931---
    17032
    171 ### v2.0.2 (15/09/2017)
    172 - [**V2**] fs.readFileSync is not a function [#165](https://github.com/broofa/mime/issues/165)
    173 - [**closed**] The extension for video/quicktime should map to .mov, not .qt [#164](https://github.com/broofa/mime/issues/164)
    174 - [**V2**] [v2 Feedback request] Mime class API [#163](https://github.com/broofa/mime/issues/163)
    175 - [**V2**] [v2 Feedback request] Resolving conflicts over extensions [#162](https://github.com/broofa/mime/issues/162)
    176 - [**V2**] Allow callers to load module with official, full, or no defined types.  [#161](https://github.com/broofa/mime/issues/161)
    177 - [**V2**] Use "facets" to resolve extension conflicts [#160](https://github.com/broofa/mime/issues/160)
    178 - [**V2**] Remove fs and path dependencies [#152](https://github.com/broofa/mime/issues/152)
    179 - [**V2**] Default content-type should not be application/octet-stream [#139](https://github.com/broofa/mime/issues/139)
    180 - [**V2**] reset mime-types [#124](https://github.com/broofa/mime/issues/124)
    181 - [**V2**] Extensionless paths should return null or false [#113](https://github.com/broofa/mime/issues/113)
     33## v2.0.2 (15/09/2017)
     34- [**V2**] fs.readFileSync is not a function [#165](https://github.com/broofa/node-mime/issues/165)
     35- [**closed**] The extension for video/quicktime should map to .mov, not .qt [#164](https://github.com/broofa/node-mime/issues/164)
     36- [**V2**] [v2 Feedback request] Mime class API [#163](https://github.com/broofa/node-mime/issues/163)
     37- [**V2**] [v2 Feedback request] Resolving conflicts over extensions [#162](https://github.com/broofa/node-mime/issues/162)
     38- [**V2**] Allow callers to load module with official, full, or no defined types.  [#161](https://github.com/broofa/node-mime/issues/161)
     39- [**V2**] Use "facets" to resolve extension conflicts [#160](https://github.com/broofa/node-mime/issues/160)
     40- [**V2**] Remove fs and path dependencies [#152](https://github.com/broofa/node-mime/issues/152)
     41- [**V2**] Default content-type should not be application/octet-stream [#139](https://github.com/broofa/node-mime/issues/139)
     42- [**V2**] reset mime-types [#124](https://github.com/broofa/node-mime/issues/124)
     43- [**V2**] Extensionless paths should return null or false [#113](https://github.com/broofa/node-mime/issues/113)
    18244
    18345---
    18446
    185 ### v2.0.1 (14/09/2017)
    186 - [**closed**] Changelog for v2.0 does not mention breaking changes [#171](https://github.com/broofa/mime/issues/171)
    187 - [**closed**] MIME breaking with 'class' declaration as it is without 'use strict mode' [#170](https://github.com/broofa/mime/issues/170)
     47## v2.0.1 (14/09/2017)
     48- [**closed**] Changelog for v2.0 does not mention breaking changes [#171](https://github.com/broofa/node-mime/issues/171)
     49- [**closed**] MIME breaking with 'class' declaration as it is without 'use strict mode' [#170](https://github.com/broofa/node-mime/issues/170)
    18850
    18951---
    19052
    19153## v2.0.0 (12/09/2017)
    192 - [**closed**] woff and woff2 [#168](https://github.com/broofa/mime/issues/168)
     54- [**closed**] woff and woff2 [#168](https://github.com/broofa/node-mime/issues/168)
    19355
    19456---
    19557
    19658## v1.4.0 (28/08/2017)
    197 - [**closed**] support for ac3 voc files [#159](https://github.com/broofa/mime/issues/159)
    198 - [**closed**] Help understanding change from application/xml to text/xml [#158](https://github.com/broofa/mime/issues/158)
    199 - [**closed**] no longer able to override mimetype [#157](https://github.com/broofa/mime/issues/157)
    200 - [**closed**] application/vnd.adobe.photoshop [#147](https://github.com/broofa/mime/issues/147)
    201 - [**closed**] Directories should appear as something other than application/octet-stream [#135](https://github.com/broofa/mime/issues/135)
    202 - [**closed**] requested features [#131](https://github.com/broofa/mime/issues/131)
    203 - [**closed**] Make types.json loading optional? [#129](https://github.com/broofa/mime/issues/129)
    204 - [**closed**] Cannot find module './types.json' [#120](https://github.com/broofa/mime/issues/120)
    205 - [**V2**] .wav files show up as "audio/x-wav" instead of "audio/x-wave" [#118](https://github.com/broofa/mime/issues/118)
    206 - [**closed**] Don't be a pain in the ass for node community [#108](https://github.com/broofa/mime/issues/108)
    207 - [**closed**] don't make default_type global [#78](https://github.com/broofa/mime/issues/78)
    208 - [**closed**] mime.extension() fails if the content-type is parameterized [#74](https://github.com/broofa/mime/issues/74)
     59- [**closed**] support for ac3 voc files [#159](https://github.com/broofa/node-mime/issues/159)
     60- [**closed**] Help understanding change from application/xml to text/xml [#158](https://github.com/broofa/node-mime/issues/158)
     61- [**closed**] no longer able to override mimetype [#157](https://github.com/broofa/node-mime/issues/157)
     62- [**closed**] application/vnd.adobe.photoshop [#147](https://github.com/broofa/node-mime/issues/147)
     63- [**closed**] Directories should appear as something other than application/octet-stream [#135](https://github.com/broofa/node-mime/issues/135)
     64- [**closed**] requested features [#131](https://github.com/broofa/node-mime/issues/131)
     65- [**closed**] Make types.json loading optional? [#129](https://github.com/broofa/node-mime/issues/129)
     66- [**closed**] Cannot find module './types.json' [#120](https://github.com/broofa/node-mime/issues/120)
     67- [**V2**] .wav files show up as "audio/x-wav" instead of "audio/x-wave" [#118](https://github.com/broofa/node-mime/issues/118)
     68- [**closed**] Don't be a pain in the ass for node community [#108](https://github.com/broofa/node-mime/issues/108)
     69- [**closed**] don't make default_type global [#78](https://github.com/broofa/node-mime/issues/78)
     70- [**closed**] mime.extension() fails if the content-type is parameterized [#74](https://github.com/broofa/node-mime/issues/74)
    20971
    21072---
    21173
    212 ### v1.3.6 (11/05/2017)
    213 - [**closed**] .md should be text/markdown as of March 2016 [#154](https://github.com/broofa/mime/issues/154)
    214 - [**closed**] Error while installing mime [#153](https://github.com/broofa/mime/issues/153)
    215 - [**closed**] application/manifest+json [#149](https://github.com/broofa/mime/issues/149)
    216 - [**closed**] Dynamic adaptive streaming over HTTP (DASH) file extension typo [#141](https://github.com/broofa/mime/issues/141)
    217 - [**closed**] charsets image/png undefined [#140](https://github.com/broofa/mime/issues/140)
    218 - [**closed**] Mime-db dependency out of date [#130](https://github.com/broofa/mime/issues/130)
    219 - [**closed**] how to support plist? [#126](https://github.com/broofa/mime/issues/126)
    220 - [**closed**] how does .types file format look like? [#123](https://github.com/broofa/mime/issues/123)
    221 - [**closed**] Feature: support for expanding MIME patterns [#121](https://github.com/broofa/mime/issues/121)
    222 - [**closed**] DEBUG_MIME doesn't work [#117](https://github.com/broofa/mime/issues/117)
     74## v1.3.6 (11/05/2017)
     75- [**closed**] .md should be text/markdown as of March 2016 [#154](https://github.com/broofa/node-mime/issues/154)
     76- [**closed**] Error while installing mime [#153](https://github.com/broofa/node-mime/issues/153)
     77- [**closed**] application/manifest+json [#149](https://github.com/broofa/node-mime/issues/149)
     78- [**closed**] Dynamic adaptive streaming over HTTP (DASH) file extension typo [#141](https://github.com/broofa/node-mime/issues/141)
     79- [**closed**] charsets image/png undefined [#140](https://github.com/broofa/node-mime/issues/140)
     80- [**closed**] Mime-db dependency out of date [#130](https://github.com/broofa/node-mime/issues/130)
     81- [**closed**] how to support plist? [#126](https://github.com/broofa/node-mime/issues/126)
     82- [**closed**] how does .types file format look like? [#123](https://github.com/broofa/node-mime/issues/123)
     83- [**closed**] Feature: support for expanding MIME patterns [#121](https://github.com/broofa/node-mime/issues/121)
     84- [**closed**] DEBUG_MIME doesn't work [#117](https://github.com/broofa/node-mime/issues/117)
    22385
    22486---
    22587
    226 ### v1.3.4 (06/02/2015)
     88## v1.3.4 (06/02/2015)
    22789*No changelog for this release.*
    22890
    22991---
    23092
    231 ### v1.3.3 (06/02/2015)
     93## v1.3.3 (06/02/2015)
    23294*No changelog for this release.*
    23395
    23496---
    23597
    236 ### v1.3.1 (05/02/2015)
    237 - [**closed**] Consider adding support for Handlebars .hbs file ending [#111](https://github.com/broofa/mime/issues/111)
    238 - [**closed**] Consider adding support for hjson. [#110](https://github.com/broofa/mime/issues/110)
    239 - [**closed**] Add mime type for Opus audio files [#94](https://github.com/broofa/mime/issues/94)
    240 - [**closed**] Consider making the `Requesting New Types` information more visible [#77](https://github.com/broofa/mime/issues/77)
     98## v1.3.1 (05/02/2015)
     99- [**closed**] Consider adding support for Handlebars .hbs file ending [#111](https://github.com/broofa/node-mime/issues/111)
     100- [**closed**] Consider adding support for hjson. [#110](https://github.com/broofa/node-mime/issues/110)
     101- [**closed**] Add mime type for Opus audio files [#94](https://github.com/broofa/node-mime/issues/94)
     102- [**closed**] Consider making the `Requesting New Types` information more visible [#77](https://github.com/broofa/node-mime/issues/77)
    241103
    242104---
    243105
    244106## v1.3.0 (05/02/2015)
    245 - [**closed**] Add common name? [#114](https://github.com/broofa/mime/issues/114)
    246 - [**closed**] application/x-yaml [#104](https://github.com/broofa/mime/issues/104)
    247 - [**closed**] Add mime type for WOFF file format 2.0 [#102](https://github.com/broofa/mime/issues/102)
    248 - [**closed**] application/x-msi for .msi [#99](https://github.com/broofa/mime/issues/99)
    249 - [**closed**] Add mimetype for gettext translation files [#98](https://github.com/broofa/mime/issues/98)
    250 - [**closed**] collaborators [#88](https://github.com/broofa/mime/issues/88)
    251 - [**closed**] getting errot in installation of mime module...any1 can help? [#87](https://github.com/broofa/mime/issues/87)
    252 - [**closed**] should application/json's charset be utf8? [#86](https://github.com/broofa/mime/issues/86)
    253 - [**closed**] Add "license" and "licenses" to package.json [#81](https://github.com/broofa/mime/issues/81)
    254 - [**closed**] lookup with extension-less file on Windows returns wrong type [#68](https://github.com/broofa/mime/issues/68)
     107- [**closed**] Add common name? [#114](https://github.com/broofa/node-mime/issues/114)
     108- [**closed**] application/x-yaml [#104](https://github.com/broofa/node-mime/issues/104)
     109- [**closed**] Add mime type for WOFF file format 2.0 [#102](https://github.com/broofa/node-mime/issues/102)
     110- [**closed**] application/x-msi for .msi [#99](https://github.com/broofa/node-mime/issues/99)
     111- [**closed**] Add mimetype for gettext translation files [#98](https://github.com/broofa/node-mime/issues/98)
     112- [**closed**] collaborators [#88](https://github.com/broofa/node-mime/issues/88)
     113- [**closed**] getting errot in installation of mime module...any1 can help? [#87](https://github.com/broofa/node-mime/issues/87)
     114- [**closed**] should application/json's charset be utf8? [#86](https://github.com/broofa/node-mime/issues/86)
     115- [**closed**] Add "license" and "licenses" to package.json [#81](https://github.com/broofa/node-mime/issues/81)
     116- [**closed**] lookup with extension-less file on Windows returns wrong type [#68](https://github.com/broofa/node-mime/issues/68)
    255117
    256118---
    257119
    258 ### v1.2.11 (15/08/2013)
    259 - [**closed**] Update mime.types [#65](https://github.com/broofa/mime/issues/65)
    260 - [**closed**] Publish a new version [#63](https://github.com/broofa/mime/issues/63)
    261 - [**closed**] README should state upfront that "application/octet-stream" is default for unknown extension [#55](https://github.com/broofa/mime/issues/55)
    262 - [**closed**] Suggested improvement to the charset API [#52](https://github.com/broofa/mime/issues/52)
     120## v1.2.11 (15/08/2013)
     121- [**closed**] Update mime.types [#65](https://github.com/broofa/node-mime/issues/65)
     122- [**closed**] Publish a new version [#63](https://github.com/broofa/node-mime/issues/63)
     123- [**closed**] README should state upfront that "application/octet-stream" is default for unknown extension [#55](https://github.com/broofa/node-mime/issues/55)
     124- [**closed**] Suggested improvement to the charset API [#52](https://github.com/broofa/node-mime/issues/52)
    263125
    264126---
    265127
    266 ### v1.2.10 (25/07/2013)
    267 - [**closed**] Mime type for woff files should be application/font-woff and not application/x-font-woff [#62](https://github.com/broofa/mime/issues/62)
    268 - [**closed**] node.types in conflict with mime.types [#51](https://github.com/broofa/mime/issues/51)
     128## v1.2.10 (25/07/2013)
     129- [**closed**] Mime type for woff files should be application/font-woff and not application/x-font-woff [#62](https://github.com/broofa/node-mime/issues/62)
     130- [**closed**] node.types in conflict with mime.types [#51](https://github.com/broofa/node-mime/issues/51)
    269131
    270132---
    271133
    272 ### v1.2.9 (17/01/2013)
    273 - [**closed**] Please update "mime" NPM [#49](https://github.com/broofa/mime/issues/49)
    274 - [**closed**] Please add semicolon [#46](https://github.com/broofa/mime/issues/46)
    275 - [**closed**] parse full mime types [#43](https://github.com/broofa/mime/issues/43)
     134## v1.2.9 (17/01/2013)
     135- [**closed**] Please update "mime" NPM [#49](https://github.com/broofa/node-mime/issues/49)
     136- [**closed**] Please add semicolon [#46](https://github.com/broofa/node-mime/issues/46)
     137- [**closed**] parse full mime types [#43](https://github.com/broofa/node-mime/issues/43)
    276138
    277139---
    278140
    279 ### v1.2.8 (10/01/2013)
    280 - [**closed**] /js directory mime is application/javascript. Is it correct? [#47](https://github.com/broofa/mime/issues/47)
    281 - [**closed**] Add mime types for lua code. [#45](https://github.com/broofa/mime/issues/45)
     141## v1.2.8 (10/01/2013)
     142- [**closed**] /js directory mime is application/javascript. Is it correct? [#47](https://github.com/broofa/node-mime/issues/47)
     143- [**closed**] Add mime types for lua code. [#45](https://github.com/broofa/node-mime/issues/45)
    282144
    283145---
    284146
    285 ### v1.2.7 (19/10/2012)
    286 - [**closed**] cannot install 1.2.7 via npm [#41](https://github.com/broofa/mime/issues/41)
    287 - [**closed**] Transfer ownership to @broofa [#36](https://github.com/broofa/mime/issues/36)
    288 - [**closed**] it's wrong to set charset to UTF-8 for text [#30](https://github.com/broofa/mime/issues/30)
    289 - [**closed**] Allow multiple instances of MIME types container [#27](https://github.com/broofa/mime/issues/27)
     147## v1.2.7 (19/10/2012)
     148- [**closed**] cannot install 1.2.7 via npm [#41](https://github.com/broofa/node-mime/issues/41)
     149- [**closed**] Transfer ownership to @broofa [#36](https://github.com/broofa/node-mime/issues/36)
     150- [**closed**] it's wrong to set charset to UTF-8 for text [#30](https://github.com/broofa/node-mime/issues/30)
     151- [**closed**] Allow multiple instances of MIME types container [#27](https://github.com/broofa/node-mime/issues/27)
     152
     153---
     154
     155## v1.2.5 (16/02/2012)
     156- [**closed**] When looking up a types, check hasOwnProperty [#23](https://github.com/broofa/node-mime/issues/23)
     157- [**closed**] Bump version to 1.2.2 [#18](https://github.com/broofa/node-mime/issues/18)
     158- [**closed**] No license [#16](https://github.com/broofa/node-mime/issues/16)
     159- [**closed**] Some types missing that are used by html5/css3 [#13](https://github.com/broofa/node-mime/issues/13)
     160- [**closed**] npm install fails for 1.2.1 [#12](https://github.com/broofa/node-mime/issues/12)
     161- [**closed**] image/pjpeg + image/x-png [#10](https://github.com/broofa/node-mime/issues/10)
     162- [**closed**] symlink [#8](https://github.com/broofa/node-mime/issues/8)
     163- [**closed**] gzip [#2](https://github.com/broofa/node-mime/issues/2)
     164- [**closed**] ALL CAPS filenames return incorrect mime type [#1](https://github.com/broofa/node-mime/issues/1)
  • trip-planner-front/node_modules/mime/Mime.js

    r59329aa re29cc2e  
    1 'use strict';
     1var path = require('path');
     2var fs = require('fs');
    23
    3 /**
    4  * @param typeMap [Object] Map of MIME type -> Array[extensions]
    5  * @param ...
    6  */
    74function Mime() {
    8   this._types = Object.create(null);
    9   this._extensions = Object.create(null);
     5  // Map of extension -> mime type
     6  this.types = Object.create(null);
    107
    11   for (let i = 0; i < arguments.length; i++) {
    12     this.define(arguments[i]);
    13   }
    14 
    15   this.define = this.define.bind(this);
    16   this.getType = this.getType.bind(this);
    17   this.getExtension = this.getExtension.bind(this);
     8  // Map of mime type -> extension
     9  this.extensions = Object.create(null);
    1810}
    1911
     
    2517 * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});
    2618 *
    27  * If a type declares an extension that has already been defined, an error will
    28  * be thrown.  To suppress this error and force the extension to be associated
    29  * with the new type, pass `force`=true.  Alternatively, you may prefix the
    30  * extension with "*" to map the type to extension, without mapping the
    31  * extension to the type.
    32  *
    33  * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});
    34  *
    35  *
    3619 * @param map (Object) type definitions
    37  * @param force (Boolean) if true, force overriding of existing definitions
    3820 */
    39 Mime.prototype.define = function(typeMap, force) {
    40   for (let type in typeMap) {
    41     let extensions = typeMap[type].map(function(t) {
    42       return t.toLowerCase();
    43     });
    44     type = type.toLowerCase();
    45 
    46     for (let i = 0; i < extensions.length; i++) {
    47       const ext = extensions[i];
    48 
    49       // '*' prefix = not the preferred type for this extension.  So fixup the
    50       // extension, and skip it.
    51       if (ext[0] === '*') {
    52         continue;
     21Mime.prototype.define = function (map) {
     22  for (var type in map) {
     23    var exts = map[type];
     24    for (var i = 0; i < exts.length; i++) {
     25      if (process.env.DEBUG_MIME && this.types[exts[i]]) {
     26        console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
     27          this.types[exts[i]] + ' to ' + type);
    5328      }
    5429
    55       if (!force && (ext in this._types)) {
    56         throw new Error(
    57           'Attempt to change mapping for "' + ext +
    58           '" extension from "' + this._types[ext] + '" to "' + type +
    59           '". Pass `force=true` to allow this, otherwise remove "' + ext +
    60           '" from the list of extensions for "' + type + '".'
    61         );
    62       }
    63 
    64       this._types[ext] = type;
     30      this.types[exts[i]] = type;
    6531    }
    6632
    67     // Use first extension as default
    68     if (force || !this._extensions[type]) {
    69       const ext = extensions[0];
    70       this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);
     33    // Default extension is the first one we encounter
     34    if (!this.extensions[type]) {
     35      this.extensions[type] = exts[0];
    7136    }
    7237  }
     
    7439
    7540/**
     41 * Load an Apache2-style ".types" file
     42 *
     43 * This may be called multiple times (it's expected).  Where files declare
     44 * overlapping types/extensions, the last file wins.
     45 *
     46 * @param file (String) path of file to load.
     47 */
     48Mime.prototype.load = function(file) {
     49  this._loading = file;
     50  // Read file and split into lines
     51  var map = {},
     52      content = fs.readFileSync(file, 'ascii'),
     53      lines = content.split(/[\r\n]+/);
     54
     55  lines.forEach(function(line) {
     56    // Clean up whitespace/comments, and split into fields
     57    var fields = line.replace(/\s*#.*|^\s*|\s*$/g, '').split(/\s+/);
     58    map[fields.shift()] = fields;
     59  });
     60
     61  this.define(map);
     62
     63  this._loading = null;
     64};
     65
     66/**
    7667 * Lookup a mime type based on extension
    7768 */
    78 Mime.prototype.getType = function(path) {
    79   path = String(path);
    80   let last = path.replace(/^.*[/\\]/, '').toLowerCase();
    81   let ext = last.replace(/^.*\./, '').toLowerCase();
     69Mime.prototype.lookup = function(path, fallback) {
     70  var ext = path.replace(/^.*[\.\/\\]/, '').toLowerCase();
    8271
    83   let hasPath = last.length < path.length;
    84   let hasDot = ext.length < last.length - 1;
    85 
    86   return (hasDot || !hasPath) && this._types[ext] || null;
     72  return this.types[ext] || fallback || this.default_type;
    8773};
    8874
     
    9076 * Return file extension associated with a mime type
    9177 */
    92 Mime.prototype.getExtension = function(type) {
    93   type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
    94   return type && this._extensions[type.toLowerCase()] || null;
     78Mime.prototype.extension = function(mimeType) {
     79  var type = mimeType.match(/^\s*([^;\s]*)(?:;|\s|$)/)[1].toLowerCase();
     80  return this.extensions[type];
    9581};
    9682
    97 module.exports = Mime;
     83// Default instance
     84var mime = new Mime();
     85
     86// Define built-in types
     87mime.define(require('./types.json'));
     88
     89// Default type
     90mime.default_type = mime.lookup('bin');
     91
     92//
     93// Additional API specific to the default instance
     94//
     95
     96mime.Mime = Mime;
     97
     98/**
     99 * Lookup a charset based on mime type.
     100 */
     101mime.charsets = {
     102  lookup: function(mimeType, fallback) {
     103    // Assume text types are utf8
     104    return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback;
     105  }
     106};
     107
     108module.exports = mime;
  • trip-planner-front/node_modules/mime/README.md

    r59329aa re29cc2e  
    1 <!--
    2   -- This file is auto-generated from src/README_js.md. Changes should be made there.
    3   -->
    4 # Mime
     1# mime
    52
    6 A comprehensive, compact MIME type module.
    7 
    8 [![Build Status](https://travis-ci.org/broofa/mime.svg?branch=master)](https://travis-ci.org/broofa/mime)
    9 
    10 ## Version 2 Notes
    11 
    12 Version 2 is a breaking change from 1.x as the semver implies.  Specifically:
    13 
    14 * `lookup()` renamed to `getType()`
    15 * `extension()` renamed to `getExtension()`
    16 * `charset()` and `load()` methods have been removed
    17 
    18 If you prefer the legacy version of this module please `npm install mime@^1`.  Version 1 docs may be found [here](https://github.com/broofa/mime/tree/v1.4.0).
     3Comprehensive MIME type mapping API based on mime-db module.
    194
    205## Install
    216
    22 ### NPM
    23 ```
    24 npm install mime
    25 ```
     7Install with [npm](http://github.com/isaacs/npm):
    268
    27 ### Browser
     9    npm install mime
    2810
    29 It is recommended that you use a bundler such as
    30 [webpack](https://webpack.github.io/) or [browserify](http://browserify.org/) to
    31 package your code.  However, browser-ready versions are available via wzrd.in.
    32 E.g. For the full version:
     11## Contributing / Testing
    3312
    34     <script src="https://wzrd.in/standalone/mime@latest"></script>
    35     <script>
    36     mime.getType(...); // etc.
    37     </script>
    38 
    39 Or, for the `mime/lite` version:
    40 
    41     <script src="https://wzrd.in/standalone/mime%2flite@latest"></script>
    42     <script>
    43     mimelite.getType(...); // (Note `mimelite` here)
    44     </script>
    45 
    46 ## Quick Start
    47 
    48 For the full version (800+ MIME types, 1,000+ extensions):
    49 
    50 ```javascript
    51 const mime = require('mime');
    52 
    53 mime.getType('txt');                    // ⇨ 'text/plain'
    54 mime.getExtension('text/plain');        // ⇨ 'txt'
    55 ```
    56 
    57 See [Mime API](#mime-api) below for API details.
    58 
    59 ## Lite Version
    60 
    61 There is also a "lite" version of this module that omits vendor-specific
    62 (`*/vnd.*`) and experimental (`*/x-*`) types.  It weighs in at ~2.5KB, compared
    63 to 8KB for the full version.  To load the lite version:
    64 
    65 ```javascript
    66 const mime = require('mime/lite');
    67 ```
    68 
    69 ## Mime .vs. mime-types .vs. mime-db modules
    70 
    71 For those of you wondering about the difference between these [popular] NPM modules,
    72 here's a brief rundown ...
    73 
    74 [`mime-db`](https://github.com/jshttp/mime-db) is "the source of
    75 truth" for MIME type information.  It is not an API.  Rather, it is a canonical
    76 dataset of mime type definitions pulled from IANA, Apache, NGINX, and custom mappings
    77 submitted by the Node.js community.
    78 
    79 [`mime-types`](https://github.com/jshttp/mime-types) is a thin
    80 wrapper around mime-db that provides an API drop-in compatible(ish) with `mime @ < v1.3.6` API.
    81 
    82 `mime` is, as of v2, a self-contained module bundled with a pre-optimized version
    83 of the `mime-db` dataset.  It provides a simplified API with the following characteristics:
    84 
    85 * Intelligently resolved type conflicts (See [mime-score](https://github.com/broofa/mime-score) for details)
    86 * Method naming consistent with industry best-practices
    87 * Compact footprint.  E.g. The minified+compressed sizes of the various modules:
    88 
    89 Module | Size
    90 --- | ---
    91 `mime-db`  | 18 KB
    92 `mime-types` | same as mime-db
    93 `mime` | 8 KB
    94 `mime/lite` | 2 KB
    95 
    96 ## Mime API
    97 
    98 Both `require('mime')` and `require('mime/lite')` return instances of the MIME
    99 class, documented below.
    100 
    101 Note: Inputs to this API are case-insensitive.  Outputs (returned values) will
    102 be lowercase.
    103 
    104 ### new Mime(typeMap, ... more maps)
    105 
    106 Most users of this module will not need to create Mime instances directly.
    107 However if you would like to create custom mappings, you may do so as follows
    108 ...
    109 
    110 ```javascript
    111 // Require Mime class
    112 const Mime = require('mime/Mime');
    113 
    114 // Define mime type -> extensions map
    115 const typeMap = {
    116   'text/abc': ['abc', 'alpha', 'bet'],
    117   'text/def': ['leppard']
    118 };
    119 
    120 // Create and use Mime instance
    121 const myMime = new Mime(typeMap);
    122 myMime.getType('abc');            // ⇨ 'text/abc'
    123 myMime.getExtension('text/def');  // ⇨ 'leppard'
    124 ```
    125 
    126 If more than one map argument is provided, each map is `define()`ed (see below), in order.
    127 
    128 ### mime.getType(pathOrExtension)
    129 
    130 Get mime type for the given path or extension.  E.g.
    131 
    132 ```javascript
    133 mime.getType('js');             // ⇨ 'application/javascript'
    134 mime.getType('json');           // ⇨ 'application/json'
    135 
    136 mime.getType('txt');            // ⇨ 'text/plain'
    137 mime.getType('dir/text.txt');   // ⇨ 'text/plain'
    138 mime.getType('dir\\text.txt');  // ⇨ 'text/plain'
    139 mime.getType('.text.txt');      // ⇨ 'text/plain'
    140 mime.getType('.txt');           // ⇨ 'text/plain'
    141 ```
    142 
    143 `null` is returned in cases where an extension is not detected or recognized
    144 
    145 ```javascript
    146 mime.getType('foo/txt');        // ⇨ null
    147 mime.getType('bogus_type');     // ⇨ null
    148 ```
    149 
    150 ### mime.getExtension(type)
    151 Get extension for the given mime type.  Charset options (often included in
    152 Content-Type headers) are ignored.
    153 
    154 ```javascript
    155 mime.getExtension('text/plain');               // ⇨ 'txt'
    156 mime.getExtension('application/json');         // ⇨ 'json'
    157 mime.getExtension('text/html; charset=utf8');  // ⇨ 'html'
    158 ```
    159 
    160 ### mime.define(typeMap[, force = false])
    161 
    162 Define [more] type mappings.
    163 
    164 `typeMap` is a map of type -> extensions, as documented in `new Mime`, above.
    165 
    166 By default this method will throw an error if you try to map a type to an
    167 extension that is already assigned to another type.  Passing `true` for the
    168 `force` argument will suppress this behavior (overriding any previous mapping).
    169 
    170 ```javascript
    171 mime.define({'text/x-abc': ['abc', 'abcd']});
    172 
    173 mime.getType('abcd');            // ⇨ 'text/x-abc'
    174 mime.getExtension('text/x-abc')  // ⇨ 'abc'
    175 ```
     13    npm run test
    17614
    17715## Command Line
    17816
    179     mime [path_or_extension]
     17    mime [path_string]
    18018
    18119E.g.
     
    18422    application/javascript
    18523
    186 ----
    187 Markdown generated from [src/README_js.md](src/README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd)
     24## API - Queries
     25
     26### mime.lookup(path)
     27Get the mime type associated with a file, if no mime type is found `application/octet-stream` is returned. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.').  E.g.
     28
     29```js
     30var mime = require('mime');
     31
     32mime.lookup('/path/to/file.txt');         // => 'text/plain'
     33mime.lookup('file.txt');                  // => 'text/plain'
     34mime.lookup('.TXT');                      // => 'text/plain'
     35mime.lookup('htm');                       // => 'text/html'
     36```
     37
     38### mime.default_type
     39Sets the mime type returned when `mime.lookup` fails to find the extension searched for. (Default is `application/octet-stream`.)
     40
     41### mime.extension(type)
     42Get the default extension for `type`
     43
     44```js
     45mime.extension('text/html');                 // => 'html'
     46mime.extension('application/octet-stream');  // => 'bin'
     47```
     48
     49### mime.charsets.lookup()
     50
     51Map mime-type to charset
     52
     53```js
     54mime.charsets.lookup('text/plain');        // => 'UTF-8'
     55```
     56
     57(The logic for charset lookups is pretty rudimentary.  Feel free to suggest improvements.)
     58
     59## API - Defining Custom Types
     60
     61Custom type mappings can be added on a per-project basis via the following APIs.
     62
     63### mime.define()
     64
     65Add custom mime/extension mappings
     66
     67```js
     68mime.define({
     69    'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'],
     70    'application/x-my-type': ['x-mt', 'x-mtt'],
     71    // etc ...
     72});
     73
     74mime.lookup('x-sft');                 // => 'text/x-some-format'
     75```
     76
     77The first entry in the extensions array is returned by `mime.extension()`. E.g.
     78
     79```js
     80mime.extension('text/x-some-format'); // => 'x-sf'
     81```
     82
     83### mime.load(filepath)
     84
     85Load mappings from an Apache ".types" format file
     86
     87```js
     88mime.load('./my_project.types');
     89```
     90The .types file format is simple -  See the `types` dir for examples.
  • trip-planner-front/node_modules/mime/cli.js

    r59329aa re29cc2e  
    11#!/usr/bin/env node
    22
    3 'use strict';
    4 
    5 process.title = 'mime';
    6 let mime = require('.');
    7 let pkg = require('./package.json');
    8 let args = process.argv.splice(2);
    9 
    10 if (args.includes('--version') || args.includes('-v') || args.includes('--v')) {
    11   console.log(pkg.version);
    12   process.exit(0);
    13 } else if (args.includes('--name') || args.includes('-n') || args.includes('--n')) {
    14   console.log(pkg.name);
    15   process.exit(0);
    16 } else if (args.includes('--help') || args.includes('-h') || args.includes('--h')) {
    17   console.log(pkg.name + ' - ' + pkg.description + '\n');
    18   console.log(`Usage:
    19 
    20   mime [flags] [path_or_extension]
    21 
    22   Flags:
    23     --help, -h                     Show this message
    24     --version, -v                  Display the version
    25     --name, -n                     Print the name of the program
    26 
    27   Note: the command will exit after it executes if a command is specified
    28   The path_or_extension is the path to the file or the extension of the file.
    29 
    30   Examples:
    31     mime --help
    32     mime --version
    33     mime --name
    34     mime -v
    35     mime src/log.js
    36     mime new.py
    37     mime foo.sh
    38   `);
    39   process.exit(0);
    40 }
    41 
    42 let file = args[0];
    43 let type = mime.getType(file);
     3var mime = require('./mime.js');
     4var file = process.argv[2];
     5var type = mime.lookup(file);
    446
    457process.stdout.write(type + '\n');
  • trip-planner-front/node_modules/mime/package.json

    r59329aa re29cc2e  
    11{
    2   "_args": [
    3     [
    4       "mime@2.5.2",
    5       "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front"
    6     ]
    7   ],
    8   "_development": true,
    9   "_from": "mime@2.5.2",
    10   "_id": "mime@2.5.2",
     2  "_from": "mime@^1.4.1",
     3  "_id": "mime@1.6.0",
    114  "_inBundle": false,
    12   "_integrity": "sha512-tqkh47FzKeCPD2PUiPB6pkbMzsCasjxAfC62/Wap5qrUWcb+sFasXUC5I3gYM5iBM8v/Qpn4UK0x+j0iHyFPDg==",
     5  "_integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
    136  "_location": "/mime",
    147  "_phantomChildren": {},
    158  "_requested": {
    16     "type": "version",
     9    "type": "range",
    1710    "registry": true,
    18     "raw": "mime@2.5.2",
     11    "raw": "mime@^1.4.1",
    1912    "name": "mime",
    2013    "escapedName": "mime",
    21     "rawSpec": "2.5.2",
     14    "rawSpec": "^1.4.1",
    2215    "saveSpec": null,
    23     "fetchSpec": "2.5.2"
     16    "fetchSpec": "^1.4.1"
    2417  },
    2518  "_requiredBy": [
    26     "/karma",
    27     "/webpack-dev-server/webpack-dev-middleware"
     19    "/less",
     20    "/send"
    2821  ],
    29   "_resolved": "https://registry.npmjs.org/mime/-/mime-2.5.2.tgz",
    30   "_spec": "2.5.2",
    31   "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front",
     22  "_resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
     23  "_shasum": "32cd9e5c64553bd58d19a568af452acff04981b1",
     24  "_spec": "mime@^1.4.1",
     25  "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\less",
    3226  "author": {
    3327    "name": "Robert Kieffer",
     
    3933  },
    4034  "bugs": {
    41     "url": "https://github.com/broofa/mime/issues"
     35    "url": "https://github.com/broofa/node-mime/issues"
    4236  },
    43   "contributors": [],
     37  "bundleDependencies": false,
     38  "contributors": [
     39    {
     40      "name": "Benjamin Thomas",
     41      "email": "benjamin@benjaminthomas.org",
     42      "url": "http://github.com/bentomas"
     43    }
     44  ],
    4445  "dependencies": {},
     46  "deprecated": false,
    4547  "description": "A comprehensive library for mime-type mapping",
    4648  "devDependencies": {
    47     "benchmark": "*",
    48     "chalk": "4.1.0",
    49     "eslint": "7.20.0",
    50     "mime-db": "1.46.0",
    51     "mime-score": "1.2.0",
    52     "mime-types": "2.1.28",
    53     "mocha": "8.3.0",
    54     "runmd": "*",
    55     "standard-version": "9.1.0"
     49    "github-release-notes": "0.13.1",
     50    "mime-db": "1.31.0",
     51    "mime-score": "1.1.0"
    5652  },
    5753  "engines": {
    58     "node": ">=4.0.0"
     54    "node": ">=4"
    5955  },
    60   "files": [
    61     "index.js",
    62     "lite.js",
    63     "Mime.js",
    64     "cli.js",
    65     "/types"
    66   ],
    67   "homepage": "https://github.com/broofa/mime#readme",
     56  "homepage": "https://github.com/broofa/node-mime#readme",
    6857  "keywords": [
    6958    "util",
     
    7160  ],
    7261  "license": "MIT",
     62  "main": "mime.js",
    7363  "name": "mime",
    7464  "repository": {
    75     "url": "git+https://github.com/broofa/mime.git",
     65    "url": "git+https://github.com/broofa/node-mime.git",
    7666    "type": "git"
    7767  },
    7868  "scripts": {
    79     "benchmark": "node src/benchmark.js",
    80     "md": "runmd --watch --output README.md src/README_js.md",
    81     "prepare": "node src/build.js && runmd --output README.md src/README_js.md",
    82     "release": "standard-version",
    83     "test": "mocha src/test.js"
     69    "changelog": "gren changelog --tags=all --generate --override",
     70    "prepare": "node src/build.js",
     71    "test": "node src/test.js"
    8472  },
    85   "version": "2.5.2"
     73  "version": "1.6.0"
    8674}
Note: See TracChangeset for help on using the changeset viewer.