speaker-calibration 2.1.6 → 2.1.8

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 (427) 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/server/PythonServerAPI.js +2 -2
  6. package/src/tasks/impulse-response/impulseResponse.js +8 -1
  7. package/src/tasks/volume/volume.js +28 -1
  8. package/dist/node_modules/.bin/mime +0 -12
  9. package/dist/node_modules/.bin/mime.cmd +0 -17
  10. package/dist/node_modules/.bin/mime.ps1 +0 -28
  11. package/dist/node_modules/.package-lock.json +0 -584
  12. package/dist/node_modules/accepts/HISTORY.md +0 -243
  13. package/dist/node_modules/accepts/LICENSE +0 -23
  14. package/dist/node_modules/accepts/README.md +0 -140
  15. package/dist/node_modules/accepts/index.js +0 -238
  16. package/dist/node_modules/accepts/package.json +0 -47
  17. package/dist/node_modules/array-flatten/LICENSE +0 -21
  18. package/dist/node_modules/array-flatten/README.md +0 -43
  19. package/dist/node_modules/array-flatten/array-flatten.js +0 -64
  20. package/dist/node_modules/array-flatten/package.json +0 -39
  21. package/dist/node_modules/body-parser/HISTORY.md +0 -657
  22. package/dist/node_modules/body-parser/LICENSE +0 -23
  23. package/dist/node_modules/body-parser/README.md +0 -464
  24. package/dist/node_modules/body-parser/SECURITY.md +0 -25
  25. package/dist/node_modules/body-parser/index.js +0 -156
  26. package/dist/node_modules/body-parser/lib/read.js +0 -205
  27. package/dist/node_modules/body-parser/lib/types/json.js +0 -236
  28. package/dist/node_modules/body-parser/lib/types/raw.js +0 -101
  29. package/dist/node_modules/body-parser/lib/types/text.js +0 -121
  30. package/dist/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  31. package/dist/node_modules/body-parser/package.json +0 -56
  32. package/dist/node_modules/bytes/History.md +0 -97
  33. package/dist/node_modules/bytes/LICENSE +0 -23
  34. package/dist/node_modules/bytes/Readme.md +0 -152
  35. package/dist/node_modules/bytes/index.js +0 -170
  36. package/dist/node_modules/bytes/package.json +0 -42
  37. package/dist/node_modules/call-bind/.eslintignore +0 -1
  38. package/dist/node_modules/call-bind/.eslintrc +0 -17
  39. package/dist/node_modules/call-bind/.github/FUNDING.yml +0 -12
  40. package/dist/node_modules/call-bind/.nycrc +0 -13
  41. package/dist/node_modules/call-bind/CHANGELOG.md +0 -42
  42. package/dist/node_modules/call-bind/LICENSE +0 -21
  43. package/dist/node_modules/call-bind/README.md +0 -2
  44. package/dist/node_modules/call-bind/callBound.js +0 -15
  45. package/dist/node_modules/call-bind/index.js +0 -47
  46. package/dist/node_modules/call-bind/package.json +0 -80
  47. package/dist/node_modules/call-bind/test/callBound.js +0 -55
  48. package/dist/node_modules/call-bind/test/index.js +0 -66
  49. package/dist/node_modules/content-disposition/HISTORY.md +0 -60
  50. package/dist/node_modules/content-disposition/LICENSE +0 -22
  51. package/dist/node_modules/content-disposition/README.md +0 -142
  52. package/dist/node_modules/content-disposition/index.js +0 -458
  53. package/dist/node_modules/content-disposition/package.json +0 -44
  54. package/dist/node_modules/content-type/HISTORY.md +0 -24
  55. package/dist/node_modules/content-type/LICENSE +0 -22
  56. package/dist/node_modules/content-type/README.md +0 -92
  57. package/dist/node_modules/content-type/index.js +0 -222
  58. package/dist/node_modules/content-type/package.json +0 -40
  59. package/dist/node_modules/cookie/HISTORY.md +0 -142
  60. package/dist/node_modules/cookie/LICENSE +0 -24
  61. package/dist/node_modules/cookie/README.md +0 -302
  62. package/dist/node_modules/cookie/SECURITY.md +0 -25
  63. package/dist/node_modules/cookie/index.js +0 -270
  64. package/dist/node_modules/cookie/package.json +0 -44
  65. package/dist/node_modules/cookie-signature/History.md +0 -38
  66. package/dist/node_modules/cookie-signature/Readme.md +0 -42
  67. package/dist/node_modules/cookie-signature/index.js +0 -51
  68. package/dist/node_modules/cookie-signature/package.json +0 -18
  69. package/dist/node_modules/debug/.coveralls.yml +0 -1
  70. package/dist/node_modules/debug/.eslintrc +0 -11
  71. package/dist/node_modules/debug/.travis.yml +0 -14
  72. package/dist/node_modules/debug/CHANGELOG.md +0 -362
  73. package/dist/node_modules/debug/LICENSE +0 -19
  74. package/dist/node_modules/debug/Makefile +0 -50
  75. package/dist/node_modules/debug/README.md +0 -312
  76. package/dist/node_modules/debug/component.json +0 -19
  77. package/dist/node_modules/debug/karma.conf.js +0 -70
  78. package/dist/node_modules/debug/node.js +0 -1
  79. package/dist/node_modules/debug/package.json +0 -49
  80. package/dist/node_modules/debug/src/browser.js +0 -185
  81. package/dist/node_modules/debug/src/debug.js +0 -202
  82. package/dist/node_modules/debug/src/index.js +0 -10
  83. package/dist/node_modules/debug/src/inspector-log.js +0 -15
  84. package/dist/node_modules/debug/src/node.js +0 -248
  85. package/dist/node_modules/depd/History.md +0 -103
  86. package/dist/node_modules/depd/LICENSE +0 -22
  87. package/dist/node_modules/depd/Readme.md +0 -280
  88. package/dist/node_modules/depd/index.js +0 -538
  89. package/dist/node_modules/depd/lib/browser/index.js +0 -77
  90. package/dist/node_modules/depd/package.json +0 -45
  91. package/dist/node_modules/destroy/LICENSE +0 -23
  92. package/dist/node_modules/destroy/README.md +0 -63
  93. package/dist/node_modules/destroy/index.js +0 -209
  94. package/dist/node_modules/destroy/package.json +0 -48
  95. package/dist/node_modules/ee-first/LICENSE +0 -22
  96. package/dist/node_modules/ee-first/README.md +0 -80
  97. package/dist/node_modules/ee-first/index.js +0 -95
  98. package/dist/node_modules/ee-first/package.json +0 -29
  99. package/dist/node_modules/encodeurl/HISTORY.md +0 -14
  100. package/dist/node_modules/encodeurl/LICENSE +0 -22
  101. package/dist/node_modules/encodeurl/README.md +0 -128
  102. package/dist/node_modules/encodeurl/index.js +0 -60
  103. package/dist/node_modules/encodeurl/package.json +0 -40
  104. package/dist/node_modules/escape-html/LICENSE +0 -24
  105. package/dist/node_modules/escape-html/Readme.md +0 -43
  106. package/dist/node_modules/escape-html/index.js +0 -78
  107. package/dist/node_modules/escape-html/package.json +0 -24
  108. package/dist/node_modules/etag/HISTORY.md +0 -83
  109. package/dist/node_modules/etag/LICENSE +0 -22
  110. package/dist/node_modules/etag/README.md +0 -159
  111. package/dist/node_modules/etag/index.js +0 -131
  112. package/dist/node_modules/etag/package.json +0 -47
  113. package/dist/node_modules/express/History.md +0 -3588
  114. package/dist/node_modules/express/LICENSE +0 -24
  115. package/dist/node_modules/express/Readme.md +0 -166
  116. package/dist/node_modules/express/index.js +0 -11
  117. package/dist/node_modules/express/lib/application.js +0 -661
  118. package/dist/node_modules/express/lib/express.js +0 -116
  119. package/dist/node_modules/express/lib/middleware/init.js +0 -43
  120. package/dist/node_modules/express/lib/middleware/query.js +0 -47
  121. package/dist/node_modules/express/lib/request.js +0 -525
  122. package/dist/node_modules/express/lib/response.js +0 -1169
  123. package/dist/node_modules/express/lib/router/index.js +0 -673
  124. package/dist/node_modules/express/lib/router/layer.js +0 -181
  125. package/dist/node_modules/express/lib/router/route.js +0 -225
  126. package/dist/node_modules/express/lib/utils.js +0 -304
  127. package/dist/node_modules/express/lib/view.js +0 -182
  128. package/dist/node_modules/express/package.json +0 -99
  129. package/dist/node_modules/finalhandler/HISTORY.md +0 -195
  130. package/dist/node_modules/finalhandler/LICENSE +0 -22
  131. package/dist/node_modules/finalhandler/README.md +0 -147
  132. package/dist/node_modules/finalhandler/SECURITY.md +0 -25
  133. package/dist/node_modules/finalhandler/index.js +0 -336
  134. package/dist/node_modules/finalhandler/package.json +0 -46
  135. package/dist/node_modules/forwarded/HISTORY.md +0 -21
  136. package/dist/node_modules/forwarded/LICENSE +0 -22
  137. package/dist/node_modules/forwarded/README.md +0 -57
  138. package/dist/node_modules/forwarded/index.js +0 -90
  139. package/dist/node_modules/forwarded/package.json +0 -45
  140. package/dist/node_modules/fresh/HISTORY.md +0 -70
  141. package/dist/node_modules/fresh/LICENSE +0 -23
  142. package/dist/node_modules/fresh/README.md +0 -119
  143. package/dist/node_modules/fresh/index.js +0 -137
  144. package/dist/node_modules/fresh/package.json +0 -46
  145. package/dist/node_modules/function-bind/.editorconfig +0 -20
  146. package/dist/node_modules/function-bind/.eslintrc +0 -15
  147. package/dist/node_modules/function-bind/.jscs.json +0 -176
  148. package/dist/node_modules/function-bind/.travis.yml +0 -168
  149. package/dist/node_modules/function-bind/LICENSE +0 -20
  150. package/dist/node_modules/function-bind/README.md +0 -48
  151. package/dist/node_modules/function-bind/implementation.js +0 -52
  152. package/dist/node_modules/function-bind/index.js +0 -5
  153. package/dist/node_modules/function-bind/package.json +0 -63
  154. package/dist/node_modules/function-bind/test/.eslintrc +0 -9
  155. package/dist/node_modules/function-bind/test/index.js +0 -252
  156. package/dist/node_modules/get-intrinsic/.eslintrc +0 -37
  157. package/dist/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  158. package/dist/node_modules/get-intrinsic/.nycrc +0 -9
  159. package/dist/node_modules/get-intrinsic/CHANGELOG.md +0 -98
  160. package/dist/node_modules/get-intrinsic/LICENSE +0 -21
  161. package/dist/node_modules/get-intrinsic/README.md +0 -71
  162. package/dist/node_modules/get-intrinsic/index.js +0 -334
  163. package/dist/node_modules/get-intrinsic/package.json +0 -91
  164. package/dist/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  165. package/dist/node_modules/has/LICENSE-MIT +0 -22
  166. package/dist/node_modules/has/README.md +0 -18
  167. package/dist/node_modules/has/package.json +0 -48
  168. package/dist/node_modules/has/src/index.js +0 -5
  169. package/dist/node_modules/has/test/index.js +0 -10
  170. package/dist/node_modules/has-symbols/.eslintrc +0 -11
  171. package/dist/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  172. package/dist/node_modules/has-symbols/.nycrc +0 -9
  173. package/dist/node_modules/has-symbols/CHANGELOG.md +0 -75
  174. package/dist/node_modules/has-symbols/LICENSE +0 -21
  175. package/dist/node_modules/has-symbols/README.md +0 -46
  176. package/dist/node_modules/has-symbols/index.js +0 -13
  177. package/dist/node_modules/has-symbols/package.json +0 -101
  178. package/dist/node_modules/has-symbols/shams.js +0 -42
  179. package/dist/node_modules/has-symbols/test/index.js +0 -22
  180. package/dist/node_modules/has-symbols/test/shams/core-js.js +0 -28
  181. package/dist/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
  182. package/dist/node_modules/has-symbols/test/tests.js +0 -56
  183. package/dist/node_modules/http-errors/HISTORY.md +0 -180
  184. package/dist/node_modules/http-errors/LICENSE +0 -23
  185. package/dist/node_modules/http-errors/README.md +0 -169
  186. package/dist/node_modules/http-errors/index.js +0 -289
  187. package/dist/node_modules/http-errors/package.json +0 -50
  188. package/dist/node_modules/iconv-lite/Changelog.md +0 -162
  189. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  190. package/dist/node_modules/iconv-lite/README.md +0 -156
  191. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  192. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  193. package/dist/node_modules/iconv-lite/encodings/index.js +0 -22
  194. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -188
  195. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  196. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  197. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  198. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  199. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  200. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  201. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  202. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  203. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  204. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  205. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  206. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -177
  207. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -290
  208. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  209. package/dist/node_modules/iconv-lite/lib/extend-node.js +0 -217
  210. package/dist/node_modules/iconv-lite/lib/index.d.ts +0 -24
  211. package/dist/node_modules/iconv-lite/lib/index.js +0 -153
  212. package/dist/node_modules/iconv-lite/lib/streams.js +0 -121
  213. package/dist/node_modules/iconv-lite/package.json +0 -46
  214. package/dist/node_modules/inherits/LICENSE +0 -16
  215. package/dist/node_modules/inherits/README.md +0 -42
  216. package/dist/node_modules/inherits/inherits.js +0 -9
  217. package/dist/node_modules/inherits/inherits_browser.js +0 -27
  218. package/dist/node_modules/inherits/package.json +0 -29
  219. package/dist/node_modules/ipaddr.js/LICENSE +0 -19
  220. package/dist/node_modules/ipaddr.js/README.md +0 -233
  221. package/dist/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  222. package/dist/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  223. package/dist/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  224. package/dist/node_modules/ipaddr.js/package.json +0 -35
  225. package/dist/node_modules/media-typer/HISTORY.md +0 -22
  226. package/dist/node_modules/media-typer/LICENSE +0 -22
  227. package/dist/node_modules/media-typer/README.md +0 -81
  228. package/dist/node_modules/media-typer/index.js +0 -270
  229. package/dist/node_modules/media-typer/package.json +0 -26
  230. package/dist/node_modules/merge-descriptors/HISTORY.md +0 -21
  231. package/dist/node_modules/merge-descriptors/LICENSE +0 -23
  232. package/dist/node_modules/merge-descriptors/README.md +0 -48
  233. package/dist/node_modules/merge-descriptors/index.js +0 -60
  234. package/dist/node_modules/merge-descriptors/package.json +0 -32
  235. package/dist/node_modules/methods/HISTORY.md +0 -29
  236. package/dist/node_modules/methods/LICENSE +0 -24
  237. package/dist/node_modules/methods/README.md +0 -51
  238. package/dist/node_modules/methods/index.js +0 -69
  239. package/dist/node_modules/methods/package.json +0 -36
  240. package/dist/node_modules/mime/CHANGELOG.md +0 -164
  241. package/dist/node_modules/mime/LICENSE +0 -21
  242. package/dist/node_modules/mime/README.md +0 -90
  243. package/dist/node_modules/mime/cli.js +0 -8
  244. package/dist/node_modules/mime/mime.js +0 -108
  245. package/dist/node_modules/mime/package.json +0 -44
  246. package/dist/node_modules/mime/src/build.js +0 -53
  247. package/dist/node_modules/mime/src/test.js +0 -60
  248. package/dist/node_modules/mime/types.json +0 -1
  249. package/dist/node_modules/mime-db/HISTORY.md +0 -507
  250. package/dist/node_modules/mime-db/LICENSE +0 -23
  251. package/dist/node_modules/mime-db/README.md +0 -100
  252. package/dist/node_modules/mime-db/db.json +0 -8519
  253. package/dist/node_modules/mime-db/index.js +0 -12
  254. package/dist/node_modules/mime-db/package.json +0 -60
  255. package/dist/node_modules/mime-types/HISTORY.md +0 -397
  256. package/dist/node_modules/mime-types/LICENSE +0 -23
  257. package/dist/node_modules/mime-types/README.md +0 -113
  258. package/dist/node_modules/mime-types/index.js +0 -188
  259. package/dist/node_modules/mime-types/package.json +0 -44
  260. package/dist/node_modules/ms/index.js +0 -152
  261. package/dist/node_modules/ms/license.md +0 -21
  262. package/dist/node_modules/ms/package.json +0 -37
  263. package/dist/node_modules/ms/readme.md +0 -51
  264. package/dist/node_modules/negotiator/HISTORY.md +0 -108
  265. package/dist/node_modules/negotiator/LICENSE +0 -24
  266. package/dist/node_modules/negotiator/README.md +0 -203
  267. package/dist/node_modules/negotiator/index.js +0 -82
  268. package/dist/node_modules/negotiator/lib/charset.js +0 -169
  269. package/dist/node_modules/negotiator/lib/encoding.js +0 -184
  270. package/dist/node_modules/negotiator/lib/language.js +0 -179
  271. package/dist/node_modules/negotiator/lib/mediaType.js +0 -294
  272. package/dist/node_modules/negotiator/package.json +0 -42
  273. package/dist/node_modules/object-inspect/.eslintrc +0 -53
  274. package/dist/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  275. package/dist/node_modules/object-inspect/.nycrc +0 -13
  276. package/dist/node_modules/object-inspect/CHANGELOG.md +0 -360
  277. package/dist/node_modules/object-inspect/LICENSE +0 -21
  278. package/dist/node_modules/object-inspect/example/all.js +0 -23
  279. package/dist/node_modules/object-inspect/example/circular.js +0 -6
  280. package/dist/node_modules/object-inspect/example/fn.js +0 -5
  281. package/dist/node_modules/object-inspect/example/inspect.js +0 -10
  282. package/dist/node_modules/object-inspect/index.js +0 -512
  283. package/dist/node_modules/object-inspect/package-support.json +0 -20
  284. package/dist/node_modules/object-inspect/package.json +0 -94
  285. package/dist/node_modules/object-inspect/readme.markdown +0 -86
  286. package/dist/node_modules/object-inspect/test/bigint.js +0 -58
  287. package/dist/node_modules/object-inspect/test/browser/dom.js +0 -15
  288. package/dist/node_modules/object-inspect/test/circular.js +0 -16
  289. package/dist/node_modules/object-inspect/test/deep.js +0 -12
  290. package/dist/node_modules/object-inspect/test/element.js +0 -53
  291. package/dist/node_modules/object-inspect/test/err.js +0 -48
  292. package/dist/node_modules/object-inspect/test/fakes.js +0 -29
  293. package/dist/node_modules/object-inspect/test/fn.js +0 -76
  294. package/dist/node_modules/object-inspect/test/has.js +0 -15
  295. package/dist/node_modules/object-inspect/test/holes.js +0 -15
  296. package/dist/node_modules/object-inspect/test/indent-option.js +0 -271
  297. package/dist/node_modules/object-inspect/test/inspect.js +0 -139
  298. package/dist/node_modules/object-inspect/test/lowbyte.js +0 -12
  299. package/dist/node_modules/object-inspect/test/number.js +0 -58
  300. package/dist/node_modules/object-inspect/test/quoteStyle.js +0 -17
  301. package/dist/node_modules/object-inspect/test/toStringTag.js +0 -40
  302. package/dist/node_modules/object-inspect/test/undef.js +0 -12
  303. package/dist/node_modules/object-inspect/test/values.js +0 -211
  304. package/dist/node_modules/object-inspect/test-core-js.js +0 -26
  305. package/dist/node_modules/object-inspect/util.inspect.js +0 -1
  306. package/dist/node_modules/on-finished/HISTORY.md +0 -98
  307. package/dist/node_modules/on-finished/LICENSE +0 -23
  308. package/dist/node_modules/on-finished/README.md +0 -162
  309. package/dist/node_modules/on-finished/index.js +0 -234
  310. package/dist/node_modules/on-finished/package.json +0 -39
  311. package/dist/node_modules/parseurl/HISTORY.md +0 -58
  312. package/dist/node_modules/parseurl/LICENSE +0 -24
  313. package/dist/node_modules/parseurl/README.md +0 -133
  314. package/dist/node_modules/parseurl/index.js +0 -158
  315. package/dist/node_modules/parseurl/package.json +0 -40
  316. package/dist/node_modules/path-to-regexp/History.md +0 -36
  317. package/dist/node_modules/path-to-regexp/LICENSE +0 -21
  318. package/dist/node_modules/path-to-regexp/Readme.md +0 -35
  319. package/dist/node_modules/path-to-regexp/index.js +0 -129
  320. package/dist/node_modules/path-to-regexp/package.json +0 -30
  321. package/dist/node_modules/proxy-addr/HISTORY.md +0 -161
  322. package/dist/node_modules/proxy-addr/LICENSE +0 -22
  323. package/dist/node_modules/proxy-addr/README.md +0 -139
  324. package/dist/node_modules/proxy-addr/index.js +0 -327
  325. package/dist/node_modules/proxy-addr/package.json +0 -47
  326. package/dist/node_modules/qs/.editorconfig +0 -43
  327. package/dist/node_modules/qs/.eslintrc +0 -38
  328. package/dist/node_modules/qs/.github/FUNDING.yml +0 -12
  329. package/dist/node_modules/qs/.nycrc +0 -13
  330. package/dist/node_modules/qs/CHANGELOG.md +0 -546
  331. package/dist/node_modules/qs/LICENSE.md +0 -29
  332. package/dist/node_modules/qs/README.md +0 -625
  333. package/dist/node_modules/qs/dist/qs.js +0 -2054
  334. package/dist/node_modules/qs/lib/formats.js +0 -23
  335. package/dist/node_modules/qs/lib/index.js +0 -11
  336. package/dist/node_modules/qs/lib/parse.js +0 -263
  337. package/dist/node_modules/qs/lib/stringify.js +0 -326
  338. package/dist/node_modules/qs/lib/utils.js +0 -252
  339. package/dist/node_modules/qs/package.json +0 -77
  340. package/dist/node_modules/qs/test/parse.js +0 -855
  341. package/dist/node_modules/qs/test/stringify.js +0 -909
  342. package/dist/node_modules/qs/test/utils.js +0 -136
  343. package/dist/node_modules/range-parser/HISTORY.md +0 -56
  344. package/dist/node_modules/range-parser/LICENSE +0 -23
  345. package/dist/node_modules/range-parser/README.md +0 -84
  346. package/dist/node_modules/range-parser/index.js +0 -162
  347. package/dist/node_modules/range-parser/package.json +0 -44
  348. package/dist/node_modules/raw-body/HISTORY.md +0 -303
  349. package/dist/node_modules/raw-body/LICENSE +0 -22
  350. package/dist/node_modules/raw-body/README.md +0 -223
  351. package/dist/node_modules/raw-body/SECURITY.md +0 -24
  352. package/dist/node_modules/raw-body/index.d.ts +0 -87
  353. package/dist/node_modules/raw-body/index.js +0 -329
  354. package/dist/node_modules/raw-body/package.json +0 -49
  355. package/dist/node_modules/safe-buffer/LICENSE +0 -21
  356. package/dist/node_modules/safe-buffer/README.md +0 -584
  357. package/dist/node_modules/safe-buffer/index.d.ts +0 -187
  358. package/dist/node_modules/safe-buffer/index.js +0 -65
  359. package/dist/node_modules/safe-buffer/package.json +0 -51
  360. package/dist/node_modules/safer-buffer/LICENSE +0 -21
  361. package/dist/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  362. package/dist/node_modules/safer-buffer/Readme.md +0 -156
  363. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  364. package/dist/node_modules/safer-buffer/package.json +0 -34
  365. package/dist/node_modules/safer-buffer/safer.js +0 -77
  366. package/dist/node_modules/safer-buffer/tests.js +0 -406
  367. package/dist/node_modules/send/HISTORY.md +0 -521
  368. package/dist/node_modules/send/LICENSE +0 -23
  369. package/dist/node_modules/send/README.md +0 -327
  370. package/dist/node_modules/send/SECURITY.md +0 -24
  371. package/dist/node_modules/send/index.js +0 -1143
  372. package/dist/node_modules/send/node_modules/ms/index.js +0 -162
  373. package/dist/node_modules/send/node_modules/ms/license.md +0 -21
  374. package/dist/node_modules/send/node_modules/ms/package.json +0 -38
  375. package/dist/node_modules/send/node_modules/ms/readme.md +0 -59
  376. package/dist/node_modules/send/package.json +0 -62
  377. package/dist/node_modules/serve-static/HISTORY.md +0 -471
  378. package/dist/node_modules/serve-static/LICENSE +0 -25
  379. package/dist/node_modules/serve-static/README.md +0 -257
  380. package/dist/node_modules/serve-static/index.js +0 -210
  381. package/dist/node_modules/serve-static/package.json +0 -42
  382. package/dist/node_modules/setprototypeof/LICENSE +0 -13
  383. package/dist/node_modules/setprototypeof/README.md +0 -31
  384. package/dist/node_modules/setprototypeof/index.d.ts +0 -2
  385. package/dist/node_modules/setprototypeof/index.js +0 -17
  386. package/dist/node_modules/setprototypeof/package.json +0 -38
  387. package/dist/node_modules/setprototypeof/test/index.js +0 -24
  388. package/dist/node_modules/side-channel/.eslintignore +0 -1
  389. package/dist/node_modules/side-channel/.eslintrc +0 -11
  390. package/dist/node_modules/side-channel/.github/FUNDING.yml +0 -12
  391. package/dist/node_modules/side-channel/.nycrc +0 -13
  392. package/dist/node_modules/side-channel/CHANGELOG.md +0 -65
  393. package/dist/node_modules/side-channel/LICENSE +0 -21
  394. package/dist/node_modules/side-channel/README.md +0 -2
  395. package/dist/node_modules/side-channel/index.js +0 -124
  396. package/dist/node_modules/side-channel/package.json +0 -67
  397. package/dist/node_modules/side-channel/test/index.js +0 -78
  398. package/dist/node_modules/statuses/HISTORY.md +0 -82
  399. package/dist/node_modules/statuses/LICENSE +0 -23
  400. package/dist/node_modules/statuses/README.md +0 -136
  401. package/dist/node_modules/statuses/codes.json +0 -65
  402. package/dist/node_modules/statuses/index.js +0 -146
  403. package/dist/node_modules/statuses/package.json +0 -49
  404. package/dist/node_modules/toidentifier/HISTORY.md +0 -9
  405. package/dist/node_modules/toidentifier/LICENSE +0 -21
  406. package/dist/node_modules/toidentifier/README.md +0 -61
  407. package/dist/node_modules/toidentifier/index.js +0 -32
  408. package/dist/node_modules/toidentifier/package.json +0 -38
  409. package/dist/node_modules/type-is/HISTORY.md +0 -259
  410. package/dist/node_modules/type-is/LICENSE +0 -23
  411. package/dist/node_modules/type-is/README.md +0 -170
  412. package/dist/node_modules/type-is/index.js +0 -266
  413. package/dist/node_modules/type-is/package.json +0 -45
  414. package/dist/node_modules/unpipe/HISTORY.md +0 -4
  415. package/dist/node_modules/unpipe/LICENSE +0 -22
  416. package/dist/node_modules/unpipe/README.md +0 -43
  417. package/dist/node_modules/unpipe/index.js +0 -69
  418. package/dist/node_modules/unpipe/package.json +0 -27
  419. package/dist/node_modules/utils-merge/LICENSE +0 -20
  420. package/dist/node_modules/utils-merge/README.md +0 -34
  421. package/dist/node_modules/utils-merge/index.js +0 -23
  422. package/dist/node_modules/utils-merge/package.json +0 -40
  423. package/dist/node_modules/vary/HISTORY.md +0 -39
  424. package/dist/node_modules/vary/LICENSE +0 -22
  425. package/dist/node_modules/vary/README.md +0 -101
  426. package/dist/node_modules/vary/index.js +0 -149
  427. package/dist/node_modules/vary/package.json +0 -43
@@ -1,65 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [v1.0.4](https://github.com/ljharb/side-channel/compare/v1.0.3...v1.0.4) - 2020-12-29
9
-
10
- ### Commits
11
-
12
- - [Tests] migrate tests to Github Actions [`10909cb`](https://github.com/ljharb/side-channel/commit/10909cbf8ce9c0bf96f604cf13d7ffd5a22c2d40)
13
- - [Refactor] Use a linked list rather than an array, and move accessed nodes to the beginning [`195613f`](https://github.com/ljharb/side-channel/commit/195613f28b5c1e6072ef0b61b5beebaf2b6a304e)
14
- - [meta] do not publish github action workflow files [`290ec29`](https://github.com/ljharb/side-channel/commit/290ec29cd21a60585145b4a7237ec55228c52c27)
15
- - [Tests] run `nyc` on all tests; use `tape` runner [`ea6d030`](https://github.com/ljharb/side-channel/commit/ea6d030ff3fe6be2eca39e859d644c51ecd88869)
16
- - [actions] add "Allow Edits" workflow [`d464d8f`](https://github.com/ljharb/side-channel/commit/d464d8fe52b5eddf1504a0ed97f0941a90f32c15)
17
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`02daca8`](https://github.com/ljharb/side-channel/commit/02daca87c6809821c97be468d1afa2f5ef447383)
18
- - [Refactor] use `call-bind` and `get-intrinsic` instead of `es-abstract` [`e09d481`](https://github.com/ljharb/side-channel/commit/e09d481528452ebafa5cdeae1af665c35aa2deee)
19
- - [Deps] update `object.assign` [`ee83aa8`](https://github.com/ljharb/side-channel/commit/ee83aa81df313b5e46319a63adb05cf0c179079a)
20
- - [actions] update rebase action to use checkout v2 [`7726b0b`](https://github.com/ljharb/side-channel/commit/7726b0b058b632fccea709f58960871defaaa9d7)
21
-
22
- ## [v1.0.3](https://github.com/ljharb/side-channel/compare/v1.0.2...v1.0.3) - 2020-08-23
23
-
24
- ### Commits
25
-
26
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`1f10561`](https://github.com/ljharb/side-channel/commit/1f105611ef3acf32dec8032ae5c0baa5e56bb868)
27
- - [Deps] update `es-abstract`, `object-inspect` [`bc20159`](https://github.com/ljharb/side-channel/commit/bc201597949a505e37cef9eaf24c7010831e6f03)
28
- - [Dev Deps] update `@ljharb/eslint-config`, `tape` [`b9b2b22`](https://github.com/ljharb/side-channel/commit/b9b2b225f9e0ea72a6ec2b89348f0bd690bc9ed1)
29
- - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`7055ab4`](https://github.com/ljharb/side-channel/commit/7055ab4de0860606efd2003674a74f1fe6ebc07e)
30
- - [Dev Deps] update `auto-changelog`; add `aud` [`d278c37`](https://github.com/ljharb/side-channel/commit/d278c37d08227be4f84aa769fcd919e73feeba40)
31
- - [actions] switch Automatic Rebase workflow to `pull_request_target` event [`3bcf982`](https://github.com/ljharb/side-channel/commit/3bcf982faa122745b39c33ce83d32fdf003741c6)
32
- - [Tests] only audit prod deps [`18d01c4`](https://github.com/ljharb/side-channel/commit/18d01c4015b82a3d75044c4d5ba7917b2eac01ec)
33
- - [Deps] update `es-abstract` [`6ab096d`](https://github.com/ljharb/side-channel/commit/6ab096d9de2b482cf5e0717e34e212f5b2b9bc9a)
34
- - [Dev Deps] update `tape` [`9dc174c`](https://github.com/ljharb/side-channel/commit/9dc174cc651dfd300b4b72da936a0a7eda5f9452)
35
- - [Deps] update `es-abstract` [`431d0f0`](https://github.com/ljharb/side-channel/commit/431d0f0ff11fbd2ae6f3115582a356d3a1cfce82)
36
- - [Deps] update `es-abstract` [`49869fd`](https://github.com/ljharb/side-channel/commit/49869fd323bf4453f0ba515c0fb265cf5ab7b932)
37
- - [meta] Add package.json to package's exports [`77d9cdc`](https://github.com/ljharb/side-channel/commit/77d9cdceb2a9e47700074f2ae0c0a202e7dac0d4)
38
-
39
- ## [v1.0.2](https://github.com/ljharb/side-channel/compare/v1.0.1...v1.0.2) - 2019-12-20
40
-
41
- ### Commits
42
-
43
- - [Dev Deps] update `@ljharb/eslint-config`, `tape` [`4a526df`](https://github.com/ljharb/side-channel/commit/4a526df44e4701566ed001ec78546193f818b082)
44
- - [Deps] update `es-abstract` [`d4f6e62`](https://github.com/ljharb/side-channel/commit/d4f6e629b6fb93a07415db7f30d3c90fd7f264fe)
45
-
46
- ## [v1.0.1](https://github.com/ljharb/side-channel/compare/v1.0.0...v1.0.1) - 2019-12-01
47
-
48
- ### Commits
49
-
50
- - [Fix] add missing "exports" [`d212907`](https://github.com/ljharb/side-channel/commit/d2129073abf0701a5343bf28aa2145617604dc2e)
51
-
52
- ## v1.0.0 - 2019-12-01
53
-
54
- ### Commits
55
-
56
- - Initial implementation [`dbebd3a`](https://github.com/ljharb/side-channel/commit/dbebd3a4b5ed64242f9a6810efe7c4214cd8cde4)
57
- - Initial tests [`73bdefe`](https://github.com/ljharb/side-channel/commit/73bdefe568c9076cf8c0b8719bc2141aec0e19b8)
58
- - Initial commit [`43c03e1`](https://github.com/ljharb/side-channel/commit/43c03e1c2849ec50a87b7a5cd76238a62b0b8770)
59
- - npm init [`5c090a7`](https://github.com/ljharb/side-channel/commit/5c090a765d66a5527d9889b89aeff78dee91348c)
60
- - [meta] add `auto-changelog` [`a5c4e56`](https://github.com/ljharb/side-channel/commit/a5c4e5675ec02d5eb4d84b4243aeea2a1d38fbec)
61
- - [actions] add automatic rebasing / merge commit blocking [`bab1683`](https://github.com/ljharb/side-channel/commit/bab1683d8f9754b086e94397699fdc645e0d7077)
62
- - [meta] add `funding` field; create FUNDING.yml [`63d7aea`](https://github.com/ljharb/side-channel/commit/63d7aeaf34f5650650ae97ca4b9fae685bd0937c)
63
- - [Tests] add `npm run lint` [`46a5a81`](https://github.com/ljharb/side-channel/commit/46a5a81705cd2664f83df232c01dbbf2ee952885)
64
- - Only apps should have lockfiles [`8b16b03`](https://github.com/ljharb/side-channel/commit/8b16b0305f00895d90c4e2e5773c854cfea0e448)
65
- - [meta] add `safe-publish-latest` [`2f098ef`](https://github.com/ljharb/side-channel/commit/2f098ef092a39399cfe548b19a1fc03c2fd2f490)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Jordan Harband
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,2 +0,0 @@
1
- # side-channel
2
- Store information about any JS value in a side channel. Uses WeakMap if available.
@@ -1,124 +0,0 @@
1
- 'use strict';
2
-
3
- var GetIntrinsic = require('get-intrinsic');
4
- var callBound = require('call-bind/callBound');
5
- var inspect = require('object-inspect');
6
-
7
- var $TypeError = GetIntrinsic('%TypeError%');
8
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
9
- var $Map = GetIntrinsic('%Map%', true);
10
-
11
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
12
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
13
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
14
- var $mapGet = callBound('Map.prototype.get', true);
15
- var $mapSet = callBound('Map.prototype.set', true);
16
- var $mapHas = callBound('Map.prototype.has', true);
17
-
18
- /*
19
- * This function traverses the list returning the node corresponding to the
20
- * given key.
21
- *
22
- * That node is also moved to the head of the list, so that if it's accessed
23
- * again we don't need to traverse the whole list. By doing so, all the recently
24
- * used nodes can be accessed relatively quickly.
25
- */
26
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
27
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
28
- if (curr.key === key) {
29
- prev.next = curr.next;
30
- curr.next = list.next;
31
- list.next = curr; // eslint-disable-line no-param-reassign
32
- return curr;
33
- }
34
- }
35
- };
36
-
37
- var listGet = function (objects, key) {
38
- var node = listGetNode(objects, key);
39
- return node && node.value;
40
- };
41
- var listSet = function (objects, key, value) {
42
- var node = listGetNode(objects, key);
43
- if (node) {
44
- node.value = value;
45
- } else {
46
- // Prepend the new node to the beginning of the list
47
- objects.next = { // eslint-disable-line no-param-reassign
48
- key: key,
49
- next: objects.next,
50
- value: value
51
- };
52
- }
53
- };
54
- var listHas = function (objects, key) {
55
- return !!listGetNode(objects, key);
56
- };
57
-
58
- module.exports = function getSideChannel() {
59
- var $wm;
60
- var $m;
61
- var $o;
62
- var channel = {
63
- assert: function (key) {
64
- if (!channel.has(key)) {
65
- throw new $TypeError('Side channel does not contain ' + inspect(key));
66
- }
67
- },
68
- get: function (key) { // eslint-disable-line consistent-return
69
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
70
- if ($wm) {
71
- return $weakMapGet($wm, key);
72
- }
73
- } else if ($Map) {
74
- if ($m) {
75
- return $mapGet($m, key);
76
- }
77
- } else {
78
- if ($o) { // eslint-disable-line no-lonely-if
79
- return listGet($o, key);
80
- }
81
- }
82
- },
83
- has: function (key) {
84
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
85
- if ($wm) {
86
- return $weakMapHas($wm, key);
87
- }
88
- } else if ($Map) {
89
- if ($m) {
90
- return $mapHas($m, key);
91
- }
92
- } else {
93
- if ($o) { // eslint-disable-line no-lonely-if
94
- return listHas($o, key);
95
- }
96
- }
97
- return false;
98
- },
99
- set: function (key, value) {
100
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
101
- if (!$wm) {
102
- $wm = new $WeakMap();
103
- }
104
- $weakMapSet($wm, key, value);
105
- } else if ($Map) {
106
- if (!$m) {
107
- $m = new $Map();
108
- }
109
- $mapSet($m, key, value);
110
- } else {
111
- if (!$o) {
112
- /*
113
- * Initialize the linked list as an empty node, so that we don't have
114
- * to special-case handling of the first node: we can always refer to
115
- * it as (previous node).next, instead of something like (list).head
116
- */
117
- $o = { key: {}, next: null };
118
- }
119
- listSet($o, key, value);
120
- }
121
- }
122
- };
123
- return channel;
124
- };
@@ -1,67 +0,0 @@
1
- {
2
- "name": "side-channel",
3
- "version": "1.0.4",
4
- "description": "Store information about any JS value in a side channel. Uses WeakMap if available.",
5
- "main": "index.js",
6
- "exports": {
7
- "./package.json": "./package.json",
8
- ".": [
9
- {
10
- "default": "./index.js"
11
- },
12
- "./index.js"
13
- ]
14
- },
15
- "scripts": {
16
- "prepublish": "safe-publish-latest",
17
- "lint": "eslint .",
18
- "pretest": "npm run lint",
19
- "tests-only": "nyc tape 'test/**/*.js'",
20
- "test": "npm run tests-only",
21
- "posttest": "npx aud --production",
22
- "version": "auto-changelog && git add CHANGELOG.md",
23
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
24
- },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/ljharb/side-channel.git"
28
- },
29
- "keywords": [
30
- "weakmap",
31
- "map",
32
- "side",
33
- "channel",
34
- "metadata"
35
- ],
36
- "author": "Jordan Harband <ljharb@gmail.com>",
37
- "funding": {
38
- "url": "https://github.com/sponsors/ljharb"
39
- },
40
- "license": "MIT",
41
- "bugs": {
42
- "url": "https://github.com/ljharb/side-channel/issues"
43
- },
44
- "homepage": "https://github.com/ljharb/side-channel#readme",
45
- "devDependencies": {
46
- "@ljharb/eslint-config": "^17.3.0",
47
- "aud": "^1.1.3",
48
- "auto-changelog": "^2.2.1",
49
- "eslint": "^7.16.0",
50
- "nyc": "^10.3.2",
51
- "safe-publish-latest": "^1.1.4",
52
- "tape": "^5.0.1"
53
- },
54
- "dependencies": {
55
- "call-bind": "^1.0.0",
56
- "get-intrinsic": "^1.0.2",
57
- "object-inspect": "^1.9.0"
58
- },
59
- "auto-changelog": {
60
- "output": "CHANGELOG.md",
61
- "template": "keepachangelog",
62
- "unreleased": false,
63
- "commitLimit": false,
64
- "backfillLimit": false,
65
- "hideCredit": true
66
- }
67
- }
@@ -1,78 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
-
5
- var getSideChannel = require('../');
6
-
7
- test('export', function (t) {
8
- t.equal(typeof getSideChannel, 'function', 'is a function');
9
- t.equal(getSideChannel.length, 0, 'takes no arguments');
10
-
11
- var channel = getSideChannel();
12
- t.ok(channel, 'is truthy');
13
- t.equal(typeof channel, 'object', 'is an object');
14
-
15
- t.end();
16
- });
17
-
18
- test('assert', function (t) {
19
- var channel = getSideChannel();
20
- t['throws'](
21
- function () { channel.assert({}); },
22
- TypeError,
23
- 'nonexistent value throws'
24
- );
25
-
26
- var o = {};
27
- channel.set(o, 'data');
28
- t.doesNotThrow(function () { channel.assert(o); }, 'existent value noops');
29
-
30
- t.end();
31
- });
32
-
33
- test('has', function (t) {
34
- var channel = getSideChannel();
35
- var o = [];
36
-
37
- t.equal(channel.has(o), false, 'nonexistent value yields false');
38
-
39
- channel.set(o, 'foo');
40
- t.equal(channel.has(o), true, 'existent value yields true');
41
-
42
- t.end();
43
- });
44
-
45
- test('get', function (t) {
46
- var channel = getSideChannel();
47
- var o = {};
48
- t.equal(channel.get(o), undefined, 'nonexistent value yields undefined');
49
-
50
- var data = {};
51
- channel.set(o, data);
52
- t.equal(channel.get(o), data, '"get" yields data set by "set"');
53
-
54
- t.end();
55
- });
56
-
57
- test('set', function (t) {
58
- var channel = getSideChannel();
59
- var o = function () {};
60
- t.equal(channel.get(o), undefined, 'value not set');
61
-
62
- channel.set(o, 42);
63
- t.equal(channel.get(o), 42, 'value was set');
64
-
65
- channel.set(o, Infinity);
66
- t.equal(channel.get(o), Infinity, 'value was set again');
67
-
68
- var o2 = {};
69
- channel.set(o2, 17);
70
- t.equal(channel.get(o), Infinity, 'o is not modified');
71
- t.equal(channel.get(o2), 17, 'o2 is set');
72
-
73
- channel.set(o, 14);
74
- t.equal(channel.get(o), 14, 'o is modified');
75
- t.equal(channel.get(o2), 17, 'o2 is not modified');
76
-
77
- t.end();
78
- });
@@ -1,82 +0,0 @@
1
- 2.0.1 / 2021-01-03
2
- ==================
3
-
4
- * Fix returning values from `Object.prototype`
5
-
6
- 2.0.0 / 2020-04-19
7
- ==================
8
-
9
- * Drop support for Node.js 0.6
10
- * Fix messaging casing of `418 I'm a Teapot`
11
- * Remove code 306
12
- * Remove `status[code]` exports; use `status.message[code]`
13
- * Remove `status[msg]` exports; use `status.code[msg]`
14
- * Rename `425 Unordered Collection` to standard `425 Too Early`
15
- * Rename `STATUS_CODES` export to `message`
16
- * Return status message for `statuses(code)` when given code
17
-
18
- 1.5.0 / 2018-03-27
19
- ==================
20
-
21
- * Add `103 Early Hints`
22
-
23
- 1.4.0 / 2017-10-20
24
- ==================
25
-
26
- * Add `STATUS_CODES` export
27
-
28
- 1.3.1 / 2016-11-11
29
- ==================
30
-
31
- * Fix return type in JSDoc
32
-
33
- 1.3.0 / 2016-05-17
34
- ==================
35
-
36
- * Add `421 Misdirected Request`
37
- * perf: enable strict mode
38
-
39
- 1.2.1 / 2015-02-01
40
- ==================
41
-
42
- * Fix message for status 451
43
- - `451 Unavailable For Legal Reasons`
44
-
45
- 1.2.0 / 2014-09-28
46
- ==================
47
-
48
- * Add `208 Already Repored`
49
- * Add `226 IM Used`
50
- * Add `306 (Unused)`
51
- * Add `415 Unable For Legal Reasons`
52
- * Add `508 Loop Detected`
53
-
54
- 1.1.1 / 2014-09-24
55
- ==================
56
-
57
- * Add missing 308 to `codes.json`
58
-
59
- 1.1.0 / 2014-09-21
60
- ==================
61
-
62
- * Add `codes.json` for universal support
63
-
64
- 1.0.4 / 2014-08-20
65
- ==================
66
-
67
- * Package cleanup
68
-
69
- 1.0.3 / 2014-06-08
70
- ==================
71
-
72
- * Add 308 to `.redirect` category
73
-
74
- 1.0.2 / 2014-03-13
75
- ==================
76
-
77
- * Add `.retry` category
78
-
79
- 1.0.1 / 2014-03-12
80
- ==================
81
-
82
- * Initial release
@@ -1,23 +0,0 @@
1
-
2
- The MIT License (MIT)
3
-
4
- Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
5
- Copyright (c) 2016 Douglas Christopher Wilson <doug@somethingdoug.com>
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- THE SOFTWARE.
@@ -1,136 +0,0 @@
1
- # statuses
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][ci-image]][ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- HTTP status utility for node.
10
-
11
- This module provides a list of status codes and messages sourced from
12
- a few different projects:
13
-
14
- * The [IANA Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)
15
- * The [Node.js project](https://nodejs.org/)
16
- * The [NGINX project](https://www.nginx.com/)
17
- * The [Apache HTTP Server project](https://httpd.apache.org/)
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 statuses
27
- ```
28
-
29
- ## API
30
-
31
- <!-- eslint-disable no-unused-vars -->
32
-
33
- ```js
34
- var status = require('statuses')
35
- ```
36
-
37
- ### status(code)
38
-
39
- Returns the status message string for a known HTTP status code. The code
40
- may be a number or a string. An error is thrown for an unknown status code.
41
-
42
- <!-- eslint-disable no-undef -->
43
-
44
- ```js
45
- status(403) // => 'Forbidden'
46
- status('403') // => 'Forbidden'
47
- status(306) // throws
48
- ```
49
-
50
- ### status(msg)
51
-
52
- Returns the numeric status code for a known HTTP status message. The message
53
- is case-insensitive. An error is thrown for an unknown status message.
54
-
55
- <!-- eslint-disable no-undef -->
56
-
57
- ```js
58
- status('forbidden') // => 403
59
- status('Forbidden') // => 403
60
- status('foo') // throws
61
- ```
62
-
63
- ### status.codes
64
-
65
- Returns an array of all the status codes as `Integer`s.
66
-
67
- ### status.code[msg]
68
-
69
- Returns the numeric status code for a known status message (in lower-case),
70
- otherwise `undefined`.
71
-
72
- <!-- eslint-disable no-undef, no-unused-expressions -->
73
-
74
- ```js
75
- status['not found'] // => 404
76
- ```
77
-
78
- ### status.empty[code]
79
-
80
- Returns `true` if a status code expects an empty body.
81
-
82
- <!-- eslint-disable no-undef, no-unused-expressions -->
83
-
84
- ```js
85
- status.empty[200] // => undefined
86
- status.empty[204] // => true
87
- status.empty[304] // => true
88
- ```
89
-
90
- ### status.message[code]
91
-
92
- Returns the string message for a known numeric status code, otherwise
93
- `undefined`. This object is the same format as the
94
- [Node.js http module `http.STATUS_CODES`](https://nodejs.org/dist/latest/docs/api/http.html#http_http_status_codes).
95
-
96
- <!-- eslint-disable no-undef, no-unused-expressions -->
97
-
98
- ```js
99
- status.message[404] // => 'Not Found'
100
- ```
101
-
102
- ### status.redirect[code]
103
-
104
- Returns `true` if a status code is a valid redirect status.
105
-
106
- <!-- eslint-disable no-undef, no-unused-expressions -->
107
-
108
- ```js
109
- status.redirect[200] // => undefined
110
- status.redirect[301] // => true
111
- ```
112
-
113
- ### status.retry[code]
114
-
115
- Returns `true` if you should retry the rest.
116
-
117
- <!-- eslint-disable no-undef, no-unused-expressions -->
118
-
119
- ```js
120
- status.retry[501] // => undefined
121
- status.retry[503] // => true
122
- ```
123
-
124
- ## License
125
-
126
- [MIT](LICENSE)
127
-
128
- [ci-image]: https://badgen.net/github/checks/jshttp/statuses/master?label=ci
129
- [ci-url]: https://github.com/jshttp/statuses/actions?query=workflow%3Aci
130
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/statuses/master
131
- [coveralls-url]: https://coveralls.io/r/jshttp/statuses?branch=master
132
- [node-version-image]: https://badgen.net/npm/node/statuses
133
- [node-version-url]: https://nodejs.org/en/download
134
- [npm-downloads-image]: https://badgen.net/npm/dm/statuses
135
- [npm-url]: https://npmjs.org/package/statuses
136
- [npm-version-image]: https://badgen.net/npm/v/statuses
@@ -1,65 +0,0 @@
1
- {
2
- "100": "Continue",
3
- "101": "Switching Protocols",
4
- "102": "Processing",
5
- "103": "Early Hints",
6
- "200": "OK",
7
- "201": "Created",
8
- "202": "Accepted",
9
- "203": "Non-Authoritative Information",
10
- "204": "No Content",
11
- "205": "Reset Content",
12
- "206": "Partial Content",
13
- "207": "Multi-Status",
14
- "208": "Already Reported",
15
- "226": "IM Used",
16
- "300": "Multiple Choices",
17
- "301": "Moved Permanently",
18
- "302": "Found",
19
- "303": "See Other",
20
- "304": "Not Modified",
21
- "305": "Use Proxy",
22
- "307": "Temporary Redirect",
23
- "308": "Permanent Redirect",
24
- "400": "Bad Request",
25
- "401": "Unauthorized",
26
- "402": "Payment Required",
27
- "403": "Forbidden",
28
- "404": "Not Found",
29
- "405": "Method Not Allowed",
30
- "406": "Not Acceptable",
31
- "407": "Proxy Authentication Required",
32
- "408": "Request Timeout",
33
- "409": "Conflict",
34
- "410": "Gone",
35
- "411": "Length Required",
36
- "412": "Precondition Failed",
37
- "413": "Payload Too Large",
38
- "414": "URI Too Long",
39
- "415": "Unsupported Media Type",
40
- "416": "Range Not Satisfiable",
41
- "417": "Expectation Failed",
42
- "418": "I'm a Teapot",
43
- "421": "Misdirected Request",
44
- "422": "Unprocessable Entity",
45
- "423": "Locked",
46
- "424": "Failed Dependency",
47
- "425": "Too Early",
48
- "426": "Upgrade Required",
49
- "428": "Precondition Required",
50
- "429": "Too Many Requests",
51
- "431": "Request Header Fields Too Large",
52
- "451": "Unavailable For Legal Reasons",
53
- "500": "Internal Server Error",
54
- "501": "Not Implemented",
55
- "502": "Bad Gateway",
56
- "503": "Service Unavailable",
57
- "504": "Gateway Timeout",
58
- "505": "HTTP Version Not Supported",
59
- "506": "Variant Also Negotiates",
60
- "507": "Insufficient Storage",
61
- "508": "Loop Detected",
62
- "509": "Bandwidth Limit Exceeded",
63
- "510": "Not Extended",
64
- "511": "Network Authentication Required"
65
- }