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,302 +0,0 @@
1
- # cookie
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][github-actions-ci-image]][github-actions-ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- Basic HTTP cookie parser and serializer for HTTP servers.
10
-
11
- ## Installation
12
-
13
- This is a [Node.js](https://nodejs.org/en/) module available through the
14
- [npm registry](https://www.npmjs.com/). Installation is done using the
15
- [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
16
-
17
- ```sh
18
- $ npm install cookie
19
- ```
20
-
21
- ## API
22
-
23
- ```js
24
- var cookie = require('cookie');
25
- ```
26
-
27
- ### cookie.parse(str, options)
28
-
29
- Parse an HTTP `Cookie` header string and returning an object of all cookie name-value pairs.
30
- The `str` argument is the string representing a `Cookie` header value and `options` is an
31
- optional object containing additional parsing options.
32
-
33
- ```js
34
- var cookies = cookie.parse('foo=bar; equation=E%3Dmc%5E2');
35
- // { foo: 'bar', equation: 'E=mc^2' }
36
- ```
37
-
38
- #### Options
39
-
40
- `cookie.parse` accepts these properties in the options object.
41
-
42
- ##### decode
43
-
44
- Specifies a function that will be used to decode a cookie's value. Since the value of a cookie
45
- has a limited character set (and must be a simple string), this function can be used to decode
46
- a previously-encoded cookie value into a JavaScript string or other object.
47
-
48
- The default function is the global `decodeURIComponent`, which will decode any URL-encoded
49
- sequences into their byte representations.
50
-
51
- **note** if an error is thrown from this function, the original, non-decoded cookie value will
52
- be returned as the cookie's value.
53
-
54
- ### cookie.serialize(name, value, options)
55
-
56
- Serialize a cookie name-value pair into a `Set-Cookie` header string. The `name` argument is the
57
- name for the cookie, the `value` argument is the value to set the cookie to, and the `options`
58
- argument is an optional object containing additional serialization options.
59
-
60
- ```js
61
- var setCookie = cookie.serialize('foo', 'bar');
62
- // foo=bar
63
- ```
64
-
65
- #### Options
66
-
67
- `cookie.serialize` accepts these properties in the options object.
68
-
69
- ##### domain
70
-
71
- Specifies the value for the [`Domain` `Set-Cookie` attribute][rfc-6265-5.2.3]. By default, no
72
- domain is set, and most clients will consider the cookie to apply to only the current domain.
73
-
74
- ##### encode
75
-
76
- Specifies a function that will be used to encode a cookie's value. Since value of a cookie
77
- has a limited character set (and must be a simple string), this function can be used to encode
78
- a value into a string suited for a cookie's value.
79
-
80
- The default function is the global `encodeURIComponent`, which will encode a JavaScript string
81
- into UTF-8 byte sequences and then URL-encode any that fall outside of the cookie range.
82
-
83
- ##### expires
84
-
85
- Specifies the `Date` object to be the value for the [`Expires` `Set-Cookie` attribute][rfc-6265-5.2.1].
86
- By default, no expiration is set, and most clients will consider this a "non-persistent cookie" and
87
- will delete it on a condition like exiting a web browser application.
88
-
89
- **note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
90
- `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
91
- so if both are set, they should point to the same date and time.
92
-
93
- ##### httpOnly
94
-
95
- Specifies the `boolean` value for the [`HttpOnly` `Set-Cookie` attribute][rfc-6265-5.2.6]. When truthy,
96
- the `HttpOnly` attribute is set, otherwise it is not. By default, the `HttpOnly` attribute is not set.
97
-
98
- **note** be careful when setting this to `true`, as compliant clients will not allow client-side
99
- JavaScript to see the cookie in `document.cookie`.
100
-
101
- ##### maxAge
102
-
103
- Specifies the `number` (in seconds) to be the value for the [`Max-Age` `Set-Cookie` attribute][rfc-6265-5.2.2].
104
- The given number will be converted to an integer by rounding down. By default, no maximum age is set.
105
-
106
- **note** the [cookie storage model specification][rfc-6265-5.3] states that if both `expires` and
107
- `maxAge` are set, then `maxAge` takes precedence, but it is possible not all clients by obey this,
108
- so if both are set, they should point to the same date and time.
109
-
110
- ##### path
111
-
112
- Specifies the value for the [`Path` `Set-Cookie` attribute][rfc-6265-5.2.4]. By default, the path
113
- is considered the ["default path"][rfc-6265-5.1.4].
114
-
115
- ##### priority
116
-
117
- Specifies the `string` to be the value for the [`Priority` `Set-Cookie` attribute][rfc-west-cookie-priority-00-4.1].
118
-
119
- - `'low'` will set the `Priority` attribute to `Low`.
120
- - `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set.
121
- - `'high'` will set the `Priority` attribute to `High`.
122
-
123
- More information about the different priority levels can be found in
124
- [the specification][rfc-west-cookie-priority-00-4.1].
125
-
126
- **note** This is an attribute that has not yet been fully standardized, and may change in the future.
127
- This also means many clients may ignore this attribute until they understand it.
128
-
129
- ##### sameSite
130
-
131
- Specifies the `boolean` or `string` to be the value for the [`SameSite` `Set-Cookie` attribute][rfc-6265bis-09-5.4.7].
132
-
133
- - `true` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
134
- - `false` will not set the `SameSite` attribute.
135
- - `'lax'` will set the `SameSite` attribute to `Lax` for lax same site enforcement.
136
- - `'none'` will set the `SameSite` attribute to `None` for an explicit cross-site cookie.
137
- - `'strict'` will set the `SameSite` attribute to `Strict` for strict same site enforcement.
138
-
139
- More information about the different enforcement levels can be found in
140
- [the specification][rfc-6265bis-09-5.4.7].
141
-
142
- **note** This is an attribute that has not yet been fully standardized, and may change in the future.
143
- This also means many clients may ignore this attribute until they understand it.
144
-
145
- ##### secure
146
-
147
- Specifies the `boolean` value for the [`Secure` `Set-Cookie` attribute][rfc-6265-5.2.5]. When truthy,
148
- the `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.
149
-
150
- **note** be careful when setting this to `true`, as compliant clients will not send the cookie back to
151
- the server in the future if the browser does not have an HTTPS connection.
152
-
153
- ## Example
154
-
155
- The following example uses this module in conjunction with the Node.js core HTTP server
156
- to prompt a user for their name and display it back on future visits.
157
-
158
- ```js
159
- var cookie = require('cookie');
160
- var escapeHtml = require('escape-html');
161
- var http = require('http');
162
- var url = require('url');
163
-
164
- function onRequest(req, res) {
165
- // Parse the query string
166
- var query = url.parse(req.url, true, true).query;
167
-
168
- if (query && query.name) {
169
- // Set a new cookie with the name
170
- res.setHeader('Set-Cookie', cookie.serialize('name', String(query.name), {
171
- httpOnly: true,
172
- maxAge: 60 * 60 * 24 * 7 // 1 week
173
- }));
174
-
175
- // Redirect back after setting cookie
176
- res.statusCode = 302;
177
- res.setHeader('Location', req.headers.referer || '/');
178
- res.end();
179
- return;
180
- }
181
-
182
- // Parse the cookies on the request
183
- var cookies = cookie.parse(req.headers.cookie || '');
184
-
185
- // Get the visitor name set in the cookie
186
- var name = cookies.name;
187
-
188
- res.setHeader('Content-Type', 'text/html; charset=UTF-8');
189
-
190
- if (name) {
191
- res.write('<p>Welcome back, <b>' + escapeHtml(name) + '</b>!</p>');
192
- } else {
193
- res.write('<p>Hello, new visitor!</p>');
194
- }
195
-
196
- res.write('<form method="GET">');
197
- res.write('<input placeholder="enter your name" name="name"> <input type="submit" value="Set Name">');
198
- res.end('</form>');
199
- }
200
-
201
- http.createServer(onRequest).listen(3000);
202
- ```
203
-
204
- ## Testing
205
-
206
- ```sh
207
- $ npm test
208
- ```
209
-
210
- ## Benchmark
211
-
212
- ```
213
- $ npm run bench
214
-
215
- > cookie@0.4.2 bench
216
- > node benchmark/index.js
217
-
218
- node@16.14.0
219
- v8@9.4.146.24-node.20
220
- uv@1.43.0
221
- zlib@1.2.11
222
- brotli@1.0.9
223
- ares@1.18.1
224
- modules@93
225
- nghttp2@1.45.1
226
- napi@8
227
- llhttp@6.0.4
228
- openssl@1.1.1m+quic
229
- cldr@40.0
230
- icu@70.1
231
- tz@2021a3
232
- unicode@14.0
233
- ngtcp2@0.1.0-DEV
234
- nghttp3@0.1.0-DEV
235
-
236
- > node benchmark/parse-top.js
237
-
238
- cookie.parse - top sites
239
-
240
- 15 tests completed.
241
-
242
- parse accounts.google.com x 2,421,245 ops/sec ±0.80% (188 runs sampled)
243
- parse apple.com x 2,684,710 ops/sec ±0.59% (189 runs sampled)
244
- parse cloudflare.com x 2,231,418 ops/sec ±0.76% (186 runs sampled)
245
- parse docs.google.com x 2,316,357 ops/sec ±1.28% (187 runs sampled)
246
- parse drive.google.com x 2,363,543 ops/sec ±0.49% (189 runs sampled)
247
- parse en.wikipedia.org x 839,414 ops/sec ±0.53% (189 runs sampled)
248
- parse linkedin.com x 553,797 ops/sec ±0.63% (190 runs sampled)
249
- parse maps.google.com x 1,314,779 ops/sec ±0.72% (189 runs sampled)
250
- parse microsoft.com x 153,783 ops/sec ±0.53% (190 runs sampled)
251
- parse play.google.com x 2,249,574 ops/sec ±0.59% (187 runs sampled)
252
- parse plus.google.com x 2,258,682 ops/sec ±0.60% (188 runs sampled)
253
- parse sites.google.com x 2,247,069 ops/sec ±0.68% (189 runs sampled)
254
- parse support.google.com x 1,456,840 ops/sec ±0.70% (187 runs sampled)
255
- parse www.google.com x 1,046,028 ops/sec ±0.58% (188 runs sampled)
256
- parse youtu.be x 937,428 ops/sec ±1.47% (190 runs sampled)
257
- parse youtube.com x 963,878 ops/sec ±0.59% (190 runs sampled)
258
-
259
- > node benchmark/parse.js
260
-
261
- cookie.parse - generic
262
-
263
- 6 tests completed.
264
-
265
- simple x 2,745,604 ops/sec ±0.77% (185 runs sampled)
266
- decode x 557,287 ops/sec ±0.60% (188 runs sampled)
267
- unquote x 2,498,475 ops/sec ±0.55% (189 runs sampled)
268
- duplicates x 868,591 ops/sec ±0.89% (187 runs sampled)
269
- 10 cookies x 306,745 ops/sec ±0.49% (190 runs sampled)
270
- 100 cookies x 22,414 ops/sec ±2.38% (182 runs sampled)
271
- ```
272
-
273
- ## References
274
-
275
- - [RFC 6265: HTTP State Management Mechanism][rfc-6265]
276
- - [Same-site Cookies][rfc-6265bis-09-5.4.7]
277
-
278
- [rfc-west-cookie-priority-00-4.1]: https://tools.ietf.org/html/draft-west-cookie-priority-00#section-4.1
279
- [rfc-6265bis-09-5.4.7]: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-09#section-5.4.7
280
- [rfc-6265]: https://tools.ietf.org/html/rfc6265
281
- [rfc-6265-5.1.4]: https://tools.ietf.org/html/rfc6265#section-5.1.4
282
- [rfc-6265-5.2.1]: https://tools.ietf.org/html/rfc6265#section-5.2.1
283
- [rfc-6265-5.2.2]: https://tools.ietf.org/html/rfc6265#section-5.2.2
284
- [rfc-6265-5.2.3]: https://tools.ietf.org/html/rfc6265#section-5.2.3
285
- [rfc-6265-5.2.4]: https://tools.ietf.org/html/rfc6265#section-5.2.4
286
- [rfc-6265-5.2.5]: https://tools.ietf.org/html/rfc6265#section-5.2.5
287
- [rfc-6265-5.2.6]: https://tools.ietf.org/html/rfc6265#section-5.2.6
288
- [rfc-6265-5.3]: https://tools.ietf.org/html/rfc6265#section-5.3
289
-
290
- ## License
291
-
292
- [MIT](LICENSE)
293
-
294
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/cookie/master
295
- [coveralls-url]: https://coveralls.io/r/jshttp/cookie?branch=master
296
- [github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/cookie/ci/master?label=ci
297
- [github-actions-ci-url]: https://github.com/jshttp/cookie/actions/workflows/ci.yml
298
- [node-version-image]: https://badgen.net/npm/node/cookie
299
- [node-version-url]: https://nodejs.org/en/download
300
- [npm-downloads-image]: https://badgen.net/npm/dm/cookie
301
- [npm-url]: https://npmjs.org/package/cookie
302
- [npm-version-image]: https://badgen.net/npm/v/cookie
@@ -1,25 +0,0 @@
1
- # Security Policies and Procedures
2
-
3
- ## Reporting a Bug
4
-
5
- The `cookie` team and community take all security bugs seriously. Thank
6
- you for improving the security of the project. We appreciate your efforts and
7
- responsible disclosure and will make every effort to acknowledge your
8
- contributions.
9
-
10
- Report security bugs by emailing the current owner(s) of `cookie`. This
11
- information can be found in the npm registry using the command
12
- `npm owner ls cookie`.
13
- If unsure or unable to get the information from the above, open an issue
14
- in the [project issue tracker](https://github.com/jshttp/cookie/issues)
15
- asking for the current contact information.
16
-
17
- To ensure the timely response to your report, please ensure that the entirety
18
- of the report is contained within the email body and not solely behind a web
19
- link or an attachment.
20
-
21
- At least one owner will acknowledge your email within 48 hours, and will send a
22
- more detailed response within 48 hours indicating the next steps in handling
23
- your report. After the initial reply to your report, the owners will
24
- endeavor to keep you informed of the progress towards a fix and full
25
- announcement, and may ask for additional information or guidance.
@@ -1,270 +0,0 @@
1
- /*!
2
- * cookie
3
- * Copyright(c) 2012-2014 Roman Shtylman
4
- * Copyright(c) 2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict';
9
-
10
- /**
11
- * Module exports.
12
- * @public
13
- */
14
-
15
- exports.parse = parse;
16
- exports.serialize = serialize;
17
-
18
- /**
19
- * Module variables.
20
- * @private
21
- */
22
-
23
- var __toString = Object.prototype.toString
24
-
25
- /**
26
- * RegExp to match field-content in RFC 7230 sec 3.2
27
- *
28
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
29
- * field-vchar = VCHAR / obs-text
30
- * obs-text = %x80-FF
31
- */
32
-
33
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
34
-
35
- /**
36
- * Parse a cookie header.
37
- *
38
- * Parse the given cookie header string into an object
39
- * The object has the various cookies as keys(names) => values
40
- *
41
- * @param {string} str
42
- * @param {object} [options]
43
- * @return {object}
44
- * @public
45
- */
46
-
47
- function parse(str, options) {
48
- if (typeof str !== 'string') {
49
- throw new TypeError('argument str must be a string');
50
- }
51
-
52
- var obj = {}
53
- var opt = options || {};
54
- var dec = opt.decode || decode;
55
-
56
- var index = 0
57
- while (index < str.length) {
58
- var eqIdx = str.indexOf('=', index)
59
-
60
- // no more cookie pairs
61
- if (eqIdx === -1) {
62
- break
63
- }
64
-
65
- var endIdx = str.indexOf(';', index)
66
-
67
- if (endIdx === -1) {
68
- endIdx = str.length
69
- } else if (endIdx < eqIdx) {
70
- // backtrack on prior semicolon
71
- index = str.lastIndexOf(';', eqIdx - 1) + 1
72
- continue
73
- }
74
-
75
- var key = str.slice(index, eqIdx).trim()
76
-
77
- // only assign once
78
- if (undefined === obj[key]) {
79
- var val = str.slice(eqIdx + 1, endIdx).trim()
80
-
81
- // quoted values
82
- if (val.charCodeAt(0) === 0x22) {
83
- val = val.slice(1, -1)
84
- }
85
-
86
- obj[key] = tryDecode(val, dec);
87
- }
88
-
89
- index = endIdx + 1
90
- }
91
-
92
- return obj;
93
- }
94
-
95
- /**
96
- * Serialize data into a cookie header.
97
- *
98
- * Serialize the a name value pair into a cookie string suitable for
99
- * http headers. An optional options object specified cookie parameters.
100
- *
101
- * serialize('foo', 'bar', { httpOnly: true })
102
- * => "foo=bar; httpOnly"
103
- *
104
- * @param {string} name
105
- * @param {string} val
106
- * @param {object} [options]
107
- * @return {string}
108
- * @public
109
- */
110
-
111
- function serialize(name, val, options) {
112
- var opt = options || {};
113
- var enc = opt.encode || encode;
114
-
115
- if (typeof enc !== 'function') {
116
- throw new TypeError('option encode is invalid');
117
- }
118
-
119
- if (!fieldContentRegExp.test(name)) {
120
- throw new TypeError('argument name is invalid');
121
- }
122
-
123
- var value = enc(val);
124
-
125
- if (value && !fieldContentRegExp.test(value)) {
126
- throw new TypeError('argument val is invalid');
127
- }
128
-
129
- var str = name + '=' + value;
130
-
131
- if (null != opt.maxAge) {
132
- var maxAge = opt.maxAge - 0;
133
-
134
- if (isNaN(maxAge) || !isFinite(maxAge)) {
135
- throw new TypeError('option maxAge is invalid')
136
- }
137
-
138
- str += '; Max-Age=' + Math.floor(maxAge);
139
- }
140
-
141
- if (opt.domain) {
142
- if (!fieldContentRegExp.test(opt.domain)) {
143
- throw new TypeError('option domain is invalid');
144
- }
145
-
146
- str += '; Domain=' + opt.domain;
147
- }
148
-
149
- if (opt.path) {
150
- if (!fieldContentRegExp.test(opt.path)) {
151
- throw new TypeError('option path is invalid');
152
- }
153
-
154
- str += '; Path=' + opt.path;
155
- }
156
-
157
- if (opt.expires) {
158
- var expires = opt.expires
159
-
160
- if (!isDate(expires) || isNaN(expires.valueOf())) {
161
- throw new TypeError('option expires is invalid');
162
- }
163
-
164
- str += '; Expires=' + expires.toUTCString()
165
- }
166
-
167
- if (opt.httpOnly) {
168
- str += '; HttpOnly';
169
- }
170
-
171
- if (opt.secure) {
172
- str += '; Secure';
173
- }
174
-
175
- if (opt.priority) {
176
- var priority = typeof opt.priority === 'string'
177
- ? opt.priority.toLowerCase()
178
- : opt.priority
179
-
180
- switch (priority) {
181
- case 'low':
182
- str += '; Priority=Low'
183
- break
184
- case 'medium':
185
- str += '; Priority=Medium'
186
- break
187
- case 'high':
188
- str += '; Priority=High'
189
- break
190
- default:
191
- throw new TypeError('option priority is invalid')
192
- }
193
- }
194
-
195
- if (opt.sameSite) {
196
- var sameSite = typeof opt.sameSite === 'string'
197
- ? opt.sameSite.toLowerCase() : opt.sameSite;
198
-
199
- switch (sameSite) {
200
- case true:
201
- str += '; SameSite=Strict';
202
- break;
203
- case 'lax':
204
- str += '; SameSite=Lax';
205
- break;
206
- case 'strict':
207
- str += '; SameSite=Strict';
208
- break;
209
- case 'none':
210
- str += '; SameSite=None';
211
- break;
212
- default:
213
- throw new TypeError('option sameSite is invalid');
214
- }
215
- }
216
-
217
- return str;
218
- }
219
-
220
- /**
221
- * URL-decode string value. Optimized to skip native call when no %.
222
- *
223
- * @param {string} str
224
- * @returns {string}
225
- */
226
-
227
- function decode (str) {
228
- return str.indexOf('%') !== -1
229
- ? decodeURIComponent(str)
230
- : str
231
- }
232
-
233
- /**
234
- * URL-encode value.
235
- *
236
- * @param {string} str
237
- * @returns {string}
238
- */
239
-
240
- function encode (val) {
241
- return encodeURIComponent(val)
242
- }
243
-
244
- /**
245
- * Determine if value is a Date.
246
- *
247
- * @param {*} val
248
- * @private
249
- */
250
-
251
- function isDate (val) {
252
- return __toString.call(val) === '[object Date]' ||
253
- val instanceof Date
254
- }
255
-
256
- /**
257
- * Try decoding a string using a decoding function.
258
- *
259
- * @param {string} str
260
- * @param {function} decode
261
- * @private
262
- */
263
-
264
- function tryDecode(str, decode) {
265
- try {
266
- return decode(str);
267
- } catch (e) {
268
- return str;
269
- }
270
- }
@@ -1,44 +0,0 @@
1
- {
2
- "name": "cookie",
3
- "description": "HTTP server cookie parsing and serialization",
4
- "version": "0.5.0",
5
- "author": "Roman Shtylman <shtylman@gmail.com>",
6
- "contributors": [
7
- "Douglas Christopher Wilson <doug@somethingdoug.com>"
8
- ],
9
- "license": "MIT",
10
- "keywords": [
11
- "cookie",
12
- "cookies"
13
- ],
14
- "repository": "jshttp/cookie",
15
- "devDependencies": {
16
- "beautify-benchmark": "0.2.4",
17
- "benchmark": "2.1.4",
18
- "eslint": "7.32.0",
19
- "eslint-plugin-markdown": "2.2.1",
20
- "mocha": "9.2.2",
21
- "nyc": "15.1.0",
22
- "safe-buffer": "5.2.1",
23
- "top-sites": "1.1.97"
24
- },
25
- "files": [
26
- "HISTORY.md",
27
- "LICENSE",
28
- "README.md",
29
- "SECURITY.md",
30
- "index.js"
31
- ],
32
- "engines": {
33
- "node": ">= 0.6"
34
- },
35
- "scripts": {
36
- "bench": "node benchmark/index.js",
37
- "lint": "eslint .",
38
- "test": "mocha --reporter spec --bail --check-leaks test/",
39
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
40
- "test-cov": "nyc --reporter=html --reporter=text npm test",
41
- "update-bench": "node scripts/update-benchmark.js",
42
- "version": "node scripts/version-history.js && git add HISTORY.md"
43
- }
44
- }
@@ -1,38 +0,0 @@
1
- 1.0.6 / 2015-02-03
2
- ==================
3
-
4
- * use `npm test` instead of `make test` to run tests
5
- * clearer assertion messages when checking input
6
-
7
-
8
- 1.0.5 / 2014-09-05
9
- ==================
10
-
11
- * add license to package.json
12
-
13
- 1.0.4 / 2014-06-25
14
- ==================
15
-
16
- * corrected avoidance of timing attacks (thanks @tenbits!)
17
-
18
- 1.0.3 / 2014-01-28
19
- ==================
20
-
21
- * [incorrect] fix for timing attacks
22
-
23
- 1.0.2 / 2014-01-28
24
- ==================
25
-
26
- * fix missing repository warning
27
- * fix typo in test
28
-
29
- 1.0.1 / 2013-04-15
30
- ==================
31
-
32
- * Revert "Changed underlying HMAC algo. to sha512."
33
- * Revert "Fix for timing attacks on MAC verification."
34
-
35
- 0.0.1 / 2010-01-03
36
- ==================
37
-
38
- * Initial release