tck-lambdas 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (690) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tck/lambdas/chistacojs/chistaco_diario.zip +0 -0
  3. data/lib/tck/lambdas/chistacojs/source/chistacojs.js +26 -5
  4. data/lib/tck/lambdas/chistacojs/source/chistescortos.js +19 -15
  5. data/lib/tck/lambdas/chistacojs/source/conf.js +18 -6
  6. data/lib/tck/lambdas/chistacojs/source/post_chistaco.js +9 -4
  7. data/lib/tck/lambdas/chistacojs/source/refreshing_matter.js +19 -15
  8. data/lib/tck/lambdas/chistacojs/test/failed/module_not_found.json +1 -0
  9. data/lib/tck/lambdas/chistacojs/test/succeeded/chistescortos_module.json +1 -0
  10. data/lib/tck/lambdas/chistacojs/test/succeeded/refreshing_module.json +1 -0
  11. data/lib/tck/lambdas/version.rb +1 -1
  12. metadata +5 -680
  13. data/lib/tck/lambdas/chistacojs/chistaco_diario.js +0 -31
  14. data/lib/tck/lambdas/chistacojs/chistescortos.js +0 -17
  15. data/lib/tck/lambdas/chistacojs/conf.js +0 -13
  16. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/History.md +0 -576
  17. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/Readme.md +0 -1093
  18. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/index.js +0 -11
  19. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/api/attributes.js +0 -495
  20. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/api/css.js +0 -121
  21. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/api/forms.js +0 -65
  22. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/api/manipulation.js +0 -425
  23. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/api/traversing.js +0 -429
  24. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/cheerio.js +0 -148
  25. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/parse.js +0 -86
  26. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/static.js +0 -187
  27. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/lib/utils.js +0 -83
  28. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/README.md +0 -133
  29. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/index.js +0 -59
  30. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/attributes.js +0 -181
  31. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/compile.js +0 -192
  32. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/general.js +0 -89
  33. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/procedure.json +0 -11
  34. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/pseudos.js +0 -393
  35. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/lib/sort.js +0 -80
  36. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/boolbase/README.md +0 -10
  37. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/boolbase/index.js +0 -8
  38. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/boolbase/package.json +0 -46
  39. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/css-what/index.js +0 -267
  40. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/css-what/package.json +0 -74
  41. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/css-what/readme.md +0 -46
  42. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/index.js +0 -14
  43. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/helpers.js +0 -141
  44. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/legacy.js +0 -87
  45. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/manipulation.js +0 -77
  46. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/querying.js +0 -94
  47. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/stringify.js +0 -22
  48. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/lib/traversal.js +0 -24
  49. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/node_modules/domelementtype/index.js +0 -15
  50. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/node_modules/domelementtype/package.json +0 -46
  51. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/node_modules/domelementtype/readme.md +0 -1
  52. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/package.json +0 -74
  53. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/readme.md +0 -1
  54. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/test/fixture.js +0 -6
  55. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/test/tests/helpers.js +0 -89
  56. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/test/tests/legacy.js +0 -119
  57. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/test/tests/traversal.js +0 -17
  58. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/domutils/test/utils.js +0 -9
  59. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/README.md +0 -51
  60. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/compile.js +0 -40
  61. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/index.js +0 -9
  62. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/package.json +0 -52
  63. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/parse.js +0 -40
  64. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/node_modules/nth-check/test.js +0 -102
  65. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/css-select/package.json +0 -90
  66. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/index.js +0 -178
  67. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js +0 -14
  68. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/package.json +0 -45
  69. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/readme.md +0 -1
  70. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/package.json +0 -72
  71. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/index.js +0 -33
  72. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/lib/decode.js +0 -72
  73. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/lib/decode_codepoint.js +0 -26
  74. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/lib/encode.js +0 -73
  75. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/maps/decode.json +0 -1
  76. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/maps/entities.json +0 -1
  77. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/maps/legacy.json +0 -1
  78. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/maps/xml.json +0 -1
  79. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/package.json +0 -79
  80. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/readme.md +0 -27
  81. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/test/mocha.opts +0 -2
  82. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/entities/test/test.js +0 -168
  83. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/CollectingHandler.js +0 -55
  84. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/FeedHandler.js +0 -95
  85. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/Parser.js +0 -353
  86. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/ProxyHandler.js +0 -27
  87. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/Stream.js +0 -35
  88. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/Tokenizer.js +0 -906
  89. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/WritableStream.js +0 -25
  90. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/lib/index.js +0 -68
  91. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domelementtype/index.js +0 -15
  92. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domelementtype/package.json +0 -45
  93. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domelementtype/readme.md +0 -1
  94. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/index.js +0 -182
  95. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/lib/element.js +0 -20
  96. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/lib/node.js +0 -44
  97. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/package.json +0 -68
  98. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/readme.md +0 -105
  99. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/01-basic.json +0 -57
  100. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/02-single_tag_1.json +0 -21
  101. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/03-single_tag_2.json +0 -21
  102. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/04-unescaped_in_script.json +0 -27
  103. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/05-tags_in_comment.json +0 -18
  104. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/06-comment_in_script.json +0 -18
  105. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/07-unescaped_in_style.json +0 -20
  106. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +0 -20
  107. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/09-unquoted_attrib.json +0 -20
  108. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/10-singular_attribute.json +0 -15
  109. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/11-text_outside_tags.json +0 -40
  110. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/12-text_only.json +0 -11
  111. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/13-comment_in_text.json +0 -19
  112. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +0 -18
  113. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/15-non-verbose.json +0 -22
  114. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/16-normalize_whitespace.json +0 -47
  115. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/17-xml_namespace.json +0 -18
  116. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +0 -16
  117. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +0 -20
  118. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/20-template_script_tags.json +0 -20
  119. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/21-conditional_comments.json +0 -15
  120. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/22-lowercase_tags.json +0 -41
  121. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/23-dom-lvl1.json +0 -131
  122. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/cases/24-with-start-indices.json +0 -85
  123. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domhandler/test/tests.js +0 -60
  124. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/index.js +0 -14
  125. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +0 -141
  126. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +0 -87
  127. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +0 -77
  128. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +0 -94
  129. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +0 -22
  130. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +0 -24
  131. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/package.json +0 -74
  132. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/readme.md +0 -1
  133. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/test/fixture.js +0 -6
  134. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/test/tests/helpers.js +0 -89
  135. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/test/tests/legacy.js +0 -119
  136. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/test/tests/traversal.js +0 -17
  137. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/domutils/test/utils.js +0 -9
  138. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/inherits/README.md +0 -42
  139. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/inherits/inherits.js +0 -7
  140. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/inherits/inherits_browser.js +0 -23
  141. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/inherits/package.json +0 -62
  142. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/README.md +0 -36
  143. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/doc/stream.md +0 -2015
  144. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  145. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/duplex.js +0 -1
  146. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
  147. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_passthrough.js +0 -26
  148. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_readable.js +0 -937
  149. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_transform.js +0 -180
  150. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js +0 -526
  151. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -64
  152. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/buffer-shims/index.js +0 -108
  153. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/buffer-shims/license.md +0 -19
  154. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/buffer-shims/package.json +0 -49
  155. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/buffer-shims/readme.md +0 -21
  156. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/README.md +0 -3
  157. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/float.patch +0 -604
  158. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +0 -107
  159. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/package.json +0 -60
  160. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/test.js +0 -68
  161. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/README.md +0 -60
  162. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/component.json +0 -19
  163. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/index.js +0 -5
  164. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/package.json +0 -71
  165. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/test.js +0 -20
  166. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/process-nextick-args/index.js +0 -43
  167. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/process-nextick-args/license.md +0 -19
  168. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/process-nextick-args/package.json +0 -49
  169. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/process-nextick-args/readme.md +0 -18
  170. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/process-nextick-args/test.js +0 -24
  171. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/README.md +0 -7
  172. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/index.js +0 -221
  173. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/package.json +0 -54
  174. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/util-deprecate/History.md +0 -16
  175. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/util-deprecate/README.md +0 -53
  176. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/util-deprecate/browser.js +0 -67
  177. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/util-deprecate/node.js +0 -6
  178. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/node_modules/util-deprecate/package.json +0 -54
  179. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/package.json +0 -90
  180. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/passthrough.js +0 -1
  181. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/readable.js +0 -16
  182. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/transform.js +0 -1
  183. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/node_modules/readable-stream/writable.js +0 -1
  184. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/htmlparser2/package.json +0 -84
  185. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.assignin/README.md +0 -18
  186. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.assignin/index.js +0 -626
  187. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.assignin/package.json +0 -77
  188. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.bind/README.md +0 -18
  189. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.bind/index.js +0 -1254
  190. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.bind/package.json +0 -77
  191. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.defaults/README.md +0 -18
  192. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.defaults/index.js +0 -668
  193. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.defaults/package.json +0 -77
  194. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.filter/README.md +0 -18
  195. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.filter/index.js +0 -2366
  196. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.filter/package.json +0 -77
  197. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.flatten/README.md +0 -18
  198. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.flatten/index.js +0 -349
  199. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.flatten/package.json +0 -77
  200. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.foreach/README.md +0 -18
  201. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.foreach/index.js +0 -565
  202. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.foreach/package.json +0 -77
  203. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.map/README.md +0 -18
  204. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.map/index.js +0 -2366
  205. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.map/package.json +0 -77
  206. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.merge/README.md +0 -18
  207. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.merge/index.js +0 -2207
  208. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.merge/package.json +0 -77
  209. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.pick/README.md +0 -18
  210. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.pick/index.js +0 -503
  211. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.pick/package.json +0 -77
  212. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reduce/README.md +0 -18
  213. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reduce/index.js +0 -2372
  214. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reduce/package.json +0 -77
  215. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reject/README.md +0 -18
  216. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reject/index.js +0 -2398
  217. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.reject/package.json +0 -77
  218. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.some/README.md +0 -18
  219. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.some/index.js +0 -2368
  220. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/lodash.some/package.json +0 -77
  221. data/lib/tck/lambdas/chistacojs/node_modules/cheerio/package.json +0 -105
  222. data/lib/tck/lambdas/chistacojs/node_modules/request/CHANGELOG.md +0 -633
  223. data/lib/tck/lambdas/chistacojs/node_modules/request/CONTRIBUTING.md +0 -81
  224. data/lib/tck/lambdas/chistacojs/node_modules/request/README.md +0 -1097
  225. data/lib/tck/lambdas/chistacojs/node_modules/request/codecov.yml +0 -2
  226. data/lib/tck/lambdas/chistacojs/node_modules/request/index.js +0 -157
  227. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/auth.js +0 -168
  228. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/cookies.js +0 -39
  229. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/getProxyFromURI.js +0 -79
  230. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/har.js +0 -215
  231. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/helpers.js +0 -74
  232. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/multipart.js +0 -112
  233. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/oauth.js +0 -147
  234. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/querystring.js +0 -51
  235. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/redirect.js +0 -153
  236. data/lib/tck/lambdas/chistacojs/node_modules/request/lib/tunnel.js +0 -176
  237. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws-sign2/README.md +0 -4
  238. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws-sign2/index.js +0 -212
  239. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws-sign2/package.json +0 -49
  240. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws4/README.md +0 -514
  241. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws4/aws4.js +0 -318
  242. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws4/lru.js +0 -96
  243. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/aws4/package.json +0 -106
  244. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/LICENSE.md +0 -13
  245. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/README.md +0 -200
  246. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/bl.js +0 -243
  247. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/README.md +0 -36
  248. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
  249. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
  250. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/duplex.js +0 -1
  251. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -75
  252. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -26
  253. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -880
  254. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -180
  255. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -516
  256. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/README.md +0 -3
  257. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/float.patch +0 -604
  258. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +0 -107
  259. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +0 -60
  260. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +0 -68
  261. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
  262. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -1
  263. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
  264. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/package.json +0 -49
  265. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/test.js +0 -25
  266. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/README.md +0 -60
  267. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/component.json +0 -19
  268. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/index.js +0 -5
  269. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/package.json +0 -71
  270. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/test.js +0 -20
  271. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/index.js +0 -43
  272. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/license.md +0 -19
  273. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/package.json +0 -49
  274. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/readme.md +0 -18
  275. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/test.js +0 -24
  276. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/README.md +0 -7
  277. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/index.js +0 -221
  278. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/package.json +0 -54
  279. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/History.md +0 -16
  280. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/README.md +0 -53
  281. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/browser.js +0 -67
  282. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/node.js +0 -6
  283. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/package.json +0 -54
  284. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/package.json +0 -80
  285. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/passthrough.js +0 -1
  286. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/readable.js +0 -12
  287. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/transform.js +0 -1
  288. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/node_modules/readable-stream/writable.js +0 -1
  289. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/package.json +0 -64
  290. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/bl/test/test.js +0 -640
  291. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/caseless/README.md +0 -45
  292. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/caseless/index.js +0 -66
  293. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/caseless/package.json +0 -62
  294. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/caseless/test.js +0 -40
  295. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/Readme.md +0 -138
  296. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/lib/combined_stream.js +0 -188
  297. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +0 -141
  298. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  299. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/package.json +0 -64
  300. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/combined-stream/package.json +0 -67
  301. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/extend/CHANGELOG.md +0 -69
  302. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/extend/README.md +0 -62
  303. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/extend/component.json +0 -32
  304. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/extend/index.js +0 -86
  305. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/extend/package.json +0 -73
  306. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/forever-agent/README.md +0 -4
  307. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/forever-agent/index.js +0 -138
  308. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/forever-agent/package.json +0 -56
  309. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/README.md +0 -218
  310. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/lib/browser.js +0 -2
  311. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/lib/form_data.js +0 -411
  312. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/lib/populate.js +0 -9
  313. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/CHANGELOG.md +0 -125
  314. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/README.md +0 -1877
  315. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/dist/async.js +0 -1265
  316. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/dist/async.min.js +0 -2
  317. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +0 -1265
  318. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/node_modules/async/package.json +0 -123
  319. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/package.json +0 -104
  320. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/form-data/wercker.yml +0 -36
  321. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/README.md +0 -309
  322. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/async.js +0 -14
  323. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/error.js +0 -10
  324. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/index.js +0 -22
  325. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/runner.js +0 -29
  326. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/cache.json +0 -13
  327. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/cacheEntry.json +0 -31
  328. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/content.json +0 -27
  329. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/cookie.json +0 -34
  330. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/creator.json +0 -18
  331. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/entry.json +0 -51
  332. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/har.json +0 -11
  333. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/index.js +0 -49
  334. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/log.json +0 -34
  335. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/page.json +0 -30
  336. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/pageTimings.json +0 -16
  337. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/postData.json +0 -41
  338. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/record.json +0 -18
  339. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/request.json +0 -55
  340. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/response.json +0 -52
  341. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/lib/schemas/timings.json +0 -40
  342. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/index.js +0 -116
  343. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/ansi-styles/index.js +0 -65
  344. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/ansi-styles/package.json +0 -80
  345. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/ansi-styles/readme.md +0 -86
  346. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/index.js +0 -11
  347. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/package.json +0 -75
  348. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/readme.md +0 -27
  349. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/index.js +0 -4
  350. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/index.js +0 -4
  351. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/package.json +0 -86
  352. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/readme.md +0 -31
  353. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/package.json +0 -85
  354. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/readme.md +0 -36
  355. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/index.js +0 -6
  356. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js +0 -4
  357. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/package.json +0 -86
  358. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/readme.md +0 -31
  359. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/package.json +0 -90
  360. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/readme.md +0 -33
  361. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/index.js +0 -50
  362. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/package.json +0 -79
  363. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/supports-color/readme.md +0 -36
  364. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/package.json +0 -107
  365. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/chalk/readme.md +0 -213
  366. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/History.md +0 -261
  367. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/Readme.md +0 -351
  368. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/index.js +0 -1110
  369. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/README.md +0 -17
  370. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/index.js +0 -12
  371. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/package.json +0 -48
  372. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/commander/package.json +0 -71
  373. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/README.md +0 -173
  374. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/example.js +0 -18
  375. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/formats.js +0 -14
  376. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/index.js +0 -584
  377. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/README.md +0 -72
  378. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/example.js +0 -27
  379. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/index.js +0 -61
  380. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/package.json +0 -53
  381. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/test.js +0 -33
  382. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/README.md +0 -19
  383. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/index.js +0 -12
  384. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/README.md +0 -28
  385. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/is-property.js +0 -5
  386. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/package.json +0 -59
  387. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/package.json +0 -51
  388. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/test.js +0 -12
  389. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/README.md +0 -32
  390. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/jsonpointer.js +0 -76
  391. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/package.json +0 -64
  392. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/test.js +0 -98
  393. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/README.md +0 -32
  394. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/immutable.js +0 -19
  395. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/mutable.js +0 -17
  396. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/package.json +0 -84
  397. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/test.js +0 -83
  398. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/package.json +0 -75
  399. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/require.js +0 -12
  400. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/fixtures/cosmic.js +0 -84
  401. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +0 -82
  402. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +0 -88
  403. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +0 -112
  404. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +0 -68
  405. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +0 -107
  406. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +0 -49
  407. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +0 -32
  408. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +0 -113
  409. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +0 -72
  410. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +0 -143
  411. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +0 -46
  412. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +0 -28
  413. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +0 -28
  414. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +0 -28
  415. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +0 -42
  416. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +0 -28
  417. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +0 -28
  418. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +0 -28
  419. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +0 -42
  420. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +0 -96
  421. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +0 -96
  422. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +0 -18
  423. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +0 -18
  424. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +0 -68
  425. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +0 -23
  426. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +0 -110
  427. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +0 -92
  428. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +0 -128
  429. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +0 -74
  430. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +0 -39
  431. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +0 -330
  432. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +0 -79
  433. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema.js +0 -23
  434. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/misc.js +0 -447
  435. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/index.js +0 -3
  436. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/node_modules/pinkie/index.js +0 -292
  437. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/node_modules/pinkie/package.json +0 -66
  438. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/node_modules/pinkie/readme.md +0 -83
  439. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/package.json +0 -69
  440. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/readme.md +0 -28
  441. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/package.json +0 -87
  442. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/README.md +0 -634
  443. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/bower.json +0 -24
  444. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/component.json +0 -19
  445. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/dist/client.js +0 -343
  446. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/example/usage.js +0 -78
  447. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
  448. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/images/logo.png +0 -0
  449. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/browser.js +0 -637
  450. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/client.js +0 -369
  451. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/crypto.js +0 -126
  452. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/index.js +0 -15
  453. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/server.js +0 -548
  454. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/lib/utils.js +0 -184
  455. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/CONTRIBUTING.md +0 -1
  456. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/README.md +0 -652
  457. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
  458. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +0 -318
  459. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/package.json +0 -64
  460. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js +0 -654
  461. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +0 -16
  462. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +0 -68
  463. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +0 -61
  464. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js +0 -102
  465. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/CONTRIBUTING.md +0 -1
  466. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +0 -584
  467. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
  468. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +0 -132
  469. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +0 -993
  470. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +0 -61
  471. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js +0 -88
  472. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js +0 -2513
  473. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/ignore.txt +0 -0
  474. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js +0 -1
  475. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js +0 -1
  476. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js +0 -1
  477. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +0 -68
  478. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +0 -16
  479. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +0 -25
  480. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +0 -1
  481. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +0 -412
  482. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +0 -65
  483. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/node_modules/sntp/test/index.js +0 -435
  484. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/package.json +0 -68
  485. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/browser.js +0 -1492
  486. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/client.js +0 -440
  487. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/crypto.js +0 -70
  488. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/index.js +0 -378
  489. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/readme.js +0 -95
  490. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/server.js +0 -1329
  491. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/uri.js +0 -838
  492. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/hawk/test/utils.js +0 -149
  493. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/CHANGES.md +0 -46
  494. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/README.md +0 -79
  495. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/http_signing.md +0 -363
  496. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/lib/index.js +0 -29
  497. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/lib/parser.js +0 -318
  498. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/lib/signer.js +0 -399
  499. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/lib/utils.js +0 -112
  500. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/lib/verify.js +0 -88
  501. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/assert-plus/CHANGES.md +0 -8
  502. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +0 -155
  503. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +0 -206
  504. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +0 -83
  505. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/CHANGES.md +0 -35
  506. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/README.md +0 -237
  507. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/lib/jsprim.js +0 -488
  508. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/Makefile.deps +0 -39
  509. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/Makefile.targ +0 -285
  510. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/README.md +0 -39
  511. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/examples/simple.js +0 -2
  512. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/jsl.node.conf +0 -137
  513. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/lib/extsprintf.js +0 -166
  514. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/extsprintf/package.json +0 -37
  515. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/README.md +0 -5
  516. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
  517. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
  518. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/lib/links.js +0 -52
  519. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/lib/validate.js +0 -260
  520. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/package.json +0 -59
  521. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema/test/tests.js +0 -95
  522. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/Makefile.targ +0 -285
  523. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/README.md +0 -120
  524. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/examples/levels-verror.js +0 -36
  525. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/examples/levels-werror.js +0 -34
  526. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/examples/varargs.js +0 -6
  527. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/examples/verror.js +0 -13
  528. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/examples/werror.js +0 -14
  529. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/jsl.node.conf +0 -139
  530. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/lib/verror.js +0 -157
  531. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/package.json +0 -43
  532. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/tests/tst.inherit.js +0 -100
  533. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/tests/tst.verror.js +0 -156
  534. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/verror/tests/tst.werror.js +0 -179
  535. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/jsprim/package.json +0 -51
  536. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/README.md +0 -666
  537. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/algs.js +0 -168
  538. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/certificate.js +0 -291
  539. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/dhe.js +0 -311
  540. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/ed-compat.js +0 -96
  541. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/errors.js +0 -84
  542. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/fingerprint.js +0 -161
  543. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/auto.js +0 -73
  544. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/openssh-cert.js +0 -289
  545. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/pem.js +0 -186
  546. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/pkcs1.js +0 -320
  547. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/pkcs8.js +0 -505
  548. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/rfc4253.js +0 -146
  549. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/ssh-private.js +0 -138
  550. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/ssh.js +0 -114
  551. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/x509-pem.js +0 -77
  552. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/formats/x509.js +0 -484
  553. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/identity.js +0 -255
  554. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/index.js +0 -38
  555. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/key.js +0 -270
  556. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/private-key.js +0 -231
  557. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/signature.js +0 -245
  558. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/ssh-buffer.js +0 -148
  559. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/lib/utils.js +0 -246
  560. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/man/man1/sshpk-conv.1 +0 -135
  561. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/man/man1/sshpk-sign.1 +0 -81
  562. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/man/man1/sshpk-verify.1 +0 -68
  563. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/README.md +0 -50
  564. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/ber/errors.js +0 -13
  565. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/ber/index.js +0 -27
  566. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/ber/reader.js +0 -261
  567. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/ber/types.js +0 -36
  568. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/ber/writer.js +0 -316
  569. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/lib/index.js +0 -20
  570. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/package.json +0 -65
  571. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/tst/ber/reader.test.js +0 -208
  572. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/asn1/tst/ber/writer.test.js +0 -370
  573. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +0 -14
  574. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/assert-plus/README.md +0 -162
  575. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -211
  576. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/assert-plus/package.json +0 -83
  577. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/README.md +0 -574
  578. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/etc/dashdash.bash_completion.in +0 -388
  579. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/lib/dashdash.js +0 -1055
  580. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/package.json +0 -91
  581. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/README.md +0 -8
  582. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/index.js +0 -57
  583. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/lib/ec.js +0 -561
  584. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/lib/sec.js +0 -170
  585. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/package.json +0 -56
  586. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/ecc-jsbn/test.js +0 -14
  587. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/getpass/README.md +0 -32
  588. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/getpass/lib/index.js +0 -123
  589. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/getpass/package.json +0 -57
  590. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/AUTHORS.md +0 -3
  591. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/README.md +0 -51
  592. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/almond.0 +0 -42
  593. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/almond.1 +0 -13
  594. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/index.js +0 -35
  595. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/jsdoc.json +0 -19
  596. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/lib/core.js +0 -481
  597. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/lib/curve255.js +0 -221
  598. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/lib/dh.js +0 -111
  599. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/lib/eddsa.js +0 -573
  600. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/lib/utils.js +0 -198
  601. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jodid25519/package.json +0 -71
  602. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jsbn/README.md +0 -175
  603. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jsbn/example.html +0 -12
  604. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jsbn/example.js +0 -3
  605. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jsbn/index.js +0 -1358
  606. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/jsbn/package.json +0 -50
  607. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/CHANGELOG.md +0 -128
  608. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/README.md +0 -463
  609. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/nacl-fast.js +0 -2418
  610. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/nacl-fast.min.js +0 -2
  611. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/nacl.js +0 -1205
  612. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/nacl.min.js +0 -1
  613. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/package.json +0 -94
  614. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/node_modules/sshpk/package.json +0 -101
  615. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/http-signature/package.json +0 -83
  616. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/is-typedarray/LICENSE.md +0 -18
  617. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/is-typedarray/README.md +0 -16
  618. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/is-typedarray/index.js +0 -41
  619. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/is-typedarray/package.json +0 -57
  620. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/is-typedarray/test.js +0 -34
  621. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/isstream/LICENSE.md +0 -11
  622. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/isstream/README.md +0 -66
  623. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/isstream/isstream.js +0 -27
  624. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/isstream/package.json +0 -59
  625. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/isstream/test.js +0 -168
  626. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/CHANGELOG.md +0 -14
  627. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/README.md +0 -52
  628. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/package.json +0 -68
  629. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/stringify.js +0 -27
  630. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/test/mocha.opts +0 -2
  631. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/json-stringify-safe/test/stringify_test.js +0 -246
  632. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/HISTORY.md +0 -197
  633. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/README.md +0 -103
  634. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/index.js +0 -188
  635. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/node_modules/mime-db/HISTORY.md +0 -341
  636. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/node_modules/mime-db/README.md +0 -82
  637. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/node_modules/mime-db/db.json +0 -6627
  638. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/node_modules/mime-db/index.js +0 -11
  639. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/node_modules/mime-db/package.json +0 -99
  640. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/mime-types/package.json +0 -89
  641. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/LICENSE.md +0 -21
  642. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/README.md +0 -254
  643. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/benchmark/README.md +0 -53
  644. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +0 -174
  645. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +0 -34
  646. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
  647. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +0 -84
  648. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/bower.json +0 -23
  649. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/component.json +0 -25
  650. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/package.json +0 -81
  651. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/test/compare_v1.js +0 -63
  652. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/test/test.html +0 -17
  653. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/test/test.js +0 -231
  654. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/node-uuid/uuid.js +0 -272
  655. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/oauth-sign/README.md +0 -4
  656. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/oauth-sign/index.js +0 -136
  657. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/oauth-sign/package.json +0 -66
  658. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/CHANGELOG.md +0 -130
  659. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/CONTRIBUTING.md +0 -1
  660. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/README.md +0 -376
  661. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/dist/qs.js +0 -486
  662. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/lib/index.js +0 -9
  663. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/lib/parse.js +0 -166
  664. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/lib/stringify.js +0 -137
  665. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/lib/utils.js +0 -164
  666. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/package.json +0 -87
  667. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/test/index.js +0 -5
  668. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/test/parse.js +0 -451
  669. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/test/stringify.js +0 -305
  670. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/qs/test/utils.js +0 -9
  671. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/stringstream/LICENSE.txt +0 -22
  672. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/stringstream/README.md +0 -38
  673. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/stringstream/example.js +0 -27
  674. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/stringstream/package.json +0 -50
  675. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/stringstream/stringstream.js +0 -102
  676. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/README.md +0 -506
  677. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/cookie.js +0 -1336
  678. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/memstore.js +0 -170
  679. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/pathMatch.js +0 -61
  680. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/permuteDomain.js +0 -56
  681. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +0 -98
  682. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/lib/store.js +0 -71
  683. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tough-cookie/package.json +0 -95
  684. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tunnel-agent/README.md +0 -4
  685. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tunnel-agent/index.js +0 -243
  686. data/lib/tck/lambdas/chistacojs/node_modules/request/node_modules/tunnel-agent/package.json +0 -68
  687. data/lib/tck/lambdas/chistacojs/node_modules/request/package.json +0 -119
  688. data/lib/tck/lambdas/chistacojs/node_modules/request/request.js +0 -1434
  689. data/lib/tck/lambdas/chistacojs/post_chistaco.js +0 -21
  690. data/lib/tck/lambdas/chistacojs/refreshing_matter.js +0 -17
@@ -1,1492 +0,0 @@
1
- // Load modules
2
-
3
- var Url = require('url');
4
- var Code = require('code');
5
- var Hawk = require('../lib');
6
- var Hoek = require('hoek');
7
- var Lab = require('lab');
8
- var Browser = require('../lib/browser');
9
-
10
-
11
- // Declare internals
12
-
13
- var internals = {};
14
-
15
-
16
- // Test shortcuts
17
-
18
- var lab = exports.lab = Lab.script();
19
- var describe = lab.experiment;
20
- var it = lab.test;
21
- var expect = Code.expect;
22
-
23
-
24
- describe('Browser', function () {
25
-
26
- var credentialsFunc = function (id, callback) {
27
-
28
- var credentials = {
29
- id: id,
30
- key: 'werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn',
31
- algorithm: (id === '1' ? 'sha1' : 'sha256'),
32
- user: 'steve'
33
- };
34
-
35
- return callback(null, credentials);
36
- };
37
-
38
- it('should generate a bewit then successfully authenticate it', function (done) {
39
-
40
- var req = {
41
- method: 'GET',
42
- url: '/resource/4?a=1&b=2',
43
- host: 'example.com',
44
- port: 80
45
- };
46
-
47
- credentialsFunc('123456', function (err, credentials1) {
48
-
49
- var bewit = Browser.client.bewit('http://example.com/resource/4?a=1&b=2', { credentials: credentials1, ttlSec: 60 * 60 * 24 * 365 * 100, ext: 'some-app-data' });
50
- req.url += '&bewit=' + bewit;
51
-
52
- Hawk.uri.authenticate(req, credentialsFunc, {}, function (err, credentials2, attributes) {
53
-
54
- expect(err).to.not.exist();
55
- expect(credentials2.user).to.equal('steve');
56
- expect(attributes.ext).to.equal('some-app-data');
57
- done();
58
- });
59
- });
60
- });
61
-
62
- it('should generate a bewit then successfully authenticate it (no ext)', function (done) {
63
-
64
- var req = {
65
- method: 'GET',
66
- url: '/resource/4?a=1&b=2',
67
- host: 'example.com',
68
- port: 80
69
- };
70
-
71
- credentialsFunc('123456', function (err, credentials1) {
72
-
73
- var bewit = Browser.client.bewit('http://example.com/resource/4?a=1&b=2', { credentials: credentials1, ttlSec: 60 * 60 * 24 * 365 * 100 });
74
- req.url += '&bewit=' + bewit;
75
-
76
- Hawk.uri.authenticate(req, credentialsFunc, {}, function (err, credentials2, attributes) {
77
-
78
- expect(err).to.not.exist();
79
- expect(credentials2.user).to.equal('steve');
80
- done();
81
- });
82
- });
83
- });
84
-
85
- describe('bewit()', function () {
86
-
87
- it('returns a valid bewit value', function (done) {
88
-
89
- var credentials = {
90
- id: '123456',
91
- key: '2983d45yun89q',
92
- algorithm: 'sha256'
93
- };
94
-
95
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: 'xandyandz' });
96
- expect(bewit).to.equal('MTIzNDU2XDEzNTY0MjA3MDdca3NjeHdOUjJ0SnBQMVQxekRMTlBiQjVVaUtJVTl0T1NKWFRVZEc3WDloOD1ceGFuZHlhbmR6');
97
- done();
98
- });
99
-
100
- it('returns a valid bewit value (explicit HTTP port)', function (done) {
101
-
102
- var credentials = {
103
- id: '123456',
104
- key: '2983d45yun89q',
105
- algorithm: 'sha256'
106
- };
107
-
108
- var bewit = Browser.client.bewit('http://example.com:8080/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: 'xandyandz' });
109
- expect(bewit).to.equal('MTIzNDU2XDEzNTY0MjA3MDdcaFpiSjNQMmNLRW80a3kwQzhqa1pBa1J5Q1p1ZWc0V1NOYnhWN3ZxM3hIVT1ceGFuZHlhbmR6');
110
- done();
111
- });
112
-
113
- it('returns a valid bewit value (explicit HTTPS port)', function (done) {
114
-
115
- var credentials = {
116
- id: '123456',
117
- key: '2983d45yun89q',
118
- algorithm: 'sha256'
119
- };
120
-
121
- var bewit = Browser.client.bewit('https://example.com:8043/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: 'xandyandz' });
122
- expect(bewit).to.equal('MTIzNDU2XDEzNTY0MjA3MDdcL2t4UjhwK0xSaTdvQTRnUXc3cWlxa3BiVHRKYkR4OEtRMC9HRUwvVytTUT1ceGFuZHlhbmR6');
123
- done();
124
- });
125
-
126
- it('returns a valid bewit value (null ext)', function (done) {
127
-
128
- var credentials = {
129
- id: '123456',
130
- key: '2983d45yun89q',
131
- algorithm: 'sha256'
132
- };
133
-
134
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: null });
135
- expect(bewit).to.equal('MTIzNDU2XDEzNTY0MjA3MDdcSUdZbUxnSXFMckNlOEN4dktQczRKbFdJQStValdKSm91d2dBUmlWaENBZz1c');
136
- done();
137
- });
138
-
139
- it('errors on invalid options', function (done) {
140
-
141
- var credentials = {
142
- id: '123456',
143
- key: '2983d45yun89q',
144
- algorithm: 'sha256'
145
- };
146
-
147
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', 4);
148
- expect(bewit).to.equal('');
149
- done();
150
- });
151
-
152
- it('errors on missing uri', function (done) {
153
-
154
- var credentials = {
155
- id: '123456',
156
- key: '2983d45yun89q',
157
- algorithm: 'sha256'
158
- };
159
-
160
- var bewit = Browser.client.bewit('', { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: 'xandyandz' });
161
- expect(bewit).to.equal('');
162
- done();
163
- });
164
-
165
- it('errors on invalid uri', function (done) {
166
-
167
- var credentials = {
168
- id: '123456',
169
- key: '2983d45yun89q',
170
- algorithm: 'sha256'
171
- };
172
-
173
- var bewit = Browser.client.bewit(5, { credentials: credentials, ttlSec: 300, localtimeOffsetMsec: 1356420407232 - Hawk.utils.now(), ext: 'xandyandz' });
174
- expect(bewit).to.equal('');
175
- done();
176
- });
177
-
178
- it('errors on invalid credentials (id)', function (done) {
179
-
180
- var credentials = {
181
- key: '2983d45yun89q',
182
- algorithm: 'sha256'
183
- };
184
-
185
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 3000, ext: 'xandyandz' });
186
- expect(bewit).to.equal('');
187
- done();
188
- });
189
-
190
- it('errors on missing credentials', function (done) {
191
-
192
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { ttlSec: 3000, ext: 'xandyandz' });
193
- expect(bewit).to.equal('');
194
- done();
195
- });
196
-
197
- it('errors on invalid credentials (key)', function (done) {
198
-
199
- var credentials = {
200
- id: '123456',
201
- algorithm: 'sha256'
202
- };
203
-
204
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 3000, ext: 'xandyandz' });
205
- expect(bewit).to.equal('');
206
- done();
207
- });
208
-
209
- it('errors on invalid algorithm', function (done) {
210
-
211
- var credentials = {
212
- id: '123456',
213
- key: '2983d45yun89q',
214
- algorithm: 'hmac-sha-0'
215
- };
216
-
217
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow', { credentials: credentials, ttlSec: 300, ext: 'xandyandz' });
218
- expect(bewit).to.equal('');
219
- done();
220
- });
221
-
222
- it('errors on missing options', function (done) {
223
-
224
- var credentials = {
225
- id: '123456',
226
- key: '2983d45yun89q',
227
- algorithm: 'hmac-sha-0'
228
- };
229
-
230
- var bewit = Browser.client.bewit('https://example.com/somewhere/over/the/rainbow');
231
- expect(bewit).to.equal('');
232
- done();
233
- });
234
- });
235
-
236
- it('generates a header then successfully parse it (configuration)', function (done) {
237
-
238
- var req = {
239
- method: 'GET',
240
- url: '/resource/4?filter=a',
241
- host: 'example.com',
242
- port: 8080
243
- };
244
-
245
- credentialsFunc('123456', function (err, credentials1) {
246
-
247
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data' }).field;
248
- expect(req.authorization).to.exist();
249
-
250
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
251
-
252
- expect(err).to.not.exist();
253
- expect(credentials2.user).to.equal('steve');
254
- expect(artifacts.ext).to.equal('some-app-data');
255
- done();
256
- });
257
- });
258
- });
259
-
260
- it('generates a header then successfully parse it (node request)', function (done) {
261
-
262
- var req = {
263
- method: 'POST',
264
- url: '/resource/4?filter=a',
265
- headers: {
266
- host: 'example.com:8080',
267
- 'content-type': 'text/plain;x=y'
268
- }
269
- };
270
-
271
- var payload = 'some not so random text';
272
-
273
- credentialsFunc('123456', function (err, credentials1) {
274
-
275
- var reqHeader = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });
276
- req.headers.authorization = reqHeader.field;
277
-
278
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
279
-
280
- expect(err).to.not.exist();
281
- expect(credentials2.user).to.equal('steve');
282
- expect(artifacts.ext).to.equal('some-app-data');
283
- expect(Hawk.server.authenticatePayload(payload, credentials2, artifacts, req.headers['content-type'])).to.equal(true);
284
-
285
- var res = {
286
- headers: {
287
- 'content-type': 'text/plain'
288
- },
289
- getResponseHeader: function (header) {
290
-
291
- return res.headers[header.toLowerCase()];
292
- }
293
- };
294
-
295
- res.headers['server-authorization'] = Hawk.server.header(credentials2, artifacts, { payload: 'some reply', contentType: 'text/plain', ext: 'response-specific' });
296
- expect(res.headers['server-authorization']).to.exist();
297
-
298
- expect(Browser.client.authenticate(res, credentials2, artifacts, { payload: 'some reply' })).to.equal(true);
299
- done();
300
- });
301
- });
302
- });
303
-
304
- it('generates a header then successfully parse it (browserify)', function (done) {
305
-
306
- var req = {
307
- method: 'POST',
308
- url: '/resource/4?filter=a',
309
- headers: {
310
- host: 'example.com:8080',
311
- 'content-type': 'text/plain;x=y'
312
- }
313
- };
314
-
315
- var payload = 'some not so random text';
316
-
317
- credentialsFunc('123456', function (err, credentials1) {
318
-
319
- var reqHeader = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });
320
- req.headers.authorization = reqHeader.field;
321
-
322
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
323
-
324
- expect(err).to.not.exist();
325
- expect(credentials2.user).to.equal('steve');
326
- expect(artifacts.ext).to.equal('some-app-data');
327
- expect(Hawk.server.authenticatePayload(payload, credentials2, artifacts, req.headers['content-type'])).to.equal(true);
328
-
329
- var res = {
330
- headers: {
331
- 'content-type': 'text/plain'
332
- },
333
- getHeader: function (header) {
334
-
335
- return res.headers[header.toLowerCase()];
336
- }
337
- };
338
-
339
- res.headers['server-authorization'] = Hawk.server.header(credentials2, artifacts, { payload: 'some reply', contentType: 'text/plain', ext: 'response-specific' });
340
- expect(res.headers['server-authorization']).to.exist();
341
-
342
- expect(Browser.client.authenticate(res, credentials2, artifacts, { payload: 'some reply' })).to.equal(true);
343
- done();
344
- });
345
- });
346
- });
347
-
348
- it('generates a header then successfully parse it (time offset)', function (done) {
349
-
350
- var req = {
351
- method: 'GET',
352
- url: '/resource/4?filter=a',
353
- host: 'example.com',
354
- port: 8080
355
- };
356
-
357
- credentialsFunc('123456', function (err, credentials1) {
358
-
359
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', localtimeOffsetMsec: 100000 }).field;
360
- expect(req.authorization).to.exist();
361
-
362
- Hawk.server.authenticate(req, credentialsFunc, { localtimeOffsetMsec: 100000 }, function (err, credentials2, artifacts) {
363
-
364
- expect(err).to.not.exist();
365
- expect(credentials2.user).to.equal('steve');
366
- expect(artifacts.ext).to.equal('some-app-data');
367
- done();
368
- });
369
- });
370
- });
371
-
372
- it('generates a header then successfully parse it (no server header options)', function (done) {
373
-
374
- var req = {
375
- method: 'POST',
376
- url: '/resource/4?filter=a',
377
- headers: {
378
- host: 'example.com:8080',
379
- 'content-type': 'text/plain;x=y'
380
- }
381
- };
382
-
383
- var payload = 'some not so random text';
384
-
385
- credentialsFunc('123456', function (err, credentials1) {
386
-
387
- var reqHeader = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });
388
- req.headers.authorization = reqHeader.field;
389
-
390
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
391
-
392
- expect(err).to.not.exist();
393
- expect(credentials2.user).to.equal('steve');
394
- expect(artifacts.ext).to.equal('some-app-data');
395
- expect(Hawk.server.authenticatePayload(payload, credentials2, artifacts, req.headers['content-type'])).to.equal(true);
396
-
397
- var res = {
398
- headers: {
399
- 'content-type': 'text/plain'
400
- },
401
- getResponseHeader: function (header) {
402
-
403
- return res.headers[header.toLowerCase()];
404
- }
405
- };
406
-
407
- res.headers['server-authorization'] = Hawk.server.header(credentials2, artifacts);
408
- expect(res.headers['server-authorization']).to.exist();
409
-
410
- expect(Browser.client.authenticate(res, credentials2, artifacts)).to.equal(true);
411
- done();
412
- });
413
- });
414
- });
415
-
416
- it('generates a header then successfully parse it (no server header)', function (done) {
417
-
418
- var req = {
419
- method: 'POST',
420
- url: '/resource/4?filter=a',
421
- headers: {
422
- host: 'example.com:8080',
423
- 'content-type': 'text/plain;x=y'
424
- }
425
- };
426
-
427
- var payload = 'some not so random text';
428
-
429
- credentialsFunc('123456', function (err, credentials1) {
430
-
431
- var reqHeader = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });
432
- req.headers.authorization = reqHeader.field;
433
-
434
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
435
-
436
- expect(err).to.not.exist();
437
- expect(credentials2.user).to.equal('steve');
438
- expect(artifacts.ext).to.equal('some-app-data');
439
- expect(Hawk.server.authenticatePayload(payload, credentials2, artifacts, req.headers['content-type'])).to.equal(true);
440
-
441
- var res = {
442
- headers: {
443
- 'content-type': 'text/plain'
444
- },
445
- getResponseHeader: function (header) {
446
-
447
- return res.headers[header.toLowerCase()];
448
- }
449
- };
450
-
451
- expect(Browser.client.authenticate(res, credentials2, artifacts)).to.equal(true);
452
- done();
453
- });
454
- });
455
- });
456
-
457
- it('generates a header with stale ts and successfully authenticate on second call', function (done) {
458
-
459
- var req = {
460
- method: 'GET',
461
- url: '/resource/4?filter=a',
462
- host: 'example.com',
463
- port: 8080
464
- };
465
-
466
- credentialsFunc('123456', function (err, credentials1) {
467
-
468
- Browser.utils.setNtpOffset(60 * 60 * 1000);
469
- var header = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data' });
470
- req.authorization = header.field;
471
- expect(req.authorization).to.exist();
472
-
473
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts2) {
474
-
475
- expect(err).to.exist();
476
- expect(err.message).to.equal('Stale timestamp');
477
-
478
- var res = {
479
- headers: {
480
- 'www-authenticate': err.output.headers['WWW-Authenticate']
481
- },
482
- getResponseHeader: function (lookup) {
483
-
484
- return res.headers[lookup.toLowerCase()];
485
- }
486
- };
487
-
488
- expect(Browser.utils.getNtpOffset()).to.equal(60 * 60 * 1000);
489
- expect(Browser.client.authenticate(res, credentials2, header.artifacts)).to.equal(true);
490
- expect(Browser.utils.getNtpOffset()).to.equal(0);
491
-
492
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials2, ext: 'some-app-data' }).field;
493
- expect(req.authorization).to.exist();
494
-
495
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials3, artifacts3) {
496
-
497
- expect(err).to.not.exist();
498
- expect(credentials3.user).to.equal('steve');
499
- expect(artifacts3.ext).to.equal('some-app-data');
500
- done();
501
- });
502
- });
503
- });
504
- });
505
-
506
- it('generates a header with stale ts and successfully authenticate on second call (manual localStorage)', function (done) {
507
-
508
- var req = {
509
- method: 'GET',
510
- url: '/resource/4?filter=a',
511
- host: 'example.com',
512
- port: 8080
513
- };
514
-
515
- credentialsFunc('123456', function (err, credentials1) {
516
-
517
- var localStorage = new Browser.internals.LocalStorage();
518
-
519
- Browser.utils.setStorage(localStorage);
520
-
521
- Browser.utils.setNtpOffset(60 * 60 * 1000);
522
- var header = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data' });
523
- req.authorization = header.field;
524
- expect(req.authorization).to.exist();
525
-
526
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts2) {
527
-
528
- expect(err).to.exist();
529
- expect(err.message).to.equal('Stale timestamp');
530
-
531
- var res = {
532
- headers: {
533
- 'www-authenticate': err.output.headers['WWW-Authenticate']
534
- },
535
- getResponseHeader: function (lookup) {
536
-
537
- return res.headers[lookup.toLowerCase()];
538
- }
539
- };
540
-
541
- expect(parseInt(localStorage.getItem('hawk_ntp_offset'))).to.equal(60 * 60 * 1000);
542
- expect(Browser.utils.getNtpOffset()).to.equal(60 * 60 * 1000);
543
- expect(Browser.client.authenticate(res, credentials2, header.artifacts)).to.equal(true);
544
- expect(Browser.utils.getNtpOffset()).to.equal(0);
545
- expect(parseInt(localStorage.getItem('hawk_ntp_offset'))).to.equal(0);
546
-
547
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials2, ext: 'some-app-data' }).field;
548
- expect(req.authorization).to.exist();
549
-
550
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials3, artifacts3) {
551
-
552
- expect(err).to.not.exist();
553
- expect(credentials3.user).to.equal('steve');
554
- expect(artifacts3.ext).to.equal('some-app-data');
555
- done();
556
- });
557
- });
558
- });
559
- });
560
-
561
- it('generates a header then fails to parse it (missing server header hash)', function (done) {
562
-
563
- var req = {
564
- method: 'POST',
565
- url: '/resource/4?filter=a',
566
- headers: {
567
- host: 'example.com:8080',
568
- 'content-type': 'text/plain;x=y'
569
- }
570
- };
571
-
572
- var payload = 'some not so random text';
573
-
574
- credentialsFunc('123456', function (err, credentials1) {
575
-
576
- var reqHeader = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', payload: payload, contentType: req.headers['content-type'] });
577
- req.headers.authorization = reqHeader.field;
578
-
579
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
580
-
581
- expect(err).to.not.exist();
582
- expect(credentials2.user).to.equal('steve');
583
- expect(artifacts.ext).to.equal('some-app-data');
584
- expect(Hawk.server.authenticatePayload(payload, credentials2, artifacts, req.headers['content-type'])).to.equal(true);
585
-
586
- var res = {
587
- headers: {
588
- 'content-type': 'text/plain'
589
- },
590
- getResponseHeader: function (header) {
591
-
592
- return res.headers[header.toLowerCase()];
593
- }
594
- };
595
-
596
- res.headers['server-authorization'] = Hawk.server.header(credentials2, artifacts);
597
- expect(res.headers['server-authorization']).to.exist();
598
-
599
- expect(Browser.client.authenticate(res, credentials2, artifacts, { payload: 'some reply' })).to.equal(false);
600
- done();
601
- });
602
- });
603
- });
604
-
605
- it('generates a header then successfully parse it (with hash)', function (done) {
606
-
607
- var req = {
608
- method: 'GET',
609
- url: '/resource/4?filter=a',
610
- host: 'example.com',
611
- port: 8080
612
- };
613
-
614
- credentialsFunc('123456', function (err, credentials1) {
615
-
616
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, payload: 'hola!', ext: 'some-app-data' }).field;
617
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
618
-
619
- expect(err).to.not.exist();
620
- expect(credentials2.user).to.equal('steve');
621
- expect(artifacts.ext).to.equal('some-app-data');
622
- done();
623
- });
624
- });
625
- });
626
-
627
- it('generates a header then successfully parse it then validate payload', function (done) {
628
-
629
- var req = {
630
- method: 'GET',
631
- url: '/resource/4?filter=a',
632
- host: 'example.com',
633
- port: 8080
634
- };
635
-
636
- credentialsFunc('123456', function (err, credentials1) {
637
-
638
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, payload: 'hola!', ext: 'some-app-data' }).field;
639
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
640
-
641
- expect(err).to.not.exist();
642
- expect(credentials2.user).to.equal('steve');
643
- expect(artifacts.ext).to.equal('some-app-data');
644
- expect(Hawk.server.authenticatePayload('hola!', credentials2, artifacts)).to.be.true();
645
- expect(Hawk.server.authenticatePayload('hello!', credentials2, artifacts)).to.be.false();
646
- done();
647
- });
648
- });
649
- });
650
-
651
- it('generates a header then successfully parse it (app)', function (done) {
652
-
653
- var req = {
654
- method: 'GET',
655
- url: '/resource/4?filter=a',
656
- host: 'example.com',
657
- port: 8080
658
- };
659
-
660
- credentialsFunc('123456', function (err, credentials1) {
661
-
662
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', app: 'asd23ased' }).field;
663
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
664
-
665
- expect(err).to.not.exist();
666
- expect(credentials2.user).to.equal('steve');
667
- expect(artifacts.ext).to.equal('some-app-data');
668
- expect(artifacts.app).to.equal('asd23ased');
669
- done();
670
- });
671
- });
672
- });
673
-
674
- it('generates a header then successfully parse it (app, dlg)', function (done) {
675
-
676
- var req = {
677
- method: 'GET',
678
- url: '/resource/4?filter=a',
679
- host: 'example.com',
680
- port: 8080
681
- };
682
-
683
- credentialsFunc('123456', function (err, credentials1) {
684
-
685
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data', app: 'asd23ased', dlg: '23434szr3q4d' }).field;
686
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
687
-
688
- expect(err).to.not.exist();
689
- expect(credentials2.user).to.equal('steve');
690
- expect(artifacts.ext).to.equal('some-app-data');
691
- expect(artifacts.app).to.equal('asd23ased');
692
- expect(artifacts.dlg).to.equal('23434szr3q4d');
693
- done();
694
- });
695
- });
696
- });
697
-
698
- it('generates a header then fail authentication due to bad hash', function (done) {
699
-
700
- var req = {
701
- method: 'GET',
702
- url: '/resource/4?filter=a',
703
- host: 'example.com',
704
- port: 8080
705
- };
706
-
707
- credentialsFunc('123456', function (err, credentials1) {
708
-
709
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, payload: 'hola!', ext: 'some-app-data' }).field;
710
- Hawk.server.authenticate(req, credentialsFunc, { payload: 'byebye!' }, function (err, credentials2, artifacts) {
711
-
712
- expect(err).to.exist();
713
- expect(err.output.payload.message).to.equal('Bad payload hash');
714
- done();
715
- });
716
- });
717
- });
718
-
719
- it('generates a header for one resource then fail to authenticate another', function (done) {
720
-
721
- var req = {
722
- method: 'GET',
723
- url: '/resource/4?filter=a',
724
- host: 'example.com',
725
- port: 8080
726
- };
727
-
728
- credentialsFunc('123456', function (err, credentials1) {
729
-
730
- req.authorization = Browser.client.header('http://example.com:8080/resource/4?filter=a', req.method, { credentials: credentials1, ext: 'some-app-data' }).field;
731
- req.url = '/something/else';
732
-
733
- Hawk.server.authenticate(req, credentialsFunc, {}, function (err, credentials2, artifacts) {
734
-
735
- expect(err).to.exist();
736
- expect(credentials2).to.exist();
737
- done();
738
- });
739
- });
740
- });
741
-
742
- describe('client', function () {
743
-
744
- describe('header()', function () {
745
-
746
- it('returns a valid authorization header (sha1)', function (done) {
747
-
748
- var credentials = {
749
- id: '123456',
750
- key: '2983d45yun89q',
751
- algorithm: 'sha1'
752
- };
753
-
754
- var header = Browser.client.header('http://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about' }).field;
755
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="bsvY3IfUllw6V5rvk4tStEvpBhE=", ext="Bazinga!", mac="qbf1ZPG/r/e06F4ht+T77LXi5vw="');
756
- done();
757
- });
758
-
759
- it('returns a valid authorization header (sha256)', function (done) {
760
-
761
- var credentials = {
762
- id: '123456',
763
- key: '2983d45yun89q',
764
- algorithm: 'sha256'
765
- };
766
-
767
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' }).field;
768
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="2QfCt3GuY9HQnHWyWD3wX68ZOKbynqlfYmuO2ZBRqtY=", ext="Bazinga!", mac="q1CwFoSHzPZSkbIvl0oYlD+91rBUEvFk763nMjMndj8="');
769
- done();
770
- });
771
-
772
- it('returns a valid authorization header (empty payload)', function (done) {
773
-
774
- var credentials = {
775
- id: '123456',
776
- key: '2983d45yun89q',
777
- algorithm: 'sha1'
778
- };
779
-
780
- var header = Browser.client.header('http://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207, nonce: 'Ygvqdz', payload: '' }).field;
781
- expect(header).to.equal('Hawk id=\"123456\", ts=\"1353809207\", nonce=\"Ygvqdz\", hash=\"404ghL7K+hfyhByKKejFBRGgTjU=\", ext=\"Bazinga!\", mac=\"Bh1sj1DOfFRWOdi3ww52nLCJdBE=\"');
782
- done();
783
- });
784
-
785
- it('returns a valid authorization header (no ext)', function (done) {
786
-
787
- var credentials = {
788
- id: '123456',
789
- key: '2983d45yun89q',
790
- algorithm: 'sha256'
791
- };
792
-
793
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' }).field;
794
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="2QfCt3GuY9HQnHWyWD3wX68ZOKbynqlfYmuO2ZBRqtY=", mac="HTgtd0jPI6E4izx8e4OHdO36q00xFCU0FolNq3RiCYs="');
795
- done();
796
- });
797
-
798
- it('returns a valid authorization header (null ext)', function (done) {
799
-
800
- var credentials = {
801
- id: '123456',
802
- key: '2983d45yun89q',
803
- algorithm: 'sha256'
804
- };
805
-
806
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain', ext: null }).field;
807
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="2QfCt3GuY9HQnHWyWD3wX68ZOKbynqlfYmuO2ZBRqtY=", mac="HTgtd0jPI6E4izx8e4OHdO36q00xFCU0FolNq3RiCYs="');
808
- done();
809
- });
810
-
811
- it('returns a valid authorization header (uri object)', function (done) {
812
-
813
- var credentials = {
814
- id: '123456',
815
- key: '2983d45yun89q',
816
- algorithm: 'sha256'
817
- };
818
-
819
- var uri = Browser.utils.parseUri('https://example.net/somewhere/over/the/rainbow');
820
- var header = Browser.client.header(uri, 'POST', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' }).field;
821
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="2QfCt3GuY9HQnHWyWD3wX68ZOKbynqlfYmuO2ZBRqtY=", mac="HTgtd0jPI6E4izx8e4OHdO36q00xFCU0FolNq3RiCYs="');
822
- done();
823
- });
824
-
825
- it('errors on missing options', function (done) {
826
-
827
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST');
828
- expect(header.field).to.equal('');
829
- expect(header.err).to.equal('Invalid argument type');
830
- done();
831
- });
832
-
833
- it('errors on empty uri', function (done) {
834
-
835
- var credentials = {
836
- id: '123456',
837
- key: '2983d45yun89q',
838
- algorithm: 'sha256'
839
- };
840
-
841
- var header = Browser.client.header('', 'POST', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' });
842
- expect(header.field).to.equal('');
843
- expect(header.err).to.equal('Invalid argument type');
844
- done();
845
- });
846
-
847
- it('errors on invalid uri', function (done) {
848
-
849
- var credentials = {
850
- id: '123456',
851
- key: '2983d45yun89q',
852
- algorithm: 'sha256'
853
- };
854
-
855
- var header = Browser.client.header(4, 'POST', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' });
856
- expect(header.field).to.equal('');
857
- expect(header.err).to.equal('Invalid argument type');
858
- done();
859
- });
860
-
861
- it('errors on missing method', function (done) {
862
-
863
- var credentials = {
864
- id: '123456',
865
- key: '2983d45yun89q',
866
- algorithm: 'sha256'
867
- };
868
-
869
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', '', { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' });
870
- expect(header.field).to.equal('');
871
- expect(header.err).to.equal('Invalid argument type');
872
- done();
873
- });
874
-
875
- it('errors on invalid method', function (done) {
876
-
877
- var credentials = {
878
- id: '123456',
879
- key: '2983d45yun89q',
880
- algorithm: 'sha256'
881
- };
882
-
883
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 5, { credentials: credentials, timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' });
884
- expect(header.field).to.equal('');
885
- expect(header.err).to.equal('Invalid argument type');
886
- done();
887
- });
888
-
889
- it('errors on missing credentials', function (done) {
890
-
891
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { ext: 'Bazinga!', timestamp: 1353809207 });
892
- expect(header.field).to.equal('');
893
- expect(header.err).to.equal('Invalid credentials object');
894
- done();
895
- });
896
-
897
- it('errors on invalid credentials (id)', function (done) {
898
-
899
- var credentials = {
900
- key: '2983d45yun89q',
901
- algorithm: 'sha256'
902
- };
903
-
904
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207 });
905
- expect(header.field).to.equal('');
906
- expect(header.err).to.equal('Invalid credentials object');
907
- done();
908
- });
909
-
910
- it('errors on invalid credentials (key)', function (done) {
911
-
912
- var credentials = {
913
- id: '123456',
914
- algorithm: 'sha256'
915
- };
916
-
917
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207 });
918
- expect(header.field).to.equal('');
919
- expect(header.err).to.equal('Invalid credentials object');
920
- done();
921
- });
922
-
923
- it('errors on invalid algorithm', function (done) {
924
-
925
- var credentials = {
926
- id: '123456',
927
- key: '2983d45yun89q',
928
- algorithm: 'hmac-sha-0'
929
- };
930
-
931
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', { credentials: credentials, payload: 'something, anything!', ext: 'Bazinga!', timestamp: 1353809207 });
932
- expect(header.field).to.equal('');
933
- expect(header.err).to.equal('Unknown algorithm');
934
- done();
935
- });
936
-
937
- it('uses a pre-calculated payload hash', function (done) {
938
-
939
- var credentials = {
940
- id: '123456',
941
- key: '2983d45yun89q',
942
- algorithm: 'sha256'
943
- };
944
-
945
- var options = { credentials: credentials, ext: 'Bazinga!', timestamp: 1353809207, nonce: 'Ygvqdz', payload: 'something to write about', contentType: 'text/plain' };
946
- options.hash = Browser.crypto.calculatePayloadHash(options.payload, credentials.algorithm, options.contentType);
947
- var header = Browser.client.header('https://example.net/somewhere/over/the/rainbow', 'POST', options).field;
948
- expect(header).to.equal('Hawk id="123456", ts="1353809207", nonce="Ygvqdz", hash="2QfCt3GuY9HQnHWyWD3wX68ZOKbynqlfYmuO2ZBRqtY=", ext="Bazinga!", mac="q1CwFoSHzPZSkbIvl0oYlD+91rBUEvFk763nMjMndj8="');
949
- done();
950
- });
951
- });
952
-
953
- describe('authenticate()', function () {
954
-
955
- it('skips tsm validation when missing ts', function (done) {
956
-
957
- var res = {
958
- headers: {
959
- 'www-authenticate': 'Hawk error="Stale timestamp"'
960
- },
961
- getResponseHeader: function (header) {
962
-
963
- return res.headers[header.toLowerCase()];
964
- }
965
- };
966
-
967
- var credentials = {
968
- id: '123456',
969
- key: 'werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn',
970
- algorithm: 'sha256',
971
- user: 'steve'
972
- };
973
-
974
- var artifacts = {
975
- ts: 1402135580,
976
- nonce: 'iBRB6t',
977
- method: 'GET',
978
- resource: '/resource/4?filter=a',
979
- host: 'example.com',
980
- port: '8080',
981
- ext: 'some-app-data'
982
- };
983
-
984
- expect(Browser.client.authenticate(res, credentials, artifacts)).to.equal(true);
985
- done();
986
- });
987
-
988
- it('returns false on invalid header', function (done) {
989
-
990
- var res = {
991
- headers: {
992
- 'server-authorization': 'Hawk mac="abc", bad="xyz"'
993
- },
994
- getResponseHeader: function (header) {
995
-
996
- return res.headers[header.toLowerCase()];
997
- }
998
- };
999
-
1000
- expect(Browser.client.authenticate(res, {})).to.equal(false);
1001
- done();
1002
- });
1003
-
1004
- it('returns false on invalid mac', function (done) {
1005
-
1006
- var res = {
1007
- headers: {
1008
- 'content-type': 'text/plain',
1009
- 'server-authorization': 'Hawk mac="_IJRsMl/4oL+nn+vKoeVZPdCHXB4yJkNnBbTbHFZUYE=", hash="f9cDF/TDm7TkYRLnGwRMfeDzT6LixQVLvrIKhh0vgmM=", ext="response-specific"'
1010
- },
1011
- getResponseHeader: function (header) {
1012
-
1013
- return res.headers[header.toLowerCase()];
1014
- }
1015
- };
1016
-
1017
- var artifacts = {
1018
- method: 'POST',
1019
- host: 'example.com',
1020
- port: '8080',
1021
- resource: '/resource/4?filter=a',
1022
- ts: '1362336900',
1023
- nonce: 'eb5S_L',
1024
- hash: 'nJjkVtBE5Y/Bk38Aiokwn0jiJxt/0S2WRSUwWLCf5xk=',
1025
- ext: 'some-app-data',
1026
- app: undefined,
1027
- dlg: undefined,
1028
- mac: 'BlmSe8K+pbKIb6YsZCnt4E1GrYvY1AaYayNR82dGpIk=',
1029
- id: '123456'
1030
- };
1031
-
1032
- var credentials = {
1033
- id: '123456',
1034
- key: 'werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn',
1035
- algorithm: 'sha256',
1036
- user: 'steve'
1037
- };
1038
-
1039
- expect(Browser.client.authenticate(res, credentials, artifacts)).to.equal(false);
1040
- done();
1041
- });
1042
-
1043
- it('returns true on ignoring hash', function (done) {
1044
-
1045
- var res = {
1046
- headers: {
1047
- 'content-type': 'text/plain',
1048
- 'server-authorization': 'Hawk mac="XIJRsMl/4oL+nn+vKoeVZPdCHXB4yJkNnBbTbHFZUYE=", hash="f9cDF/TDm7TkYRLnGwRMfeDzT6LixQVLvrIKhh0vgmM=", ext="response-specific"'
1049
- },
1050
- getResponseHeader: function (header) {
1051
-
1052
- return res.headers[header.toLowerCase()];
1053
- }
1054
- };
1055
-
1056
- var artifacts = {
1057
- method: 'POST',
1058
- host: 'example.com',
1059
- port: '8080',
1060
- resource: '/resource/4?filter=a',
1061
- ts: '1362336900',
1062
- nonce: 'eb5S_L',
1063
- hash: 'nJjkVtBE5Y/Bk38Aiokwn0jiJxt/0S2WRSUwWLCf5xk=',
1064
- ext: 'some-app-data',
1065
- app: undefined,
1066
- dlg: undefined,
1067
- mac: 'BlmSe8K+pbKIb6YsZCnt4E1GrYvY1AaYayNR82dGpIk=',
1068
- id: '123456'
1069
- };
1070
-
1071
- var credentials = {
1072
- id: '123456',
1073
- key: 'werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn',
1074
- algorithm: 'sha256',
1075
- user: 'steve'
1076
- };
1077
-
1078
- expect(Browser.client.authenticate(res, credentials, artifacts)).to.equal(true);
1079
- done();
1080
- });
1081
-
1082
- it('errors on invalid WWW-Authenticate header format', function (done) {
1083
-
1084
- var res = {
1085
- headers: {
1086
- 'www-authenticate': 'Hawk ts="1362346425875", tsm="PhwayS28vtnn3qbv0mqRBYSXebN/zggEtucfeZ620Zo=", x="Stale timestamp"'
1087
- },
1088
- getResponseHeader: function (header) {
1089
-
1090
- return res.headers[header.toLowerCase()];
1091
- }
1092
- };
1093
-
1094
- expect(Browser.client.authenticate(res, {})).to.equal(false);
1095
- done();
1096
- });
1097
-
1098
- it('errors on invalid WWW-Authenticate header format', function (done) {
1099
-
1100
- var credentials = {
1101
- id: '123456',
1102
- key: 'werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn',
1103
- algorithm: 'sha256',
1104
- user: 'steve'
1105
- };
1106
-
1107
- var res = {
1108
- headers: {
1109
- 'www-authenticate': 'Hawk ts="1362346425875", tsm="hwayS28vtnn3qbv0mqRBYSXebN/zggEtucfeZ620Zo=", error="Stale timestamp"'
1110
- },
1111
- getResponseHeader: function (header) {
1112
-
1113
- return res.headers[header.toLowerCase()];
1114
- }
1115
- };
1116
-
1117
- expect(Browser.client.authenticate(res, credentials)).to.equal(false);
1118
- done();
1119
- });
1120
- });
1121
-
1122
- describe('message()', function () {
1123
-
1124
- it('generates an authorization then successfully parse it', function (done) {
1125
-
1126
- credentialsFunc('123456', function (err, credentials1) {
1127
-
1128
- var auth = Browser.client.message('example.com', 8080, 'some message', { credentials: credentials1 });
1129
- expect(auth).to.exist();
1130
-
1131
- Hawk.server.authenticateMessage('example.com', 8080, 'some message', auth, credentialsFunc, {}, function (err, credentials2) {
1132
-
1133
- expect(err).to.not.exist();
1134
- expect(credentials2.user).to.equal('steve');
1135
- done();
1136
- });
1137
- });
1138
- });
1139
-
1140
- it('generates an authorization using custom nonce/timestamp', function (done) {
1141
-
1142
- credentialsFunc('123456', function (err, credentials) {
1143
-
1144
- var auth = Browser.client.message('example.com', 8080, 'some message', { credentials: credentials, nonce: 'abc123', timestamp: 1398536270957 });
1145
- expect(auth).to.exist();
1146
- expect(auth.nonce).to.equal('abc123');
1147
- expect(auth.ts).to.equal(1398536270957);
1148
- done();
1149
- });
1150
- });
1151
-
1152
- it('errors on missing host', function (done) {
1153
-
1154
- credentialsFunc('123456', function (err, credentials) {
1155
-
1156
- var auth = Browser.client.message(null, 8080, 'some message', { credentials: credentials });
1157
- expect(auth).to.not.exist();
1158
- done();
1159
- });
1160
- });
1161
-
1162
- it('errors on invalid host', function (done) {
1163
-
1164
- credentialsFunc('123456', function (err, credentials) {
1165
-
1166
- var auth = Browser.client.message(5, 8080, 'some message', { credentials: credentials });
1167
- expect(auth).to.not.exist();
1168
- done();
1169
- });
1170
- });
1171
-
1172
- it('errors on missing port', function (done) {
1173
-
1174
- credentialsFunc('123456', function (err, credentials) {
1175
-
1176
- var auth = Browser.client.message('example.com', 0, 'some message', { credentials: credentials });
1177
- expect(auth).to.not.exist();
1178
- done();
1179
- });
1180
- });
1181
-
1182
- it('errors on invalid port', function (done) {
1183
-
1184
- credentialsFunc('123456', function (err, credentials) {
1185
-
1186
- var auth = Browser.client.message('example.com', 'a', 'some message', { credentials: credentials });
1187
- expect(auth).to.not.exist();
1188
- done();
1189
- });
1190
- });
1191
-
1192
- it('errors on missing message', function (done) {
1193
-
1194
- credentialsFunc('123456', function (err, credentials) {
1195
-
1196
- var auth = Browser.client.message('example.com', 8080, undefined, { credentials: credentials });
1197
- expect(auth).to.not.exist();
1198
- done();
1199
- });
1200
- });
1201
-
1202
- it('errors on null message', function (done) {
1203
-
1204
- credentialsFunc('123456', function (err, credentials) {
1205
-
1206
- var auth = Browser.client.message('example.com', 8080, null, { credentials: credentials });
1207
- expect(auth).to.not.exist();
1208
- done();
1209
- });
1210
- });
1211
-
1212
- it('errors on invalid message', function (done) {
1213
-
1214
- credentialsFunc('123456', function (err, credentials) {
1215
-
1216
- var auth = Browser.client.message('example.com', 8080, 5, { credentials: credentials });
1217
- expect(auth).to.not.exist();
1218
- done();
1219
- });
1220
- });
1221
-
1222
- it('errors on missing credentials', function (done) {
1223
-
1224
- var auth = Browser.client.message('example.com', 8080, 'some message', {});
1225
- expect(auth).to.not.exist();
1226
- done();
1227
- });
1228
-
1229
- it('errors on missing options', function (done) {
1230
-
1231
- var auth = Browser.client.message('example.com', 8080, 'some message');
1232
- expect(auth).to.not.exist();
1233
- done();
1234
- });
1235
-
1236
- it('errors on invalid credentials (id)', function (done) {
1237
-
1238
- credentialsFunc('123456', function (err, credentials) {
1239
-
1240
- var creds = Hoek.clone(credentials);
1241
- delete creds.id;
1242
- var auth = Browser.client.message('example.com', 8080, 'some message', { credentials: creds });
1243
- expect(auth).to.not.exist();
1244
- done();
1245
- });
1246
- });
1247
-
1248
- it('errors on invalid credentials (key)', function (done) {
1249
-
1250
- credentialsFunc('123456', function (err, credentials) {
1251
-
1252
- var creds = Hoek.clone(credentials);
1253
- delete creds.key;
1254
- var auth = Browser.client.message('example.com', 8080, 'some message', { credentials: creds });
1255
- expect(auth).to.not.exist();
1256
- done();
1257
- });
1258
- });
1259
-
1260
- it('errors on invalid algorithm', function (done) {
1261
-
1262
- credentialsFunc('123456', function (err, credentials) {
1263
-
1264
- var creds = Hoek.clone(credentials);
1265
- creds.algorithm = 'blah';
1266
- var auth = Browser.client.message('example.com', 8080, 'some message', { credentials: creds });
1267
- expect(auth).to.not.exist();
1268
- done();
1269
- });
1270
- });
1271
- });
1272
-
1273
- describe('authenticateTimestamp()', function (done) {
1274
-
1275
- it('validates a timestamp', function (done) {
1276
-
1277
- credentialsFunc('123456', function (err, credentials) {
1278
-
1279
- var tsm = Hawk.crypto.timestampMessage(credentials);
1280
- expect(Browser.client.authenticateTimestamp(tsm, credentials)).to.equal(true);
1281
- done();
1282
- });
1283
- });
1284
-
1285
- it('validates a timestamp without updating local time', function (done) {
1286
-
1287
- credentialsFunc('123456', function (err, credentials) {
1288
-
1289
- var offset = Browser.utils.getNtpOffset();
1290
- var tsm = Hawk.crypto.timestampMessage(credentials, 10000);
1291
- expect(Browser.client.authenticateTimestamp(tsm, credentials, false)).to.equal(true);
1292
- expect(offset).to.equal(Browser.utils.getNtpOffset());
1293
- done();
1294
- });
1295
- });
1296
-
1297
- it('detects a bad timestamp', function (done) {
1298
-
1299
- credentialsFunc('123456', function (err, credentials) {
1300
-
1301
- var tsm = Hawk.crypto.timestampMessage(credentials);
1302
- tsm.ts = 4;
1303
- expect(Browser.client.authenticateTimestamp(tsm, credentials)).to.equal(false);
1304
- done();
1305
- });
1306
- });
1307
- });
1308
- });
1309
-
1310
- describe('internals', function () {
1311
-
1312
- describe('LocalStorage', function () {
1313
-
1314
- it('goes through the full lifecycle', function (done) {
1315
-
1316
- var storage = new Browser.internals.LocalStorage();
1317
- expect(storage.length).to.equal(0);
1318
- expect(storage.getItem('a')).to.equal(null);
1319
- storage.setItem('a', 5);
1320
- expect(storage.length).to.equal(1);
1321
- expect(storage.key()).to.equal('a');
1322
- expect(storage.key(0)).to.equal('a');
1323
- expect(storage.getItem('a')).to.equal('5');
1324
- storage.setItem('b', 'test');
1325
- expect(storage.key()).to.equal('a');
1326
- expect(storage.key(0)).to.equal('a');
1327
- expect(storage.key(1)).to.equal('b');
1328
- expect(storage.length).to.equal(2);
1329
- expect(storage.getItem('b')).to.equal('test');
1330
- storage.removeItem('a');
1331
- expect(storage.length).to.equal(1);
1332
- expect(storage.getItem('a')).to.equal(null);
1333
- expect(storage.getItem('b')).to.equal('test');
1334
- storage.clear();
1335
- expect(storage.length).to.equal(0);
1336
- expect(storage.getItem('a')).to.equal(null);
1337
- expect(storage.getItem('b')).to.equal(null);
1338
- done();
1339
- });
1340
- });
1341
- });
1342
-
1343
- describe('utils', function () {
1344
-
1345
- describe('setStorage()', function () {
1346
-
1347
- it('sets storage for the first time', function (done) {
1348
-
1349
- Browser.utils.storage = new Browser.internals.LocalStorage(); // Reset state
1350
-
1351
- expect(Browser.utils.storage.getItem('hawk_ntp_offset')).to.not.exist();
1352
- Browser.utils.storage.setItem('test', '1');
1353
- Browser.utils.setStorage(new Browser.internals.LocalStorage());
1354
- expect(Browser.utils.storage.getItem('test')).to.not.exist();
1355
- Browser.utils.storage.setItem('test', '2');
1356
- expect(Browser.utils.storage.getItem('test')).to.equal('2');
1357
- done();
1358
- });
1359
- });
1360
-
1361
- describe('setNtpOffset()', function (done) {
1362
-
1363
- it('catches localStorage errors', { parallel: false }, function (done) {
1364
-
1365
- var orig = Browser.utils.storage.setItem;
1366
- var consoleOrig = console.error;
1367
- var count = 0;
1368
- console.error = function () {
1369
-
1370
- if (count++ === 2) {
1371
-
1372
- console.error = consoleOrig;
1373
- }
1374
- };
1375
-
1376
- Browser.utils.storage.setItem = function () {
1377
-
1378
- Browser.utils.storage.setItem = orig;
1379
- throw new Error();
1380
- };
1381
-
1382
- expect(function () {
1383
-
1384
- Browser.utils.setNtpOffset(100);
1385
- }).not.to.throw();
1386
-
1387
- done();
1388
- });
1389
- });
1390
-
1391
- describe('parseAuthorizationHeader()', function (done) {
1392
-
1393
- it('returns null on missing header', function (done) {
1394
-
1395
- expect(Browser.utils.parseAuthorizationHeader()).to.equal(null);
1396
- done();
1397
- });
1398
-
1399
- it('returns null on bad header syntax (structure)', function (done) {
1400
-
1401
- expect(Browser.utils.parseAuthorizationHeader('Hawk')).to.equal(null);
1402
- done();
1403
- });
1404
-
1405
- it('returns null on bad header syntax (parts)', function (done) {
1406
-
1407
- expect(Browser.utils.parseAuthorizationHeader(' ')).to.equal(null);
1408
- done();
1409
- });
1410
-
1411
- it('returns null on bad scheme name', function (done) {
1412
-
1413
- expect(Browser.utils.parseAuthorizationHeader('Basic asdasd')).to.equal(null);
1414
- done();
1415
- });
1416
-
1417
- it('returns null on bad attribute value', function (done) {
1418
-
1419
- expect(Browser.utils.parseAuthorizationHeader('Hawk test="\t"', ['test'])).to.equal(null);
1420
- done();
1421
- });
1422
-
1423
- it('returns null on duplicated attribute', function (done) {
1424
-
1425
- expect(Browser.utils.parseAuthorizationHeader('Hawk test="a", test="b"', ['test'])).to.equal(null);
1426
- done();
1427
- });
1428
- });
1429
-
1430
- describe('parseUri()', function () {
1431
-
1432
- it('returns empty object on invalid', function (done) {
1433
-
1434
- var uri = Browser.utils.parseUri('ftp');
1435
- expect(uri).to.deep.equal({ host: '', port: '', resource: '' });
1436
- done();
1437
- });
1438
-
1439
- it('returns empty port when unknown scheme', function (done) {
1440
-
1441
- var uri = Browser.utils.parseUri('ftp://example.com');
1442
- expect(uri.port).to.equal('');
1443
- done();
1444
- });
1445
-
1446
- it('returns default port when missing', function (done) {
1447
-
1448
- var uri = Browser.utils.parseUri('http://example.com');
1449
- expect(uri.port).to.equal('80');
1450
- done();
1451
- });
1452
-
1453
- it('handles unusual characters correctly', function (done) {
1454
-
1455
- var parts = {
1456
- protocol: 'http+vnd.my-extension',
1457
- user: 'user!$&\'()*+,;=%40my-domain.com',
1458
- password: 'pass!$&\'()*+,;=%40:word',
1459
- hostname: 'foo-bar.com',
1460
- port: '99',
1461
- pathname: '/path/%40/!$&\'()*+,;=:@/',
1462
- query: 'query%40/!$&\'()*+,;=:@/?',
1463
- fragment: 'fragm%40/!$&\'()*+,;=:@/?'
1464
- };
1465
-
1466
- parts.userInfo = parts.user + ':' + parts.password;
1467
- parts.authority = parts.userInfo + '@' + parts.hostname + ':' + parts.port;
1468
- parts.relative = parts.pathname + '?' + parts.query;
1469
- parts.resource = parts.relative + '#' + parts.fragment;
1470
- parts.source = parts.protocol + '://' + parts.authority + parts.resource;
1471
-
1472
- var uri = Browser.utils.parseUri(parts.source);
1473
- expect(uri.host).to.equal('foo-bar.com');
1474
- expect(uri.port).to.equal('99');
1475
- expect(uri.resource).to.equal(parts.pathname + '?' + parts.query);
1476
- done();
1477
- });
1478
- });
1479
-
1480
- var str = 'https://www.google.ca/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=url';
1481
- var base64str = 'aHR0cHM6Ly93d3cuZ29vZ2xlLmNhL3dlYmhwP3NvdXJjZWlkPWNocm9tZS1pbnN0YW50Jmlvbj0xJmVzcHY9MiZpZT1VVEYtOCNxPXVybA';
1482
-
1483
- describe('base64urlEncode()', function () {
1484
-
1485
- it('should base64 URL-safe decode a string', function (done) {
1486
-
1487
- expect(Browser.utils.base64urlEncode(str)).to.equal(base64str);
1488
- done();
1489
- });
1490
- });
1491
- });
1492
- });