speaker-calibration 2.1.6 → 2.1.7

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.
Files changed (425) hide show
  1. package/dist/main.js +1110 -912
  2. package/dist/package-lock.json +1018 -1018
  3. package/dist/package.json +18 -18
  4. package/package.json +1 -1
  5. package/src/tasks/volume/volume.js +28 -1
  6. package/dist/node_modules/.bin/mime +0 -12
  7. package/dist/node_modules/.bin/mime.cmd +0 -17
  8. package/dist/node_modules/.bin/mime.ps1 +0 -28
  9. package/dist/node_modules/.package-lock.json +0 -584
  10. package/dist/node_modules/accepts/HISTORY.md +0 -243
  11. package/dist/node_modules/accepts/LICENSE +0 -23
  12. package/dist/node_modules/accepts/README.md +0 -140
  13. package/dist/node_modules/accepts/index.js +0 -238
  14. package/dist/node_modules/accepts/package.json +0 -47
  15. package/dist/node_modules/array-flatten/LICENSE +0 -21
  16. package/dist/node_modules/array-flatten/README.md +0 -43
  17. package/dist/node_modules/array-flatten/array-flatten.js +0 -64
  18. package/dist/node_modules/array-flatten/package.json +0 -39
  19. package/dist/node_modules/body-parser/HISTORY.md +0 -657
  20. package/dist/node_modules/body-parser/LICENSE +0 -23
  21. package/dist/node_modules/body-parser/README.md +0 -464
  22. package/dist/node_modules/body-parser/SECURITY.md +0 -25
  23. package/dist/node_modules/body-parser/index.js +0 -156
  24. package/dist/node_modules/body-parser/lib/read.js +0 -205
  25. package/dist/node_modules/body-parser/lib/types/json.js +0 -236
  26. package/dist/node_modules/body-parser/lib/types/raw.js +0 -101
  27. package/dist/node_modules/body-parser/lib/types/text.js +0 -121
  28. package/dist/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  29. package/dist/node_modules/body-parser/package.json +0 -56
  30. package/dist/node_modules/bytes/History.md +0 -97
  31. package/dist/node_modules/bytes/LICENSE +0 -23
  32. package/dist/node_modules/bytes/Readme.md +0 -152
  33. package/dist/node_modules/bytes/index.js +0 -170
  34. package/dist/node_modules/bytes/package.json +0 -42
  35. package/dist/node_modules/call-bind/.eslintignore +0 -1
  36. package/dist/node_modules/call-bind/.eslintrc +0 -17
  37. package/dist/node_modules/call-bind/.github/FUNDING.yml +0 -12
  38. package/dist/node_modules/call-bind/.nycrc +0 -13
  39. package/dist/node_modules/call-bind/CHANGELOG.md +0 -42
  40. package/dist/node_modules/call-bind/LICENSE +0 -21
  41. package/dist/node_modules/call-bind/README.md +0 -2
  42. package/dist/node_modules/call-bind/callBound.js +0 -15
  43. package/dist/node_modules/call-bind/index.js +0 -47
  44. package/dist/node_modules/call-bind/package.json +0 -80
  45. package/dist/node_modules/call-bind/test/callBound.js +0 -55
  46. package/dist/node_modules/call-bind/test/index.js +0 -66
  47. package/dist/node_modules/content-disposition/HISTORY.md +0 -60
  48. package/dist/node_modules/content-disposition/LICENSE +0 -22
  49. package/dist/node_modules/content-disposition/README.md +0 -142
  50. package/dist/node_modules/content-disposition/index.js +0 -458
  51. package/dist/node_modules/content-disposition/package.json +0 -44
  52. package/dist/node_modules/content-type/HISTORY.md +0 -24
  53. package/dist/node_modules/content-type/LICENSE +0 -22
  54. package/dist/node_modules/content-type/README.md +0 -92
  55. package/dist/node_modules/content-type/index.js +0 -222
  56. package/dist/node_modules/content-type/package.json +0 -40
  57. package/dist/node_modules/cookie/HISTORY.md +0 -142
  58. package/dist/node_modules/cookie/LICENSE +0 -24
  59. package/dist/node_modules/cookie/README.md +0 -302
  60. package/dist/node_modules/cookie/SECURITY.md +0 -25
  61. package/dist/node_modules/cookie/index.js +0 -270
  62. package/dist/node_modules/cookie/package.json +0 -44
  63. package/dist/node_modules/cookie-signature/History.md +0 -38
  64. package/dist/node_modules/cookie-signature/Readme.md +0 -42
  65. package/dist/node_modules/cookie-signature/index.js +0 -51
  66. package/dist/node_modules/cookie-signature/package.json +0 -18
  67. package/dist/node_modules/debug/.coveralls.yml +0 -1
  68. package/dist/node_modules/debug/.eslintrc +0 -11
  69. package/dist/node_modules/debug/.travis.yml +0 -14
  70. package/dist/node_modules/debug/CHANGELOG.md +0 -362
  71. package/dist/node_modules/debug/LICENSE +0 -19
  72. package/dist/node_modules/debug/Makefile +0 -50
  73. package/dist/node_modules/debug/README.md +0 -312
  74. package/dist/node_modules/debug/component.json +0 -19
  75. package/dist/node_modules/debug/karma.conf.js +0 -70
  76. package/dist/node_modules/debug/node.js +0 -1
  77. package/dist/node_modules/debug/package.json +0 -49
  78. package/dist/node_modules/debug/src/browser.js +0 -185
  79. package/dist/node_modules/debug/src/debug.js +0 -202
  80. package/dist/node_modules/debug/src/index.js +0 -10
  81. package/dist/node_modules/debug/src/inspector-log.js +0 -15
  82. package/dist/node_modules/debug/src/node.js +0 -248
  83. package/dist/node_modules/depd/History.md +0 -103
  84. package/dist/node_modules/depd/LICENSE +0 -22
  85. package/dist/node_modules/depd/Readme.md +0 -280
  86. package/dist/node_modules/depd/index.js +0 -538
  87. package/dist/node_modules/depd/lib/browser/index.js +0 -77
  88. package/dist/node_modules/depd/package.json +0 -45
  89. package/dist/node_modules/destroy/LICENSE +0 -23
  90. package/dist/node_modules/destroy/README.md +0 -63
  91. package/dist/node_modules/destroy/index.js +0 -209
  92. package/dist/node_modules/destroy/package.json +0 -48
  93. package/dist/node_modules/ee-first/LICENSE +0 -22
  94. package/dist/node_modules/ee-first/README.md +0 -80
  95. package/dist/node_modules/ee-first/index.js +0 -95
  96. package/dist/node_modules/ee-first/package.json +0 -29
  97. package/dist/node_modules/encodeurl/HISTORY.md +0 -14
  98. package/dist/node_modules/encodeurl/LICENSE +0 -22
  99. package/dist/node_modules/encodeurl/README.md +0 -128
  100. package/dist/node_modules/encodeurl/index.js +0 -60
  101. package/dist/node_modules/encodeurl/package.json +0 -40
  102. package/dist/node_modules/escape-html/LICENSE +0 -24
  103. package/dist/node_modules/escape-html/Readme.md +0 -43
  104. package/dist/node_modules/escape-html/index.js +0 -78
  105. package/dist/node_modules/escape-html/package.json +0 -24
  106. package/dist/node_modules/etag/HISTORY.md +0 -83
  107. package/dist/node_modules/etag/LICENSE +0 -22
  108. package/dist/node_modules/etag/README.md +0 -159
  109. package/dist/node_modules/etag/index.js +0 -131
  110. package/dist/node_modules/etag/package.json +0 -47
  111. package/dist/node_modules/express/History.md +0 -3588
  112. package/dist/node_modules/express/LICENSE +0 -24
  113. package/dist/node_modules/express/Readme.md +0 -166
  114. package/dist/node_modules/express/index.js +0 -11
  115. package/dist/node_modules/express/lib/application.js +0 -661
  116. package/dist/node_modules/express/lib/express.js +0 -116
  117. package/dist/node_modules/express/lib/middleware/init.js +0 -43
  118. package/dist/node_modules/express/lib/middleware/query.js +0 -47
  119. package/dist/node_modules/express/lib/request.js +0 -525
  120. package/dist/node_modules/express/lib/response.js +0 -1169
  121. package/dist/node_modules/express/lib/router/index.js +0 -673
  122. package/dist/node_modules/express/lib/router/layer.js +0 -181
  123. package/dist/node_modules/express/lib/router/route.js +0 -225
  124. package/dist/node_modules/express/lib/utils.js +0 -304
  125. package/dist/node_modules/express/lib/view.js +0 -182
  126. package/dist/node_modules/express/package.json +0 -99
  127. package/dist/node_modules/finalhandler/HISTORY.md +0 -195
  128. package/dist/node_modules/finalhandler/LICENSE +0 -22
  129. package/dist/node_modules/finalhandler/README.md +0 -147
  130. package/dist/node_modules/finalhandler/SECURITY.md +0 -25
  131. package/dist/node_modules/finalhandler/index.js +0 -336
  132. package/dist/node_modules/finalhandler/package.json +0 -46
  133. package/dist/node_modules/forwarded/HISTORY.md +0 -21
  134. package/dist/node_modules/forwarded/LICENSE +0 -22
  135. package/dist/node_modules/forwarded/README.md +0 -57
  136. package/dist/node_modules/forwarded/index.js +0 -90
  137. package/dist/node_modules/forwarded/package.json +0 -45
  138. package/dist/node_modules/fresh/HISTORY.md +0 -70
  139. package/dist/node_modules/fresh/LICENSE +0 -23
  140. package/dist/node_modules/fresh/README.md +0 -119
  141. package/dist/node_modules/fresh/index.js +0 -137
  142. package/dist/node_modules/fresh/package.json +0 -46
  143. package/dist/node_modules/function-bind/.editorconfig +0 -20
  144. package/dist/node_modules/function-bind/.eslintrc +0 -15
  145. package/dist/node_modules/function-bind/.jscs.json +0 -176
  146. package/dist/node_modules/function-bind/.travis.yml +0 -168
  147. package/dist/node_modules/function-bind/LICENSE +0 -20
  148. package/dist/node_modules/function-bind/README.md +0 -48
  149. package/dist/node_modules/function-bind/implementation.js +0 -52
  150. package/dist/node_modules/function-bind/index.js +0 -5
  151. package/dist/node_modules/function-bind/package.json +0 -63
  152. package/dist/node_modules/function-bind/test/.eslintrc +0 -9
  153. package/dist/node_modules/function-bind/test/index.js +0 -252
  154. package/dist/node_modules/get-intrinsic/.eslintrc +0 -37
  155. package/dist/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  156. package/dist/node_modules/get-intrinsic/.nycrc +0 -9
  157. package/dist/node_modules/get-intrinsic/CHANGELOG.md +0 -98
  158. package/dist/node_modules/get-intrinsic/LICENSE +0 -21
  159. package/dist/node_modules/get-intrinsic/README.md +0 -71
  160. package/dist/node_modules/get-intrinsic/index.js +0 -334
  161. package/dist/node_modules/get-intrinsic/package.json +0 -91
  162. package/dist/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  163. package/dist/node_modules/has/LICENSE-MIT +0 -22
  164. package/dist/node_modules/has/README.md +0 -18
  165. package/dist/node_modules/has/package.json +0 -48
  166. package/dist/node_modules/has/src/index.js +0 -5
  167. package/dist/node_modules/has/test/index.js +0 -10
  168. package/dist/node_modules/has-symbols/.eslintrc +0 -11
  169. package/dist/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  170. package/dist/node_modules/has-symbols/.nycrc +0 -9
  171. package/dist/node_modules/has-symbols/CHANGELOG.md +0 -75
  172. package/dist/node_modules/has-symbols/LICENSE +0 -21
  173. package/dist/node_modules/has-symbols/README.md +0 -46
  174. package/dist/node_modules/has-symbols/index.js +0 -13
  175. package/dist/node_modules/has-symbols/package.json +0 -101
  176. package/dist/node_modules/has-symbols/shams.js +0 -42
  177. package/dist/node_modules/has-symbols/test/index.js +0 -22
  178. package/dist/node_modules/has-symbols/test/shams/core-js.js +0 -28
  179. package/dist/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
  180. package/dist/node_modules/has-symbols/test/tests.js +0 -56
  181. package/dist/node_modules/http-errors/HISTORY.md +0 -180
  182. package/dist/node_modules/http-errors/LICENSE +0 -23
  183. package/dist/node_modules/http-errors/README.md +0 -169
  184. package/dist/node_modules/http-errors/index.js +0 -289
  185. package/dist/node_modules/http-errors/package.json +0 -50
  186. package/dist/node_modules/iconv-lite/Changelog.md +0 -162
  187. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  188. package/dist/node_modules/iconv-lite/README.md +0 -156
  189. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  190. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  191. package/dist/node_modules/iconv-lite/encodings/index.js +0 -22
  192. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -188
  193. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  194. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  195. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  196. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  197. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  198. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  199. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  200. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  201. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  202. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  203. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  204. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -177
  205. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -290
  206. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  207. package/dist/node_modules/iconv-lite/lib/extend-node.js +0 -217
  208. package/dist/node_modules/iconv-lite/lib/index.d.ts +0 -24
  209. package/dist/node_modules/iconv-lite/lib/index.js +0 -153
  210. package/dist/node_modules/iconv-lite/lib/streams.js +0 -121
  211. package/dist/node_modules/iconv-lite/package.json +0 -46
  212. package/dist/node_modules/inherits/LICENSE +0 -16
  213. package/dist/node_modules/inherits/README.md +0 -42
  214. package/dist/node_modules/inherits/inherits.js +0 -9
  215. package/dist/node_modules/inherits/inherits_browser.js +0 -27
  216. package/dist/node_modules/inherits/package.json +0 -29
  217. package/dist/node_modules/ipaddr.js/LICENSE +0 -19
  218. package/dist/node_modules/ipaddr.js/README.md +0 -233
  219. package/dist/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  220. package/dist/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  221. package/dist/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  222. package/dist/node_modules/ipaddr.js/package.json +0 -35
  223. package/dist/node_modules/media-typer/HISTORY.md +0 -22
  224. package/dist/node_modules/media-typer/LICENSE +0 -22
  225. package/dist/node_modules/media-typer/README.md +0 -81
  226. package/dist/node_modules/media-typer/index.js +0 -270
  227. package/dist/node_modules/media-typer/package.json +0 -26
  228. package/dist/node_modules/merge-descriptors/HISTORY.md +0 -21
  229. package/dist/node_modules/merge-descriptors/LICENSE +0 -23
  230. package/dist/node_modules/merge-descriptors/README.md +0 -48
  231. package/dist/node_modules/merge-descriptors/index.js +0 -60
  232. package/dist/node_modules/merge-descriptors/package.json +0 -32
  233. package/dist/node_modules/methods/HISTORY.md +0 -29
  234. package/dist/node_modules/methods/LICENSE +0 -24
  235. package/dist/node_modules/methods/README.md +0 -51
  236. package/dist/node_modules/methods/index.js +0 -69
  237. package/dist/node_modules/methods/package.json +0 -36
  238. package/dist/node_modules/mime/CHANGELOG.md +0 -164
  239. package/dist/node_modules/mime/LICENSE +0 -21
  240. package/dist/node_modules/mime/README.md +0 -90
  241. package/dist/node_modules/mime/cli.js +0 -8
  242. package/dist/node_modules/mime/mime.js +0 -108
  243. package/dist/node_modules/mime/package.json +0 -44
  244. package/dist/node_modules/mime/src/build.js +0 -53
  245. package/dist/node_modules/mime/src/test.js +0 -60
  246. package/dist/node_modules/mime/types.json +0 -1
  247. package/dist/node_modules/mime-db/HISTORY.md +0 -507
  248. package/dist/node_modules/mime-db/LICENSE +0 -23
  249. package/dist/node_modules/mime-db/README.md +0 -100
  250. package/dist/node_modules/mime-db/db.json +0 -8519
  251. package/dist/node_modules/mime-db/index.js +0 -12
  252. package/dist/node_modules/mime-db/package.json +0 -60
  253. package/dist/node_modules/mime-types/HISTORY.md +0 -397
  254. package/dist/node_modules/mime-types/LICENSE +0 -23
  255. package/dist/node_modules/mime-types/README.md +0 -113
  256. package/dist/node_modules/mime-types/index.js +0 -188
  257. package/dist/node_modules/mime-types/package.json +0 -44
  258. package/dist/node_modules/ms/index.js +0 -152
  259. package/dist/node_modules/ms/license.md +0 -21
  260. package/dist/node_modules/ms/package.json +0 -37
  261. package/dist/node_modules/ms/readme.md +0 -51
  262. package/dist/node_modules/negotiator/HISTORY.md +0 -108
  263. package/dist/node_modules/negotiator/LICENSE +0 -24
  264. package/dist/node_modules/negotiator/README.md +0 -203
  265. package/dist/node_modules/negotiator/index.js +0 -82
  266. package/dist/node_modules/negotiator/lib/charset.js +0 -169
  267. package/dist/node_modules/negotiator/lib/encoding.js +0 -184
  268. package/dist/node_modules/negotiator/lib/language.js +0 -179
  269. package/dist/node_modules/negotiator/lib/mediaType.js +0 -294
  270. package/dist/node_modules/negotiator/package.json +0 -42
  271. package/dist/node_modules/object-inspect/.eslintrc +0 -53
  272. package/dist/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  273. package/dist/node_modules/object-inspect/.nycrc +0 -13
  274. package/dist/node_modules/object-inspect/CHANGELOG.md +0 -360
  275. package/dist/node_modules/object-inspect/LICENSE +0 -21
  276. package/dist/node_modules/object-inspect/example/all.js +0 -23
  277. package/dist/node_modules/object-inspect/example/circular.js +0 -6
  278. package/dist/node_modules/object-inspect/example/fn.js +0 -5
  279. package/dist/node_modules/object-inspect/example/inspect.js +0 -10
  280. package/dist/node_modules/object-inspect/index.js +0 -512
  281. package/dist/node_modules/object-inspect/package-support.json +0 -20
  282. package/dist/node_modules/object-inspect/package.json +0 -94
  283. package/dist/node_modules/object-inspect/readme.markdown +0 -86
  284. package/dist/node_modules/object-inspect/test/bigint.js +0 -58
  285. package/dist/node_modules/object-inspect/test/browser/dom.js +0 -15
  286. package/dist/node_modules/object-inspect/test/circular.js +0 -16
  287. package/dist/node_modules/object-inspect/test/deep.js +0 -12
  288. package/dist/node_modules/object-inspect/test/element.js +0 -53
  289. package/dist/node_modules/object-inspect/test/err.js +0 -48
  290. package/dist/node_modules/object-inspect/test/fakes.js +0 -29
  291. package/dist/node_modules/object-inspect/test/fn.js +0 -76
  292. package/dist/node_modules/object-inspect/test/has.js +0 -15
  293. package/dist/node_modules/object-inspect/test/holes.js +0 -15
  294. package/dist/node_modules/object-inspect/test/indent-option.js +0 -271
  295. package/dist/node_modules/object-inspect/test/inspect.js +0 -139
  296. package/dist/node_modules/object-inspect/test/lowbyte.js +0 -12
  297. package/dist/node_modules/object-inspect/test/number.js +0 -58
  298. package/dist/node_modules/object-inspect/test/quoteStyle.js +0 -17
  299. package/dist/node_modules/object-inspect/test/toStringTag.js +0 -40
  300. package/dist/node_modules/object-inspect/test/undef.js +0 -12
  301. package/dist/node_modules/object-inspect/test/values.js +0 -211
  302. package/dist/node_modules/object-inspect/test-core-js.js +0 -26
  303. package/dist/node_modules/object-inspect/util.inspect.js +0 -1
  304. package/dist/node_modules/on-finished/HISTORY.md +0 -98
  305. package/dist/node_modules/on-finished/LICENSE +0 -23
  306. package/dist/node_modules/on-finished/README.md +0 -162
  307. package/dist/node_modules/on-finished/index.js +0 -234
  308. package/dist/node_modules/on-finished/package.json +0 -39
  309. package/dist/node_modules/parseurl/HISTORY.md +0 -58
  310. package/dist/node_modules/parseurl/LICENSE +0 -24
  311. package/dist/node_modules/parseurl/README.md +0 -133
  312. package/dist/node_modules/parseurl/index.js +0 -158
  313. package/dist/node_modules/parseurl/package.json +0 -40
  314. package/dist/node_modules/path-to-regexp/History.md +0 -36
  315. package/dist/node_modules/path-to-regexp/LICENSE +0 -21
  316. package/dist/node_modules/path-to-regexp/Readme.md +0 -35
  317. package/dist/node_modules/path-to-regexp/index.js +0 -129
  318. package/dist/node_modules/path-to-regexp/package.json +0 -30
  319. package/dist/node_modules/proxy-addr/HISTORY.md +0 -161
  320. package/dist/node_modules/proxy-addr/LICENSE +0 -22
  321. package/dist/node_modules/proxy-addr/README.md +0 -139
  322. package/dist/node_modules/proxy-addr/index.js +0 -327
  323. package/dist/node_modules/proxy-addr/package.json +0 -47
  324. package/dist/node_modules/qs/.editorconfig +0 -43
  325. package/dist/node_modules/qs/.eslintrc +0 -38
  326. package/dist/node_modules/qs/.github/FUNDING.yml +0 -12
  327. package/dist/node_modules/qs/.nycrc +0 -13
  328. package/dist/node_modules/qs/CHANGELOG.md +0 -546
  329. package/dist/node_modules/qs/LICENSE.md +0 -29
  330. package/dist/node_modules/qs/README.md +0 -625
  331. package/dist/node_modules/qs/dist/qs.js +0 -2054
  332. package/dist/node_modules/qs/lib/formats.js +0 -23
  333. package/dist/node_modules/qs/lib/index.js +0 -11
  334. package/dist/node_modules/qs/lib/parse.js +0 -263
  335. package/dist/node_modules/qs/lib/stringify.js +0 -326
  336. package/dist/node_modules/qs/lib/utils.js +0 -252
  337. package/dist/node_modules/qs/package.json +0 -77
  338. package/dist/node_modules/qs/test/parse.js +0 -855
  339. package/dist/node_modules/qs/test/stringify.js +0 -909
  340. package/dist/node_modules/qs/test/utils.js +0 -136
  341. package/dist/node_modules/range-parser/HISTORY.md +0 -56
  342. package/dist/node_modules/range-parser/LICENSE +0 -23
  343. package/dist/node_modules/range-parser/README.md +0 -84
  344. package/dist/node_modules/range-parser/index.js +0 -162
  345. package/dist/node_modules/range-parser/package.json +0 -44
  346. package/dist/node_modules/raw-body/HISTORY.md +0 -303
  347. package/dist/node_modules/raw-body/LICENSE +0 -22
  348. package/dist/node_modules/raw-body/README.md +0 -223
  349. package/dist/node_modules/raw-body/SECURITY.md +0 -24
  350. package/dist/node_modules/raw-body/index.d.ts +0 -87
  351. package/dist/node_modules/raw-body/index.js +0 -329
  352. package/dist/node_modules/raw-body/package.json +0 -49
  353. package/dist/node_modules/safe-buffer/LICENSE +0 -21
  354. package/dist/node_modules/safe-buffer/README.md +0 -584
  355. package/dist/node_modules/safe-buffer/index.d.ts +0 -187
  356. package/dist/node_modules/safe-buffer/index.js +0 -65
  357. package/dist/node_modules/safe-buffer/package.json +0 -51
  358. package/dist/node_modules/safer-buffer/LICENSE +0 -21
  359. package/dist/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  360. package/dist/node_modules/safer-buffer/Readme.md +0 -156
  361. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  362. package/dist/node_modules/safer-buffer/package.json +0 -34
  363. package/dist/node_modules/safer-buffer/safer.js +0 -77
  364. package/dist/node_modules/safer-buffer/tests.js +0 -406
  365. package/dist/node_modules/send/HISTORY.md +0 -521
  366. package/dist/node_modules/send/LICENSE +0 -23
  367. package/dist/node_modules/send/README.md +0 -327
  368. package/dist/node_modules/send/SECURITY.md +0 -24
  369. package/dist/node_modules/send/index.js +0 -1143
  370. package/dist/node_modules/send/node_modules/ms/index.js +0 -162
  371. package/dist/node_modules/send/node_modules/ms/license.md +0 -21
  372. package/dist/node_modules/send/node_modules/ms/package.json +0 -38
  373. package/dist/node_modules/send/node_modules/ms/readme.md +0 -59
  374. package/dist/node_modules/send/package.json +0 -62
  375. package/dist/node_modules/serve-static/HISTORY.md +0 -471
  376. package/dist/node_modules/serve-static/LICENSE +0 -25
  377. package/dist/node_modules/serve-static/README.md +0 -257
  378. package/dist/node_modules/serve-static/index.js +0 -210
  379. package/dist/node_modules/serve-static/package.json +0 -42
  380. package/dist/node_modules/setprototypeof/LICENSE +0 -13
  381. package/dist/node_modules/setprototypeof/README.md +0 -31
  382. package/dist/node_modules/setprototypeof/index.d.ts +0 -2
  383. package/dist/node_modules/setprototypeof/index.js +0 -17
  384. package/dist/node_modules/setprototypeof/package.json +0 -38
  385. package/dist/node_modules/setprototypeof/test/index.js +0 -24
  386. package/dist/node_modules/side-channel/.eslintignore +0 -1
  387. package/dist/node_modules/side-channel/.eslintrc +0 -11
  388. package/dist/node_modules/side-channel/.github/FUNDING.yml +0 -12
  389. package/dist/node_modules/side-channel/.nycrc +0 -13
  390. package/dist/node_modules/side-channel/CHANGELOG.md +0 -65
  391. package/dist/node_modules/side-channel/LICENSE +0 -21
  392. package/dist/node_modules/side-channel/README.md +0 -2
  393. package/dist/node_modules/side-channel/index.js +0 -124
  394. package/dist/node_modules/side-channel/package.json +0 -67
  395. package/dist/node_modules/side-channel/test/index.js +0 -78
  396. package/dist/node_modules/statuses/HISTORY.md +0 -82
  397. package/dist/node_modules/statuses/LICENSE +0 -23
  398. package/dist/node_modules/statuses/README.md +0 -136
  399. package/dist/node_modules/statuses/codes.json +0 -65
  400. package/dist/node_modules/statuses/index.js +0 -146
  401. package/dist/node_modules/statuses/package.json +0 -49
  402. package/dist/node_modules/toidentifier/HISTORY.md +0 -9
  403. package/dist/node_modules/toidentifier/LICENSE +0 -21
  404. package/dist/node_modules/toidentifier/README.md +0 -61
  405. package/dist/node_modules/toidentifier/index.js +0 -32
  406. package/dist/node_modules/toidentifier/package.json +0 -38
  407. package/dist/node_modules/type-is/HISTORY.md +0 -259
  408. package/dist/node_modules/type-is/LICENSE +0 -23
  409. package/dist/node_modules/type-is/README.md +0 -170
  410. package/dist/node_modules/type-is/index.js +0 -266
  411. package/dist/node_modules/type-is/package.json +0 -45
  412. package/dist/node_modules/unpipe/HISTORY.md +0 -4
  413. package/dist/node_modules/unpipe/LICENSE +0 -22
  414. package/dist/node_modules/unpipe/README.md +0 -43
  415. package/dist/node_modules/unpipe/index.js +0 -69
  416. package/dist/node_modules/unpipe/package.json +0 -27
  417. package/dist/node_modules/utils-merge/LICENSE +0 -20
  418. package/dist/node_modules/utils-merge/README.md +0 -34
  419. package/dist/node_modules/utils-merge/index.js +0 -23
  420. package/dist/node_modules/utils-merge/package.json +0 -40
  421. package/dist/node_modules/vary/HISTORY.md +0 -39
  422. package/dist/node_modules/vary/LICENSE +0 -22
  423. package/dist/node_modules/vary/README.md +0 -101
  424. package/dist/node_modules/vary/index.js +0 -149
  425. package/dist/node_modules/vary/package.json +0 -43
@@ -1,142 +0,0 @@
1
- # content-disposition
2
-
3
- [![NPM Version][npm-image]][npm-url]
4
- [![NPM Downloads][downloads-image]][downloads-url]
5
- [![Node.js Version][node-version-image]][node-version-url]
6
- [![Build Status][github-actions-ci-image]][github-actions-ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- Create and parse HTTP `Content-Disposition` header
10
-
11
- ## Installation
12
-
13
- ```sh
14
- $ npm install content-disposition
15
- ```
16
-
17
- ## API
18
-
19
- ```js
20
- var contentDisposition = require('content-disposition')
21
- ```
22
-
23
- ### contentDisposition(filename, options)
24
-
25
- Create an attachment `Content-Disposition` header value using the given file name,
26
- if supplied. The `filename` is optional and if no file name is desired, but you
27
- want to specify `options`, set `filename` to `undefined`.
28
-
29
- ```js
30
- res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf'))
31
- ```
32
-
33
- **note** HTTP headers are of the ISO-8859-1 character set. If you are writing this
34
- header through a means different from `setHeader` in Node.js, you'll want to specify
35
- the `'binary'` encoding in Node.js.
36
-
37
- #### Options
38
-
39
- `contentDisposition` accepts these properties in the options object.
40
-
41
- ##### fallback
42
-
43
- If the `filename` option is outside ISO-8859-1, then the file name is actually
44
- stored in a supplemental field for clients that support Unicode file names and
45
- a ISO-8859-1 version of the file name is automatically generated.
46
-
47
- This specifies the ISO-8859-1 file name to override the automatic generation or
48
- disables the generation all together, defaults to `true`.
49
-
50
- - A string will specify the ISO-8859-1 file name to use in place of automatic
51
- generation.
52
- - `false` will disable including a ISO-8859-1 file name and only include the
53
- Unicode version (unless the file name is already ISO-8859-1).
54
- - `true` will enable automatic generation if the file name is outside ISO-8859-1.
55
-
56
- If the `filename` option is ISO-8859-1 and this option is specified and has a
57
- different value, then the `filename` option is encoded in the extended field
58
- and this set as the fallback field, even though they are both ISO-8859-1.
59
-
60
- ##### type
61
-
62
- Specifies the disposition type, defaults to `"attachment"`. This can also be
63
- `"inline"`, or any other value (all values except inline are treated like
64
- `attachment`, but can convey additional information if both parties agree to
65
- it). The type is normalized to lower-case.
66
-
67
- ### contentDisposition.parse(string)
68
-
69
- ```js
70
- var disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
71
- ```
72
-
73
- Parse a `Content-Disposition` header string. This automatically handles extended
74
- ("Unicode") parameters by decoding them and providing them under the standard
75
- parameter name. This will return an object with the following properties (examples
76
- are shown for the string `'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'`):
77
-
78
- - `type`: The disposition type (always lower case). Example: `'attachment'`
79
-
80
- - `parameters`: An object of the parameters in the disposition (name of parameter
81
- always lower case and extended versions replace non-extended versions). Example:
82
- `{filename: "€ rates.txt"}`
83
-
84
- ## Examples
85
-
86
- ### Send a file for download
87
-
88
- ```js
89
- var contentDisposition = require('content-disposition')
90
- var destroy = require('destroy')
91
- var fs = require('fs')
92
- var http = require('http')
93
- var onFinished = require('on-finished')
94
-
95
- var filePath = '/path/to/public/plans.pdf'
96
-
97
- http.createServer(function onRequest (req, res) {
98
- // set headers
99
- res.setHeader('Content-Type', 'application/pdf')
100
- res.setHeader('Content-Disposition', contentDisposition(filePath))
101
-
102
- // send file
103
- var stream = fs.createReadStream(filePath)
104
- stream.pipe(res)
105
- onFinished(res, function () {
106
- destroy(stream)
107
- })
108
- })
109
- ```
110
-
111
- ## Testing
112
-
113
- ```sh
114
- $ npm test
115
- ```
116
-
117
- ## References
118
-
119
- - [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1][rfc-2616]
120
- - [RFC 5987: Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters][rfc-5987]
121
- - [RFC 6266: Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)][rfc-6266]
122
- - [Test Cases for HTTP Content-Disposition header field (RFC 6266) and the Encodings defined in RFCs 2047, 2231 and 5987][tc-2231]
123
-
124
- [rfc-2616]: https://tools.ietf.org/html/rfc2616
125
- [rfc-5987]: https://tools.ietf.org/html/rfc5987
126
- [rfc-6266]: https://tools.ietf.org/html/rfc6266
127
- [tc-2231]: http://greenbytes.de/tech/tc2231/
128
-
129
- ## License
130
-
131
- [MIT](LICENSE)
132
-
133
- [npm-image]: https://img.shields.io/npm/v/content-disposition.svg
134
- [npm-url]: https://npmjs.org/package/content-disposition
135
- [node-version-image]: https://img.shields.io/node/v/content-disposition.svg
136
- [node-version-url]: https://nodejs.org/en/download
137
- [coveralls-image]: https://img.shields.io/coveralls/jshttp/content-disposition.svg
138
- [coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master
139
- [downloads-image]: https://img.shields.io/npm/dm/content-disposition.svg
140
- [downloads-url]: https://npmjs.org/package/content-disposition
141
- [github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/content-disposition/ci/master?label=ci
142
- [github-actions-ci-url]: https://github.com/jshttp/content-disposition?query=workflow%3Aci
@@ -1,458 +0,0 @@
1
- /*!
2
- * content-disposition
3
- * Copyright(c) 2014-2017 Douglas Christopher Wilson
4
- * MIT Licensed
5
- */
6
-
7
- 'use strict'
8
-
9
- /**
10
- * Module exports.
11
- * @public
12
- */
13
-
14
- module.exports = contentDisposition
15
- module.exports.parse = parse
16
-
17
- /**
18
- * Module dependencies.
19
- * @private
20
- */
21
-
22
- var basename = require('path').basename
23
- var Buffer = require('safe-buffer').Buffer
24
-
25
- /**
26
- * RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%")
27
- * @private
28
- */
29
-
30
- var ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g // eslint-disable-line no-control-regex
31
-
32
- /**
33
- * RegExp to match percent encoding escape.
34
- * @private
35
- */
36
-
37
- var HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/
38
- var HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g
39
-
40
- /**
41
- * RegExp to match non-latin1 characters.
42
- * @private
43
- */
44
-
45
- var NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g
46
-
47
- /**
48
- * RegExp to match quoted-pair in RFC 2616
49
- *
50
- * quoted-pair = "\" CHAR
51
- * CHAR = <any US-ASCII character (octets 0 - 127)>
52
- * @private
53
- */
54
-
55
- var QESC_REGEXP = /\\([\u0000-\u007f])/g // eslint-disable-line no-control-regex
56
-
57
- /**
58
- * RegExp to match chars that must be quoted-pair in RFC 2616
59
- * @private
60
- */
61
-
62
- var QUOTE_REGEXP = /([\\"])/g
63
-
64
- /**
65
- * RegExp for various RFC 2616 grammar
66
- *
67
- * parameter = token "=" ( token | quoted-string )
68
- * token = 1*<any CHAR except CTLs or separators>
69
- * separators = "(" | ")" | "<" | ">" | "@"
70
- * | "," | ";" | ":" | "\" | <">
71
- * | "/" | "[" | "]" | "?" | "="
72
- * | "{" | "}" | SP | HT
73
- * quoted-string = ( <"> *(qdtext | quoted-pair ) <"> )
74
- * qdtext = <any TEXT except <">>
75
- * quoted-pair = "\" CHAR
76
- * CHAR = <any US-ASCII character (octets 0 - 127)>
77
- * TEXT = <any OCTET except CTLs, but including LWS>
78
- * LWS = [CRLF] 1*( SP | HT )
79
- * CRLF = CR LF
80
- * CR = <US-ASCII CR, carriage return (13)>
81
- * LF = <US-ASCII LF, linefeed (10)>
82
- * SP = <US-ASCII SP, space (32)>
83
- * HT = <US-ASCII HT, horizontal-tab (9)>
84
- * CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
85
- * OCTET = <any 8-bit sequence of data>
86
- * @private
87
- */
88
-
89
- var PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g // eslint-disable-line no-control-regex
90
- var TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/
91
- var TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/
92
-
93
- /**
94
- * RegExp for various RFC 5987 grammar
95
- *
96
- * ext-value = charset "'" [ language ] "'" value-chars
97
- * charset = "UTF-8" / "ISO-8859-1" / mime-charset
98
- * mime-charset = 1*mime-charsetc
99
- * mime-charsetc = ALPHA / DIGIT
100
- * / "!" / "#" / "$" / "%" / "&"
101
- * / "+" / "-" / "^" / "_" / "`"
102
- * / "{" / "}" / "~"
103
- * language = ( 2*3ALPHA [ extlang ] )
104
- * / 4ALPHA
105
- * / 5*8ALPHA
106
- * extlang = *3( "-" 3ALPHA )
107
- * value-chars = *( pct-encoded / attr-char )
108
- * pct-encoded = "%" HEXDIG HEXDIG
109
- * attr-char = ALPHA / DIGIT
110
- * / "!" / "#" / "$" / "&" / "+" / "-" / "."
111
- * / "^" / "_" / "`" / "|" / "~"
112
- * @private
113
- */
114
-
115
- var EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/
116
-
117
- /**
118
- * RegExp for various RFC 6266 grammar
119
- *
120
- * disposition-type = "inline" | "attachment" | disp-ext-type
121
- * disp-ext-type = token
122
- * disposition-parm = filename-parm | disp-ext-parm
123
- * filename-parm = "filename" "=" value
124
- * | "filename*" "=" ext-value
125
- * disp-ext-parm = token "=" value
126
- * | ext-token "=" ext-value
127
- * ext-token = <the characters in token, followed by "*">
128
- * @private
129
- */
130
-
131
- var DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/ // eslint-disable-line no-control-regex
132
-
133
- /**
134
- * Create an attachment Content-Disposition header.
135
- *
136
- * @param {string} [filename]
137
- * @param {object} [options]
138
- * @param {string} [options.type=attachment]
139
- * @param {string|boolean} [options.fallback=true]
140
- * @return {string}
141
- * @public
142
- */
143
-
144
- function contentDisposition (filename, options) {
145
- var opts = options || {}
146
-
147
- // get type
148
- var type = opts.type || 'attachment'
149
-
150
- // get parameters
151
- var params = createparams(filename, opts.fallback)
152
-
153
- // format into string
154
- return format(new ContentDisposition(type, params))
155
- }
156
-
157
- /**
158
- * Create parameters object from filename and fallback.
159
- *
160
- * @param {string} [filename]
161
- * @param {string|boolean} [fallback=true]
162
- * @return {object}
163
- * @private
164
- */
165
-
166
- function createparams (filename, fallback) {
167
- if (filename === undefined) {
168
- return
169
- }
170
-
171
- var params = {}
172
-
173
- if (typeof filename !== 'string') {
174
- throw new TypeError('filename must be a string')
175
- }
176
-
177
- // fallback defaults to true
178
- if (fallback === undefined) {
179
- fallback = true
180
- }
181
-
182
- if (typeof fallback !== 'string' && typeof fallback !== 'boolean') {
183
- throw new TypeError('fallback must be a string or boolean')
184
- }
185
-
186
- if (typeof fallback === 'string' && NON_LATIN1_REGEXP.test(fallback)) {
187
- throw new TypeError('fallback must be ISO-8859-1 string')
188
- }
189
-
190
- // restrict to file base name
191
- var name = basename(filename)
192
-
193
- // determine if name is suitable for quoted string
194
- var isQuotedString = TEXT_REGEXP.test(name)
195
-
196
- // generate fallback name
197
- var fallbackName = typeof fallback !== 'string'
198
- ? fallback && getlatin1(name)
199
- : basename(fallback)
200
- var hasFallback = typeof fallbackName === 'string' && fallbackName !== name
201
-
202
- // set extended filename parameter
203
- if (hasFallback || !isQuotedString || HEX_ESCAPE_REGEXP.test(name)) {
204
- params['filename*'] = name
205
- }
206
-
207
- // set filename parameter
208
- if (isQuotedString || hasFallback) {
209
- params.filename = hasFallback
210
- ? fallbackName
211
- : name
212
- }
213
-
214
- return params
215
- }
216
-
217
- /**
218
- * Format object to Content-Disposition header.
219
- *
220
- * @param {object} obj
221
- * @param {string} obj.type
222
- * @param {object} [obj.parameters]
223
- * @return {string}
224
- * @private
225
- */
226
-
227
- function format (obj) {
228
- var parameters = obj.parameters
229
- var type = obj.type
230
-
231
- if (!type || typeof type !== 'string' || !TOKEN_REGEXP.test(type)) {
232
- throw new TypeError('invalid type')
233
- }
234
-
235
- // start with normalized type
236
- var string = String(type).toLowerCase()
237
-
238
- // append parameters
239
- if (parameters && typeof parameters === 'object') {
240
- var param
241
- var params = Object.keys(parameters).sort()
242
-
243
- for (var i = 0; i < params.length; i++) {
244
- param = params[i]
245
-
246
- var val = param.substr(-1) === '*'
247
- ? ustring(parameters[param])
248
- : qstring(parameters[param])
249
-
250
- string += '; ' + param + '=' + val
251
- }
252
- }
253
-
254
- return string
255
- }
256
-
257
- /**
258
- * Decode a RFC 5987 field value (gracefully).
259
- *
260
- * @param {string} str
261
- * @return {string}
262
- * @private
263
- */
264
-
265
- function decodefield (str) {
266
- var match = EXT_VALUE_REGEXP.exec(str)
267
-
268
- if (!match) {
269
- throw new TypeError('invalid extended field value')
270
- }
271
-
272
- var charset = match[1].toLowerCase()
273
- var encoded = match[2]
274
- var value
275
-
276
- // to binary string
277
- var binary = encoded.replace(HEX_ESCAPE_REPLACE_REGEXP, pdecode)
278
-
279
- switch (charset) {
280
- case 'iso-8859-1':
281
- value = getlatin1(binary)
282
- break
283
- case 'utf-8':
284
- value = Buffer.from(binary, 'binary').toString('utf8')
285
- break
286
- default:
287
- throw new TypeError('unsupported charset in extended field')
288
- }
289
-
290
- return value
291
- }
292
-
293
- /**
294
- * Get ISO-8859-1 version of string.
295
- *
296
- * @param {string} val
297
- * @return {string}
298
- * @private
299
- */
300
-
301
- function getlatin1 (val) {
302
- // simple Unicode -> ISO-8859-1 transformation
303
- return String(val).replace(NON_LATIN1_REGEXP, '?')
304
- }
305
-
306
- /**
307
- * Parse Content-Disposition header string.
308
- *
309
- * @param {string} string
310
- * @return {object}
311
- * @public
312
- */
313
-
314
- function parse (string) {
315
- if (!string || typeof string !== 'string') {
316
- throw new TypeError('argument string is required')
317
- }
318
-
319
- var match = DISPOSITION_TYPE_REGEXP.exec(string)
320
-
321
- if (!match) {
322
- throw new TypeError('invalid type format')
323
- }
324
-
325
- // normalize type
326
- var index = match[0].length
327
- var type = match[1].toLowerCase()
328
-
329
- var key
330
- var names = []
331
- var params = {}
332
- var value
333
-
334
- // calculate index to start at
335
- index = PARAM_REGEXP.lastIndex = match[0].substr(-1) === ';'
336
- ? index - 1
337
- : index
338
-
339
- // match parameters
340
- while ((match = PARAM_REGEXP.exec(string))) {
341
- if (match.index !== index) {
342
- throw new TypeError('invalid parameter format')
343
- }
344
-
345
- index += match[0].length
346
- key = match[1].toLowerCase()
347
- value = match[2]
348
-
349
- if (names.indexOf(key) !== -1) {
350
- throw new TypeError('invalid duplicate parameter')
351
- }
352
-
353
- names.push(key)
354
-
355
- if (key.indexOf('*') + 1 === key.length) {
356
- // decode extended value
357
- key = key.slice(0, -1)
358
- value = decodefield(value)
359
-
360
- // overwrite existing value
361
- params[key] = value
362
- continue
363
- }
364
-
365
- if (typeof params[key] === 'string') {
366
- continue
367
- }
368
-
369
- if (value[0] === '"') {
370
- // remove quotes and escapes
371
- value = value
372
- .substr(1, value.length - 2)
373
- .replace(QESC_REGEXP, '$1')
374
- }
375
-
376
- params[key] = value
377
- }
378
-
379
- if (index !== -1 && index !== string.length) {
380
- throw new TypeError('invalid parameter format')
381
- }
382
-
383
- return new ContentDisposition(type, params)
384
- }
385
-
386
- /**
387
- * Percent decode a single character.
388
- *
389
- * @param {string} str
390
- * @param {string} hex
391
- * @return {string}
392
- * @private
393
- */
394
-
395
- function pdecode (str, hex) {
396
- return String.fromCharCode(parseInt(hex, 16))
397
- }
398
-
399
- /**
400
- * Percent encode a single character.
401
- *
402
- * @param {string} char
403
- * @return {string}
404
- * @private
405
- */
406
-
407
- function pencode (char) {
408
- return '%' + String(char)
409
- .charCodeAt(0)
410
- .toString(16)
411
- .toUpperCase()
412
- }
413
-
414
- /**
415
- * Quote a string for HTTP.
416
- *
417
- * @param {string} val
418
- * @return {string}
419
- * @private
420
- */
421
-
422
- function qstring (val) {
423
- var str = String(val)
424
-
425
- return '"' + str.replace(QUOTE_REGEXP, '\\$1') + '"'
426
- }
427
-
428
- /**
429
- * Encode a Unicode string for HTTP (RFC 5987).
430
- *
431
- * @param {string} val
432
- * @return {string}
433
- * @private
434
- */
435
-
436
- function ustring (val) {
437
- var str = String(val)
438
-
439
- // percent encode as UTF-8
440
- var encoded = encodeURIComponent(str)
441
- .replace(ENCODE_URL_ATTR_CHAR_REGEXP, pencode)
442
-
443
- return 'UTF-8\'\'' + encoded
444
- }
445
-
446
- /**
447
- * Class for parsed Content-Disposition header for v8 optimization
448
- *
449
- * @public
450
- * @param {string} type
451
- * @param {object} parameters
452
- * @constructor
453
- */
454
-
455
- function ContentDisposition (type, parameters) {
456
- this.type = type
457
- this.parameters = parameters
458
- }
@@ -1,44 +0,0 @@
1
- {
2
- "name": "content-disposition",
3
- "description": "Create and parse Content-Disposition header",
4
- "version": "0.5.4",
5
- "author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
6
- "license": "MIT",
7
- "keywords": [
8
- "content-disposition",
9
- "http",
10
- "rfc6266",
11
- "res"
12
- ],
13
- "repository": "jshttp/content-disposition",
14
- "dependencies": {
15
- "safe-buffer": "5.2.1"
16
- },
17
- "devDependencies": {
18
- "deep-equal": "1.0.1",
19
- "eslint": "7.32.0",
20
- "eslint-config-standard": "13.0.1",
21
- "eslint-plugin-import": "2.25.3",
22
- "eslint-plugin-markdown": "2.2.1",
23
- "eslint-plugin-node": "11.1.0",
24
- "eslint-plugin-promise": "5.2.0",
25
- "eslint-plugin-standard": "4.1.0",
26
- "istanbul": "0.4.5",
27
- "mocha": "9.1.3"
28
- },
29
- "files": [
30
- "LICENSE",
31
- "HISTORY.md",
32
- "README.md",
33
- "index.js"
34
- ],
35
- "engines": {
36
- "node": ">= 0.6"
37
- },
38
- "scripts": {
39
- "lint": "eslint .",
40
- "test": "mocha --reporter spec --bail --check-leaks test/",
41
- "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/",
42
- "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/"
43
- }
44
- }
@@ -1,24 +0,0 @@
1
- 1.0.4 / 2017-09-11
2
- ==================
3
-
4
- * perf: skip parameter parsing when no parameters
5
-
6
- 1.0.3 / 2017-09-10
7
- ==================
8
-
9
- * perf: remove argument reassignment
10
-
11
- 1.0.2 / 2016-05-09
12
- ==================
13
-
14
- * perf: enable strict mode
15
-
16
- 1.0.1 / 2015-02-13
17
- ==================
18
-
19
- * Improve missing `Content-Type` header error message
20
-
21
- 1.0.0 / 2015-02-01
22
- ==================
23
-
24
- * Initial implementation, derived from `media-typer@0.3.0`
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2015 Douglas Christopher Wilson
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.