es6-crawler-detect 3.3.0 → 4.0.0-beta.1

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 (358) hide show
  1. package/.babelrc +1 -1
  2. package/.mocharc.json +5 -0
  3. package/README.md +1 -0
  4. package/dist/main.bundle.js +1 -1
  5. package/eslint.config.mjs +62 -0
  6. package/example/node/package.json +1 -1
  7. package/example/node/yarn.lock +222 -99
  8. package/package.json +30 -25
  9. package/src/index.js +20 -14
  10. package/src/index.ts +18 -0
  11. package/src/lib/crawler/crawlers.js +1399 -1403
  12. package/src/lib/crawler/crawlers.ts +1397 -0
  13. package/src/lib/crawler/exclusions.js +58 -62
  14. package/src/lib/crawler/exclusions.ts +56 -0
  15. package/src/lib/crawler/headers.js +6 -10
  16. package/src/lib/crawler/headers.ts +18 -0
  17. package/src/lib/crawler/provider.js +1 -10
  18. package/src/lib/crawler/provider.ts +3 -0
  19. package/src/lib/crawler.js +98 -130
  20. package/src/lib/crawler.ts +128 -0
  21. package/src/types.js +2 -0
  22. package/src/types.ts +15 -0
  23. package/test/lib/crawler.spec.js +149 -0
  24. package/test/lib/crawler.spec.ts +116 -0
  25. package/tsconfig.json +16 -0
  26. package/webpack.common.js +20 -20
  27. package/webpack.dev.js +7 -7
  28. package/webpack.prod.js +14 -14
  29. package/.eslintignore +0 -6
  30. package/.eslintrc.json +0 -30
  31. package/example/node/node_modules/.bin/mime +0 -15
  32. package/example/node/node_modules/.bin/mime.cmd +0 -7
  33. package/example/node/node_modules/.yarn-integrity +0 -67
  34. package/example/node/node_modules/accepts/HISTORY.md +0 -236
  35. package/example/node/node_modules/accepts/LICENSE +0 -23
  36. package/example/node/node_modules/accepts/README.md +0 -142
  37. package/example/node/node_modules/accepts/index.js +0 -238
  38. package/example/node/node_modules/accepts/package.json +0 -47
  39. package/example/node/node_modules/array-flatten/LICENSE +0 -21
  40. package/example/node/node_modules/array-flatten/README.md +0 -43
  41. package/example/node/node_modules/array-flatten/array-flatten.js +0 -64
  42. package/example/node/node_modules/array-flatten/package.json +0 -39
  43. package/example/node/node_modules/body-parser/HISTORY.md +0 -624
  44. package/example/node/node_modules/body-parser/LICENSE +0 -23
  45. package/example/node/node_modules/body-parser/README.md +0 -456
  46. package/example/node/node_modules/body-parser/index.js +0 -157
  47. package/example/node/node_modules/body-parser/lib/read.js +0 -181
  48. package/example/node/node_modules/body-parser/lib/types/json.js +0 -230
  49. package/example/node/node_modules/body-parser/lib/types/raw.js +0 -101
  50. package/example/node/node_modules/body-parser/lib/types/text.js +0 -121
  51. package/example/node/node_modules/body-parser/lib/types/urlencoded.js +0 -284
  52. package/example/node/node_modules/body-parser/package.json +0 -52
  53. package/example/node/node_modules/bytes/History.md +0 -92
  54. package/example/node/node_modules/bytes/LICENSE +0 -23
  55. package/example/node/node_modules/bytes/Readme.md +0 -152
  56. package/example/node/node_modules/bytes/index.js +0 -166
  57. package/example/node/node_modules/bytes/package.json +0 -42
  58. package/example/node/node_modules/content-disposition/HISTORY.md +0 -60
  59. package/example/node/node_modules/content-disposition/LICENSE +0 -22
  60. package/example/node/node_modules/content-disposition/README.md +0 -142
  61. package/example/node/node_modules/content-disposition/index.js +0 -458
  62. package/example/node/node_modules/content-disposition/package.json +0 -44
  63. package/example/node/node_modules/content-type/HISTORY.md +0 -24
  64. package/example/node/node_modules/content-type/LICENSE +0 -22
  65. package/example/node/node_modules/content-type/README.md +0 -92
  66. package/example/node/node_modules/content-type/index.js +0 -222
  67. package/example/node/node_modules/content-type/package.json +0 -40
  68. package/example/node/node_modules/cookie/HISTORY.md +0 -128
  69. package/example/node/node_modules/cookie/LICENSE +0 -24
  70. package/example/node/node_modules/cookie/README.md +0 -257
  71. package/example/node/node_modules/cookie/index.js +0 -202
  72. package/example/node/node_modules/cookie/package.json +0 -40
  73. package/example/node/node_modules/cookie-signature/History.md +0 -38
  74. package/example/node/node_modules/cookie-signature/Readme.md +0 -42
  75. package/example/node/node_modules/cookie-signature/index.js +0 -51
  76. package/example/node/node_modules/cookie-signature/package.json +0 -18
  77. package/example/node/node_modules/debug/.coveralls.yml +0 -1
  78. package/example/node/node_modules/debug/.eslintrc +0 -11
  79. package/example/node/node_modules/debug/.travis.yml +0 -14
  80. package/example/node/node_modules/debug/CHANGELOG.md +0 -362
  81. package/example/node/node_modules/debug/LICENSE +0 -19
  82. package/example/node/node_modules/debug/Makefile +0 -50
  83. package/example/node/node_modules/debug/README.md +0 -312
  84. package/example/node/node_modules/debug/component.json +0 -19
  85. package/example/node/node_modules/debug/karma.conf.js +0 -70
  86. package/example/node/node_modules/debug/node.js +0 -1
  87. package/example/node/node_modules/debug/package.json +0 -49
  88. package/example/node/node_modules/debug/src/browser.js +0 -185
  89. package/example/node/node_modules/debug/src/debug.js +0 -202
  90. package/example/node/node_modules/debug/src/index.js +0 -10
  91. package/example/node/node_modules/debug/src/inspector-log.js +0 -15
  92. package/example/node/node_modules/debug/src/node.js +0 -248
  93. package/example/node/node_modules/depd/History.md +0 -96
  94. package/example/node/node_modules/depd/LICENSE +0 -22
  95. package/example/node/node_modules/depd/Readme.md +0 -280
  96. package/example/node/node_modules/depd/index.js +0 -522
  97. package/example/node/node_modules/depd/lib/browser/index.js +0 -77
  98. package/example/node/node_modules/depd/lib/compat/callsite-tostring.js +0 -103
  99. package/example/node/node_modules/depd/lib/compat/event-listener-count.js +0 -22
  100. package/example/node/node_modules/depd/lib/compat/index.js +0 -79
  101. package/example/node/node_modules/depd/package.json +0 -41
  102. package/example/node/node_modules/destroy/LICENSE +0 -22
  103. package/example/node/node_modules/destroy/README.md +0 -60
  104. package/example/node/node_modules/destroy/index.js +0 -75
  105. package/example/node/node_modules/destroy/package.json +0 -37
  106. package/example/node/node_modules/ee-first/LICENSE +0 -22
  107. package/example/node/node_modules/ee-first/README.md +0 -80
  108. package/example/node/node_modules/ee-first/index.js +0 -95
  109. package/example/node/node_modules/ee-first/package.json +0 -29
  110. package/example/node/node_modules/encodeurl/HISTORY.md +0 -14
  111. package/example/node/node_modules/encodeurl/LICENSE +0 -22
  112. package/example/node/node_modules/encodeurl/README.md +0 -128
  113. package/example/node/node_modules/encodeurl/index.js +0 -60
  114. package/example/node/node_modules/encodeurl/package.json +0 -40
  115. package/example/node/node_modules/escape-html/LICENSE +0 -24
  116. package/example/node/node_modules/escape-html/Readme.md +0 -43
  117. package/example/node/node_modules/escape-html/index.js +0 -78
  118. package/example/node/node_modules/escape-html/package.json +0 -24
  119. package/example/node/node_modules/etag/HISTORY.md +0 -83
  120. package/example/node/node_modules/etag/LICENSE +0 -22
  121. package/example/node/node_modules/etag/README.md +0 -159
  122. package/example/node/node_modules/etag/index.js +0 -131
  123. package/example/node/node_modules/etag/package.json +0 -47
  124. package/example/node/node_modules/express/History.md +0 -3510
  125. package/example/node/node_modules/express/LICENSE +0 -24
  126. package/example/node/node_modules/express/Readme.md +0 -158
  127. package/example/node/node_modules/express/index.js +0 -11
  128. package/example/node/node_modules/express/lib/application.js +0 -644
  129. package/example/node/node_modules/express/lib/express.js +0 -116
  130. package/example/node/node_modules/express/lib/middleware/init.js +0 -43
  131. package/example/node/node_modules/express/lib/middleware/query.js +0 -47
  132. package/example/node/node_modules/express/lib/request.js +0 -525
  133. package/example/node/node_modules/express/lib/response.js +0 -1147
  134. package/example/node/node_modules/express/lib/router/index.js +0 -668
  135. package/example/node/node_modules/express/lib/router/layer.js +0 -181
  136. package/example/node/node_modules/express/lib/router/route.js +0 -216
  137. package/example/node/node_modules/express/lib/utils.js +0 -302
  138. package/example/node/node_modules/express/lib/view.js +0 -182
  139. package/example/node/node_modules/express/package.json +0 -99
  140. package/example/node/node_modules/finalhandler/HISTORY.md +0 -187
  141. package/example/node/node_modules/finalhandler/LICENSE +0 -22
  142. package/example/node/node_modules/finalhandler/README.md +0 -148
  143. package/example/node/node_modules/finalhandler/index.js +0 -331
  144. package/example/node/node_modules/finalhandler/package.json +0 -45
  145. package/example/node/node_modules/forwarded/HISTORY.md +0 -21
  146. package/example/node/node_modules/forwarded/LICENSE +0 -22
  147. package/example/node/node_modules/forwarded/README.md +0 -57
  148. package/example/node/node_modules/forwarded/index.js +0 -90
  149. package/example/node/node_modules/forwarded/package.json +0 -45
  150. package/example/node/node_modules/fresh/HISTORY.md +0 -70
  151. package/example/node/node_modules/fresh/LICENSE +0 -23
  152. package/example/node/node_modules/fresh/README.md +0 -119
  153. package/example/node/node_modules/fresh/index.js +0 -137
  154. package/example/node/node_modules/fresh/package.json +0 -46
  155. package/example/node/node_modules/http-errors/HISTORY.md +0 -165
  156. package/example/node/node_modules/http-errors/LICENSE +0 -23
  157. package/example/node/node_modules/http-errors/README.md +0 -169
  158. package/example/node/node_modules/http-errors/index.js +0 -299
  159. package/example/node/node_modules/http-errors/package.json +0 -49
  160. package/example/node/node_modules/iconv-lite/Changelog.md +0 -162
  161. package/example/node/node_modules/iconv-lite/LICENSE +0 -21
  162. package/example/node/node_modules/iconv-lite/README.md +0 -156
  163. package/example/node/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
  164. package/example/node/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
  165. package/example/node/node_modules/iconv-lite/encodings/index.js +0 -22
  166. package/example/node/node_modules/iconv-lite/encodings/internal.js +0 -188
  167. package/example/node/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
  168. package/example/node/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  169. package/example/node/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
  170. package/example/node/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  171. package/example/node/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  172. package/example/node/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  173. package/example/node/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  174. package/example/node/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  175. package/example/node/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  176. package/example/node/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
  177. package/example/node/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  178. package/example/node/node_modules/iconv-lite/encodings/utf16.js +0 -177
  179. package/example/node/node_modules/iconv-lite/encodings/utf7.js +0 -290
  180. package/example/node/node_modules/iconv-lite/lib/bom-handling.js +0 -52
  181. package/example/node/node_modules/iconv-lite/lib/extend-node.js +0 -217
  182. package/example/node/node_modules/iconv-lite/lib/index.d.ts +0 -24
  183. package/example/node/node_modules/iconv-lite/lib/index.js +0 -153
  184. package/example/node/node_modules/iconv-lite/lib/streams.js +0 -121
  185. package/example/node/node_modules/iconv-lite/package.json +0 -46
  186. package/example/node/node_modules/inherits/LICENSE +0 -16
  187. package/example/node/node_modules/inherits/README.md +0 -42
  188. package/example/node/node_modules/inherits/inherits.js +0 -9
  189. package/example/node/node_modules/inherits/inherits_browser.js +0 -27
  190. package/example/node/node_modules/inherits/package.json +0 -29
  191. package/example/node/node_modules/ipaddr.js/LICENSE +0 -19
  192. package/example/node/node_modules/ipaddr.js/README.md +0 -233
  193. package/example/node/node_modules/ipaddr.js/ipaddr.min.js +0 -1
  194. package/example/node/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
  195. package/example/node/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
  196. package/example/node/node_modules/ipaddr.js/package.json +0 -35
  197. package/example/node/node_modules/media-typer/HISTORY.md +0 -22
  198. package/example/node/node_modules/media-typer/LICENSE +0 -22
  199. package/example/node/node_modules/media-typer/README.md +0 -81
  200. package/example/node/node_modules/media-typer/index.js +0 -270
  201. package/example/node/node_modules/media-typer/package.json +0 -26
  202. package/example/node/node_modules/merge-descriptors/HISTORY.md +0 -21
  203. package/example/node/node_modules/merge-descriptors/LICENSE +0 -23
  204. package/example/node/node_modules/merge-descriptors/README.md +0 -48
  205. package/example/node/node_modules/merge-descriptors/index.js +0 -60
  206. package/example/node/node_modules/merge-descriptors/package.json +0 -32
  207. package/example/node/node_modules/methods/HISTORY.md +0 -29
  208. package/example/node/node_modules/methods/LICENSE +0 -24
  209. package/example/node/node_modules/methods/README.md +0 -51
  210. package/example/node/node_modules/methods/index.js +0 -69
  211. package/example/node/node_modules/methods/package.json +0 -36
  212. package/example/node/node_modules/mime/CHANGELOG.md +0 -164
  213. package/example/node/node_modules/mime/LICENSE +0 -21
  214. package/example/node/node_modules/mime/README.md +0 -90
  215. package/example/node/node_modules/mime/cli.js +0 -8
  216. package/example/node/node_modules/mime/mime.js +0 -108
  217. package/example/node/node_modules/mime/package.json +0 -44
  218. package/example/node/node_modules/mime/src/build.js +0 -53
  219. package/example/node/node_modules/mime/src/test.js +0 -60
  220. package/example/node/node_modules/mime/types.json +0 -1
  221. package/example/node/node_modules/mime-db/HISTORY.md +0 -499
  222. package/example/node/node_modules/mime-db/LICENSE +0 -22
  223. package/example/node/node_modules/mime-db/README.md +0 -100
  224. package/example/node/node_modules/mime-db/db.json +0 -8471
  225. package/example/node/node_modules/mime-db/index.js +0 -11
  226. package/example/node/node_modules/mime-db/package.json +0 -59
  227. package/example/node/node_modules/mime-types/HISTORY.md +0 -388
  228. package/example/node/node_modules/mime-types/LICENSE +0 -23
  229. package/example/node/node_modules/mime-types/README.md +0 -113
  230. package/example/node/node_modules/mime-types/index.js +0 -188
  231. package/example/node/node_modules/mime-types/package.json +0 -44
  232. package/example/node/node_modules/ms/index.js +0 -152
  233. package/example/node/node_modules/ms/license.md +0 -21
  234. package/example/node/node_modules/ms/package.json +0 -37
  235. package/example/node/node_modules/ms/readme.md +0 -51
  236. package/example/node/node_modules/negotiator/HISTORY.md +0 -103
  237. package/example/node/node_modules/negotiator/LICENSE +0 -24
  238. package/example/node/node_modules/negotiator/README.md +0 -203
  239. package/example/node/node_modules/negotiator/index.js +0 -124
  240. package/example/node/node_modules/negotiator/lib/charset.js +0 -169
  241. package/example/node/node_modules/negotiator/lib/encoding.js +0 -184
  242. package/example/node/node_modules/negotiator/lib/language.js +0 -179
  243. package/example/node/node_modules/negotiator/lib/mediaType.js +0 -294
  244. package/example/node/node_modules/negotiator/package.json +0 -42
  245. package/example/node/node_modules/on-finished/HISTORY.md +0 -88
  246. package/example/node/node_modules/on-finished/LICENSE +0 -23
  247. package/example/node/node_modules/on-finished/README.md +0 -154
  248. package/example/node/node_modules/on-finished/index.js +0 -196
  249. package/example/node/node_modules/on-finished/package.json +0 -31
  250. package/example/node/node_modules/parseurl/HISTORY.md +0 -58
  251. package/example/node/node_modules/parseurl/LICENSE +0 -24
  252. package/example/node/node_modules/parseurl/README.md +0 -133
  253. package/example/node/node_modules/parseurl/index.js +0 -158
  254. package/example/node/node_modules/parseurl/package.json +0 -40
  255. package/example/node/node_modules/path-to-regexp/History.md +0 -36
  256. package/example/node/node_modules/path-to-regexp/LICENSE +0 -21
  257. package/example/node/node_modules/path-to-regexp/Readme.md +0 -35
  258. package/example/node/node_modules/path-to-regexp/index.js +0 -129
  259. package/example/node/node_modules/path-to-regexp/package.json +0 -30
  260. package/example/node/node_modules/proxy-addr/HISTORY.md +0 -161
  261. package/example/node/node_modules/proxy-addr/LICENSE +0 -22
  262. package/example/node/node_modules/proxy-addr/README.md +0 -139
  263. package/example/node/node_modules/proxy-addr/index.js +0 -327
  264. package/example/node/node_modules/proxy-addr/package.json +0 -47
  265. package/example/node/node_modules/qs/.editorconfig +0 -39
  266. package/example/node/node_modules/qs/.eslintignore +0 -2
  267. package/example/node/node_modules/qs/.eslintrc +0 -35
  268. package/example/node/node_modules/qs/.github/FUNDING.yml +0 -12
  269. package/example/node/node_modules/qs/.nycrc +0 -13
  270. package/example/node/node_modules/qs/CHANGELOG.md +0 -359
  271. package/example/node/node_modules/qs/LICENSE.md +0 -29
  272. package/example/node/node_modules/qs/README.md +0 -604
  273. package/example/node/node_modules/qs/dist/qs.js +0 -832
  274. package/example/node/node_modules/qs/lib/formats.js +0 -23
  275. package/example/node/node_modules/qs/lib/index.js +0 -11
  276. package/example/node/node_modules/qs/lib/parse.js +0 -257
  277. package/example/node/node_modules/qs/lib/stringify.js +0 -278
  278. package/example/node/node_modules/qs/lib/utils.js +0 -251
  279. package/example/node/node_modules/qs/package.json +0 -69
  280. package/example/node/node_modules/qs/test/parse.js +0 -772
  281. package/example/node/node_modules/qs/test/stringify.js +0 -793
  282. package/example/node/node_modules/qs/test/utils.js +0 -136
  283. package/example/node/node_modules/range-parser/HISTORY.md +0 -56
  284. package/example/node/node_modules/range-parser/LICENSE +0 -23
  285. package/example/node/node_modules/range-parser/README.md +0 -84
  286. package/example/node/node_modules/range-parser/index.js +0 -162
  287. package/example/node/node_modules/range-parser/package.json +0 -44
  288. package/example/node/node_modules/raw-body/HISTORY.md +0 -284
  289. package/example/node/node_modules/raw-body/LICENSE +0 -22
  290. package/example/node/node_modules/raw-body/README.md +0 -217
  291. package/example/node/node_modules/raw-body/index.d.ts +0 -87
  292. package/example/node/node_modules/raw-body/index.js +0 -286
  293. package/example/node/node_modules/raw-body/package.json +0 -48
  294. package/example/node/node_modules/safe-buffer/LICENSE +0 -21
  295. package/example/node/node_modules/safe-buffer/README.md +0 -584
  296. package/example/node/node_modules/safe-buffer/index.d.ts +0 -187
  297. package/example/node/node_modules/safe-buffer/index.js +0 -65
  298. package/example/node/node_modules/safe-buffer/package.json +0 -51
  299. package/example/node/node_modules/safer-buffer/LICENSE +0 -21
  300. package/example/node/node_modules/safer-buffer/Porting-Buffer.md +0 -268
  301. package/example/node/node_modules/safer-buffer/Readme.md +0 -156
  302. package/example/node/node_modules/safer-buffer/dangerous.js +0 -58
  303. package/example/node/node_modules/safer-buffer/package.json +0 -34
  304. package/example/node/node_modules/safer-buffer/safer.js +0 -77
  305. package/example/node/node_modules/safer-buffer/tests.js +0 -406
  306. package/example/node/node_modules/send/HISTORY.md +0 -506
  307. package/example/node/node_modules/send/LICENSE +0 -23
  308. package/example/node/node_modules/send/README.md +0 -327
  309. package/example/node/node_modules/send/index.js +0 -1133
  310. package/example/node/node_modules/send/node_modules/.bin/mime +0 -15
  311. package/example/node/node_modules/send/node_modules/.bin/mime.cmd +0 -7
  312. package/example/node/node_modules/send/node_modules/ms/index.js +0 -162
  313. package/example/node/node_modules/send/node_modules/ms/license.md +0 -21
  314. package/example/node/node_modules/send/node_modules/ms/package.json +0 -38
  315. package/example/node/node_modules/send/node_modules/ms/readme.md +0 -59
  316. package/example/node/node_modules/send/package.json +0 -61
  317. package/example/node/node_modules/serve-static/HISTORY.md +0 -459
  318. package/example/node/node_modules/serve-static/LICENSE +0 -25
  319. package/example/node/node_modules/serve-static/README.md +0 -257
  320. package/example/node/node_modules/serve-static/index.js +0 -210
  321. package/example/node/node_modules/serve-static/package.json +0 -42
  322. package/example/node/node_modules/setprototypeof/LICENSE +0 -13
  323. package/example/node/node_modules/setprototypeof/README.md +0 -31
  324. package/example/node/node_modules/setprototypeof/index.d.ts +0 -2
  325. package/example/node/node_modules/setprototypeof/index.js +0 -17
  326. package/example/node/node_modules/setprototypeof/package.json +0 -38
  327. package/example/node/node_modules/setprototypeof/test/index.js +0 -24
  328. package/example/node/node_modules/statuses/HISTORY.md +0 -65
  329. package/example/node/node_modules/statuses/LICENSE +0 -23
  330. package/example/node/node_modules/statuses/README.md +0 -127
  331. package/example/node/node_modules/statuses/codes.json +0 -66
  332. package/example/node/node_modules/statuses/index.js +0 -113
  333. package/example/node/node_modules/statuses/package.json +0 -48
  334. package/example/node/node_modules/toidentifier/HISTORY.md +0 -9
  335. package/example/node/node_modules/toidentifier/LICENSE +0 -21
  336. package/example/node/node_modules/toidentifier/README.md +0 -61
  337. package/example/node/node_modules/toidentifier/index.js +0 -32
  338. package/example/node/node_modules/toidentifier/package.json +0 -38
  339. package/example/node/node_modules/type-is/HISTORY.md +0 -259
  340. package/example/node/node_modules/type-is/LICENSE +0 -23
  341. package/example/node/node_modules/type-is/README.md +0 -170
  342. package/example/node/node_modules/type-is/index.js +0 -266
  343. package/example/node/node_modules/type-is/package.json +0 -45
  344. package/example/node/node_modules/unpipe/HISTORY.md +0 -4
  345. package/example/node/node_modules/unpipe/LICENSE +0 -22
  346. package/example/node/node_modules/unpipe/README.md +0 -43
  347. package/example/node/node_modules/unpipe/index.js +0 -69
  348. package/example/node/node_modules/unpipe/package.json +0 -27
  349. package/example/node/node_modules/utils-merge/LICENSE +0 -20
  350. package/example/node/node_modules/utils-merge/README.md +0 -34
  351. package/example/node/node_modules/utils-merge/index.js +0 -23
  352. package/example/node/node_modules/utils-merge/package.json +0 -40
  353. package/example/node/node_modules/vary/HISTORY.md +0 -39
  354. package/example/node/node_modules/vary/LICENSE +0 -22
  355. package/example/node/node_modules/vary/README.md +0 -101
  356. package/example/node/node_modules/vary/index.js +0 -149
  357. package/example/node/node_modules/vary/package.json +0 -43
  358. package/test/lib/crawler.test.js +0 -94
@@ -1,202 +0,0 @@
1
-
2
- /**
3
- * This is the common logic for both the Node.js and web browser
4
- * implementations of `debug()`.
5
- *
6
- * Expose `debug()` as the module.
7
- */
8
-
9
- exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
10
- exports.coerce = coerce;
11
- exports.disable = disable;
12
- exports.enable = enable;
13
- exports.enabled = enabled;
14
- exports.humanize = require('ms');
15
-
16
- /**
17
- * The currently active debug mode names, and names to skip.
18
- */
19
-
20
- exports.names = [];
21
- exports.skips = [];
22
-
23
- /**
24
- * Map of special "%n" handling functions, for the debug "format" argument.
25
- *
26
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
27
- */
28
-
29
- exports.formatters = {};
30
-
31
- /**
32
- * Previous log timestamp.
33
- */
34
-
35
- var prevTime;
36
-
37
- /**
38
- * Select a color.
39
- * @param {String} namespace
40
- * @return {Number}
41
- * @api private
42
- */
43
-
44
- function selectColor(namespace) {
45
- var hash = 0, i;
46
-
47
- for (i in namespace) {
48
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
49
- hash |= 0; // Convert to 32bit integer
50
- }
51
-
52
- return exports.colors[Math.abs(hash) % exports.colors.length];
53
- }
54
-
55
- /**
56
- * Create a debugger with the given `namespace`.
57
- *
58
- * @param {String} namespace
59
- * @return {Function}
60
- * @api public
61
- */
62
-
63
- function createDebug(namespace) {
64
-
65
- function debug() {
66
- // disabled?
67
- if (!debug.enabled) return;
68
-
69
- var self = debug;
70
-
71
- // set `diff` timestamp
72
- var curr = +new Date();
73
- var ms = curr - (prevTime || curr);
74
- self.diff = ms;
75
- self.prev = prevTime;
76
- self.curr = curr;
77
- prevTime = curr;
78
-
79
- // turn the `arguments` into a proper Array
80
- var args = new Array(arguments.length);
81
- for (var i = 0; i < args.length; i++) {
82
- args[i] = arguments[i];
83
- }
84
-
85
- args[0] = exports.coerce(args[0]);
86
-
87
- if ('string' !== typeof args[0]) {
88
- // anything else let's inspect with %O
89
- args.unshift('%O');
90
- }
91
-
92
- // apply any `formatters` transformations
93
- var index = 0;
94
- args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
95
- // if we encounter an escaped % then don't increase the array index
96
- if (match === '%%') return match;
97
- index++;
98
- var formatter = exports.formatters[format];
99
- if ('function' === typeof formatter) {
100
- var val = args[index];
101
- match = formatter.call(self, val);
102
-
103
- // now we need to remove `args[index]` since it's inlined in the `format`
104
- args.splice(index, 1);
105
- index--;
106
- }
107
- return match;
108
- });
109
-
110
- // apply env-specific formatting (colors, etc.)
111
- exports.formatArgs.call(self, args);
112
-
113
- var logFn = debug.log || exports.log || console.log.bind(console);
114
- logFn.apply(self, args);
115
- }
116
-
117
- debug.namespace = namespace;
118
- debug.enabled = exports.enabled(namespace);
119
- debug.useColors = exports.useColors();
120
- debug.color = selectColor(namespace);
121
-
122
- // env-specific initialization logic for debug instances
123
- if ('function' === typeof exports.init) {
124
- exports.init(debug);
125
- }
126
-
127
- return debug;
128
- }
129
-
130
- /**
131
- * Enables a debug mode by namespaces. This can include modes
132
- * separated by a colon and wildcards.
133
- *
134
- * @param {String} namespaces
135
- * @api public
136
- */
137
-
138
- function enable(namespaces) {
139
- exports.save(namespaces);
140
-
141
- exports.names = [];
142
- exports.skips = [];
143
-
144
- var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
145
- var len = split.length;
146
-
147
- for (var i = 0; i < len; i++) {
148
- if (!split[i]) continue; // ignore empty strings
149
- namespaces = split[i].replace(/\*/g, '.*?');
150
- if (namespaces[0] === '-') {
151
- exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
152
- } else {
153
- exports.names.push(new RegExp('^' + namespaces + '$'));
154
- }
155
- }
156
- }
157
-
158
- /**
159
- * Disable debug output.
160
- *
161
- * @api public
162
- */
163
-
164
- function disable() {
165
- exports.enable('');
166
- }
167
-
168
- /**
169
- * Returns true if the given mode name is enabled, false otherwise.
170
- *
171
- * @param {String} name
172
- * @return {Boolean}
173
- * @api public
174
- */
175
-
176
- function enabled(name) {
177
- var i, len;
178
- for (i = 0, len = exports.skips.length; i < len; i++) {
179
- if (exports.skips[i].test(name)) {
180
- return false;
181
- }
182
- }
183
- for (i = 0, len = exports.names.length; i < len; i++) {
184
- if (exports.names[i].test(name)) {
185
- return true;
186
- }
187
- }
188
- return false;
189
- }
190
-
191
- /**
192
- * Coerce `val`.
193
- *
194
- * @param {Mixed} val
195
- * @return {Mixed}
196
- * @api private
197
- */
198
-
199
- function coerce(val) {
200
- if (val instanceof Error) return val.stack || val.message;
201
- return val;
202
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Detect Electron renderer process, which is node, but we should
3
- * treat as a browser.
4
- */
5
-
6
- if (typeof process !== 'undefined' && process.type === 'renderer') {
7
- module.exports = require('./browser.js');
8
- } else {
9
- module.exports = require('./node.js');
10
- }
@@ -1,15 +0,0 @@
1
- module.exports = inspectorLog;
2
-
3
- // black hole
4
- const nullStream = new (require('stream').Writable)();
5
- nullStream._write = () => {};
6
-
7
- /**
8
- * Outputs a `console.log()` to the Node.js Inspector console *only*.
9
- */
10
- function inspectorLog() {
11
- const stdout = console._stdout;
12
- console._stdout = nullStream;
13
- console.log.apply(console, arguments);
14
- console._stdout = stdout;
15
- }
@@ -1,248 +0,0 @@
1
- /**
2
- * Module dependencies.
3
- */
4
-
5
- var tty = require('tty');
6
- var util = require('util');
7
-
8
- /**
9
- * This is the Node.js implementation of `debug()`.
10
- *
11
- * Expose `debug()` as the module.
12
- */
13
-
14
- exports = module.exports = require('./debug');
15
- exports.init = init;
16
- exports.log = log;
17
- exports.formatArgs = formatArgs;
18
- exports.save = save;
19
- exports.load = load;
20
- exports.useColors = useColors;
21
-
22
- /**
23
- * Colors.
24
- */
25
-
26
- exports.colors = [6, 2, 3, 4, 5, 1];
27
-
28
- /**
29
- * Build up the default `inspectOpts` object from the environment variables.
30
- *
31
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
32
- */
33
-
34
- exports.inspectOpts = Object.keys(process.env).filter(function (key) {
35
- return /^debug_/i.test(key);
36
- }).reduce(function (obj, key) {
37
- // camel-case
38
- var prop = key
39
- .substring(6)
40
- .toLowerCase()
41
- .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
42
-
43
- // coerce string value into JS value
44
- var val = process.env[key];
45
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
46
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
47
- else if (val === 'null') val = null;
48
- else val = Number(val);
49
-
50
- obj[prop] = val;
51
- return obj;
52
- }, {});
53
-
54
- /**
55
- * The file descriptor to write the `debug()` calls to.
56
- * Set the `DEBUG_FD` env variable to override with another value. i.e.:
57
- *
58
- * $ DEBUG_FD=3 node script.js 3>debug.log
59
- */
60
-
61
- var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
62
-
63
- if (1 !== fd && 2 !== fd) {
64
- util.deprecate(function(){}, 'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')()
65
- }
66
-
67
- var stream = 1 === fd ? process.stdout :
68
- 2 === fd ? process.stderr :
69
- createWritableStdioStream(fd);
70
-
71
- /**
72
- * Is stdout a TTY? Colored output is enabled when `true`.
73
- */
74
-
75
- function useColors() {
76
- return 'colors' in exports.inspectOpts
77
- ? Boolean(exports.inspectOpts.colors)
78
- : tty.isatty(fd);
79
- }
80
-
81
- /**
82
- * Map %o to `util.inspect()`, all on a single line.
83
- */
84
-
85
- exports.formatters.o = function(v) {
86
- this.inspectOpts.colors = this.useColors;
87
- return util.inspect(v, this.inspectOpts)
88
- .split('\n').map(function(str) {
89
- return str.trim()
90
- }).join(' ');
91
- };
92
-
93
- /**
94
- * Map %o to `util.inspect()`, allowing multiple lines if needed.
95
- */
96
-
97
- exports.formatters.O = function(v) {
98
- this.inspectOpts.colors = this.useColors;
99
- return util.inspect(v, this.inspectOpts);
100
- };
101
-
102
- /**
103
- * Adds ANSI color escape codes if enabled.
104
- *
105
- * @api public
106
- */
107
-
108
- function formatArgs(args) {
109
- var name = this.namespace;
110
- var useColors = this.useColors;
111
-
112
- if (useColors) {
113
- var c = this.color;
114
- var prefix = ' \u001b[3' + c + ';1m' + name + ' ' + '\u001b[0m';
115
-
116
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
117
- args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
118
- } else {
119
- args[0] = new Date().toUTCString()
120
- + ' ' + name + ' ' + args[0];
121
- }
122
- }
123
-
124
- /**
125
- * Invokes `util.format()` with the specified arguments and writes to `stream`.
126
- */
127
-
128
- function log() {
129
- return stream.write(util.format.apply(util, arguments) + '\n');
130
- }
131
-
132
- /**
133
- * Save `namespaces`.
134
- *
135
- * @param {String} namespaces
136
- * @api private
137
- */
138
-
139
- function save(namespaces) {
140
- if (null == namespaces) {
141
- // If you set a process.env field to null or undefined, it gets cast to the
142
- // string 'null' or 'undefined'. Just delete instead.
143
- delete process.env.DEBUG;
144
- } else {
145
- process.env.DEBUG = namespaces;
146
- }
147
- }
148
-
149
- /**
150
- * Load `namespaces`.
151
- *
152
- * @return {String} returns the previously persisted debug modes
153
- * @api private
154
- */
155
-
156
- function load() {
157
- return process.env.DEBUG;
158
- }
159
-
160
- /**
161
- * Copied from `node/src/node.js`.
162
- *
163
- * XXX: It's lame that node doesn't expose this API out-of-the-box. It also
164
- * relies on the undocumented `tty_wrap.guessHandleType()` which is also lame.
165
- */
166
-
167
- function createWritableStdioStream (fd) {
168
- var stream;
169
- var tty_wrap = process.binding('tty_wrap');
170
-
171
- // Note stream._type is used for test-module-load-list.js
172
-
173
- switch (tty_wrap.guessHandleType(fd)) {
174
- case 'TTY':
175
- stream = new tty.WriteStream(fd);
176
- stream._type = 'tty';
177
-
178
- // Hack to have stream not keep the event loop alive.
179
- // See https://github.com/joyent/node/issues/1726
180
- if (stream._handle && stream._handle.unref) {
181
- stream._handle.unref();
182
- }
183
- break;
184
-
185
- case 'FILE':
186
- var fs = require('fs');
187
- stream = new fs.SyncWriteStream(fd, { autoClose: false });
188
- stream._type = 'fs';
189
- break;
190
-
191
- case 'PIPE':
192
- case 'TCP':
193
- var net = require('net');
194
- stream = new net.Socket({
195
- fd: fd,
196
- readable: false,
197
- writable: true
198
- });
199
-
200
- // FIXME Should probably have an option in net.Socket to create a
201
- // stream from an existing fd which is writable only. But for now
202
- // we'll just add this hack and set the `readable` member to false.
203
- // Test: ./node test/fixtures/echo.js < /etc/passwd
204
- stream.readable = false;
205
- stream.read = null;
206
- stream._type = 'pipe';
207
-
208
- // FIXME Hack to have stream not keep the event loop alive.
209
- // See https://github.com/joyent/node/issues/1726
210
- if (stream._handle && stream._handle.unref) {
211
- stream._handle.unref();
212
- }
213
- break;
214
-
215
- default:
216
- // Probably an error on in uv_guess_handle()
217
- throw new Error('Implement me. Unknown stream file type!');
218
- }
219
-
220
- // For supporting legacy API we put the FD here.
221
- stream.fd = fd;
222
-
223
- stream._isStdio = true;
224
-
225
- return stream;
226
- }
227
-
228
- /**
229
- * Init logic for `debug` instances.
230
- *
231
- * Create a new `inspectOpts` object in case `useColors` is set
232
- * differently for a particular `debug` instance.
233
- */
234
-
235
- function init (debug) {
236
- debug.inspectOpts = {};
237
-
238
- var keys = Object.keys(exports.inspectOpts);
239
- for (var i = 0; i < keys.length; i++) {
240
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
241
- }
242
- }
243
-
244
- /**
245
- * Enable namespaces listed in `process.env.DEBUG` initially.
246
- */
247
-
248
- exports.enable(load());
@@ -1,96 +0,0 @@
1
- 1.1.2 / 2018-01-11
2
- ==================
3
-
4
- * perf: remove argument reassignment
5
- * Support Node.js 0.6 to 9.x
6
-
7
- 1.1.1 / 2017-07-27
8
- ==================
9
-
10
- * Remove unnecessary `Buffer` loading
11
- * Support Node.js 0.6 to 8.x
12
-
13
- 1.1.0 / 2015-09-14
14
- ==================
15
-
16
- * Enable strict mode in more places
17
- * Support io.js 3.x
18
- * Support io.js 2.x
19
- * Support web browser loading
20
- - Requires bundler like Browserify or webpack
21
-
22
- 1.0.1 / 2015-04-07
23
- ==================
24
-
25
- * Fix `TypeError`s when under `'use strict'` code
26
- * Fix useless type name on auto-generated messages
27
- * Support io.js 1.x
28
- * Support Node.js 0.12
29
-
30
- 1.0.0 / 2014-09-17
31
- ==================
32
-
33
- * No changes
34
-
35
- 0.4.5 / 2014-09-09
36
- ==================
37
-
38
- * Improve call speed to functions using the function wrapper
39
- * Support Node.js 0.6
40
-
41
- 0.4.4 / 2014-07-27
42
- ==================
43
-
44
- * Work-around v8 generating empty stack traces
45
-
46
- 0.4.3 / 2014-07-26
47
- ==================
48
-
49
- * Fix exception when global `Error.stackTraceLimit` is too low
50
-
51
- 0.4.2 / 2014-07-19
52
- ==================
53
-
54
- * Correct call site for wrapped functions and properties
55
-
56
- 0.4.1 / 2014-07-19
57
- ==================
58
-
59
- * Improve automatic message generation for function properties
60
-
61
- 0.4.0 / 2014-07-19
62
- ==================
63
-
64
- * Add `TRACE_DEPRECATION` environment variable
65
- * Remove non-standard grey color from color output
66
- * Support `--no-deprecation` argument
67
- * Support `--trace-deprecation` argument
68
- * Support `deprecate.property(fn, prop, message)`
69
-
70
- 0.3.0 / 2014-06-16
71
- ==================
72
-
73
- * Add `NO_DEPRECATION` environment variable
74
-
75
- 0.2.0 / 2014-06-15
76
- ==================
77
-
78
- * Add `deprecate.property(obj, prop, message)`
79
- * Remove `supports-color` dependency for node.js 0.8
80
-
81
- 0.1.0 / 2014-06-15
82
- ==================
83
-
84
- * Add `deprecate.function(fn, message)`
85
- * Add `process.on('deprecation', fn)` emitter
86
- * Automatically generate message when omitted from `deprecate()`
87
-
88
- 0.0.1 / 2014-06-15
89
- ==================
90
-
91
- * Fix warning for dynamic calls at singe call site
92
-
93
- 0.0.0 / 2014-06-15
94
- ==================
95
-
96
- * Initial implementation
@@ -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.