slicejs-web-framework 1.0.1 → 1.0.6

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 (510) hide show
  1. package/package.json +37 -40
  2. package/node_modules/.bin/mime +0 -16
  3. package/node_modules/.bin/mime.cmd +0 -17
  4. package/node_modules/.bin/mime.ps1 +0 -28
  5. package/node_modules/.bin/prettier +0 -16
  6. package/node_modules/.bin/prettier.cmd +0 -17
  7. package/node_modules/.bin/prettier.ps1 +0 -28
  8. package/node_modules/.package-lock.json +0 -701
  9. package/node_modules/accepts/LICENSE +0 -23
  10. package/node_modules/accepts/README.md +0 -140
  11. package/node_modules/accepts/index.js +0 -238
  12. package/node_modules/accepts/package.json +0 -47
  13. package/node_modules/array-flatten/LICENSE +0 -21
  14. package/node_modules/array-flatten/README.md +0 -43
  15. package/node_modules/array-flatten/array-flatten.js +0 -64
  16. package/node_modules/array-flatten/package.json +0 -39
  17. package/node_modules/body-parser/LICENSE +0 -23
  18. package/node_modules/body-parser/README.md +0 -465
  19. package/node_modules/body-parser/index.js +0 -156
  20. package/node_modules/body-parser/lib/read.js +0 -205
  21. package/node_modules/body-parser/lib/types/json.js +0 -247
  22. package/node_modules/body-parser/lib/types/raw.js +0 -101
  23. package/node_modules/body-parser/lib/types/text.js +0 -121
  24. package/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  25. package/node_modules/body-parser/package.json +0 -56
  26. package/node_modules/bytes/LICENSE +0 -23
  27. package/node_modules/bytes/Readme.md +0 -152
  28. package/node_modules/bytes/index.js +0 -170
  29. package/node_modules/bytes/package.json +0 -42
  30. package/node_modules/call-bind/.eslintignore +0 -1
  31. package/node_modules/call-bind/.eslintrc +0 -16
  32. package/node_modules/call-bind/.github/FUNDING.yml +0 -12
  33. package/node_modules/call-bind/.nycrc +0 -9
  34. package/node_modules/call-bind/LICENSE +0 -21
  35. package/node_modules/call-bind/README.md +0 -64
  36. package/node_modules/call-bind/callBound.js +0 -15
  37. package/node_modules/call-bind/index.js +0 -35
  38. package/node_modules/call-bind/package.json +0 -95
  39. package/node_modules/call-bind/test/callBound.js +0 -54
  40. package/node_modules/call-bind/test/index.js +0 -80
  41. package/node_modules/content-disposition/LICENSE +0 -22
  42. package/node_modules/content-disposition/README.md +0 -142
  43. package/node_modules/content-disposition/index.js +0 -458
  44. package/node_modules/content-disposition/package.json +0 -44
  45. package/node_modules/content-type/LICENSE +0 -22
  46. package/node_modules/content-type/README.md +0 -94
  47. package/node_modules/content-type/index.js +0 -225
  48. package/node_modules/content-type/package.json +0 -42
  49. package/node_modules/cookie/LICENSE +0 -24
  50. package/node_modules/cookie/README.md +0 -317
  51. package/node_modules/cookie/index.js +0 -274
  52. package/node_modules/cookie/package.json +0 -44
  53. package/node_modules/cookie-signature/Readme.md +0 -42
  54. package/node_modules/cookie-signature/index.js +0 -51
  55. package/node_modules/cookie-signature/package.json +0 -18
  56. package/node_modules/debug/.coveralls.yml +0 -1
  57. package/node_modules/debug/.eslintrc +0 -11
  58. package/node_modules/debug/.travis.yml +0 -14
  59. package/node_modules/debug/LICENSE +0 -19
  60. package/node_modules/debug/Makefile +0 -50
  61. package/node_modules/debug/README.md +0 -312
  62. package/node_modules/debug/component.json +0 -19
  63. package/node_modules/debug/karma.conf.js +0 -70
  64. package/node_modules/debug/node.js +0 -1
  65. package/node_modules/debug/package.json +0 -49
  66. package/node_modules/debug/src/browser.js +0 -185
  67. package/node_modules/debug/src/debug.js +0 -202
  68. package/node_modules/debug/src/index.js +0 -10
  69. package/node_modules/debug/src/inspector-log.js +0 -15
  70. package/node_modules/debug/src/node.js +0 -248
  71. package/node_modules/define-data-property/.eslintrc +0 -24
  72. package/node_modules/define-data-property/.github/FUNDING.yml +0 -12
  73. package/node_modules/define-data-property/.nycrc +0 -13
  74. package/node_modules/define-data-property/LICENSE +0 -21
  75. package/node_modules/define-data-property/README.md +0 -67
  76. package/node_modules/define-data-property/index.d.ts +0 -12
  77. package/node_modules/define-data-property/index.js +0 -56
  78. package/node_modules/define-data-property/package.json +0 -106
  79. package/node_modules/define-data-property/test/index.js +0 -392
  80. package/node_modules/define-data-property/tsconfig.json +0 -59
  81. package/node_modules/depd/LICENSE +0 -22
  82. package/node_modules/depd/Readme.md +0 -280
  83. package/node_modules/depd/index.js +0 -538
  84. package/node_modules/depd/lib/browser/index.js +0 -77
  85. package/node_modules/depd/package.json +0 -45
  86. package/node_modules/destroy/LICENSE +0 -23
  87. package/node_modules/destroy/README.md +0 -63
  88. package/node_modules/destroy/index.js +0 -209
  89. package/node_modules/destroy/package.json +0 -48
  90. package/node_modules/ee-first/LICENSE +0 -22
  91. package/node_modules/ee-first/README.md +0 -80
  92. package/node_modules/ee-first/index.js +0 -95
  93. package/node_modules/ee-first/package.json +0 -29
  94. package/node_modules/encodeurl/LICENSE +0 -22
  95. package/node_modules/encodeurl/README.md +0 -128
  96. package/node_modules/encodeurl/index.js +0 -60
  97. package/node_modules/encodeurl/package.json +0 -40
  98. package/node_modules/es-define-property/.eslintrc +0 -13
  99. package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
  100. package/node_modules/es-define-property/.nycrc +0 -9
  101. package/node_modules/es-define-property/LICENSE +0 -21
  102. package/node_modules/es-define-property/README.md +0 -49
  103. package/node_modules/es-define-property/index.d.ts +0 -3
  104. package/node_modules/es-define-property/index.js +0 -16
  105. package/node_modules/es-define-property/package.json +0 -81
  106. package/node_modules/es-define-property/test/index.js +0 -55
  107. package/node_modules/es-define-property/tsconfig.json +0 -50
  108. package/node_modules/es-errors/.eslintrc +0 -5
  109. package/node_modules/es-errors/.github/FUNDING.yml +0 -12
  110. package/node_modules/es-errors/LICENSE +0 -21
  111. package/node_modules/es-errors/README.md +0 -55
  112. package/node_modules/es-errors/eval.d.ts +0 -3
  113. package/node_modules/es-errors/eval.js +0 -4
  114. package/node_modules/es-errors/index.d.ts +0 -3
  115. package/node_modules/es-errors/index.js +0 -4
  116. package/node_modules/es-errors/package.json +0 -80
  117. package/node_modules/es-errors/range.d.ts +0 -3
  118. package/node_modules/es-errors/range.js +0 -4
  119. package/node_modules/es-errors/ref.d.ts +0 -3
  120. package/node_modules/es-errors/ref.js +0 -4
  121. package/node_modules/es-errors/syntax.d.ts +0 -3
  122. package/node_modules/es-errors/syntax.js +0 -4
  123. package/node_modules/es-errors/test/index.js +0 -19
  124. package/node_modules/es-errors/tsconfig.json +0 -49
  125. package/node_modules/es-errors/type.d.ts +0 -3
  126. package/node_modules/es-errors/type.js +0 -4
  127. package/node_modules/es-errors/uri.d.ts +0 -3
  128. package/node_modules/es-errors/uri.js +0 -4
  129. package/node_modules/escape-html/LICENSE +0 -24
  130. package/node_modules/escape-html/Readme.md +0 -43
  131. package/node_modules/escape-html/index.js +0 -78
  132. package/node_modules/escape-html/package.json +0 -24
  133. package/node_modules/etag/LICENSE +0 -22
  134. package/node_modules/etag/README.md +0 -159
  135. package/node_modules/etag/index.js +0 -131
  136. package/node_modules/etag/package.json +0 -47
  137. package/node_modules/express/LICENSE +0 -24
  138. package/node_modules/express/Readme.md +0 -166
  139. package/node_modules/express/index.js +0 -11
  140. package/node_modules/express/lib/application.js +0 -661
  141. package/node_modules/express/lib/express.js +0 -116
  142. package/node_modules/express/lib/middleware/init.js +0 -43
  143. package/node_modules/express/lib/middleware/query.js +0 -47
  144. package/node_modules/express/lib/request.js +0 -525
  145. package/node_modules/express/lib/response.js +0 -1178
  146. package/node_modules/express/lib/router/index.js +0 -673
  147. package/node_modules/express/lib/router/layer.js +0 -181
  148. package/node_modules/express/lib/router/route.js +0 -230
  149. package/node_modules/express/lib/utils.js +0 -303
  150. package/node_modules/express/lib/view.js +0 -182
  151. package/node_modules/express/package.json +0 -98
  152. package/node_modules/finalhandler/LICENSE +0 -22
  153. package/node_modules/finalhandler/README.md +0 -147
  154. package/node_modules/finalhandler/index.js +0 -336
  155. package/node_modules/finalhandler/package.json +0 -46
  156. package/node_modules/forwarded/LICENSE +0 -22
  157. package/node_modules/forwarded/README.md +0 -57
  158. package/node_modules/forwarded/index.js +0 -90
  159. package/node_modules/forwarded/package.json +0 -45
  160. package/node_modules/fresh/LICENSE +0 -23
  161. package/node_modules/fresh/README.md +0 -119
  162. package/node_modules/fresh/index.js +0 -137
  163. package/node_modules/fresh/package.json +0 -46
  164. package/node_modules/function-bind/.eslintrc +0 -21
  165. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  166. package/node_modules/function-bind/.nycrc +0 -13
  167. package/node_modules/function-bind/LICENSE +0 -20
  168. package/node_modules/function-bind/README.md +0 -46
  169. package/node_modules/function-bind/implementation.js +0 -84
  170. package/node_modules/function-bind/index.js +0 -5
  171. package/node_modules/function-bind/package.json +0 -87
  172. package/node_modules/function-bind/test/.eslintrc +0 -9
  173. package/node_modules/function-bind/test/index.js +0 -252
  174. package/node_modules/get-intrinsic/.eslintrc +0 -38
  175. package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
  176. package/node_modules/get-intrinsic/.nycrc +0 -9
  177. package/node_modules/get-intrinsic/LICENSE +0 -21
  178. package/node_modules/get-intrinsic/README.md +0 -71
  179. package/node_modules/get-intrinsic/index.js +0 -359
  180. package/node_modules/get-intrinsic/package.json +0 -93
  181. package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
  182. package/node_modules/gopd/.eslintrc +0 -16
  183. package/node_modules/gopd/.github/FUNDING.yml +0 -12
  184. package/node_modules/gopd/LICENSE +0 -21
  185. package/node_modules/gopd/README.md +0 -40
  186. package/node_modules/gopd/index.js +0 -16
  187. package/node_modules/gopd/package.json +0 -71
  188. package/node_modules/gopd/test/index.js +0 -35
  189. package/node_modules/has-property-descriptors/.eslintrc +0 -13
  190. package/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
  191. package/node_modules/has-property-descriptors/.nycrc +0 -9
  192. package/node_modules/has-property-descriptors/LICENSE +0 -21
  193. package/node_modules/has-property-descriptors/README.md +0 -43
  194. package/node_modules/has-property-descriptors/index.js +0 -22
  195. package/node_modules/has-property-descriptors/package.json +0 -77
  196. package/node_modules/has-property-descriptors/test/index.js +0 -57
  197. package/node_modules/has-proto/.eslintrc +0 -5
  198. package/node_modules/has-proto/.github/FUNDING.yml +0 -12
  199. package/node_modules/has-proto/LICENSE +0 -21
  200. package/node_modules/has-proto/README.md +0 -38
  201. package/node_modules/has-proto/index.d.ts +0 -3
  202. package/node_modules/has-proto/index.js +0 -15
  203. package/node_modules/has-proto/package.json +0 -78
  204. package/node_modules/has-proto/test/index.js +0 -19
  205. package/node_modules/has-proto/tsconfig.json +0 -49
  206. package/node_modules/has-symbols/.eslintrc +0 -11
  207. package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
  208. package/node_modules/has-symbols/.nycrc +0 -9
  209. package/node_modules/has-symbols/LICENSE +0 -21
  210. package/node_modules/has-symbols/README.md +0 -46
  211. package/node_modules/has-symbols/index.js +0 -13
  212. package/node_modules/has-symbols/package.json +0 -101
  213. package/node_modules/has-symbols/shams.js +0 -42
  214. package/node_modules/has-symbols/test/index.js +0 -22
  215. package/node_modules/has-symbols/test/shams/core-js.js +0 -28
  216. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
  217. package/node_modules/has-symbols/test/tests.js +0 -56
  218. package/node_modules/hasown/.eslintrc +0 -5
  219. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  220. package/node_modules/hasown/.nycrc +0 -13
  221. package/node_modules/hasown/LICENSE +0 -21
  222. package/node_modules/hasown/README.md +0 -40
  223. package/node_modules/hasown/index.d.ts +0 -3
  224. package/node_modules/hasown/index.js +0 -8
  225. package/node_modules/hasown/package.json +0 -92
  226. package/node_modules/hasown/tsconfig.json +0 -6
  227. package/node_modules/http-errors/LICENSE +0 -23
  228. package/node_modules/http-errors/README.md +0 -169
  229. package/node_modules/http-errors/index.js +0 -289
  230. package/node_modules/http-errors/package.json +0 -50
  231. package/node_modules/iconv-lite/LICENSE +0 -21
  232. package/node_modules/iconv-lite/README.md +0 -156
  233. package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  234. package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  235. package/node_modules/iconv-lite/encodings/index.js +0 -22
  236. package/node_modules/iconv-lite/encodings/internal.js +0 -188
  237. package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  238. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  239. package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  240. package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  241. package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  242. package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  243. package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  244. package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  245. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  246. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  247. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  248. package/node_modules/iconv-lite/encodings/utf16.js +0 -177
  249. package/node_modules/iconv-lite/encodings/utf7.js +0 -290
  250. package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  251. package/node_modules/iconv-lite/lib/extend-node.js +0 -217
  252. package/node_modules/iconv-lite/lib/index.d.ts +0 -24
  253. package/node_modules/iconv-lite/lib/index.js +0 -153
  254. package/node_modules/iconv-lite/lib/streams.js +0 -121
  255. package/node_modules/iconv-lite/package.json +0 -46
  256. package/node_modules/inherits/LICENSE +0 -16
  257. package/node_modules/inherits/README.md +0 -42
  258. package/node_modules/inherits/inherits.js +0 -9
  259. package/node_modules/inherits/inherits_browser.js +0 -27
  260. package/node_modules/inherits/package.json +0 -29
  261. package/node_modules/ipaddr.js/LICENSE +0 -19
  262. package/node_modules/ipaddr.js/README.md +0 -233
  263. package/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  264. package/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  265. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  266. package/node_modules/ipaddr.js/package.json +0 -35
  267. package/node_modules/media-typer/LICENSE +0 -22
  268. package/node_modules/media-typer/README.md +0 -81
  269. package/node_modules/media-typer/index.js +0 -270
  270. package/node_modules/media-typer/package.json +0 -26
  271. package/node_modules/merge-descriptors/LICENSE +0 -23
  272. package/node_modules/merge-descriptors/README.md +0 -48
  273. package/node_modules/merge-descriptors/index.js +0 -60
  274. package/node_modules/merge-descriptors/package.json +0 -32
  275. package/node_modules/methods/LICENSE +0 -24
  276. package/node_modules/methods/README.md +0 -51
  277. package/node_modules/methods/index.js +0 -69
  278. package/node_modules/methods/package.json +0 -36
  279. package/node_modules/mime/LICENSE +0 -21
  280. package/node_modules/mime/README.md +0 -90
  281. package/node_modules/mime/cli.js +0 -8
  282. package/node_modules/mime/mime.js +0 -108
  283. package/node_modules/mime/package.json +0 -44
  284. package/node_modules/mime/src/build.js +0 -53
  285. package/node_modules/mime/src/test.js +0 -60
  286. package/node_modules/mime/types.json +0 -1
  287. package/node_modules/mime-db/LICENSE +0 -23
  288. package/node_modules/mime-db/README.md +0 -100
  289. package/node_modules/mime-db/db.json +0 -8519
  290. package/node_modules/mime-db/index.js +0 -12
  291. package/node_modules/mime-db/package.json +0 -60
  292. package/node_modules/mime-types/LICENSE +0 -23
  293. package/node_modules/mime-types/README.md +0 -113
  294. package/node_modules/mime-types/index.js +0 -188
  295. package/node_modules/mime-types/package.json +0 -44
  296. package/node_modules/ms/index.js +0 -152
  297. package/node_modules/ms/license.md +0 -21
  298. package/node_modules/ms/package.json +0 -37
  299. package/node_modules/ms/readme.md +0 -51
  300. package/node_modules/negotiator/LICENSE +0 -24
  301. package/node_modules/negotiator/README.md +0 -203
  302. package/node_modules/negotiator/index.js +0 -82
  303. package/node_modules/negotiator/lib/charset.js +0 -169
  304. package/node_modules/negotiator/lib/encoding.js +0 -184
  305. package/node_modules/negotiator/lib/language.js +0 -179
  306. package/node_modules/negotiator/lib/mediaType.js +0 -294
  307. package/node_modules/negotiator/package.json +0 -42
  308. package/node_modules/object-inspect/.eslintrc +0 -53
  309. package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
  310. package/node_modules/object-inspect/.nycrc +0 -13
  311. package/node_modules/object-inspect/LICENSE +0 -21
  312. package/node_modules/object-inspect/example/all.js +0 -23
  313. package/node_modules/object-inspect/example/circular.js +0 -6
  314. package/node_modules/object-inspect/example/fn.js +0 -5
  315. package/node_modules/object-inspect/example/inspect.js +0 -10
  316. package/node_modules/object-inspect/index.js +0 -524
  317. package/node_modules/object-inspect/package-support.json +0 -20
  318. package/node_modules/object-inspect/package.json +0 -99
  319. package/node_modules/object-inspect/readme.markdown +0 -86
  320. package/node_modules/object-inspect/test/bigint.js +0 -58
  321. package/node_modules/object-inspect/test/browser/dom.js +0 -15
  322. package/node_modules/object-inspect/test/circular.js +0 -16
  323. package/node_modules/object-inspect/test/deep.js +0 -12
  324. package/node_modules/object-inspect/test/element.js +0 -53
  325. package/node_modules/object-inspect/test/err.js +0 -48
  326. package/node_modules/object-inspect/test/fakes.js +0 -29
  327. package/node_modules/object-inspect/test/fn.js +0 -76
  328. package/node_modules/object-inspect/test/global.js +0 -17
  329. package/node_modules/object-inspect/test/has.js +0 -15
  330. package/node_modules/object-inspect/test/holes.js +0 -15
  331. package/node_modules/object-inspect/test/indent-option.js +0 -271
  332. package/node_modules/object-inspect/test/inspect.js +0 -139
  333. package/node_modules/object-inspect/test/lowbyte.js +0 -12
  334. package/node_modules/object-inspect/test/number.js +0 -58
  335. package/node_modules/object-inspect/test/quoteStyle.js +0 -17
  336. package/node_modules/object-inspect/test/toStringTag.js +0 -40
  337. package/node_modules/object-inspect/test/undef.js +0 -12
  338. package/node_modules/object-inspect/test/values.js +0 -211
  339. package/node_modules/object-inspect/test-core-js.js +0 -26
  340. package/node_modules/object-inspect/util.inspect.js +0 -1
  341. package/node_modules/on-finished/LICENSE +0 -23
  342. package/node_modules/on-finished/README.md +0 -162
  343. package/node_modules/on-finished/index.js +0 -234
  344. package/node_modules/on-finished/package.json +0 -39
  345. package/node_modules/parseurl/LICENSE +0 -24
  346. package/node_modules/parseurl/README.md +0 -133
  347. package/node_modules/parseurl/index.js +0 -158
  348. package/node_modules/parseurl/package.json +0 -40
  349. package/node_modules/path-to-regexp/LICENSE +0 -21
  350. package/node_modules/path-to-regexp/Readme.md +0 -35
  351. package/node_modules/path-to-regexp/index.js +0 -129
  352. package/node_modules/path-to-regexp/package.json +0 -30
  353. package/node_modules/prettier/LICENSE +0 -4379
  354. package/node_modules/prettier/README.md +0 -109
  355. package/node_modules/prettier/bin/prettier.cjs +0 -64
  356. package/node_modules/prettier/doc.d.ts +0 -243
  357. package/node_modules/prettier/doc.js +0 -1319
  358. package/node_modules/prettier/doc.mjs +0 -1291
  359. package/node_modules/prettier/index.cjs +0 -648
  360. package/node_modules/prettier/index.d.ts +0 -941
  361. package/node_modules/prettier/index.mjs +0 -22795
  362. package/node_modules/prettier/internal/cli.mjs +0 -3884
  363. package/node_modules/prettier/package.json +0 -198
  364. package/node_modules/prettier/plugins/acorn.d.ts +0 -6
  365. package/node_modules/prettier/plugins/acorn.js +0 -15
  366. package/node_modules/prettier/plugins/acorn.mjs +0 -15
  367. package/node_modules/prettier/plugins/angular.d.ts +0 -8
  368. package/node_modules/prettier/plugins/angular.js +0 -1
  369. package/node_modules/prettier/plugins/angular.mjs +0 -1
  370. package/node_modules/prettier/plugins/babel.d.ts +0 -18
  371. package/node_modules/prettier/plugins/babel.js +0 -15
  372. package/node_modules/prettier/plugins/babel.mjs +0 -15
  373. package/node_modules/prettier/plugins/estree.d.ts +0 -1
  374. package/node_modules/prettier/plugins/estree.js +0 -36
  375. package/node_modules/prettier/plugins/estree.mjs +0 -36
  376. package/node_modules/prettier/plugins/flow.d.ts +0 -5
  377. package/node_modules/prettier/plugins/flow.js +0 -19
  378. package/node_modules/prettier/plugins/flow.mjs +0 -19
  379. package/node_modules/prettier/plugins/glimmer.d.ts +0 -5
  380. package/node_modules/prettier/plugins/glimmer.js +0 -30
  381. package/node_modules/prettier/plugins/glimmer.mjs +0 -30
  382. package/node_modules/prettier/plugins/graphql.d.ts +0 -5
  383. package/node_modules/prettier/plugins/graphql.js +0 -29
  384. package/node_modules/prettier/plugins/graphql.mjs +0 -29
  385. package/node_modules/prettier/plugins/html.d.ts +0 -8
  386. package/node_modules/prettier/plugins/html.js +0 -22
  387. package/node_modules/prettier/plugins/html.mjs +0 -22
  388. package/node_modules/prettier/plugins/markdown.d.ts +0 -7
  389. package/node_modules/prettier/plugins/markdown.js +0 -62
  390. package/node_modules/prettier/plugins/markdown.mjs +0 -62
  391. package/node_modules/prettier/plugins/meriyah.d.ts +0 -5
  392. package/node_modules/prettier/plugins/meriyah.js +0 -4
  393. package/node_modules/prettier/plugins/meriyah.mjs +0 -4
  394. package/node_modules/prettier/plugins/postcss.d.ts +0 -7
  395. package/node_modules/prettier/plugins/postcss.js +0 -52
  396. package/node_modules/prettier/plugins/postcss.mjs +0 -52
  397. package/node_modules/prettier/plugins/typescript.d.ts +0 -5
  398. package/node_modules/prettier/plugins/typescript.js +0 -20
  399. package/node_modules/prettier/plugins/typescript.mjs +0 -20
  400. package/node_modules/prettier/plugins/yaml.d.ts +0 -5
  401. package/node_modules/prettier/plugins/yaml.js +0 -161
  402. package/node_modules/prettier/plugins/yaml.mjs +0 -161
  403. package/node_modules/prettier/standalone.d.ts +0 -33
  404. package/node_modules/prettier/standalone.js +0 -35
  405. package/node_modules/prettier/standalone.mjs +0 -35
  406. package/node_modules/proxy-addr/LICENSE +0 -22
  407. package/node_modules/proxy-addr/README.md +0 -139
  408. package/node_modules/proxy-addr/index.js +0 -327
  409. package/node_modules/proxy-addr/package.json +0 -47
  410. package/node_modules/qs/.editorconfig +0 -43
  411. package/node_modules/qs/.eslintrc +0 -38
  412. package/node_modules/qs/.github/FUNDING.yml +0 -12
  413. package/node_modules/qs/.nycrc +0 -13
  414. package/node_modules/qs/LICENSE.md +0 -29
  415. package/node_modules/qs/README.md +0 -625
  416. package/node_modules/qs/dist/qs.js +0 -2054
  417. package/node_modules/qs/lib/formats.js +0 -23
  418. package/node_modules/qs/lib/index.js +0 -11
  419. package/node_modules/qs/lib/parse.js +0 -263
  420. package/node_modules/qs/lib/stringify.js +0 -326
  421. package/node_modules/qs/lib/utils.js +0 -252
  422. package/node_modules/qs/package.json +0 -77
  423. package/node_modules/qs/test/parse.js +0 -855
  424. package/node_modules/qs/test/stringify.js +0 -909
  425. package/node_modules/qs/test/utils.js +0 -136
  426. package/node_modules/range-parser/LICENSE +0 -23
  427. package/node_modules/range-parser/README.md +0 -84
  428. package/node_modules/range-parser/index.js +0 -162
  429. package/node_modules/range-parser/package.json +0 -44
  430. package/node_modules/raw-body/LICENSE +0 -22
  431. package/node_modules/raw-body/README.md +0 -223
  432. package/node_modules/raw-body/index.d.ts +0 -87
  433. package/node_modules/raw-body/index.js +0 -336
  434. package/node_modules/raw-body/package.json +0 -49
  435. package/node_modules/safe-buffer/LICENSE +0 -21
  436. package/node_modules/safe-buffer/README.md +0 -584
  437. package/node_modules/safe-buffer/index.d.ts +0 -187
  438. package/node_modules/safe-buffer/index.js +0 -65
  439. package/node_modules/safe-buffer/package.json +0 -51
  440. package/node_modules/safer-buffer/LICENSE +0 -21
  441. package/node_modules/safer-buffer/Readme.md +0 -156
  442. package/node_modules/safer-buffer/dangerous.js +0 -58
  443. package/node_modules/safer-buffer/package.json +0 -34
  444. package/node_modules/safer-buffer/safer.js +0 -77
  445. package/node_modules/safer-buffer/tests.js +0 -406
  446. package/node_modules/send/LICENSE +0 -23
  447. package/node_modules/send/README.md +0 -327
  448. package/node_modules/send/index.js +0 -1143
  449. package/node_modules/send/node_modules/ms/index.js +0 -162
  450. package/node_modules/send/node_modules/ms/license.md +0 -21
  451. package/node_modules/send/node_modules/ms/package.json +0 -38
  452. package/node_modules/send/node_modules/ms/readme.md +0 -59
  453. package/node_modules/send/package.json +0 -62
  454. package/node_modules/serve-static/LICENSE +0 -25
  455. package/node_modules/serve-static/README.md +0 -257
  456. package/node_modules/serve-static/index.js +0 -210
  457. package/node_modules/serve-static/package.json +0 -42
  458. package/node_modules/set-function-length/.eslintrc +0 -27
  459. package/node_modules/set-function-length/.github/FUNDING.yml +0 -12
  460. package/node_modules/set-function-length/.nycrc +0 -13
  461. package/node_modules/set-function-length/LICENSE +0 -21
  462. package/node_modules/set-function-length/README.md +0 -56
  463. package/node_modules/set-function-length/env.d.ts +0 -9
  464. package/node_modules/set-function-length/env.js +0 -25
  465. package/node_modules/set-function-length/index.d.ts +0 -7
  466. package/node_modules/set-function-length/index.js +0 -42
  467. package/node_modules/set-function-length/package.json +0 -102
  468. package/node_modules/set-function-length/tsconfig.json +0 -9
  469. package/node_modules/setprototypeof/LICENSE +0 -13
  470. package/node_modules/setprototypeof/README.md +0 -31
  471. package/node_modules/setprototypeof/index.d.ts +0 -2
  472. package/node_modules/setprototypeof/index.js +0 -17
  473. package/node_modules/setprototypeof/package.json +0 -38
  474. package/node_modules/setprototypeof/test/index.js +0 -24
  475. package/node_modules/side-channel/.editorconfig +0 -9
  476. package/node_modules/side-channel/.eslintrc +0 -11
  477. package/node_modules/side-channel/.github/FUNDING.yml +0 -12
  478. package/node_modules/side-channel/.nycrc +0 -13
  479. package/node_modules/side-channel/LICENSE +0 -21
  480. package/node_modules/side-channel/README.md +0 -2
  481. package/node_modules/side-channel/index.d.ts +0 -27
  482. package/node_modules/side-channel/index.js +0 -129
  483. package/node_modules/side-channel/package.json +0 -84
  484. package/node_modules/side-channel/test/index.js +0 -83
  485. package/node_modules/side-channel/tsconfig.json +0 -50
  486. package/node_modules/statuses/LICENSE +0 -23
  487. package/node_modules/statuses/README.md +0 -136
  488. package/node_modules/statuses/codes.json +0 -65
  489. package/node_modules/statuses/index.js +0 -146
  490. package/node_modules/statuses/package.json +0 -49
  491. package/node_modules/toidentifier/LICENSE +0 -21
  492. package/node_modules/toidentifier/README.md +0 -61
  493. package/node_modules/toidentifier/index.js +0 -32
  494. package/node_modules/toidentifier/package.json +0 -38
  495. package/node_modules/type-is/LICENSE +0 -23
  496. package/node_modules/type-is/README.md +0 -170
  497. package/node_modules/type-is/index.js +0 -266
  498. package/node_modules/type-is/package.json +0 -45
  499. package/node_modules/unpipe/LICENSE +0 -22
  500. package/node_modules/unpipe/README.md +0 -43
  501. package/node_modules/unpipe/index.js +0 -69
  502. package/node_modules/unpipe/package.json +0 -27
  503. package/node_modules/utils-merge/LICENSE +0 -20
  504. package/node_modules/utils-merge/README.md +0 -34
  505. package/node_modules/utils-merge/index.js +0 -23
  506. package/node_modules/utils-merge/package.json +0 -40
  507. package/node_modules/vary/LICENSE +0 -22
  508. package/node_modules/vary/README.md +0 -101
  509. package/node_modules/vary/index.js +0 -149
  510. package/node_modules/vary/package.json +0 -43
@@ -1,42 +0,0 @@
1
- {
2
- "name": "bytes",
3
- "description": "Utility to parse a string bytes to bytes and vice-versa",
4
- "version": "3.1.2",
5
- "author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
6
- "contributors": [
7
- "Jed Watson <jed.watson@me.com>",
8
- "Théo FIDRY <theo.fidry@gmail.com>"
9
- ],
10
- "license": "MIT",
11
- "keywords": [
12
- "byte",
13
- "bytes",
14
- "utility",
15
- "parse",
16
- "parser",
17
- "convert",
18
- "converter"
19
- ],
20
- "repository": "visionmedia/bytes.js",
21
- "devDependencies": {
22
- "eslint": "7.32.0",
23
- "eslint-plugin-markdown": "2.2.1",
24
- "mocha": "9.2.0",
25
- "nyc": "15.1.0"
26
- },
27
- "files": [
28
- "History.md",
29
- "LICENSE",
30
- "Readme.md",
31
- "index.js"
32
- ],
33
- "engines": {
34
- "node": ">= 0.8"
35
- },
36
- "scripts": {
37
- "lint": "eslint .",
38
- "test": "mocha --check-leaks --reporter spec",
39
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
40
- "test-cov": "nyc --reporter=html --reporter=text npm test"
41
- }
42
- }
@@ -1 +0,0 @@
1
- coverage/
@@ -1,16 +0,0 @@
1
- {
2
- "root": true,
3
-
4
- "extends": "@ljharb",
5
-
6
- "rules": {
7
- "func-name-matching": 0,
8
- "id-length": 0,
9
- "new-cap": [2, {
10
- "capIsNewExceptions": [
11
- "GetIntrinsic",
12
- ],
13
- }],
14
- "no-magic-numbers": 0,
15
- },
16
- }
@@ -1,12 +0,0 @@
1
- # These are supported funding model platforms
2
-
3
- github: [ljharb]
4
- patreon: # Replace with a single Patreon username
5
- open_collective: # Replace with a single Open Collective username
6
- ko_fi: # Replace with a single Ko-fi username
7
- tidelift: npm/call-bind
8
- community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9
- liberapay: # Replace with a single Liberapay username
10
- issuehunt: # Replace with a single IssueHunt username
11
- otechie: # Replace with a single Otechie username
12
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,9 +0,0 @@
1
- {
2
- "all": true,
3
- "check-coverage": false,
4
- "reporter": ["text-summary", "text", "html", "json"],
5
- "exclude": [
6
- "coverage",
7
- "test"
8
- ]
9
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 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,64 +0,0 @@
1
- # call-bind <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
2
-
3
- [![github actions][actions-image]][actions-url]
4
- [![coverage][codecov-image]][codecov-url]
5
- [![dependency status][deps-svg]][deps-url]
6
- [![dev dependency status][dev-deps-svg]][dev-deps-url]
7
- [![License][license-image]][license-url]
8
- [![Downloads][downloads-image]][downloads-url]
9
-
10
- [![npm badge][npm-badge-png]][package-url]
11
-
12
- Robustly `.call.bind()` a function.
13
-
14
- ## Getting started
15
-
16
- ```sh
17
- npm install --save call-bind
18
- ```
19
-
20
- ## Usage/Examples
21
-
22
- ```js
23
- const assert = require('assert');
24
- const callBind = require('call-bind');
25
- const callBound = require('call-bind/callBound');
26
-
27
- function f(a, b) {
28
- assert.equal(this, 1);
29
- assert.equal(a, 2);
30
- assert.equal(b, 3);
31
- assert.equal(arguments.length, 2);
32
- }
33
-
34
- const fBound = callBind(f);
35
-
36
- const slice = callBound('Array.prototype.slice');
37
-
38
- delete Function.prototype.call;
39
- delete Function.prototype.bind;
40
-
41
- fBound(1, 2, 3);
42
-
43
- assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);
44
- ```
45
-
46
- ## Tests
47
-
48
- Clone the repo, `npm install`, and run `npm test`
49
-
50
- [package-url]: https://npmjs.org/package/call-bind
51
- [npm-version-svg]: https://versionbadg.es/ljharb/call-bind.svg
52
- [deps-svg]: https://david-dm.org/ljharb/call-bind.svg
53
- [deps-url]: https://david-dm.org/ljharb/call-bind
54
- [dev-deps-svg]: https://david-dm.org/ljharb/call-bind/dev-status.svg
55
- [dev-deps-url]: https://david-dm.org/ljharb/call-bind#info=devDependencies
56
- [npm-badge-png]: https://nodei.co/npm/call-bind.png?downloads=true&stars=true
57
- [license-image]: https://img.shields.io/npm/l/call-bind.svg
58
- [license-url]: LICENSE
59
- [downloads-image]: https://img.shields.io/npm/dm/call-bind.svg
60
- [downloads-url]: https://npm-stat.com/charts.html?package=call-bind
61
- [codecov-image]: https://codecov.io/gh/ljharb/call-bind/branch/main/graphs/badge.svg
62
- [codecov-url]: https://app.codecov.io/gh/ljharb/call-bind/
63
- [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/call-bind
64
- [actions-url]: https://github.com/ljharb/call-bind/actions
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var GetIntrinsic = require('get-intrinsic');
4
-
5
- var callBind = require('./');
6
-
7
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
8
-
9
- module.exports = function callBoundIntrinsic(name, allowMissing) {
10
- var intrinsic = GetIntrinsic(name, !!allowMissing);
11
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
12
- return callBind(intrinsic);
13
- }
14
- return intrinsic;
15
- };
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- var bind = require('function-bind');
4
- var GetIntrinsic = require('get-intrinsic');
5
- var setFunctionLength = require('set-function-length');
6
-
7
- var $TypeError = require('es-errors/type');
8
- var $apply = GetIntrinsic('%Function.prototype.apply%');
9
- var $call = GetIntrinsic('%Function.prototype.call%');
10
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
11
-
12
- var $defineProperty = require('es-define-property');
13
- var $max = GetIntrinsic('%Math.max%');
14
-
15
- module.exports = function callBind(originalFunction) {
16
- if (typeof originalFunction !== 'function') {
17
- throw new $TypeError('a function is required');
18
- }
19
- var func = $reflectApply(bind, $call, arguments);
20
- return setFunctionLength(
21
- func,
22
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
23
- true
24
- );
25
- };
26
-
27
- var applyBind = function applyBind() {
28
- return $reflectApply(bind, $apply, arguments);
29
- };
30
-
31
- if ($defineProperty) {
32
- $defineProperty(module.exports, 'apply', { value: applyBind });
33
- } else {
34
- module.exports.apply = applyBind;
35
- }
@@ -1,95 +0,0 @@
1
- {
2
- "name": "call-bind",
3
- "version": "1.0.7",
4
- "description": "Robustly `.call.bind()` a function",
5
- "main": "index.js",
6
- "exports": {
7
- ".": "./index.js",
8
- "./callBound": "./callBound.js",
9
- "./package.json": "./package.json"
10
- },
11
- "scripts": {
12
- "prepack": "npmignore --auto --commentLines=auto",
13
- "prepublish": "not-in-publish || npm run prepublishOnly",
14
- "prepublishOnly": "safe-publish-latest",
15
- "lint": "eslint --ext=.js,.mjs .",
16
- "postlint": "evalmd README.md",
17
- "pretest": "npm run lint",
18
- "tests-only": "nyc tape 'test/**/*.js'",
19
- "test": "npm run tests-only",
20
- "posttest": "aud --production",
21
- "version": "auto-changelog && git add CHANGELOG.md",
22
- "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/ljharb/call-bind.git"
27
- },
28
- "keywords": [
29
- "javascript",
30
- "ecmascript",
31
- "es",
32
- "js",
33
- "callbind",
34
- "callbound",
35
- "call",
36
- "bind",
37
- "bound",
38
- "call-bind",
39
- "call-bound",
40
- "function",
41
- "es-abstract"
42
- ],
43
- "author": "Jordan Harband <ljharb@gmail.com>",
44
- "funding": {
45
- "url": "https://github.com/sponsors/ljharb"
46
- },
47
- "license": "MIT",
48
- "bugs": {
49
- "url": "https://github.com/ljharb/call-bind/issues"
50
- },
51
- "homepage": "https://github.com/ljharb/call-bind#readme",
52
- "devDependencies": {
53
- "@ljharb/eslint-config": "^21.1.0",
54
- "aud": "^2.0.4",
55
- "auto-changelog": "^2.4.0",
56
- "es-value-fixtures": "^1.4.2",
57
- "eslint": "=8.8.0",
58
- "evalmd": "^0.0.19",
59
- "for-each": "^0.3.3",
60
- "gopd": "^1.0.1",
61
- "has-strict-mode": "^1.0.1",
62
- "in-publish": "^2.0.1",
63
- "npmignore": "^0.3.1",
64
- "nyc": "^10.3.2",
65
- "object-inspect": "^1.13.1",
66
- "safe-publish-latest": "^2.0.0",
67
- "tape": "^5.7.4"
68
- },
69
- "dependencies": {
70
- "es-define-property": "^1.0.0",
71
- "es-errors": "^1.3.0",
72
- "function-bind": "^1.1.2",
73
- "get-intrinsic": "^1.2.4",
74
- "set-function-length": "^1.2.1"
75
- },
76
- "testling": {
77
- "files": "test/index.js"
78
- },
79
- "auto-changelog": {
80
- "output": "CHANGELOG.md",
81
- "template": "keepachangelog",
82
- "unreleased": false,
83
- "commitLimit": false,
84
- "backfillLimit": false,
85
- "hideCredit": true
86
- },
87
- "publishConfig": {
88
- "ignore": [
89
- ".github/workflows"
90
- ]
91
- },
92
- "engines": {
93
- "node": ">= 0.4"
94
- }
95
- }
@@ -1,54 +0,0 @@
1
- 'use strict';
2
-
3
- var test = require('tape');
4
-
5
- var callBound = require('../callBound');
6
-
7
- test('callBound', function (t) {
8
- // static primitive
9
- t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself');
10
- t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself');
11
-
12
- // static non-function object
13
- t.equal(callBound('Array.prototype'), Array.prototype, 'Array.prototype yields itself');
14
- t.equal(callBound('%Array.prototype%'), Array.prototype, '%Array.prototype% yields itself');
15
- t.equal(callBound('Array.constructor'), Array.constructor, 'Array.constructor yields itself');
16
- t.equal(callBound('%Array.constructor%'), Array.constructor, '%Array.constructor% yields itself');
17
-
18
- // static function
19
- t.equal(callBound('Date.parse'), Date.parse, 'Date.parse yields itself');
20
- t.equal(callBound('%Date.parse%'), Date.parse, '%Date.parse% yields itself');
21
-
22
- // prototype primitive
23
- t.equal(callBound('Error.prototype.message'), Error.prototype.message, 'Error.prototype.message yields itself');
24
- t.equal(callBound('%Error.prototype.message%'), Error.prototype.message, '%Error.prototype.message% yields itself');
25
-
26
- // prototype function
27
- t.notEqual(callBound('Object.prototype.toString'), Object.prototype.toString, 'Object.prototype.toString does not yield itself');
28
- t.notEqual(callBound('%Object.prototype.toString%'), Object.prototype.toString, '%Object.prototype.toString% does not yield itself');
29
- t.equal(callBound('Object.prototype.toString')(true), Object.prototype.toString.call(true), 'call-bound Object.prototype.toString calls into the original');
30
- t.equal(callBound('%Object.prototype.toString%')(true), Object.prototype.toString.call(true), 'call-bound %Object.prototype.toString% calls into the original');
31
-
32
- t['throws'](
33
- function () { callBound('does not exist'); },
34
- SyntaxError,
35
- 'nonexistent intrinsic throws'
36
- );
37
- t['throws'](
38
- function () { callBound('does not exist', true); },
39
- SyntaxError,
40
- 'allowMissing arg still throws for unknown intrinsic'
41
- );
42
-
43
- t.test('real but absent intrinsic', { skip: typeof WeakRef !== 'undefined' }, function (st) {
44
- st['throws'](
45
- function () { callBound('WeakRef'); },
46
- TypeError,
47
- 'real but absent intrinsic throws'
48
- );
49
- st.equal(callBound('WeakRef', true), undefined, 'allowMissing arg avoids exception');
50
- st.end();
51
- });
52
-
53
- t.end();
54
- });
@@ -1,80 +0,0 @@
1
- 'use strict';
2
-
3
- var callBind = require('../');
4
- var bind = require('function-bind');
5
- var gOPD = require('gopd');
6
- var hasStrictMode = require('has-strict-mode')();
7
- var forEach = require('for-each');
8
- var inspect = require('object-inspect');
9
- var v = require('es-value-fixtures');
10
-
11
- var test = require('tape');
12
-
13
- /*
14
- * older engines have length nonconfigurable
15
- * in io.js v3, it is configurable except on bound functions, hence the .bind()
16
- */
17
- var functionsHaveConfigurableLengths = !!(
18
- gOPD
19
- && Object.getOwnPropertyDescriptor
20
- && Object.getOwnPropertyDescriptor(bind.call(function () {}), 'length').configurable
21
- );
22
-
23
- test('callBind', function (t) {
24
- forEach(v.nonFunctions, function (nonFunction) {
25
- t['throws'](
26
- function () { callBind(nonFunction); },
27
- TypeError,
28
- inspect(nonFunction) + ' is not a function'
29
- );
30
- });
31
-
32
- var sentinel = { sentinel: true };
33
- var func = function (a, b) {
34
- // eslint-disable-next-line no-invalid-this
35
- return [!hasStrictMode && this === global ? undefined : this, a, b];
36
- };
37
- t.equal(func.length, 2, 'original function length is 2');
38
- t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
39
- t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
40
- t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
41
-
42
- var bound = callBind(func);
43
- t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
44
- t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with too few args');
45
- t.deepEqual(bound(1, 2), [hasStrictMode ? 1 : Object(1), 2, undefined], 'bound func with right args');
46
- t.deepEqual(bound(1, 2, 3), [hasStrictMode ? 1 : Object(1), 2, 3], 'bound func with too many args');
47
-
48
- var boundR = callBind(func, sentinel);
49
- t.equal(boundR.length, func.length, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
50
- t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few args');
51
- t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args');
52
- t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args');
53
-
54
- var boundArg = callBind(func, sentinel, 1);
55
- t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !functionsHaveConfigurableLengths });
56
- t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few args');
57
- t.deepEqual(boundArg(2), [sentinel, 1, 2], 'bound func with receiver and arg, with right arg');
58
- t.deepEqual(boundArg(2, 3), [sentinel, 1, 2], 'bound func with receiver and arg, with too many args');
59
-
60
- t.test('callBind.apply', function (st) {
61
- var aBound = callBind.apply(func);
62
- st.deepEqual(aBound(sentinel), [sentinel, undefined, undefined], 'apply-bound func with no args');
63
- st.deepEqual(aBound(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
64
- st.deepEqual(aBound(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
65
-
66
- var aBoundArg = callBind.apply(func);
67
- st.deepEqual(aBoundArg(sentinel, [1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with too many args');
68
- st.deepEqual(aBoundArg(sentinel, [1, 2], 4), [sentinel, 1, 2], 'apply-bound func with right args');
69
- st.deepEqual(aBoundArg(sentinel, [1], 4), [sentinel, 1, undefined], 'apply-bound func with too few args');
70
-
71
- var aBoundR = callBind.apply(func, sentinel);
72
- st.deepEqual(aBoundR([1, 2, 3], 4), [sentinel, 1, 2], 'apply-bound func with receiver and too many args');
73
- st.deepEqual(aBoundR([1, 2], 4), [sentinel, 1, 2], 'apply-bound func with receiver and right args');
74
- st.deepEqual(aBoundR([1], 4), [sentinel, 1, undefined], 'apply-bound func with receiver and too few args');
75
-
76
- st.end();
77
- });
78
-
79
- t.end();
80
- });
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2014-2017 Douglas Christopher Wilson
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,142 +0,0 @@
1
- # content-disposition
2
-
3
- [![NPM Version][npm-image]][npm-url]
4
- [![NPM Downloads][downloads-image]][downloads-url]
5
- [![Node.js Version][node-version-image]][node-version-url]
6
- [![Build Status][github-actions-ci-image]][github-actions-ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- Create and parse HTTP `Content-Disposition` header
10
-
11
- ## Installation
12
-
13
- ```sh
14
- $ npm install content-disposition
15
- ```
16
-
17
- ## API
18
-
19
- ```js
20
- var contentDisposition = require('content-disposition')
21
- ```
22
-
23
- ### contentDisposition(filename, options)
24
-
25
- Create an attachment `Content-Disposition` header value using the given file name,
26
- if supplied. The `filename` is optional and if no file name is desired, but you
27
- want to specify `options`, set `filename` to `undefined`.
28
-
29
- ```js
30
- res.setHeader('Content-Disposition', contentDisposition('∫ maths.pdf'))
31
- ```
32
-
33
- **note** HTTP headers are of the ISO-8859-1 character set. If you are writing this
34
- header through a means different from `setHeader` in Node.js, you'll want to specify
35
- the `'binary'` encoding in Node.js.
36
-
37
- #### Options
38
-
39
- `contentDisposition` accepts these properties in the options object.
40
-
41
- ##### fallback
42
-
43
- If the `filename` option is outside ISO-8859-1, then the file name is actually
44
- stored in a supplemental field for clients that support Unicode file names and
45
- a ISO-8859-1 version of the file name is automatically generated.
46
-
47
- This specifies the ISO-8859-1 file name to override the automatic generation or
48
- disables the generation all together, defaults to `true`.
49
-
50
- - A string will specify the ISO-8859-1 file name to use in place of automatic
51
- generation.
52
- - `false` will disable including a ISO-8859-1 file name and only include the
53
- Unicode version (unless the file name is already ISO-8859-1).
54
- - `true` will enable automatic generation if the file name is outside ISO-8859-1.
55
-
56
- If the `filename` option is ISO-8859-1 and this option is specified and has a
57
- different value, then the `filename` option is encoded in the extended field
58
- and this set as the fallback field, even though they are both ISO-8859-1.
59
-
60
- ##### type
61
-
62
- Specifies the disposition type, defaults to `"attachment"`. This can also be
63
- `"inline"`, or any other value (all values except inline are treated like
64
- `attachment`, but can convey additional information if both parties agree to
65
- it). The type is normalized to lower-case.
66
-
67
- ### contentDisposition.parse(string)
68
-
69
- ```js
70
- var disposition = contentDisposition.parse('attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt')
71
- ```
72
-
73
- Parse a `Content-Disposition` header string. This automatically handles extended
74
- ("Unicode") parameters by decoding them and providing them under the standard
75
- parameter name. This will return an object with the following properties (examples
76
- are shown for the string `'attachment; filename="EURO rates.txt"; filename*=UTF-8\'\'%e2%82%ac%20rates.txt'`):
77
-
78
- - `type`: The disposition type (always lower case). Example: `'attachment'`
79
-
80
- - `parameters`: An object of the parameters in the disposition (name of parameter
81
- always lower case and extended versions replace non-extended versions). Example:
82
- `{filename: "€ rates.txt"}`
83
-
84
- ## Examples
85
-
86
- ### Send a file for download
87
-
88
- ```js
89
- var contentDisposition = require('content-disposition')
90
- var destroy = require('destroy')
91
- var fs = require('fs')
92
- var http = require('http')
93
- var onFinished = require('on-finished')
94
-
95
- var filePath = '/path/to/public/plans.pdf'
96
-
97
- http.createServer(function onRequest (req, res) {
98
- // set headers
99
- res.setHeader('Content-Type', 'application/pdf')
100
- res.setHeader('Content-Disposition', contentDisposition(filePath))
101
-
102
- // send file
103
- var stream = fs.createReadStream(filePath)
104
- stream.pipe(res)
105
- onFinished(res, function () {
106
- destroy(stream)
107
- })
108
- })
109
- ```
110
-
111
- ## Testing
112
-
113
- ```sh
114
- $ npm test
115
- ```
116
-
117
- ## References
118
-
119
- - [RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1][rfc-2616]
120
- - [RFC 5987: Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters][rfc-5987]
121
- - [RFC 6266: Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)][rfc-6266]
122
- - [Test Cases for HTTP Content-Disposition header field (RFC 6266) and the Encodings defined in RFCs 2047, 2231 and 5987][tc-2231]
123
-
124
- [rfc-2616]: https://tools.ietf.org/html/rfc2616
125
- [rfc-5987]: https://tools.ietf.org/html/rfc5987
126
- [rfc-6266]: https://tools.ietf.org/html/rfc6266
127
- [tc-2231]: http://greenbytes.de/tech/tc2231/
128
-
129
- ## License
130
-
131
- [MIT](LICENSE)
132
-
133
- [npm-image]: https://img.shields.io/npm/v/content-disposition.svg
134
- [npm-url]: https://npmjs.org/package/content-disposition
135
- [node-version-image]: https://img.shields.io/node/v/content-disposition.svg
136
- [node-version-url]: https://nodejs.org/en/download
137
- [coveralls-image]: https://img.shields.io/coveralls/jshttp/content-disposition.svg
138
- [coveralls-url]: https://coveralls.io/r/jshttp/content-disposition?branch=master
139
- [downloads-image]: https://img.shields.io/npm/dm/content-disposition.svg
140
- [downloads-url]: https://npmjs.org/package/content-disposition
141
- [github-actions-ci-image]: https://img.shields.io/github/workflow/status/jshttp/content-disposition/ci/master?label=ci
142
- [github-actions-ci-url]: https://github.com/jshttp/content-disposition?query=workflow%3Aci