fsevents 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (322) hide show
  1. package/node_modules/ansi/History.md +7 -0
  2. package/node_modules/ansi/LICENSE +24 -0
  3. package/node_modules/ansi/lib/ansi.js +2 -2
  4. package/node_modules/ansi/package.json +15 -10
  5. package/node_modules/ansi-regex/package.json +1 -0
  6. package/node_modules/ansi-styles/package.json +1 -0
  7. package/node_modules/are-we-there-yet/.npmignore +2 -0
  8. package/node_modules/are-we-there-yet/index.js +20 -18
  9. package/node_modules/are-we-there-yet/package.json +15 -13
  10. package/node_modules/asn1/package.json +3 -1
  11. package/node_modules/assert-plus/README.md +50 -21
  12. package/node_modules/assert-plus/assert.js +168 -207
  13. package/node_modules/assert-plus/package.json +55 -15
  14. package/node_modules/async/README.md +86 -4
  15. package/node_modules/async/dist/async.js +4 -3
  16. package/node_modules/async/dist/async.min.js +1 -1
  17. package/node_modules/async/lib/async.js +4 -3
  18. package/node_modules/async/package.json +10 -10
  19. package/node_modules/aws-sign2/package.json +1 -0
  20. package/node_modules/aws4/.npmignore +3 -0
  21. package/node_modules/aws4/.tern-port +1 -0
  22. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → aws4}/.travis.yml +2 -0
  23. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md → aws4/LICENSE} +1 -3
  24. package/node_modules/aws4/README.md +510 -0
  25. package/node_modules/aws4/aws4.js +313 -0
  26. package/node_modules/aws4/example.js +372 -0
  27. package/node_modules/aws4/node_modules/lru-cache/.npmignore +1 -0
  28. package/node_modules/aws4/node_modules/lru-cache/.travis.yml +8 -0
  29. package/node_modules/aws4/node_modules/lru-cache/CONTRIBUTORS +14 -0
  30. package/node_modules/aws4/node_modules/lru-cache/README.md +137 -0
  31. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +334 -0
  32. package/node_modules/aws4/node_modules/lru-cache/package.json +66 -0
  33. package/node_modules/aws4/node_modules/lru-cache/test/basic.js +396 -0
  34. package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +120 -0
  35. package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +51 -0
  36. package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +216 -0
  37. package/node_modules/aws4/package.json +113 -0
  38. package/node_modules/bl/.travis.yml +5 -6
  39. package/node_modules/bl/bl.js +5 -0
  40. package/node_modules/bl/package.json +16 -13
  41. package/node_modules/bl/test/test.js +554 -6
  42. package/node_modules/block-stream/package.json +1 -0
  43. package/node_modules/boom/package.json +1 -0
  44. package/node_modules/caseless/package.json +1 -0
  45. package/node_modules/chalk/package.json +1 -0
  46. package/node_modules/combined-stream/package.json +1 -0
  47. package/node_modules/commander/package.json +1 -0
  48. package/node_modules/core-util-is/package.json +2 -2
  49. package/node_modules/cryptiles/package.json +1 -0
  50. package/node_modules/dashdash/README.md +70 -7
  51. package/node_modules/dashdash/etc/dashdash.bash_completion.in +388 -0
  52. package/node_modules/dashdash/lib/dashdash.js +202 -2
  53. package/node_modules/dashdash/package.json +12 -9
  54. package/node_modules/debug/.jshintrc +3 -0
  55. package/node_modules/debug/.npmignore +6 -0
  56. package/node_modules/debug/History.md +195 -0
  57. package/node_modules/debug/Makefile +36 -0
  58. package/node_modules/debug/Readme.md +86 -13
  59. package/node_modules/debug/bower.json +28 -0
  60. package/node_modules/debug/browser.js +168 -0
  61. package/node_modules/debug/component.json +19 -0
  62. package/node_modules/debug/debug.js +132 -72
  63. package/node_modules/debug/node.js +209 -0
  64. package/node_modules/debug/package.json +32 -22
  65. package/node_modules/deep-extend/README.md +51 -50
  66. package/node_modules/deep-extend/package.json +14 -16
  67. package/node_modules/delayed-stream/package.json +1 -0
  68. package/node_modules/delegates/History.md +6 -0
  69. package/node_modules/delegates/License +20 -0
  70. package/node_modules/delegates/package.json +17 -13
  71. package/node_modules/ecc-jsbn/package.json +3 -1
  72. package/node_modules/escape-string-regexp/package.json +2 -2
  73. package/node_modules/extend/package.json +1 -0
  74. package/node_modules/extsprintf/package.json +4 -2
  75. package/node_modules/forever-agent/package.json +1 -0
  76. package/node_modules/form-data/package.json +1 -0
  77. package/node_modules/fstream/package.json +1 -0
  78. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  79. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  80. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  81. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +1 -0
  82. package/node_modules/fstream-ignore/package.json +3 -1
  83. package/node_modules/gauge/package.json +14 -12
  84. package/node_modules/gauge/progress-bar.js +4 -5
  85. package/node_modules/gauge/test/progress-bar.js +1 -1
  86. package/node_modules/generate-function/package.json +1 -0
  87. package/node_modules/generate-object-property/package.json +1 -0
  88. package/node_modules/graceful-fs/README.md +17 -0
  89. package/node_modules/graceful-fs/graceful-fs.js +2 -0
  90. package/node_modules/graceful-fs/package.json +16 -11
  91. package/node_modules/graceful-readlink/package.json +1 -0
  92. package/node_modules/har-validator/README.md +45 -122
  93. package/node_modules/har-validator/package.json +16 -16
  94. package/node_modules/has-ansi/package.json +1 -0
  95. package/node_modules/has-unicode/README.md +6 -3
  96. package/node_modules/has-unicode/index.js +7 -3
  97. package/node_modules/has-unicode/package.json +15 -13
  98. package/node_modules/has-unicode/test/index.js +1 -1
  99. package/node_modules/hawk/README.md +634 -634
  100. package/node_modules/hawk/bower.json +24 -24
  101. package/node_modules/hawk/component.json +18 -18
  102. package/node_modules/hawk/dist/client.js +343 -340
  103. package/node_modules/hawk/example/usage.js +78 -78
  104. package/node_modules/hawk/lib/browser.js +637 -637
  105. package/node_modules/hawk/lib/client.js +369 -369
  106. package/node_modules/hawk/lib/crypto.js +126 -126
  107. package/node_modules/hawk/lib/index.js +15 -15
  108. package/node_modules/hawk/lib/server.js +548 -540
  109. package/node_modules/hawk/lib/utils.js +184 -164
  110. package/node_modules/hawk/package.json +9 -8
  111. package/node_modules/hawk/test/browser.js +1492 -1492
  112. package/node_modules/hawk/test/client.js +440 -440
  113. package/node_modules/hawk/test/crypto.js +70 -70
  114. package/node_modules/hawk/test/index.js +378 -378
  115. package/node_modules/hawk/test/readme.js +95 -95
  116. package/node_modules/hawk/test/server.js +1329 -1302
  117. package/node_modules/hawk/test/uri.js +838 -838
  118. package/node_modules/hawk/test/utils.js +149 -121
  119. package/node_modules/hoek/package.json +1 -0
  120. package/node_modules/http-signature/CHANGES.md +7 -0
  121. package/node_modules/http-signature/http_signing.md +71 -3
  122. package/node_modules/http-signature/lib/signer.js +5 -0
  123. package/node_modules/http-signature/package.json +13 -11
  124. package/node_modules/ini/package.json +3 -1
  125. package/node_modules/is-my-json-valid/formats.js +1 -1
  126. package/node_modules/is-my-json-valid/package.json +11 -10
  127. package/node_modules/is-property/package.json +1 -0
  128. package/node_modules/is-typedarray/package.json +3 -1
  129. package/node_modules/isarray/package.json +2 -2
  130. package/node_modules/isstream/package.json +1 -0
  131. package/node_modules/jodid25519/package.json +3 -1
  132. package/node_modules/jsbn/package.json +3 -1
  133. package/node_modules/json-schema/package.json +2 -1
  134. package/node_modules/json-stringify-safe/package.json +1 -0
  135. package/node_modules/jsonpointer/package.json +1 -0
  136. package/node_modules/jsprim/package.json +3 -1
  137. package/node_modules/lodash._basetostring/package.json +4 -4
  138. package/node_modules/lodash._createpadding/package.json +3 -2
  139. package/node_modules/lodash._root/LICENSE +22 -0
  140. package/node_modules/lodash._root/README.md +18 -0
  141. package/node_modules/lodash._root/index.js +53 -0
  142. package/node_modules/lodash._root/package.json +77 -0
  143. package/node_modules/lodash.pad/LICENSE +2 -2
  144. package/node_modules/lodash.pad/README.md +4 -6
  145. package/node_modules/lodash.pad/index.js +347 -15
  146. package/node_modules/lodash.pad/package.json +20 -34
  147. package/node_modules/lodash.padleft/package.json +3 -1
  148. package/node_modules/lodash.padright/package.json +3 -1
  149. package/node_modules/lodash.repeat/LICENSE +2 -2
  150. package/node_modules/lodash.repeat/README.md +4 -6
  151. package/node_modules/lodash.repeat/index.js +262 -11
  152. package/node_modules/lodash.repeat/package.json +21 -34
  153. package/node_modules/mime-db/package.json +2 -2
  154. package/node_modules/mime-types/package.json +2 -2
  155. package/node_modules/ms/.npmignore +5 -0
  156. package/node_modules/{deep-extend → ms}/LICENSE +2 -2
  157. package/node_modules/ms/README.md +35 -0
  158. package/node_modules/ms/index.js +125 -0
  159. package/node_modules/ms/package.json +56 -0
  160. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  161. package/node_modules/node-pre-gyp/LICENSE +27 -0
  162. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +36 -0
  163. package/node_modules/node-pre-gyp/package.json +23 -22
  164. package/node_modules/node-uuid/package.json +1 -0
  165. package/node_modules/npmlog/package.json +18 -16
  166. package/node_modules/oauth-sign/index.js +2 -0
  167. package/node_modules/oauth-sign/package.json +10 -9
  168. package/node_modules/once/README.md +18 -0
  169. package/node_modules/once/once.js +8 -6
  170. package/node_modules/once/package.json +20 -12
  171. package/node_modules/pinkie/index.js +3 -3
  172. package/node_modules/pinkie/package.json +10 -9
  173. package/node_modules/pinkie/readme.md +1 -1
  174. package/node_modules/pinkie-promise/package.json +1 -0
  175. package/node_modules/process-nextick-args/package.json +2 -2
  176. package/node_modules/qs/.eslintrc +17 -0
  177. package/node_modules/qs/.travis.yml +66 -5
  178. package/node_modules/qs/CHANGELOG.md +86 -75
  179. package/node_modules/qs/README.md +85 -81
  180. package/node_modules/qs/bower.json +1 -1
  181. package/node_modules/qs/component.json +1 -1
  182. package/node_modules/qs/dist/qs.js +108 -177
  183. package/node_modules/qs/lib/index.js +1 -7
  184. package/node_modules/qs/lib/parse.js +26 -49
  185. package/node_modules/qs/lib/stringify.js +22 -46
  186. package/node_modules/qs/lib/utils.js +45 -73
  187. package/node_modules/qs/package.json +51 -28
  188. package/node_modules/qs/test/index.js +5 -0
  189. package/node_modules/qs/test/parse.js +236 -321
  190. package/node_modules/qs/test/stringify.js +139 -197
  191. package/node_modules/qs/test/utils.js +6 -25
  192. package/node_modules/rc/node_modules/minimist/package.json +1 -0
  193. package/node_modules/rc/package.json +1 -0
  194. package/node_modules/readable-stream/package.json +1 -0
  195. package/node_modules/request/CHANGELOG.md +16 -1
  196. package/node_modules/request/README.md +1 -1
  197. package/node_modules/request/lib/har.js +3 -2
  198. package/node_modules/request/lib/multipart.js +3 -0
  199. package/node_modules/request/lib/tunnel.js +0 -2
  200. package/node_modules/request/package.json +20 -17
  201. package/node_modules/request/request.js +50 -26
  202. package/node_modules/rimraf/README.md +1 -1
  203. package/node_modules/rimraf/node_modules/glob/README.md +2 -2
  204. package/node_modules/rimraf/node_modules/glob/glob.js +14 -1
  205. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +1 -0
  206. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +1 -0
  207. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +2 -1
  208. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  209. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  210. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  211. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +1 -0
  212. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +1 -0
  213. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +1 -0
  214. package/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +1 -0
  215. package/node_modules/rimraf/node_modules/glob/package.json +11 -11
  216. package/node_modules/rimraf/package.json +13 -12
  217. package/node_modules/semver/package.json +3 -1
  218. package/node_modules/sntp/package.json +1 -0
  219. package/node_modules/sshpk/.npmignore +1 -0
  220. package/node_modules/sshpk/bin/sshpk-sign +176 -0
  221. package/node_modules/sshpk/bin/sshpk-verify +166 -0
  222. package/node_modules/sshpk/lib/ed-compat.js +2 -0
  223. package/node_modules/sshpk/lib/key.js +6 -0
  224. package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
  225. package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
  226. package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
  227. package/node_modules/sshpk/package.json +18 -9
  228. package/node_modules/string_decoder/package.json +2 -2
  229. package/node_modules/stringstream/package.json +1 -0
  230. package/node_modules/strip-ansi/package.json +1 -0
  231. package/node_modules/strip-json-comments/package.json +1 -0
  232. package/node_modules/supports-color/package.json +1 -0
  233. package/node_modules/tar/package.json +1 -0
  234. package/node_modules/tar-pack/README.md +2 -2
  235. package/node_modules/tar-pack/package.json +25 -26
  236. package/node_modules/tough-cookie/package.json +1 -0
  237. package/node_modules/tunnel-agent/package.json +1 -0
  238. package/node_modules/tweetnacl/README.md +1 -1
  239. package/node_modules/tweetnacl/package.json +13 -11
  240. package/node_modules/uid-number/package.json +14 -13
  241. package/node_modules/uid-number/uid-number.js +9 -4
  242. package/node_modules/util-deprecate/package.json +2 -2
  243. package/node_modules/verror/package.json +1 -0
  244. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → wrappy}/package.json +3 -2
  245. package/node_modules/xtend/package.json +1 -0
  246. package/package.json +2 -2
  247. package/node_modules/are-we-there-yet/README.md~ +0 -183
  248. package/node_modules/bl/test/basic-test.js +0 -541
  249. package/node_modules/bl/test/sauce.js +0 -38
  250. package/node_modules/debug/index.js +0 -5
  251. package/node_modules/debug/lib/debug.js +0 -147
  252. package/node_modules/deep-extend/test/index.spec.js +0 -220
  253. package/node_modules/deep-extend/test/mocha.opts +0 -1
  254. package/node_modules/gauge/README.md~ +0 -161
  255. package/node_modules/has-unicode/README.md~ +0 -4
  256. package/node_modules/once/LICENSE +0 -27
  257. package/node_modules/once/test/once.js +0 -18
  258. package/node_modules/sshpk/node_modules/assert-plus/README.md +0 -155
  259. package/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -206
  260. package/node_modules/sshpk/node_modules/assert-plus/package.json +0 -88
  261. package/node_modules/tar-pack/node_modules/rimraf/README.md +0 -43
  262. package/node_modules/tar-pack/node_modules/rimraf/bin.js +0 -40
  263. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +0 -359
  264. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +0 -226
  265. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +0 -752
  266. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  267. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +0 -37
  268. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
  269. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -58
  270. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -67
  271. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  272. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  273. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  274. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  275. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  276. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -58
  277. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  278. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  279. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  280. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  281. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  282. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  283. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  284. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  285. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  286. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  287. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  288. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  289. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -79
  290. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  291. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  292. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -18
  293. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  294. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  295. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  296. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -90
  297. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  298. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -81
  299. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -66
  300. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  301. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +0 -15
  302. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  303. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  304. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  305. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  306. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -70
  307. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +0 -20
  308. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +0 -78
  309. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +0 -51
  310. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +0 -79
  311. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +0 -460
  312. package/node_modules/tar-pack/node_modules/rimraf/package.json +0 -69
  313. package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +0 -333
  314. package/node_modules/uid-number/LICENCE +0 -25
  315. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/AUTHORS +0 -0
  316. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/CHANGES.md +0 -0
  317. /package/node_modules/{tar-pack/node_modules/rimraf → aws4/node_modules/lru-cache}/LICENSE +0 -0
  318. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight → uid-number}/LICENSE +0 -0
  319. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/LICENSE +0 -0
  320. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/README.md +0 -0
  321. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/test/basic.js +0 -0
  322. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/wrappy.js +0 -0
@@ -1,293 +1,235 @@
1
- /* eslint no-extend-native:0 */
2
- // Load modules
1
+ 'use strict';
3
2
 
4
- var Code = require('code');
5
- var Lab = require('lab');
6
- var Qs = require('../');
3
+ var test = require('tape');
4
+ var qs = require('../');
7
5
 
8
-
9
- // Declare internals
10
-
11
- var internals = {};
12
-
13
-
14
- // Test shortcuts
15
-
16
- var lab = exports.lab = Lab.script();
17
- var expect = Code.expect;
18
- var describe = lab.experiment;
19
- var it = lab.test;
20
-
21
-
22
- describe('stringify()', function () {
23
-
24
- it('stringifies a querystring object', function (done) {
25
-
26
- expect(Qs.stringify({ a: 'b' })).to.equal('a=b');
27
- expect(Qs.stringify({ a: 1 })).to.equal('a=1');
28
- expect(Qs.stringify({ a: 1, b: 2 })).to.equal('a=1&b=2');
29
- expect(Qs.stringify({ a: 'A_Z' })).to.equal('a=A_Z');
30
- expect(Qs.stringify({ a: '€' })).to.equal('a=%E2%82%AC');
31
- expect(Qs.stringify({ a: '' })).to.equal('a=%EE%80%80');
32
- expect(Qs.stringify({ a: 'א' })).to.equal('a=%D7%90');
33
- expect(Qs.stringify({ a: '𐐷' })).to.equal('a=%F0%90%90%B7');
34
- done();
6
+ test('stringify()', function (t) {
7
+ t.test('stringifies a querystring object', function (st) {
8
+ st.equal(qs.stringify({ a: 'b' }), 'a=b');
9
+ st.equal(qs.stringify({ a: 1 }), 'a=1');
10
+ st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2');
11
+ st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z');
12
+ st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC');
13
+ st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80');
14
+ st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90');
15
+ st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7');
16
+ st.end();
35
17
  });
36
18
 
37
- it('stringifies a nested object', function (done) {
38
-
39
- expect(Qs.stringify({ a: { b: 'c' } })).to.equal('a%5Bb%5D=c');
40
- expect(Qs.stringify({ a: { b: { c: { d: 'e' } } } })).to.equal('a%5Bb%5D%5Bc%5D%5Bd%5D=e');
41
- done();
19
+ t.test('stringifies a nested object', function (st) {
20
+ st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
21
+ st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e');
22
+ st.end();
42
23
  });
43
24
 
44
- it('stringifies an array value', function (done) {
45
-
46
- expect(Qs.stringify({ a: ['b', 'c', 'd'] })).to.equal('a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d');
47
- done();
25
+ t.test('stringifies an array value', function (st) {
26
+ st.equal(qs.stringify({ a: ['b', 'c', 'd'] }), 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d');
27
+ st.end();
48
28
  });
49
29
 
50
- it('omits nulls when asked', function (done) {
51
-
52
- expect(Qs.stringify({ a: 'b', c: null }, { skipNulls: true })).to.equal('a=b');
53
- done();
30
+ t.test('omits nulls when asked', function (st) {
31
+ st.equal(qs.stringify({ a: 'b', c: null }, { skipNulls: true }), 'a=b');
32
+ st.end();
54
33
  });
55
34
 
56
35
 
57
- it('omits nested nulls when asked', function (done) {
58
-
59
- expect(Qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true })).to.equal('a%5Bb%5D=c');
60
- done();
36
+ t.test('omits nested nulls when asked', function (st) {
37
+ st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c');
38
+ st.end();
61
39
  });
62
40
 
63
- it('omits array indices when asked', function (done) {
64
-
65
- expect(Qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false })).to.equal('a=b&a=c&a=d');
66
- done();
41
+ t.test('omits array indices when asked', function (st) {
42
+ st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d');
43
+ st.end();
67
44
  });
68
45
 
69
- it('stringifies a nested array value', function (done) {
70
-
71
- expect(Qs.stringify({ a: { b: ['c', 'd'] } })).to.equal('a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
72
- done();
46
+ t.test('stringifies a nested array value', function (st) {
47
+ st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
48
+ st.end();
73
49
  });
74
50
 
75
- it('stringifies an object inside an array', function (done) {
76
-
77
- expect(Qs.stringify({ a: [{ b: 'c' }] })).to.equal('a%5B0%5D%5Bb%5D=c');
78
- expect(Qs.stringify({ a: [{ b: { c: [1] } }] })).to.equal('a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1');
79
- done();
51
+ t.test('stringifies an object inside an array', function (st) {
52
+ st.equal(qs.stringify({ a: [{ b: 'c' }] }), 'a%5B0%5D%5Bb%5D=c');
53
+ st.equal(qs.stringify({ a: [{ b: { c: [1] } }] }), 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1');
54
+ st.end();
80
55
  });
81
56
 
82
- it('does not omit object keys when indices = false', function (done) {
83
-
84
- expect(Qs.stringify({ a: [{ b: 'c' }] }, { indices: false })).to.equal('a%5Bb%5D=c');
85
- done();
57
+ t.test('does not omit object keys when indices = false', function (st) {
58
+ st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c');
59
+ st.end();
86
60
  });
87
61
 
88
- it('uses indices notation for arrays when indices=true', function (done) {
89
-
90
- expect(Qs.stringify({ a: ['b', 'c'] }, { indices: true })).to.equal('a%5B0%5D=b&a%5B1%5D=c');
91
- done();
62
+ t.test('uses indices notation for arrays when indices=true', function (st) {
63
+ st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c');
64
+ st.end();
92
65
  });
93
66
 
94
- it('uses indices notation for arrays when no arrayFormat is specified', function (done) {
95
-
96
- expect(Qs.stringify({ a: ['b', 'c'] })).to.equal('a%5B0%5D=b&a%5B1%5D=c');
97
- done();
67
+ t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) {
68
+ st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c');
69
+ st.end();
98
70
  });
99
71
 
100
- it('uses indices notation for arrays when no arrayFormat=indices', function (done) {
101
-
102
- expect(Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })).to.equal('a%5B0%5D=b&a%5B1%5D=c');
103
- done();
72
+ t.test('uses indices notation for arrays when no arrayFormat=indices', function (st) {
73
+ st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c');
74
+ st.end();
104
75
  });
105
76
 
106
- it('uses repeat notation for arrays when no arrayFormat=repeat', function (done) {
107
-
108
- expect(Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })).to.equal('a=b&a=c');
109
- done();
77
+ t.test('uses repeat notation for arrays when no arrayFormat=repeat', function (st) {
78
+ st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c');
79
+ st.end();
110
80
  });
111
81
 
112
- it('uses brackets notation for arrays when no arrayFormat=brackets', function (done) {
113
-
114
- expect(Qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })).to.equal('a%5B%5D=b&a%5B%5D=c');
115
- done();
82
+ t.test('uses brackets notation for arrays when no arrayFormat=brackets', function (st) {
83
+ st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c');
84
+ st.end();
116
85
  });
117
86
 
118
- it('stringifies a complicated object', function (done) {
119
-
120
- expect(Qs.stringify({ a: { b: 'c', d: 'e' } })).to.equal('a%5Bb%5D=c&a%5Bd%5D=e');
121
- done();
87
+ t.test('stringifies a complicated object', function (st) {
88
+ st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e');
89
+ st.end();
122
90
  });
123
91
 
124
- it('stringifies an empty value', function (done) {
125
-
126
- expect(Qs.stringify({ a: '' })).to.equal('a=');
127
- expect(Qs.stringify({ a: null }, { strictNullHandling: true })).to.equal('a');
92
+ t.test('stringifies an empty value', function (st) {
93
+ st.equal(qs.stringify({ a: '' }), 'a=');
94
+ st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a');
128
95
 
129
- expect(Qs.stringify({ a: '', b: '' })).to.equal('a=&b=');
130
- expect(Qs.stringify({ a: null, b: '' }, { strictNullHandling: true })).to.equal('a&b=');
96
+ st.equal(qs.stringify({ a: '', b: '' }), 'a=&b=');
97
+ st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b=');
131
98
 
132
- expect(Qs.stringify({ a: { b: '' } })).to.equal('a%5Bb%5D=');
133
- expect(Qs.stringify({ a: { b: null } }, { strictNullHandling: true })).to.equal('a%5Bb%5D');
134
- expect(Qs.stringify({ a: { b: null } }, { strictNullHandling: false })).to.equal('a%5Bb%5D=');
99
+ st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D=');
100
+ st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D');
101
+ st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D=');
135
102
 
136
- done();
103
+ st.end();
137
104
  });
138
105
 
139
- it('stringifies an empty object', function (done) {
140
-
106
+ t.test('stringifies an empty object', function (st) {
141
107
  var obj = Object.create(null);
142
108
  obj.a = 'b';
143
- expect(Qs.stringify(obj)).to.equal('a=b');
144
- done();
109
+ st.equal(qs.stringify(obj), 'a=b');
110
+ st.end();
145
111
  });
146
112
 
147
- it('returns an empty string for invalid input', function (done) {
148
-
149
- expect(Qs.stringify(undefined)).to.equal('');
150
- expect(Qs.stringify(false)).to.equal('');
151
- expect(Qs.stringify(null)).to.equal('');
152
- expect(Qs.stringify('')).to.equal('');
153
- done();
113
+ t.test('returns an empty string for invalid input', function (st) {
114
+ st.equal(qs.stringify(undefined), '');
115
+ st.equal(qs.stringify(false), '');
116
+ st.equal(qs.stringify(null), '');
117
+ st.equal(qs.stringify(''), '');
118
+ st.end();
154
119
  });
155
120
 
156
- it('stringifies an object with an empty object as a child', function (done) {
157
-
121
+ t.test('stringifies an object with an empty object as a child', function (st) {
158
122
  var obj = {
159
123
  a: Object.create(null)
160
124
  };
161
125
 
162
126
  obj.a.b = 'c';
163
- expect(Qs.stringify(obj)).to.equal('a%5Bb%5D=c');
164
- done();
127
+ st.equal(qs.stringify(obj), 'a%5Bb%5D=c');
128
+ st.end();
165
129
  });
166
130
 
167
- it('drops keys with a value of undefined', function (done) {
131
+ t.test('drops keys with a value of undefined', function (st) {
132
+ st.equal(qs.stringify({ a: undefined }), '');
168
133
 
169
- expect(Qs.stringify({ a: undefined })).to.equal('');
170
-
171
- expect(Qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true })).to.equal('a%5Bc%5D');
172
- expect(Qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false })).to.equal('a%5Bc%5D=');
173
- expect(Qs.stringify({ a: { b: undefined, c: '' } })).to.equal('a%5Bc%5D=');
174
- done();
134
+ st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D');
135
+ st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D=');
136
+ st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D=');
137
+ st.end();
175
138
  });
176
139
 
177
- it('url encodes values', function (done) {
178
-
179
- expect(Qs.stringify({ a: 'b c' })).to.equal('a=b%20c');
180
- done();
140
+ t.test('url encodes values', function (st) {
141
+ st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
142
+ st.end();
181
143
  });
182
144
 
183
- it('stringifies a date', function (done) {
184
-
145
+ t.test('stringifies a date', function (st) {
185
146
  var now = new Date();
186
147
  var str = 'a=' + encodeURIComponent(now.toISOString());
187
- expect(Qs.stringify({ a: now })).to.equal(str);
188
- done();
148
+ st.equal(qs.stringify({ a: now }), str);
149
+ st.end();
189
150
  });
190
151
 
191
- it('stringifies the weird object from qs', function (done) {
192
-
193
- expect(Qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' })).to.equal('my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F');
194
- done();
152
+ t.test('stringifies the weird object from qs', function (st) {
153
+ st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F');
154
+ st.end();
195
155
  });
196
156
 
197
- it('skips properties that are part of the object prototype', function (done) {
198
-
157
+ t.test('skips properties that are part of the object prototype', function (st) {
199
158
  Object.prototype.crash = 'test';
200
- expect(Qs.stringify({ a: 'b' })).to.equal('a=b');
201
- expect(Qs.stringify({ a: { b: 'c' } })).to.equal('a%5Bb%5D=c');
159
+ st.equal(qs.stringify({ a: 'b' }), 'a=b');
160
+ st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
202
161
  delete Object.prototype.crash;
203
- done();
162
+ st.end();
204
163
  });
205
164
 
206
- it('stringifies boolean values', function (done) {
207
-
208
- expect(Qs.stringify({ a: true })).to.equal('a=true');
209
- expect(Qs.stringify({ a: { b: true } })).to.equal('a%5Bb%5D=true');
210
- expect(Qs.stringify({ b: false })).to.equal('b=false');
211
- expect(Qs.stringify({ b: { c: false } })).to.equal('b%5Bc%5D=false');
212
- done();
165
+ t.test('stringifies boolean values', function (st) {
166
+ st.equal(qs.stringify({ a: true }), 'a=true');
167
+ st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true');
168
+ st.equal(qs.stringify({ b: false }), 'b=false');
169
+ st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false');
170
+ st.end();
213
171
  });
214
172
 
215
- it('stringifies buffer values', function (done) {
216
-
217
- expect(Qs.stringify({ a: new Buffer('test') })).to.equal('a=test');
218
- expect(Qs.stringify({ a: { b: new Buffer('test') } })).to.equal('a%5Bb%5D=test');
219
- done();
173
+ t.test('stringifies buffer values', function (st) {
174
+ st.equal(qs.stringify({ a: new Buffer('test') }), 'a=test');
175
+ st.equal(qs.stringify({ a: { b: new Buffer('test') } }), 'a%5Bb%5D=test');
176
+ st.end();
220
177
  });
221
178
 
222
- it('stringifies an object using an alternative delimiter', function (done) {
223
-
224
- expect(Qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' })).to.equal('a=b;c=d');
225
- done();
179
+ t.test('stringifies an object using an alternative delimiter', function (st) {
180
+ st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
181
+ st.end();
226
182
  });
227
183
 
228
- it('doesn\'t blow up when Buffer global is missing', function (done) {
229
-
184
+ t.test('doesn\'t blow up when Buffer global is missing', function (st) {
230
185
  var tempBuffer = global.Buffer;
231
186
  delete global.Buffer;
232
- var result = Qs.stringify({ a: 'b', c: 'd' });
187
+ var result = qs.stringify({ a: 'b', c: 'd' });
233
188
  global.Buffer = tempBuffer;
234
- expect(result).to.equal('a=b&c=d');
235
- done();
189
+ st.equal(result, 'a=b&c=d');
190
+ st.end();
236
191
  });
237
192
 
238
- it('selects properties when filter=array', function (done) {
239
-
240
- expect(Qs.stringify({ a: 'b' }, { filter: ['a'] })).to.equal('a=b');
241
- expect(Qs.stringify({ a: 1 }, { filter: [] })).to.equal('');
242
- expect(Qs.stringify({ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, { filter: ['a', 'b', 0, 2] })).to.equal('a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3');
243
- done();
244
-
193
+ t.test('selects properties when filter=array', function (st) {
194
+ st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b');
195
+ st.equal(qs.stringify({ a: 1 }, { filter: [] }), '');
196
+ st.equal(qs.stringify({ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, { filter: ['a', 'b', 0, 2] }), 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3');
197
+ st.end();
245
198
  });
246
199
 
247
- it('supports custom representations when filter=function', function (done) {
248
-
200
+ t.test('supports custom representations when filter=function', function (st) {
249
201
  var calls = 0;
250
202
  var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
251
203
  var filterFunc = function (prefix, value) {
252
-
253
204
  calls++;
254
205
  if (calls === 1) {
255
- expect(prefix).to.be.empty();
256
- expect(value).to.equal(obj);
257
- }
258
- else if (prefix === 'c') {
206
+ st.equal(prefix, '', 'prefix is empty');
207
+ st.equal(value, obj);
208
+ } else if (prefix === 'c') {
259
209
  return;
260
- }
261
- else if (value instanceof Date) {
262
- expect(prefix).to.equal('e[f]');
210
+ } else if (value instanceof Date) {
211
+ st.equal(prefix, 'e[f]');
263
212
  return value.getTime();
264
213
  }
265
214
  return value;
266
215
  };
267
216
 
268
- expect(Qs.stringify(obj, { filter: filterFunc })).to.equal('a=b&e%5Bf%5D=1257894000000');
269
- expect(calls).to.equal(5);
270
- done();
271
-
217
+ st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000');
218
+ st.equal(calls, 5);
219
+ st.end();
272
220
  });
273
221
 
274
- it('can disable uri encoding', function (done) {
275
-
276
- expect(Qs.stringify({ a: 'b' }, { encode: false })).to.equal('a=b');
277
- expect(Qs.stringify({ a: { b: 'c' } }, { encode: false })).to.equal('a[b]=c');
278
- expect(Qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false })).to.equal('a=b&c');
279
- done();
222
+ t.test('can disable uri encoding', function (st) {
223
+ st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b');
224
+ st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c');
225
+ st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c');
226
+ st.end();
280
227
  });
281
228
 
282
- it('can sort the keys', function (done) {
283
-
284
- var sort = function alphabeticalSort (a, b) {
285
-
286
- return a.localeCompare(b);
287
- };
288
-
289
- expect(Qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort : sort })).to.equal('a=c&b=f&z=y');
290
- expect(Qs.stringify({ a: 'c', z: { j: 'a', i:'b' }, b : 'f' }, { sort : sort })).to.equal('a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
291
- done();
229
+ t.test('can sort the keys', function (st) {
230
+ var sort = function (a, b) { return a.localeCompare(b); };
231
+ st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y');
232
+ st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
233
+ st.end();
292
234
  });
293
235
  });
@@ -1,28 +1,9 @@
1
- // Load modules
1
+ 'use strict';
2
2
 
3
- var Code = require('code');
4
- var Lab = require('lab');
5
- var Utils = require('../lib/utils');
3
+ var test = require('tape');
4
+ var utils = require('../lib/utils');
6
5
 
7
-
8
- // Declare internals
9
-
10
- var internals = {};
11
-
12
-
13
- // Test shortcuts
14
-
15
- var lab = exports.lab = Lab.script();
16
- var expect = Code.expect;
17
- var describe = lab.experiment;
18
- var it = lab.test;
19
-
20
-
21
- describe('merge()', function () {
22
-
23
- it('can merge two objects with the same key', function (done) {
24
-
25
- expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] });
26
- done();
27
- });
6
+ test('merge()', function (t) {
7
+ t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
8
+ t.end();
28
9
  });
@@ -14,6 +14,7 @@
14
14
  ],
15
15
  "_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
16
16
  "_shasum": "a35008b20f41383eec1fb914f4cd5df79a264284",
17
+ "_shrinkwrap": null,
17
18
  "author": {
18
19
  "email": "mail@substack.net",
19
20
  "name": "James Halliday",
@@ -14,6 +14,7 @@
14
14
  ],
15
15
  "_resolved": "https://registry.npmjs.org/rc/-/rc-1.1.6.tgz",
16
16
  "_shasum": "43651b76b6ae53b5c802f1151fa3fc3b059969c9",
17
+ "_shrinkwrap": null,
17
18
  "author": {
18
19
  "email": "dominic.tarr@gmail.com",
19
20
  "name": "Dominic Tarr",
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.5.tgz",
18
18
  "_shasum": "a2426f8dcd4551c77a33f96edf2886a23c829669",
19
+ "_shrinkwrap": null,
19
20
  "browser": {
20
21
  "util": false
21
22
  },
@@ -1,5 +1,20 @@
1
1
  ## Change Log
2
2
 
3
+ ### v2.68.0 (2016/01/27)
4
+ - [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
5
+ - [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
6
+ - [#2024](https://github.com/request/request/pull/2024) Update har-validator dependency for nsp advisory #76 (@TylerDixon)
7
+ - [#2016](https://github.com/request/request/pull/2016) Update qs to version 6.0.2 🚀 (@greenkeeperio-bot)
8
+ - [#2007](https://github.com/request/request/pull/2007) Use the `extend` module instead of util._extend (@simov)
9
+ - [#2003](https://github.com/request/request/pull/2003) Update browserify to version 13.0.0 🚀 (@greenkeeperio-bot)
10
+ - [#1989](https://github.com/request/request/pull/1989) Update buffer-equal to version 1.0.0 🚀 (@greenkeeperio-bot)
11
+ - [#1956](https://github.com/request/request/pull/1956) Check form-data content-length value before setting up the header (@jongyoonlee)
12
+ - [#1958](https://github.com/request/request/pull/1958) Use IncomingMessage.destroy method (@simov)
13
+ - [#1952](https://github.com/request/request/pull/1952) Adds example for Tor proxy (@prometheansacrifice)
14
+ - [#1943](https://github.com/request/request/pull/1943) Update eslint to version 1.10.3 🚀 (@simov, @greenkeeperio-bot)
15
+ - [#1924](https://github.com/request/request/pull/1924) Update eslint to version 1.10.1 🚀 (@greenkeeperio-bot)
16
+ - [#1915](https://github.com/request/request/pull/1915) Remove content-length and transfer-encoding headers from defaultProxyHeaderWhiteList (@yaxia)
17
+
3
18
  ### v2.67.0 (2015/11/19)
4
19
  - [#1913](https://github.com/request/request/pull/1913) Update http-signature to version 1.1.0 🚀 (@greenkeeperio-bot)
5
20
 
@@ -455,7 +470,7 @@
455
470
  - [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway421)
456
471
  - [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
457
472
 
458
- ### v2.17.0 (2013/04/22)
473
+ ### v2.18.0 (2013/04/22)
459
474
  - [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway421)
460
475
  - [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway421)
461
476
  - [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
@@ -754,7 +754,7 @@ The first argument can be either a `url` or an `options` object. The only requir
754
754
  - `auth` - A hash containing values `user` || `username`, `pass` || `password`, and `sendImmediately` (optional). See documentation above.
755
755
  - `oauth` - Options for OAuth HMAC-SHA1 signing. See documentation above.
756
756
  - `hawk` - Options for [Hawk signing](https://github.com/hueniverse/hawk). The `credentials` key must contain the necessary signing info, [see hawk docs for details](https://github.com/hueniverse/hawk#usage-example).
757
- - `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`. Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services)
757
+ - `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`. Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. **Note:** you need to `npm install aws4` first.
758
758
  - `httpSignature` - Options for the [HTTP Signature Scheme](https://github.com/joyent/node-http-signature/blob/master/http_signing.md) using [Joyent's library](https://github.com/joyent/node-http-signature). The `keyId` and `key` properties must be specified. See the docs for other options.
759
759
 
760
760
  ---
@@ -3,7 +3,7 @@
3
3
  var fs = require('fs')
4
4
  var qs = require('querystring')
5
5
  var validate = require('har-validator')
6
- var util = require('util')
6
+ var extend = require('extend')
7
7
 
8
8
  function Har (request) {
9
9
  this.request = request
@@ -118,7 +118,8 @@ Har.prototype.options = function (options) {
118
118
  return options
119
119
  }
120
120
 
121
- var har = util._extend({}, options.har)
121
+ var har = {}
122
+ extend(har, options.har)
122
123
 
123
124
  // only process the first entry
124
125
  if (har.log && har.log.entries) {
@@ -68,6 +68,9 @@ Multipart.prototype.build = function (parts, chunked) {
68
68
  var body = chunked ? new CombinedStream() : []
69
69
 
70
70
  function add (part) {
71
+ if (typeof part === 'number') {
72
+ part = part.toString()
73
+ }
71
74
  return chunked ? body.append(part) : body.push(new Buffer(part))
72
75
  }
73
76
 
@@ -12,7 +12,6 @@ var defaultProxyHeaderWhiteList = [
12
12
  'cache-control',
13
13
  'content-encoding',
14
14
  'content-language',
15
- 'content-length',
16
15
  'content-location',
17
16
  'content-md5',
18
17
  'content-range',
@@ -24,7 +23,6 @@ var defaultProxyHeaderWhiteList = [
24
23
  'pragma',
25
24
  'referer',
26
25
  'te',
27
- 'transfer-encoding',
28
26
  'user-agent',
29
27
  'via'
30
28
  ]