yt-transcript-strapi-plugin 0.0.21 → 0.0.22
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/server/index.js +44 -124
- package/dist/server/index.mjs +44 -124
- package/dist/server/src/content-types/index.d.ts +0 -3
- package/dist/server/src/content-types/transcript/index.d.ts +0 -3
- package/dist/server/src/index.d.ts +0 -4
- package/dist/server/src/mcp/schemas/index.d.ts +0 -6
- package/dist/server/src/mcp/tools/fetch-transcript.d.ts +0 -5
- package/dist/server/src/mcp/tools/index.d.ts +13 -13
- package/dist/server/src/services/index.d.ts +0 -1
- package/dist/server/src/services/service.d.ts +0 -2
- package/node_modules/express/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/express/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/express/node_modules/media-typer/README.md +93 -0
- package/node_modules/express/node_modules/media-typer/index.js +143 -0
- package/node_modules/express/node_modules/media-typer/package.json +33 -0
- package/node_modules/express/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/express/node_modules/type-is/LICENSE +23 -0
- package/node_modules/express/node_modules/type-is/README.md +198 -0
- package/node_modules/express/node_modules/type-is/index.js +250 -0
- package/node_modules/express/node_modules/type-is/package.json +47 -0
- package/package.json +1 -5
- package/dist/server/src/utils/openai.d.ts +0 -9
- package/node_modules/which/CHANGELOG.md +0 -166
- /package/node_modules/{media-typer → body-parser/node_modules/media-typer}/HISTORY.md +0 -0
- /package/node_modules/{media-typer → body-parser/node_modules/media-typer}/LICENSE +0 -0
- /package/node_modules/{media-typer → body-parser/node_modules/media-typer}/README.md +0 -0
- /package/node_modules/{media-typer → body-parser/node_modules/media-typer}/index.js +0 -0
- /package/node_modules/{media-typer → body-parser/node_modules/media-typer}/package.json +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/HISTORY.md +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/LICENSE +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/README.md +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/index.js +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/mimeScore.js +0 -0
- /package/node_modules/{type-is → body-parser}/node_modules/mime-types/package.json +0 -0
- /package/node_modules/{type-is → body-parser/node_modules/type-is}/HISTORY.md +0 -0
- /package/node_modules/{type-is → body-parser/node_modules/type-is}/LICENSE +0 -0
- /package/node_modules/{type-is → body-parser/node_modules/type-is}/README.md +0 -0
- /package/node_modules/{type-is → body-parser/node_modules/type-is}/index.js +0 -0
- /package/node_modules/{type-is → body-parser/node_modules/type-is}/package.json +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# media-typer
|
|
2
|
+
|
|
3
|
+
[![NPM Version][npm-version-image]][npm-url]
|
|
4
|
+
[![NPM Downloads][npm-downloads-image]][npm-url]
|
|
5
|
+
[![Node.js Version][node-version-image]][node-version-url]
|
|
6
|
+
[![Build Status][travis-image]][travis-url]
|
|
7
|
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
8
|
+
|
|
9
|
+
Simple RFC 6838 media type parser.
|
|
10
|
+
|
|
11
|
+
This module will parse a given media type into it's component parts, like type,
|
|
12
|
+
subtype, and suffix. A formatter is also provided to put them back together and
|
|
13
|
+
the two can be combined to normalize media types into a canonical form.
|
|
14
|
+
|
|
15
|
+
If you are looking to parse the string that represents a media type and it's
|
|
16
|
+
parameters in HTTP (for example, the `Content-Type` header), use the
|
|
17
|
+
[content-type module](https://www.npmjs.com/package/content-type).
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
This is a [Node.js](https://nodejs.org/en/) module available through the
|
|
22
|
+
[npm registry](https://www.npmjs.com/). Installation is done using the
|
|
23
|
+
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
$ npm install media-typer
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
<!-- eslint-disable no-unused-vars -->
|
|
32
|
+
|
|
33
|
+
```js
|
|
34
|
+
var typer = require('media-typer')
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### typer.parse(string)
|
|
38
|
+
|
|
39
|
+
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
var obj = typer.parse('image/svg+xml')
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Parse a media type string. This will return an object with the following
|
|
46
|
+
properties (examples are shown for the string `'image/svg+xml; charset=utf-8'`):
|
|
47
|
+
|
|
48
|
+
- `type`: The type of the media type (always lower case). Example: `'image'`
|
|
49
|
+
|
|
50
|
+
- `subtype`: The subtype of the media type (always lower case). Example: `'svg'`
|
|
51
|
+
|
|
52
|
+
- `suffix`: The suffix of the media type (always lower case). Example: `'xml'`
|
|
53
|
+
|
|
54
|
+
If the given type string is invalid, then a `TypeError` is thrown.
|
|
55
|
+
|
|
56
|
+
### typer.format(obj)
|
|
57
|
+
|
|
58
|
+
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
var obj = typer.format({ type: 'image', subtype: 'svg', suffix: 'xml' })
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Format an object into a media type string. This will return a string of the
|
|
65
|
+
mime type for the given object. For the properties of the object, see the
|
|
66
|
+
documentation for `typer.parse(string)`.
|
|
67
|
+
|
|
68
|
+
If any of the given object values are invalid, then a `TypeError` is thrown.
|
|
69
|
+
|
|
70
|
+
### typer.test(string)
|
|
71
|
+
|
|
72
|
+
<!-- eslint-disable no-undef, no-unused-vars -->
|
|
73
|
+
|
|
74
|
+
```js
|
|
75
|
+
var valid = typer.test('image/svg+xml')
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Validate a media type string. This will return `true` is the string is a well-
|
|
79
|
+
formatted media type, or `false` otherwise.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
[MIT](LICENSE)
|
|
84
|
+
|
|
85
|
+
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/media-typer/master
|
|
86
|
+
[coveralls-url]: https://coveralls.io/r/jshttp/media-typer?branch=master
|
|
87
|
+
[node-version-image]: https://badgen.net/npm/node/media-typer
|
|
88
|
+
[node-version-url]: https://nodejs.org/en/download
|
|
89
|
+
[npm-downloads-image]: https://badgen.net/npm/dm/media-typer
|
|
90
|
+
[npm-url]: https://npmjs.org/package/media-typer
|
|
91
|
+
[npm-version-image]: https://badgen.net/npm/v/media-typer
|
|
92
|
+
[travis-image]: https://badgen.net/travis/jshttp/media-typer/master
|
|
93
|
+
[travis-url]: https://travis-ci.org/jshttp/media-typer
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* media-typer
|
|
3
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
4
|
+
* MIT Licensed
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* RegExp to match type in RFC 6838
|
|
11
|
+
*
|
|
12
|
+
* type-name = restricted-name
|
|
13
|
+
* subtype-name = restricted-name
|
|
14
|
+
* restricted-name = restricted-name-first *126restricted-name-chars
|
|
15
|
+
* restricted-name-first = ALPHA / DIGIT
|
|
16
|
+
* restricted-name-chars = ALPHA / DIGIT / "!" / "#" /
|
|
17
|
+
* "$" / "&" / "-" / "^" / "_"
|
|
18
|
+
* restricted-name-chars =/ "." ; Characters before first dot always
|
|
19
|
+
* ; specify a facet name
|
|
20
|
+
* restricted-name-chars =/ "+" ; Characters after last plus always
|
|
21
|
+
* ; specify a structured syntax suffix
|
|
22
|
+
* ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
23
|
+
* DIGIT = %x30-39 ; 0-9
|
|
24
|
+
*/
|
|
25
|
+
var SUBTYPE_NAME_REGEXP = /^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/
|
|
26
|
+
var TYPE_NAME_REGEXP = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/
|
|
27
|
+
var TYPE_REGEXP = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Module exports.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
exports.format = format
|
|
34
|
+
exports.parse = parse
|
|
35
|
+
exports.test = test
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Format object to media type.
|
|
39
|
+
*
|
|
40
|
+
* @param {object} obj
|
|
41
|
+
* @return {string}
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
function format (obj) {
|
|
46
|
+
if (!obj || typeof obj !== 'object') {
|
|
47
|
+
throw new TypeError('argument obj is required')
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var subtype = obj.subtype
|
|
51
|
+
var suffix = obj.suffix
|
|
52
|
+
var type = obj.type
|
|
53
|
+
|
|
54
|
+
if (!type || !TYPE_NAME_REGEXP.test(type)) {
|
|
55
|
+
throw new TypeError('invalid type')
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (!subtype || !SUBTYPE_NAME_REGEXP.test(subtype)) {
|
|
59
|
+
throw new TypeError('invalid subtype')
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// format as type/subtype
|
|
63
|
+
var string = type + '/' + subtype
|
|
64
|
+
|
|
65
|
+
// append +suffix
|
|
66
|
+
if (suffix) {
|
|
67
|
+
if (!TYPE_NAME_REGEXP.test(suffix)) {
|
|
68
|
+
throw new TypeError('invalid suffix')
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
string += '+' + suffix
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Test media type.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} string
|
|
81
|
+
* @return {object}
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
function test (string) {
|
|
86
|
+
if (!string) {
|
|
87
|
+
throw new TypeError('argument string is required')
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (typeof string !== 'string') {
|
|
91
|
+
throw new TypeError('argument string is required to be a string')
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return TYPE_REGEXP.test(string.toLowerCase())
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Parse media type to object.
|
|
99
|
+
*
|
|
100
|
+
* @param {string} string
|
|
101
|
+
* @return {object}
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
function parse (string) {
|
|
106
|
+
if (!string) {
|
|
107
|
+
throw new TypeError('argument string is required')
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (typeof string !== 'string') {
|
|
111
|
+
throw new TypeError('argument string is required to be a string')
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
var match = TYPE_REGEXP.exec(string.toLowerCase())
|
|
115
|
+
|
|
116
|
+
if (!match) {
|
|
117
|
+
throw new TypeError('invalid media type')
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var type = match[1]
|
|
121
|
+
var subtype = match[2]
|
|
122
|
+
var suffix
|
|
123
|
+
|
|
124
|
+
// suffix after last +
|
|
125
|
+
var index = subtype.lastIndexOf('+')
|
|
126
|
+
if (index !== -1) {
|
|
127
|
+
suffix = subtype.substr(index + 1)
|
|
128
|
+
subtype = subtype.substr(0, index)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return new MediaType(type, subtype, suffix)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Class for MediaType object.
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
function MediaType (type, subtype, suffix) {
|
|
140
|
+
this.type = type
|
|
141
|
+
this.subtype = subtype
|
|
142
|
+
this.suffix = suffix
|
|
143
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "media-typer",
|
|
3
|
+
"description": "Simple RFC 6838 media type parser and formatter",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "jshttp/media-typer",
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"eslint": "5.16.0",
|
|
10
|
+
"eslint-config-standard": "12.0.0",
|
|
11
|
+
"eslint-plugin-import": "2.17.2",
|
|
12
|
+
"eslint-plugin-markdown": "1.0.0",
|
|
13
|
+
"eslint-plugin-node": "8.0.1",
|
|
14
|
+
"eslint-plugin-promise": "4.1.1",
|
|
15
|
+
"eslint-plugin-standard": "4.0.0",
|
|
16
|
+
"mocha": "6.1.4",
|
|
17
|
+
"nyc": "14.0.0"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"HISTORY.md",
|
|
22
|
+
"index.js"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">= 0.8"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"lint": "eslint --plugin markdown --ext js,md .",
|
|
29
|
+
"test": "mocha --reporter spec --check-leaks --bail test/",
|
|
30
|
+
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
|
31
|
+
"test-travis": "nyc --reporter=text npm test"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
2.0.1 / 2025-03-27
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
2.0.0 / 2024-08-31
|
|
5
|
+
==========
|
|
6
|
+
|
|
7
|
+
* Drop node <18
|
|
8
|
+
* Use `content-type@^1.0.5` and `media-typer@^1.0.0` for type validation
|
|
9
|
+
- No behavior changes, upgrades `media-typer`
|
|
10
|
+
* deps: mime-types@^3.0.0
|
|
11
|
+
- Add `application/toml` with extension `.toml`
|
|
12
|
+
- Add `application/ubjson` with extension `.ubj`
|
|
13
|
+
- Add `application/x-keepass2` with extension `.kdbx`
|
|
14
|
+
- Add deprecated iWorks mime types and extensions
|
|
15
|
+
- Add extension `.amr` to `audio/amr`
|
|
16
|
+
- Add extension `.cjs` to `application/node`
|
|
17
|
+
- Add extension `.dbf` to `application/vnd.dbf`
|
|
18
|
+
- Add extension `.m4s` to `video/iso.segment`
|
|
19
|
+
- Add extension `.mvt` to `application/vnd.mapbox-vector-tile`
|
|
20
|
+
- Add extension `.mxmf` to `audio/mobile-xmf`
|
|
21
|
+
- Add extension `.opus` to `audio/ogg`
|
|
22
|
+
- Add extension `.rar` to `application/vnd.rar`
|
|
23
|
+
- Add extension `.td` to `application/urc-targetdesc+xml`
|
|
24
|
+
- Add extension `.trig` to `application/trig`
|
|
25
|
+
- Add extensions from IANA for `application/*+xml` types
|
|
26
|
+
- Add `image/avif` with extension `.avif`
|
|
27
|
+
- Add `image/ktx2` with extension `.ktx2`
|
|
28
|
+
- Add `image/vnd.ms-dds` with extension `.dds`
|
|
29
|
+
- Add new upstream MIME types
|
|
30
|
+
- Fix extension of `application/vnd.apple.keynote` to be `.key`
|
|
31
|
+
- Remove ambigious extensions from IANA for `application/*+xml` types
|
|
32
|
+
- Update primary extension to `.es` for `application/ecmascript`
|
|
33
|
+
|
|
34
|
+
1.6.18 / 2019-04-26
|
|
35
|
+
===================
|
|
36
|
+
|
|
37
|
+
* Fix regression passing request object to `typeis.is`
|
|
38
|
+
|
|
39
|
+
1.6.17 / 2019-04-25
|
|
40
|
+
===================
|
|
41
|
+
|
|
42
|
+
* deps: mime-types@~2.1.24
|
|
43
|
+
- Add Apple file extensions from IANA
|
|
44
|
+
- Add extension `.csl` to `application/vnd.citationstyles.style+xml`
|
|
45
|
+
- Add extension `.es` to `application/ecmascript`
|
|
46
|
+
- Add extension `.nq` to `application/n-quads`
|
|
47
|
+
- Add extension `.nt` to `application/n-triples`
|
|
48
|
+
- Add extension `.owl` to `application/rdf+xml`
|
|
49
|
+
- Add extensions `.siv` and `.sieve` to `application/sieve`
|
|
50
|
+
- Add extensions from IANA for `image/*` types
|
|
51
|
+
- Add extensions from IANA for `model/*` types
|
|
52
|
+
- Add extensions to HEIC image types
|
|
53
|
+
- Add new mime types
|
|
54
|
+
- Add `text/mdx` with extension `.mdx`
|
|
55
|
+
* perf: prevent internal `throw` on invalid type
|
|
56
|
+
|
|
57
|
+
1.6.16 / 2018-02-16
|
|
58
|
+
===================
|
|
59
|
+
|
|
60
|
+
* deps: mime-types@~2.1.18
|
|
61
|
+
- Add `application/raml+yaml` with extension `.raml`
|
|
62
|
+
- Add `application/wasm` with extension `.wasm`
|
|
63
|
+
- Add `text/shex` with extension `.shex`
|
|
64
|
+
- Add extensions for JPEG-2000 images
|
|
65
|
+
- Add extensions from IANA for `message/*` types
|
|
66
|
+
- Add extension `.mjs` to `application/javascript`
|
|
67
|
+
- Add extension `.wadl` to `application/vnd.sun.wadl+xml`
|
|
68
|
+
- Add extension `.gz` to `application/gzip`
|
|
69
|
+
- Add glTF types and extensions
|
|
70
|
+
- Add new mime types
|
|
71
|
+
- Update extensions `.md` and `.markdown` to be `text/markdown`
|
|
72
|
+
- Update font MIME types
|
|
73
|
+
- Update `text/hjson` to registered `application/hjson`
|
|
74
|
+
|
|
75
|
+
1.6.15 / 2017-03-31
|
|
76
|
+
===================
|
|
77
|
+
|
|
78
|
+
* deps: mime-types@~2.1.15
|
|
79
|
+
- Add new mime types
|
|
80
|
+
|
|
81
|
+
1.6.14 / 2016-11-18
|
|
82
|
+
===================
|
|
83
|
+
|
|
84
|
+
* deps: mime-types@~2.1.13
|
|
85
|
+
- Add new mime types
|
|
86
|
+
|
|
87
|
+
1.6.13 / 2016-05-18
|
|
88
|
+
===================
|
|
89
|
+
|
|
90
|
+
* deps: mime-types@~2.1.11
|
|
91
|
+
- Add new mime types
|
|
92
|
+
|
|
93
|
+
1.6.12 / 2016-02-28
|
|
94
|
+
===================
|
|
95
|
+
|
|
96
|
+
* deps: mime-types@~2.1.10
|
|
97
|
+
- Add new mime types
|
|
98
|
+
- Fix extension of `application/dash+xml`
|
|
99
|
+
- Update primary extension for `audio/mp4`
|
|
100
|
+
|
|
101
|
+
1.6.11 / 2016-01-29
|
|
102
|
+
===================
|
|
103
|
+
|
|
104
|
+
* deps: mime-types@~2.1.9
|
|
105
|
+
- Add new mime types
|
|
106
|
+
|
|
107
|
+
1.6.10 / 2015-12-01
|
|
108
|
+
===================
|
|
109
|
+
|
|
110
|
+
* deps: mime-types@~2.1.8
|
|
111
|
+
- Add new mime types
|
|
112
|
+
|
|
113
|
+
1.6.9 / 2015-09-27
|
|
114
|
+
==================
|
|
115
|
+
|
|
116
|
+
* deps: mime-types@~2.1.7
|
|
117
|
+
- Add new mime types
|
|
118
|
+
|
|
119
|
+
1.6.8 / 2015-09-04
|
|
120
|
+
==================
|
|
121
|
+
|
|
122
|
+
* deps: mime-types@~2.1.6
|
|
123
|
+
- Add new mime types
|
|
124
|
+
|
|
125
|
+
1.6.7 / 2015-08-20
|
|
126
|
+
==================
|
|
127
|
+
|
|
128
|
+
* Fix type error when given invalid type to match against
|
|
129
|
+
* deps: mime-types@~2.1.5
|
|
130
|
+
- Add new mime types
|
|
131
|
+
|
|
132
|
+
1.6.6 / 2015-07-31
|
|
133
|
+
==================
|
|
134
|
+
|
|
135
|
+
* deps: mime-types@~2.1.4
|
|
136
|
+
- Add new mime types
|
|
137
|
+
|
|
138
|
+
1.6.5 / 2015-07-16
|
|
139
|
+
==================
|
|
140
|
+
|
|
141
|
+
* deps: mime-types@~2.1.3
|
|
142
|
+
- Add new mime types
|
|
143
|
+
|
|
144
|
+
1.6.4 / 2015-07-01
|
|
145
|
+
==================
|
|
146
|
+
|
|
147
|
+
* deps: mime-types@~2.1.2
|
|
148
|
+
- Add new mime types
|
|
149
|
+
* perf: enable strict mode
|
|
150
|
+
* perf: remove argument reassignment
|
|
151
|
+
|
|
152
|
+
1.6.3 / 2015-06-08
|
|
153
|
+
==================
|
|
154
|
+
|
|
155
|
+
* deps: mime-types@~2.1.1
|
|
156
|
+
- Add new mime types
|
|
157
|
+
* perf: reduce try block size
|
|
158
|
+
* perf: remove bitwise operations
|
|
159
|
+
|
|
160
|
+
1.6.2 / 2015-05-10
|
|
161
|
+
==================
|
|
162
|
+
|
|
163
|
+
* deps: mime-types@~2.0.11
|
|
164
|
+
- Add new mime types
|
|
165
|
+
|
|
166
|
+
1.6.1 / 2015-03-13
|
|
167
|
+
==================
|
|
168
|
+
|
|
169
|
+
* deps: mime-types@~2.0.10
|
|
170
|
+
- Add new mime types
|
|
171
|
+
|
|
172
|
+
1.6.0 / 2015-02-12
|
|
173
|
+
==================
|
|
174
|
+
|
|
175
|
+
* fix false-positives in `hasBody` `Transfer-Encoding` check
|
|
176
|
+
* support wildcard for both type and subtype (`*/*`)
|
|
177
|
+
|
|
178
|
+
1.5.7 / 2015-02-09
|
|
179
|
+
==================
|
|
180
|
+
|
|
181
|
+
* fix argument reassignment
|
|
182
|
+
* deps: mime-types@~2.0.9
|
|
183
|
+
- Add new mime types
|
|
184
|
+
|
|
185
|
+
1.5.6 / 2015-01-29
|
|
186
|
+
==================
|
|
187
|
+
|
|
188
|
+
* deps: mime-types@~2.0.8
|
|
189
|
+
- Add new mime types
|
|
190
|
+
|
|
191
|
+
1.5.5 / 2014-12-30
|
|
192
|
+
==================
|
|
193
|
+
|
|
194
|
+
* deps: mime-types@~2.0.7
|
|
195
|
+
- Add new mime types
|
|
196
|
+
- Fix missing extensions
|
|
197
|
+
- Fix various invalid MIME type entries
|
|
198
|
+
- Remove example template MIME types
|
|
199
|
+
- deps: mime-db@~1.5.0
|
|
200
|
+
|
|
201
|
+
1.5.4 / 2014-12-10
|
|
202
|
+
==================
|
|
203
|
+
|
|
204
|
+
* deps: mime-types@~2.0.4
|
|
205
|
+
- Add new mime types
|
|
206
|
+
- deps: mime-db@~1.3.0
|
|
207
|
+
|
|
208
|
+
1.5.3 / 2014-11-09
|
|
209
|
+
==================
|
|
210
|
+
|
|
211
|
+
* deps: mime-types@~2.0.3
|
|
212
|
+
- Add new mime types
|
|
213
|
+
- deps: mime-db@~1.2.0
|
|
214
|
+
|
|
215
|
+
1.5.2 / 2014-09-28
|
|
216
|
+
==================
|
|
217
|
+
|
|
218
|
+
* deps: mime-types@~2.0.2
|
|
219
|
+
- Add new mime types
|
|
220
|
+
- deps: mime-db@~1.1.0
|
|
221
|
+
|
|
222
|
+
1.5.1 / 2014-09-07
|
|
223
|
+
==================
|
|
224
|
+
|
|
225
|
+
* Support Node.js 0.6
|
|
226
|
+
* deps: media-typer@0.3.0
|
|
227
|
+
* deps: mime-types@~2.0.1
|
|
228
|
+
- Support Node.js 0.6
|
|
229
|
+
|
|
230
|
+
1.5.0 / 2014-09-05
|
|
231
|
+
==================
|
|
232
|
+
|
|
233
|
+
* fix `hasbody` to be true for `content-length: 0`
|
|
234
|
+
|
|
235
|
+
1.4.0 / 2014-09-02
|
|
236
|
+
==================
|
|
237
|
+
|
|
238
|
+
* update mime-types
|
|
239
|
+
|
|
240
|
+
1.3.2 / 2014-06-24
|
|
241
|
+
==================
|
|
242
|
+
|
|
243
|
+
* use `~` range on mime-types
|
|
244
|
+
|
|
245
|
+
1.3.1 / 2014-06-19
|
|
246
|
+
==================
|
|
247
|
+
|
|
248
|
+
* fix global variable leak
|
|
249
|
+
|
|
250
|
+
1.3.0 / 2014-06-19
|
|
251
|
+
==================
|
|
252
|
+
|
|
253
|
+
* improve type parsing
|
|
254
|
+
|
|
255
|
+
- invalid media type never matches
|
|
256
|
+
- media type not case-sensitive
|
|
257
|
+
- extra LWS does not affect results
|
|
258
|
+
|
|
259
|
+
1.2.2 / 2014-06-19
|
|
260
|
+
==================
|
|
261
|
+
|
|
262
|
+
* fix behavior on unknown type argument
|
|
263
|
+
|
|
264
|
+
1.2.1 / 2014-06-03
|
|
265
|
+
==================
|
|
266
|
+
|
|
267
|
+
* switch dependency from `mime` to `mime-types@1.0.0`
|
|
268
|
+
|
|
269
|
+
1.2.0 / 2014-05-11
|
|
270
|
+
==================
|
|
271
|
+
|
|
272
|
+
* support suffix matching:
|
|
273
|
+
|
|
274
|
+
- `+json` matches `application/vnd+json`
|
|
275
|
+
- `*/vnd+json` matches `application/vnd+json`
|
|
276
|
+
- `application/*+json` matches `application/vnd+json`
|
|
277
|
+
|
|
278
|
+
1.1.0 / 2014-04-12
|
|
279
|
+
==================
|
|
280
|
+
|
|
281
|
+
* add non-array values support
|
|
282
|
+
* expose internal utilities:
|
|
283
|
+
|
|
284
|
+
- `.is()`
|
|
285
|
+
- `.hasBody()`
|
|
286
|
+
- `.normalize()`
|
|
287
|
+
- `.match()`
|
|
288
|
+
|
|
289
|
+
1.0.1 / 2014-03-30
|
|
290
|
+
==================
|
|
291
|
+
|
|
292
|
+
* add `multipart` as a shorthand
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
|
4
|
+
Copyright (c) 2014-2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
7
|
+
a copy of this software and associated documentation files (the
|
|
8
|
+
'Software'), to deal in the Software without restriction, including
|
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
12
|
+
the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be
|
|
15
|
+
included in all copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
20
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
21
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
22
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
23
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|