fsevents 1.0.12 → 1.0.14

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 (514) hide show
  1. package/.npmignore +1 -3
  2. package/.travis.yml +6 -5
  3. package/build/.target.mk +49 -0
  4. package/build/Makefile +352 -0
  5. package/build/action_after_build.target.mk +32 -0
  6. package/build/binding.Makefile +6 -0
  7. package/build/fse.target.mk +169 -0
  8. package/build/gyp-mac-tool +612 -0
  9. package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
  10. package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
  11. package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
  12. package/node_modules/abbrev/package.json +82 -0
  13. package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
  14. package/node_modules/ansi-regex/package.json +20 -2
  15. package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
  16. package/node_modules/ansi-styles/package.json +21 -4
  17. package/node_modules/aproba/LICENSE +14 -0
  18. package/node_modules/aproba/README.md +59 -0
  19. package/node_modules/aproba/index.js +62 -0
  20. package/node_modules/aproba/package.json +88 -0
  21. package/node_modules/are-we-there-yet/package.json +21 -4
  22. package/node_modules/asn1/package.json +19 -1
  23. package/node_modules/assert-plus/package.json +21 -4
  24. package/node_modules/async/CHANGELOG.md +125 -0
  25. package/node_modules/async/LICENSE +19 -0
  26. package/node_modules/async/package.json +20 -2
  27. package/node_modules/aws-sign2/package.json +20 -2
  28. package/node_modules/aws4/aws4.js +1 -1
  29. package/node_modules/aws4/lru.js +96 -0
  30. package/node_modules/aws4/package.json +31 -16
  31. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
  32. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
  33. package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
  34. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
  35. package/node_modules/bl/README.md +3 -3
  36. package/node_modules/bl/bl.js +54 -38
  37. package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
  38. package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
  39. package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
  40. package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
  41. package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  42. package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
  43. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
  44. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
  45. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
  46. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
  47. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
  48. package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
  49. package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
  50. package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
  51. package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
  52. package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
  53. package/node_modules/bl/package.json +39 -15
  54. package/node_modules/bl/test/test.js +71 -2
  55. package/node_modules/block-stream/package.json +37 -12
  56. package/node_modules/boom/package.json +20 -2
  57. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
  58. package/node_modules/buffer-shims/index.js +108 -0
  59. package/node_modules/buffer-shims/license.md +19 -0
  60. package/node_modules/buffer-shims/package.json +77 -0
  61. package/node_modules/buffer-shims/readme.md +21 -0
  62. package/node_modules/caseless/package.json +20 -2
  63. package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
  64. package/node_modules/chalk/package.json +21 -4
  65. package/node_modules/code-point-at/index.js +33 -0
  66. package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
  67. package/node_modules/code-point-at/package.json +96 -0
  68. package/node_modules/code-point-at/readme.md +34 -0
  69. package/node_modules/combined-stream/package.json +20 -2
  70. package/node_modules/commander/History.md +261 -0
  71. package/node_modules/commander/LICENSE +22 -0
  72. package/node_modules/commander/package.json +20 -2
  73. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
  74. package/node_modules/console-control-strings/LICENSE +13 -0
  75. package/node_modules/console-control-strings/README.md +145 -0
  76. package/node_modules/console-control-strings/README.md~ +140 -0
  77. package/node_modules/console-control-strings/index.js +125 -0
  78. package/node_modules/console-control-strings/package.json +88 -0
  79. package/node_modules/core-util-is/package.json +21 -2
  80. package/node_modules/cryptiles/package.json +20 -2
  81. package/node_modules/dashdash/lib/dashdash.js +34 -1
  82. package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
  83. package/node_modules/dashdash/package.json +29 -12
  84. package/node_modules/debug/package.json +20 -2
  85. package/node_modules/deep-extend/CHANGELOG.md +21 -0
  86. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
  87. package/node_modules/deep-extend/package.json +21 -4
  88. package/node_modules/delayed-stream/package.json +20 -2
  89. package/node_modules/delegates/package.json +21 -4
  90. package/node_modules/ecc-jsbn/package.json +20 -2
  91. package/node_modules/escape-string-regexp/license +21 -0
  92. package/node_modules/escape-string-regexp/package.json +21 -4
  93. package/node_modules/extend/package.json +20 -2
  94. package/node_modules/extsprintf/package.json +20 -3
  95. package/node_modules/forever-agent/package.json +20 -2
  96. package/node_modules/form-data/package.json +21 -4
  97. package/node_modules/fs.realpath/LICENSE +43 -0
  98. package/node_modules/fs.realpath/README.md +33 -0
  99. package/node_modules/fs.realpath/index.js +66 -0
  100. package/node_modules/fs.realpath/old.js +303 -0
  101. package/node_modules/fs.realpath/package.json +86 -0
  102. package/node_modules/fstream/.travis.yml +4 -4
  103. package/node_modules/fstream/lib/collect.js +2 -0
  104. package/node_modules/fstream/package.json +37 -15
  105. package/node_modules/fstream-ignore/package.json +45 -17
  106. package/node_modules/gauge/CHANGELOG.md +131 -0
  107. package/node_modules/gauge/CHANGELOG.md~ +123 -0
  108. package/node_modules/gauge/README.md +317 -88
  109. package/node_modules/gauge/README.md~ +393 -0
  110. package/node_modules/gauge/base-theme.js +14 -0
  111. package/node_modules/gauge/error.js +24 -0
  112. package/node_modules/gauge/has-color.js +12 -0
  113. package/node_modules/gauge/index.js +226 -0
  114. package/node_modules/gauge/package.json +67 -21
  115. package/node_modules/gauge/plumbing.js +47 -0
  116. package/node_modules/gauge/process.js +3 -0
  117. package/node_modules/gauge/progress-bar.js +29 -219
  118. package/node_modules/gauge/render-template.js +181 -0
  119. package/node_modules/gauge/set-immediate.js +7 -0
  120. package/node_modules/gauge/set-interval.js +3 -0
  121. package/node_modules/gauge/spin.js +5 -0
  122. package/node_modules/gauge/template-item.js +73 -0
  123. package/node_modules/gauge/theme-set.js +115 -0
  124. package/node_modules/gauge/themes.js +54 -0
  125. package/node_modules/gauge/wide-truncate.js +25 -0
  126. package/node_modules/generate-function/package.json +20 -2
  127. package/node_modules/generate-object-property/package.json +20 -2
  128. package/node_modules/getpass/.npmignore +8 -0
  129. package/node_modules/getpass/.travis.yml +9 -0
  130. package/node_modules/getpass/LICENSE +18 -0
  131. package/node_modules/getpass/README.md +32 -0
  132. package/node_modules/getpass/lib/index.js +123 -0
  133. package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
  134. package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
  135. package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
  136. package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
  137. package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
  138. package/node_modules/getpass/package.json +82 -0
  139. package/node_modules/glob/changelog.md +67 -0
  140. package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
  141. package/node_modules/glob/package.json +103 -0
  142. package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
  143. package/node_modules/graceful-fs/LICENSE +15 -0
  144. package/node_modules/graceful-fs/README.md +82 -2
  145. package/node_modules/graceful-fs/package.json +30 -12
  146. package/node_modules/graceful-readlink/package.json +20 -2
  147. package/node_modules/har-validator/LICENSE +13 -0
  148. package/node_modules/har-validator/package.json +20 -2
  149. package/node_modules/has-ansi/license +21 -0
  150. package/node_modules/has-ansi/package.json +20 -2
  151. package/node_modules/has-color/index.js +32 -0
  152. package/node_modules/has-color/package.json +97 -0
  153. package/node_modules/has-color/readme.md +30 -0
  154. package/node_modules/has-unicode/index.js +3 -8
  155. package/node_modules/has-unicode/package.json +36 -12
  156. package/node_modules/hawk/package.json +20 -2
  157. package/node_modules/hoek/package.json +20 -2
  158. package/node_modules/http-signature/package.json +20 -2
  159. package/node_modules/inflight/package.json +97 -0
  160. package/node_modules/inherits/package.json +16 -9
  161. package/node_modules/ini/package.json +21 -4
  162. package/node_modules/is-fullwidth-code-point/index.js +46 -0
  163. package/node_modules/is-fullwidth-code-point/license +21 -0
  164. package/node_modules/is-fullwidth-code-point/package.json +100 -0
  165. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  166. package/node_modules/is-my-json-valid/package.json +21 -4
  167. package/node_modules/is-property/package.json +20 -2
  168. package/node_modules/is-typedarray/package.json +20 -2
  169. package/node_modules/isarray/package.json +21 -2
  170. package/node_modules/isstream/package.json +20 -2
  171. package/node_modules/jodid25519/package.json +19 -1
  172. package/node_modules/jsbn/package.json +19 -1
  173. package/node_modules/json-schema/package.json +20 -2
  174. package/node_modules/json-stringify-safe/package.json +20 -2
  175. package/node_modules/jsonpointer/package.json +19 -1
  176. package/node_modules/jsprim/CHANGES.md +5 -0
  177. package/node_modules/jsprim/README.md +13 -4
  178. package/node_modules/jsprim/lib/jsprim.js +12 -2
  179. package/node_modules/jsprim/package.json +33 -11
  180. package/node_modules/mime-db/HISTORY.md +21 -0
  181. package/node_modules/mime-db/db.json +53 -1
  182. package/node_modules/mime-db/package.json +36 -19
  183. package/node_modules/mime-types/HISTORY.md +6 -0
  184. package/node_modules/mime-types/package.json +33 -16
  185. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
  186. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
  187. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
  188. package/node_modules/mkdirp/package.json +10 -8
  189. package/node_modules/ms/History.md +66 -0
  190. package/node_modules/ms/package.json +19 -1
  191. package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
  192. package/node_modules/node-pre-gyp/appveyor.yml +2 -2
  193. package/node_modules/node-pre-gyp/lib/install.js +12 -2
  194. package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
  195. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
  196. package/node_modules/node-pre-gyp/package.json +21 -31
  197. package/node_modules/node-uuid/package.json +20 -2
  198. package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
  199. package/node_modules/npmlog/CHANGELOG.md +36 -0
  200. package/node_modules/npmlog/CHANGELOG.md~ +31 -0
  201. package/node_modules/npmlog/README.md +16 -1
  202. package/node_modules/npmlog/log.js +97 -50
  203. package/node_modules/npmlog/package.json +43 -17
  204. package/node_modules/number-is-nan/index.js +4 -0
  205. package/node_modules/number-is-nan/license +21 -0
  206. package/node_modules/number-is-nan/package.json +94 -0
  207. package/node_modules/number-is-nan/readme.md +30 -0
  208. package/node_modules/oauth-sign/package.json +36 -12
  209. package/node_modules/object-assign/index.js +83 -0
  210. package/node_modules/object-assign/license +21 -0
  211. package/node_modules/object-assign/package.json +106 -0
  212. package/node_modules/object-assign/readme.md +56 -0
  213. package/node_modules/once/package.json +22 -2
  214. package/node_modules/path-is-absolute/license +21 -0
  215. package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
  216. package/node_modules/pinkie/license +21 -0
  217. package/node_modules/pinkie/package.json +21 -4
  218. package/node_modules/pinkie-promise/index.js +1 -1
  219. package/node_modules/pinkie-promise/license +21 -0
  220. package/node_modules/pinkie-promise/package.json +32 -10
  221. package/node_modules/process-nextick-args/index.js +31 -8
  222. package/node_modules/process-nextick-args/package.json +33 -10
  223. package/node_modules/qs/.eslintrc +5 -3
  224. package/node_modules/qs/.jscs.json +176 -0
  225. package/node_modules/qs/CHANGELOG.md +10 -0
  226. package/node_modules/qs/dist/qs.js +75 -63
  227. package/node_modules/qs/lib/parse.js +32 -29
  228. package/node_modules/qs/lib/stringify.js +37 -30
  229. package/node_modules/qs/lib/utils.js +6 -4
  230. package/node_modules/qs/package.json +41 -18
  231. package/node_modules/qs/test/parse.js +30 -0
  232. package/node_modules/qs/test/stringify.js +70 -0
  233. package/node_modules/rc/node_modules/minimist/package.json +20 -2
  234. package/node_modules/rc/package.json +21 -4
  235. package/node_modules/readable-stream/.npmignore +4 -1
  236. package/node_modules/readable-stream/.travis.yml +2 -0
  237. package/node_modules/readable-stream/README.md +2 -2
  238. package/node_modules/readable-stream/doc/stream.md +1772 -0
  239. package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
  240. package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  241. package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  242. package/node_modules/readable-stream/package.json +44 -15
  243. package/node_modules/readable-stream/readable.js +4 -0
  244. package/node_modules/request/.eslintrc +1 -1
  245. package/node_modules/request/.travis.yml +9 -3
  246. package/node_modules/request/CHANGELOG.md +46 -8
  247. package/node_modules/request/CONTRIBUTING.md +41 -4
  248. package/node_modules/request/README.md +9 -6
  249. package/node_modules/request/codecov.yml +2 -0
  250. package/node_modules/request/index.js +6 -5
  251. package/node_modules/request/lib/helpers.js +3 -3
  252. package/node_modules/request/package.json +52 -30
  253. package/node_modules/request/request.js +58 -43
  254. package/node_modules/rimraf/package.json +33 -16
  255. package/node_modules/rimraf/rimraf.js +10 -2
  256. package/node_modules/semver/README.md +27 -8
  257. package/node_modules/semver/package.json +38 -12
  258. package/node_modules/semver/range.bnf +1 -1
  259. package/node_modules/semver/semver.js +7 -1
  260. package/node_modules/set-blocking/CHANGELOG.md +26 -0
  261. package/node_modules/set-blocking/LICENSE.txt +14 -0
  262. package/node_modules/set-blocking/README.md +31 -0
  263. package/node_modules/set-blocking/index.js +7 -0
  264. package/node_modules/set-blocking/package.json +98 -0
  265. package/node_modules/signal-exit/CHANGELOG.md +17 -0
  266. package/node_modules/signal-exit/LICENSE.txt +14 -0
  267. package/node_modules/signal-exit/README.md +40 -0
  268. package/node_modules/signal-exit/index.js +148 -0
  269. package/node_modules/signal-exit/package.json +98 -0
  270. package/node_modules/signal-exit/signals.js +52 -0
  271. package/node_modules/sntp/package.json +20 -2
  272. package/node_modules/sshpk/.travis.yml +3 -3
  273. package/node_modules/sshpk/README.md +26 -7
  274. package/node_modules/sshpk/bin/sshpk-conv +14 -2
  275. package/node_modules/sshpk/bin/sshpk-sign +16 -1
  276. package/node_modules/sshpk/lib/errors.js +14 -1
  277. package/node_modules/sshpk/lib/formats/auto.js +8 -8
  278. package/node_modules/sshpk/lib/formats/pem.js +39 -5
  279. package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
  280. package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
  281. package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
  282. package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
  283. package/node_modules/sshpk/lib/formats/ssh.js +2 -2
  284. package/node_modules/sshpk/lib/index.js +2 -1
  285. package/node_modules/sshpk/lib/key.js +20 -17
  286. package/node_modules/sshpk/lib/private-key.js +19 -12
  287. package/node_modules/sshpk/lib/utils.js +40 -1
  288. package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
  289. package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
  290. package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
  291. package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
  292. package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
  293. package/node_modules/sshpk/package.json +48 -30
  294. package/node_modules/string-width/index.js +32 -0
  295. package/node_modules/string-width/license +21 -0
  296. package/node_modules/string-width/package.json +111 -0
  297. package/node_modules/string-width/readme.md +41 -0
  298. package/node_modules/string_decoder/package.json +21 -2
  299. package/node_modules/stringstream/package.json +20 -2
  300. package/node_modules/strip-ansi/license +21 -0
  301. package/node_modules/strip-ansi/package.json +24 -5
  302. package/node_modules/strip-json-comments/license +21 -0
  303. package/node_modules/strip-json-comments/package.json +20 -2
  304. package/node_modules/supports-color/license +21 -0
  305. package/node_modules/supports-color/package.json +20 -2
  306. package/node_modules/tar/package.json +20 -2
  307. package/node_modules/tar-pack/package.json +34 -17
  308. package/node_modules/tough-cookie/LICENSE +27 -0
  309. package/node_modules/tough-cookie/package.json +21 -4
  310. package/node_modules/tunnel-agent/package.json +35 -10
  311. package/node_modules/tweetnacl/CHANGELOG.md +0 -53
  312. package/node_modules/tweetnacl/README.md +42 -24
  313. package/node_modules/tweetnacl/nacl-fast.js +52 -22
  314. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  315. package/node_modules/tweetnacl/nacl.js +51 -21
  316. package/node_modules/tweetnacl/nacl.min.js +1 -1
  317. package/node_modules/tweetnacl/package.json +56 -30
  318. package/node_modules/uid-number/package.json +21 -4
  319. package/node_modules/util-deprecate/package.json +21 -2
  320. package/node_modules/verror/package.json +20 -3
  321. package/node_modules/wide-align/.npmignore +5 -0
  322. package/node_modules/wide-align/LICENSE +14 -0
  323. package/node_modules/wide-align/README.md +47 -0
  324. package/node_modules/wide-align/align.js +65 -0
  325. package/node_modules/wide-align/package.json +85 -0
  326. package/node_modules/wide-align/test/align.js +37 -0
  327. package/node_modules/wrappy/package.json +44 -14
  328. package/node_modules/xtend/package.json +20 -2
  329. package/package.json +2 -2
  330. package/node_modules/ansi/.jshintrc +0 -4
  331. package/node_modules/ansi/History.md +0 -23
  332. package/node_modules/ansi/LICENSE +0 -24
  333. package/node_modules/ansi/README.md +0 -98
  334. package/node_modules/ansi/examples/beep/index.js +0 -16
  335. package/node_modules/ansi/examples/clear/index.js +0 -15
  336. package/node_modules/ansi/examples/cursorPosition.js +0 -32
  337. package/node_modules/ansi/examples/progress/index.js +0 -87
  338. package/node_modules/ansi/lib/ansi.js +0 -405
  339. package/node_modules/ansi/lib/newlines.js +0 -71
  340. package/node_modules/ansi/package.json +0 -69
  341. package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
  342. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
  343. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
  344. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
  345. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
  346. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
  347. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
  348. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
  349. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
  350. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
  351. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
  352. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
  353. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
  354. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
  355. package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
  356. package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
  357. package/node_modules/block-stream/bench/block-stream.js +0 -68
  358. package/node_modules/block-stream/bench/dropper-pause.js +0 -70
  359. package/node_modules/block-stream/bench/dropper.js +0 -68
  360. package/node_modules/block-stream/test/basic.js +0 -27
  361. package/node_modules/block-stream/test/nopad-thorough.js +0 -68
  362. package/node_modules/block-stream/test/nopad.js +0 -57
  363. package/node_modules/block-stream/test/pause-resume.js +0 -73
  364. package/node_modules/block-stream/test/thorough.js +0 -68
  365. package/node_modules/block-stream/test/two-stream.js +0 -59
  366. package/node_modules/fstream-ignore/.npmignore +0 -1
  367. package/node_modules/fstream-ignore/example/basic.js +0 -13
  368. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  369. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  370. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  371. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  372. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  373. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  374. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  375. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
  376. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  377. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
  378. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
  379. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
  380. package/node_modules/fstream-ignore/test/.ignore +0 -2
  381. package/node_modules/fstream-ignore/test/.npmignore +0 -1
  382. package/node_modules/fstream-ignore/test/00-setup.js +0 -71
  383. package/node_modules/fstream-ignore/test/basic.js +0 -28
  384. package/node_modules/fstream-ignore/test/common.js +0 -40
  385. package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
  386. package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
  387. package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
  388. package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
  389. package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
  390. package/node_modules/gauge/.npmignore +0 -32
  391. package/node_modules/gauge/example.png +0 -0
  392. package/node_modules/gauge/test/progress-bar.js +0 -176
  393. package/node_modules/has-unicode/.npmignore +0 -32
  394. package/node_modules/has-unicode/test/index.js +0 -26
  395. package/node_modules/lodash.pad/README.md +0 -18
  396. package/node_modules/lodash.pad/index.js +0 -296
  397. package/node_modules/lodash.pad/package.json +0 -91
  398. package/node_modules/lodash.padend/README.md +0 -18
  399. package/node_modules/lodash.padend/index.js +0 -285
  400. package/node_modules/lodash.padend/package.json +0 -91
  401. package/node_modules/lodash.padstart/README.md +0 -18
  402. package/node_modules/lodash.padstart/index.js +0 -285
  403. package/node_modules/lodash.padstart/package.json +0 -91
  404. package/node_modules/lodash.repeat/README.md +0 -18
  405. package/node_modules/lodash.repeat/index.js +0 -215
  406. package/node_modules/lodash.repeat/package.json +0 -92
  407. package/node_modules/lodash.tostring/LICENSE +0 -23
  408. package/node_modules/lodash.tostring/README.md +0 -18
  409. package/node_modules/lodash.tostring/index.js +0 -164
  410. package/node_modules/lodash.tostring/package.json +0 -91
  411. package/node_modules/node-pre-gyp/README.md +0 -570
  412. package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
  413. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
  414. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
  415. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
  416. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
  417. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
  418. package/node_modules/npmlog/.nyc_output/64996.json +0 -1
  419. package/node_modules/npmlog/.nyc_output/64998.json +0 -1
  420. package/node_modules/npmlog/.nyc_output/65000.json +0 -1
  421. package/node_modules/npmlog/.travis.yml +0 -14
  422. package/node_modules/npmlog/example.js +0 -39
  423. package/node_modules/npmlog/test/basic.js +0 -235
  424. package/node_modules/npmlog/test/progress.js +0 -131
  425. package/node_modules/oauth-sign/test.js +0 -89
  426. package/node_modules/qs/.npmignore +0 -18
  427. package/node_modules/qs/.travis.yml +0 -69
  428. package/node_modules/qs/README.md +0 -335
  429. package/node_modules/qs/bower.json +0 -22
  430. package/node_modules/qs/component.json +0 -15
  431. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  432. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
  433. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
  434. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
  435. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
  436. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
  437. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  438. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  439. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  440. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  441. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  442. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
  443. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  444. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  445. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  446. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  447. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  448. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  449. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  450. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  451. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
  452. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  453. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  454. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  455. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  456. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  457. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  458. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  459. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  460. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  461. package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  462. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  463. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
  464. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  465. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  466. package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  467. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
  468. package/node_modules/rimraf/node_modules/glob/package.json +0 -85
  469. package/node_modules/semver/.npmignore +0 -4
  470. package/node_modules/semver/.travis.yml +0 -5
  471. package/node_modules/semver/test/big-numbers.js +0 -31
  472. package/node_modules/semver/test/clean.js +0 -29
  473. package/node_modules/semver/test/gtr.js +0 -173
  474. package/node_modules/semver/test/index.js +0 -698
  475. package/node_modules/semver/test/ltr.js +0 -181
  476. package/node_modules/semver/test/major-minor-patch.js +0 -72
  477. package/node_modules/tunnel-agent/.jshintrc +0 -5
  478. package/node_modules/tweetnacl/COPYING.txt +0 -9
  479. package/node_modules/wrappy/test/basic.js +0 -51
  480. package/test/fsevents.js +0 -27
  481. package/test/function.js +0 -93
  482. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
  483. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
  484. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
  485. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
  486. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
  487. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
  488. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
  489. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
  490. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
  491. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
  492. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
  493. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
  494. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
  495. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
  496. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
  497. /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
  498. /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
  499. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
  500. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
  501. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
  502. /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
  503. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
  504. /package/node_modules/{ansi → nopt}/.npmignore +0 -0
  505. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
  506. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
  507. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
  508. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
  509. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
  510. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
  511. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
  512. /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
  513. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
  514. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -10,15 +10,11 @@ var processNextTick = require('process-nextick-args');
10
10
  var isArray = require('isarray');
11
11
  /*</replacement>*/
12
12
 
13
- /*<replacement>*/
14
- var Buffer = require('buffer').Buffer;
15
- /*</replacement>*/
16
-
17
13
  Readable.ReadableState = ReadableState;
18
14
 
19
- var EE = require('events');
20
-
21
15
  /*<replacement>*/
16
+ var EE = require('events').EventEmitter;
17
+
22
18
  var EElistenerCount = function (emitter, type) {
23
19
  return emitter.listeners(type).length;
24
20
  };
@@ -36,6 +32,9 @@ var Stream;
36
32
  /*</replacement>*/
37
33
 
38
34
  var Buffer = require('buffer').Buffer;
35
+ /*<replacement>*/
36
+ var bufferShim = require('buffer-shims');
37
+ /*</replacement>*/
39
38
 
40
39
  /*<replacement>*/
41
40
  var util = require('core-util-is');
@@ -44,7 +43,7 @@ util.inherits = require('inherits');
44
43
 
45
44
  /*<replacement>*/
46
45
  var debugUtil = require('util');
47
- var debug = undefined;
46
+ var debug = void 0;
48
47
  if (debugUtil && debugUtil.debuglog) {
49
48
  debug = debugUtil.debuglog('stream');
50
49
  } else {
@@ -56,6 +55,19 @@ var StringDecoder;
56
55
 
57
56
  util.inherits(Readable, Stream);
58
57
 
58
+ var hasPrependListener = typeof EE.prototype.prependListener === 'function';
59
+
60
+ function prependListener(emitter, event, fn) {
61
+ if (hasPrependListener) return emitter.prependListener(event, fn);
62
+
63
+ // This is a brutally ugly hack to make sure that our error handler
64
+ // is attached before any userland ones. NEVER DO THIS. This is here
65
+ // only because this code needs to continue to work with older versions
66
+ // of Node.js that do not include the prependListener() method. The goal
67
+ // is to eventually remove this hack.
68
+ if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
69
+ }
70
+
59
71
  var Duplex;
60
72
  function ReadableState(options, stream) {
61
73
  Duplex = Duplex || require('./_stream_duplex');
@@ -149,7 +161,7 @@ Readable.prototype.push = function (chunk, encoding) {
149
161
  if (!state.objectMode && typeof chunk === 'string') {
150
162
  encoding = encoding || state.defaultEncoding;
151
163
  if (encoding !== state.encoding) {
152
- chunk = new Buffer(chunk, encoding);
164
+ chunk = bufferShim.from(chunk, encoding);
153
165
  encoding = '';
154
166
  }
155
167
  }
@@ -179,8 +191,8 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) {
179
191
  var e = new Error('stream.push() after EOF');
180
192
  stream.emit('error', e);
181
193
  } else if (state.endEmitted && addToFront) {
182
- var e = new Error('stream.unshift() after end event');
183
- stream.emit('error', e);
194
+ var _e = new Error('stream.unshift() after end event');
195
+ stream.emit('error', _e);
184
196
  } else {
185
197
  var skipAdd;
186
198
  if (state.decoder && !addToFront && !encoding) {
@@ -533,7 +545,8 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
533
545
  // If the user unpiped during `dest.write()`, it is possible
534
546
  // to get stuck in a permanently paused state if that write
535
547
  // also returned false.
536
- if (state.pipesCount === 1 && state.pipes[0] === dest && src.listenerCount('data') === 1 && !cleanedUp) {
548
+ // => Check whether `dest` is still a piping destination.
549
+ if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
537
550
  debug('false write response, pause', src._readableState.awaitDrain);
538
551
  src._readableState.awaitDrain++;
539
552
  }
@@ -549,9 +562,9 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
549
562
  dest.removeListener('error', onerror);
550
563
  if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
551
564
  }
552
- // This is a brutally ugly hack to make sure that our error handler
553
- // is attached before any userland ones. NEVER DO THIS.
554
- if (!dest._events || !dest._events.error) dest.on('error', onerror);else if (isArray(dest._events.error)) dest._events.error.unshift(onerror);else dest._events.error = [onerror, dest._events.error];
565
+
566
+ // Make sure our error handler is attached before userland ones.
567
+ prependListener(dest, 'error', onerror);
555
568
 
556
569
  // Both close and finish should trigger unpipe, but only once.
557
570
  function onclose() {
@@ -825,16 +838,16 @@ function fromList(n, state) {
825
838
  } else {
826
839
  // complex case.
827
840
  // we have enough to cover it, but it spans past the first buffer.
828
- if (stringMode) ret = '';else ret = new Buffer(n);
841
+ if (stringMode) ret = '';else ret = bufferShim.allocUnsafe(n);
829
842
 
830
843
  var c = 0;
831
844
  for (var i = 0, l = list.length; i < l && c < n; i++) {
832
- var buf = list[0];
833
- var cpy = Math.min(n - c, buf.length);
845
+ var _buf = list[0];
846
+ var cpy = Math.min(n - c, _buf.length);
834
847
 
835
- if (stringMode) ret += buf.slice(0, cpy);else buf.copy(ret, c, 0, cpy);
848
+ if (stringMode) ret += _buf.slice(0, cpy);else _buf.copy(ret, c, 0, cpy);
836
849
 
837
- if (cpy < buf.length) list[0] = buf.slice(cpy);else list.shift();
850
+ if (cpy < _buf.length) list[0] = _buf.slice(cpy);else list.shift();
838
851
 
839
852
  c += cpy;
840
853
  }
@@ -849,7 +862,7 @@ function endReadable(stream) {
849
862
 
850
863
  // If we get here before consuming all the bytes, then that is a
851
864
  // bug in node. Should never happen.
852
- if (state.length > 0) throw new Error('endReadable called on non-empty stream');
865
+ if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
853
866
 
854
867
  if (!state.endEmitted) {
855
868
  state.ended = true;
@@ -134,7 +134,7 @@ Transform.prototype.push = function (chunk, encoding) {
134
134
  // an error, then that'll put the hurt on the whole operation. If you
135
135
  // never call cb(), then you'll never get another chunk.
136
136
  Transform.prototype._transform = function (chunk, encoding, cb) {
137
- throw new Error('not implemented');
137
+ throw new Error('Not implemented');
138
138
  };
139
139
 
140
140
  Transform.prototype._write = function (chunk, encoding, cb) {
@@ -172,9 +172,9 @@ function done(stream, er) {
172
172
  var ws = stream._writableState;
173
173
  var ts = stream._transformState;
174
174
 
175
- if (ws.length) throw new Error('calling transform done when ws.length != 0');
175
+ if (ws.length) throw new Error('Calling transform done when ws.length != 0');
176
176
 
177
- if (ts.transforming) throw new Error('calling transform done when still transforming');
177
+ if (ts.transforming) throw new Error('Calling transform done when still transforming');
178
178
 
179
179
  return stream.push(null);
180
180
  }
@@ -14,10 +14,6 @@ var processNextTick = require('process-nextick-args');
14
14
  var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;
15
15
  /*</replacement>*/
16
16
 
17
- /*<replacement>*/
18
- var Buffer = require('buffer').Buffer;
19
- /*</replacement>*/
20
-
21
17
  Writable.WritableState = WritableState;
22
18
 
23
19
  /*<replacement>*/
@@ -43,6 +39,9 @@ var Stream;
43
39
  /*</replacement>*/
44
40
 
45
41
  var Buffer = require('buffer').Buffer;
42
+ /*<replacement>*/
43
+ var bufferShim = require('buffer-shims');
44
+ /*</replacement>*/
46
45
 
47
46
  util.inherits(Writable, Stream);
48
47
 
@@ -146,10 +145,9 @@ function WritableState(options, stream) {
146
145
  // count buffered requests
147
146
  this.bufferedRequestCount = 0;
148
147
 
149
- // create the two objects needed to store the corked requests
150
- // they are not a linked list, as no new elements are inserted in there
148
+ // allocate the first CorkedRequest, there is always
149
+ // one allocated and free to use, and we maintain at most two
151
150
  this.corkedRequestsFree = new CorkedRequest(this);
152
- this.corkedRequestsFree.next = new CorkedRequest(this);
153
151
  }
154
152
 
155
153
  WritableState.prototype.getBuffer = function writableStateGetBuffer() {
@@ -196,7 +194,7 @@ function Writable(options) {
196
194
 
197
195
  // Otherwise people can pipe Writable streams, which is just wrong.
198
196
  Writable.prototype.pipe = function () {
199
- this.emit('error', new Error('Cannot pipe. Not readable.'));
197
+ this.emit('error', new Error('Cannot pipe, not readable'));
200
198
  };
201
199
 
202
200
  function writeAfterEnd(stream, cb) {
@@ -213,9 +211,16 @@ function writeAfterEnd(stream, cb) {
213
211
  // how many bytes or characters.
214
212
  function validChunk(stream, state, chunk, cb) {
215
213
  var valid = true;
216
-
217
- if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {
218
- var er = new TypeError('Invalid non-string/buffer chunk');
214
+ var er = false;
215
+ // Always throw error if a null is written
216
+ // if we are not in object mode then throw
217
+ // if it is not a buffer, string, or undefined.
218
+ if (chunk === null) {
219
+ er = new TypeError('May not write null values to stream');
220
+ } else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
221
+ er = new TypeError('Invalid non-string/buffer chunk');
222
+ }
223
+ if (er) {
219
224
  stream.emit('error', er);
220
225
  processNextTick(cb, er);
221
226
  valid = false;
@@ -265,11 +270,12 @@ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
265
270
  if (typeof encoding === 'string') encoding = encoding.toLowerCase();
266
271
  if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
267
272
  this._writableState.defaultEncoding = encoding;
273
+ return this;
268
274
  };
269
275
 
270
276
  function decodeChunk(state, chunk, encoding) {
271
277
  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
272
- chunk = new Buffer(chunk, encoding);
278
+ chunk = bufferShim.from(chunk, encoding);
273
279
  }
274
280
  return chunk;
275
281
  }
@@ -392,12 +398,16 @@ function clearBuffer(stream, state) {
392
398
 
393
399
  doWrite(stream, state, true, state.length, buffer, '', holder.finish);
394
400
 
395
- // doWrite is always async, defer these to save a bit of time
401
+ // doWrite is almost always async, defer these to save a bit of time
396
402
  // as the hot path ends with doWrite
397
403
  state.pendingcb++;
398
404
  state.lastBufferedRequest = null;
399
- state.corkedRequestsFree = holder.next;
400
- holder.next = null;
405
+ if (holder.next) {
406
+ state.corkedRequestsFree = holder.next;
407
+ holder.next = null;
408
+ } else {
409
+ state.corkedRequestsFree = new CorkedRequest(state);
410
+ }
401
411
  } else {
402
412
  // Slow case, write chunks one-by-one
403
413
  while (entry) {
@@ -1,26 +1,43 @@
1
1
  {
2
- "_from": "readable-stream@^2.0.0 || ^1.1.13",
3
- "_id": "readable-stream@2.0.6",
2
+ "_args": [
3
+ [
4
+ "readable-stream@^2.0.0 || ^1.1.13",
5
+ "/Users/eshanker/Code/fsevents/node_modules/are-we-there-yet"
6
+ ]
7
+ ],
8
+ "_from": "readable-stream@>=2.0.0 <3.0.0||>=1.1.13 <2.0.0",
9
+ "_id": "readable-stream@2.1.4",
10
+ "_inCache": true,
11
+ "_installable": true,
4
12
  "_location": "/readable-stream",
5
- "_nodeVersion": "5.7.0",
13
+ "_nodeVersion": "5.11.0",
6
14
  "_npmOperationalInternal": {
7
15
  "host": "packages-12-west.internal.npmjs.com",
8
- "tmp": "tmp/readable-stream-2.0.6.tgz_1457893507709_0.369257491780445"
16
+ "tmp": "tmp/readable-stream-2.1.4.tgz_1463679605032_0.6917394688352942"
9
17
  },
10
18
  "_npmUser": {
11
19
  "email": "calvin.metcalf@gmail.com",
12
20
  "name": "cwmma"
13
21
  },
14
- "_npmVersion": "3.6.0",
22
+ "_npmVersion": "3.8.6",
15
23
  "_phantomChildren": {},
24
+ "_requested": {
25
+ "name": "readable-stream",
26
+ "raw": "readable-stream@^2.0.0 || ^1.1.13",
27
+ "rawSpec": "^2.0.0 || ^1.1.13",
28
+ "scope": null,
29
+ "spec": ">=2.0.0 <3.0.0||>=1.1.13 <2.0.0",
30
+ "type": "range"
31
+ },
16
32
  "_requiredBy": [
17
33
  "/are-we-there-yet",
18
- "/bl",
19
34
  "/tar-pack"
20
35
  ],
21
- "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz",
22
- "_shasum": "8f90341e68a53ccc928788dacfcd11b36eb9b78e",
36
+ "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.4.tgz",
37
+ "_shasum": "70b9791c6fcb8480db44bd155a0f6bb58f172468",
23
38
  "_shrinkwrap": null,
39
+ "_spec": "readable-stream@^2.0.0 || ^1.1.13",
40
+ "_where": "/Users/eshanker/Code/fsevents/node_modules/are-we-there-yet",
24
41
  "browser": {
25
42
  "util": false
26
43
  },
@@ -28,6 +45,7 @@
28
45
  "url": "https://github.com/nodejs/readable-stream/issues"
29
46
  },
30
47
  "dependencies": {
48
+ "buffer-shims": "^1.0.0",
31
49
  "core-util-is": "~1.0.0",
32
50
  "inherits": "~2.0.1",
33
51
  "isarray": "~1.0.0",
@@ -37,16 +55,19 @@
37
55
  },
38
56
  "description": "Streams3, a user-land copy of the stream library from Node.js",
39
57
  "devDependencies": {
40
- "tap": "~0.2.6",
58
+ "assert": "~1.4.0",
59
+ "nyc": "^6.4.0",
60
+ "tap": "~0.7.1",
41
61
  "tape": "~4.5.1",
42
- "zuul": "~3.9.0"
62
+ "zuul": "~3.9.0",
63
+ "zuul-ngrok": "^4.0.0"
43
64
  },
44
65
  "directories": {},
45
66
  "dist": {
46
- "shasum": "8f90341e68a53ccc928788dacfcd11b36eb9b78e",
47
- "tarball": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"
67
+ "shasum": "70b9791c6fcb8480db44bd155a0f6bb58f172468",
68
+ "tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.4.tgz"
48
69
  },
49
- "gitHead": "01fb5608a970b42c900b96746cadc13d27dd9d7e",
70
+ "gitHead": "7752832fba237929388dea6c96911a0a6379abfc",
50
71
  "homepage": "https://github.com/nodejs/readable-stream#readme",
51
72
  "keywords": [
52
73
  "pipe",
@@ -74,6 +95,11 @@
74
95
  }
75
96
  ],
76
97
  "name": "readable-stream",
98
+ "nyc": {
99
+ "include": [
100
+ "lib/**.js"
101
+ ]
102
+ },
77
103
  "optionalDependencies": {},
78
104
  "readme": "ERROR: No README data found!",
79
105
  "repository": {
@@ -82,8 +108,11 @@
82
108
  },
83
109
  "scripts": {
84
110
  "browser": "npm run write-zuul && zuul -- test/browser.js",
111
+ "cover": "nyc npm test",
112
+ "local": "zuul --local -- test/browser.js",
113
+ "report": "nyc report --reporter=lcov",
85
114
  "test": "tap test/parallel/*.js test/ours/*.js",
86
- "write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml"
115
+ "write-zuul": "printf \"ui: tape\ntunnel: ngrok\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml"
87
116
  },
88
- "version": "2.0.6"
117
+ "version": "2.1.4"
89
118
  }
@@ -10,3 +10,7 @@ exports.Writable = require('./lib/_stream_writable.js');
10
10
  exports.Duplex = require('./lib/_stream_duplex.js');
11
11
  exports.Transform = require('./lib/_stream_transform.js');
12
12
  exports.PassThrough = require('./lib/_stream_passthrough.js');
13
+
14
+ if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
15
+ module.exports = Stream;
16
+ }
@@ -37,7 +37,7 @@
37
37
  "no-shadow": 0,
38
38
  // Use if () { }
39
39
  // ^ space
40
- "space-after-keywords": [2, "always"],
40
+ "keyword-spacing": [2, {"after": true}],
41
41
  // Use if () { }
42
42
  // ^ space
43
43
  "space-before-blocks": [2, "always"]
@@ -1,15 +1,21 @@
1
+
1
2
  language: node_js
3
+
2
4
  node_js:
3
5
  - node
4
- - io.js
6
+ - 4
5
7
  - 0.12
6
8
  - 0.10
7
- sudo: false
8
9
 
9
- after_script: "npm run test-cov && cat ./coverage/lcov.info | codecov && cat ./coverage/lcov.info | coveralls"
10
+ after_script:
11
+ - npm run test-cov
12
+ - codecov
13
+ - cat ./coverage/lcov.info | coveralls
10
14
 
11
15
  webhooks:
12
16
  urls: https://webhooks.gitter.im/e/237280ed4796c19cc626
13
17
  on_success: change # options: [always|never|change] default: always
14
18
  on_failure: always # options: [always|never|change] default: always
15
19
  on_start: false # default: false
20
+
21
+ sudo: false
@@ -1,5 +1,49 @@
1
1
  ## Change Log
2
2
 
3
+ ### v2.73.0 (2016/07/09)
4
+ - [#2240](https://github.com/request/request/pull/2240) Remove connectionErrorHandler to fix #1903 (@zarenner)
5
+ - [#2251](https://github.com/request/request/pull/2251) tape@4.6.0 breaks build 🚨 (@greenkeeperio-bot)
6
+ - [#2225](https://github.com/request/request/pull/2225) Update docs (@ArtskydJ)
7
+ - [#2203](https://github.com/request/request/pull/2203) Update browserify to version 13.0.1 🚀 (@greenkeeperio-bot)
8
+ - [#2275](https://github.com/request/request/pull/2275) Update karma to version 1.1.1 🚀 (@greenkeeperio-bot)
9
+ - [#2204](https://github.com/request/request/pull/2204) Add codecov.yml and disable PR comments (@simov)
10
+ - [#2212](https://github.com/request/request/pull/2212) Fix link to http.IncomingMessage documentation (@nazieb)
11
+ - [#2208](https://github.com/request/request/pull/2208) Update to form-data RC4 and pass null values to it (@simov)
12
+ - [#2207](https://github.com/request/request/pull/2207) Move aws4 require statement to the top (@simov)
13
+ - [#2199](https://github.com/request/request/pull/2199) Update karma-coverage to version 1.0.0 🚀 (@greenkeeperio-bot)
14
+ - [#2206](https://github.com/request/request/pull/2206) Update qs to version 6.2.0 🚀 (@greenkeeperio-bot)
15
+ - [#2205](https://github.com/request/request/pull/2205) Use server-destory to close hanging sockets in tests (@simov)
16
+ - [#2200](https://github.com/request/request/pull/2200) Update karma-cli to version 1.0.0 🚀 (@greenkeeperio-bot)
17
+
18
+ ### v2.72.0 (2016/04/17)
19
+ - [#2176](https://github.com/request/request/pull/2176) Do not try to pipe Gzip responses with no body (@simov)
20
+ - [#2175](https://github.com/request/request/pull/2175) Add 'delete' alias for the 'del' API method (@simov, @MuhanZou)
21
+ - [#2172](https://github.com/request/request/pull/2172) Add support for deflate content encoding (@czardoz)
22
+ - [#2169](https://github.com/request/request/pull/2169) Add callback option (@simov)
23
+ - [#2165](https://github.com/request/request/pull/2165) Check for self.req existence inside the write method (@simov)
24
+ - [#2167](https://github.com/request/request/pull/2167) Fix TravisCI badge reference master branch (@a0viedo)
25
+
26
+ ### v2.71.0 (2016/04/12)
27
+ - [#2164](https://github.com/request/request/pull/2164) Catch errors from the underlying http module (@simov)
28
+
29
+ ### v2.70.0 (2016/04/05)
30
+ - [#2147](https://github.com/request/request/pull/2147) Update eslint to version 2.5.3 🚀 (@simov, @greenkeeperio-bot)
31
+ - [#2009](https://github.com/request/request/pull/2009) Support JSON stringify replacer argument. (@elyobo)
32
+ - [#2142](https://github.com/request/request/pull/2142) Update eslint to version 2.5.1 🚀 (@greenkeeperio-bot)
33
+ - [#2128](https://github.com/request/request/pull/2128) Update browserify-istanbul to version 2.0.0 🚀 (@greenkeeperio-bot)
34
+ - [#2115](https://github.com/request/request/pull/2115) Update eslint to version 2.3.0 🚀 (@simov, @greenkeeperio-bot)
35
+ - [#2089](https://github.com/request/request/pull/2089) Fix badges (@simov)
36
+ - [#2092](https://github.com/request/request/pull/2092) Update browserify-istanbul to version 1.0.0 🚀 (@greenkeeperio-bot)
37
+ - [#2079](https://github.com/request/request/pull/2079) Accept read stream as body option (@simov)
38
+ - [#2070](https://github.com/request/request/pull/2070) Update bl to version 1.1.2 🚀 (@greenkeeperio-bot)
39
+ - [#2063](https://github.com/request/request/pull/2063) Up bluebird and oauth-sign (@simov)
40
+ - [#2058](https://github.com/request/request/pull/2058) Karma fixes for latest versions (@eiriksm)
41
+ - [#2057](https://github.com/request/request/pull/2057) Update contributing guidelines (@simov)
42
+ - [#2054](https://github.com/request/request/pull/2054) Update qs to version 6.1.0 🚀 (@greenkeeperio-bot)
43
+
44
+ ### v2.69.0 (2016/01/27)
45
+ - [#2041](https://github.com/request/request/pull/2041) restore aws4 as regular dependency (@rmg)
46
+
3
47
  ### v2.68.0 (2016/01/27)
4
48
  - [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
5
49
  - [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
@@ -152,7 +196,7 @@
152
196
  - [#1460](https://github.com/request/request/pull/1460) localAddress or proxy config is lost when redirecting (@simov, @0x4139)
153
197
  - [#1453](https://github.com/request/request/pull/1453) Test on Node.js 0.12 and io.js with allowed failures (@nicolasmccurdy, @demohi)
154
198
  - [#1426](https://github.com/request/request/pull/1426) Fixing tests to pass on io.js and node 0.12 (only test-https.js stiff failing) (@mikeal)
155
- - [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimonz)
199
+ - [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimon)
156
200
  - [#1428](https://github.com/request/request/pull/1428) Deprecate Node v0.8.x (@nylen)
157
201
  - [#1436](https://github.com/request/request/pull/1436) Add ability to set a requester without setting default options (@tikotzky)
158
202
  - [#1435](https://github.com/request/request/pull/1435) dry up verb methods (@sethpollack)
@@ -280,7 +324,7 @@
280
324
  - [#1131](https://github.com/request/request/pull/1131) Update pool documentation (@FredKSchott)
281
325
  - [#1143](https://github.com/request/request/pull/1143) Rewrite all tests to use tape (@nylen)
282
326
  - [#1137](https://github.com/request/request/pull/1137) Add ability to specifiy querystring lib in options. (@jgrund)
283
- - [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@cappslock)
327
+ - [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@slimelabs)
284
328
  - [#1134](https://github.com/request/request/pull/1134) Fix multiple redirects and `self.followRedirect` (@blakeembrey)
285
329
  - [#1130](https://github.com/request/request/pull/1130) documentation fix: add note about npm test for contributing (@FredKSchott)
286
330
  - [#1120](https://github.com/request/request/pull/1120) Support/refactor request setup tunnel (@seanstrom)
@@ -453,24 +497,18 @@
453
497
  ### v2.23.0 (2013/07/23)
454
498
  - [#589](https://github.com/request/request/pull/589) Prevent setting headers after they are sent (@geek)
455
499
  - [#587](https://github.com/request/request/pull/587) Global cookie jar disabled by default (@threepointone)
456
-
457
- ### v2.22.0 (2013/07/05)
458
500
  - [#544](https://github.com/request/request/pull/544) Update http-signature version. (@davidlehn)
459
501
  - [#581](https://github.com/request/request/pull/581) Fix spelling of "ignoring." (@bigeasy)
460
502
  - [#568](https://github.com/request/request/pull/568) use agentOptions to create agent when specified in request (@SamPlacette)
461
503
  - [#564](https://github.com/request/request/pull/564) Fix redirections (@criloz)
462
504
  - [#541](https://github.com/request/request/pull/541) The exported request function doesn't have an auth method (@tschaub)
463
505
  - [#542](https://github.com/request/request/pull/542) Expose Request class (@regality)
464
-
465
- ### v2.21.0 (2013/04/30)
466
506
  - [#536](https://github.com/request/request/pull/536) Allow explicitly empty user field for basic authentication. (@mikeando)
467
507
  - [#532](https://github.com/request/request/pull/532) fix typo (@fredericosilva)
468
508
  - [#497](https://github.com/request/request/pull/497) Added redirect event (@Cauldrath)
469
509
  - [#503](https://github.com/request/request/pull/503) Fix basic auth for passwords that contain colons (@tonistiigi)
470
510
  - [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway421)
471
511
  - [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
472
-
473
- ### v2.18.0 (2013/04/22)
474
512
  - [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway421)
475
513
  - [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway421)
476
514
  - [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
@@ -1,19 +1,57 @@
1
- # This is an OPEN Open Source Project
1
+
2
+ # Contributing to Request
3
+
4
+ :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
5
+
6
+ The following is a set of guidelines for contributing to Request and its packages, which are hosted in the [Request Organization](https://github.com/request) on GitHub.
7
+ These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request.
8
+
9
+
10
+ ## Submitting an Issue
11
+
12
+ 1. Provide a small self **sufficient** code example to **reproduce** the issue.
13
+ 2. Run your test code using [request-debug](https://github.com/request/request-debug) and copy/paste the results inside the issue.
14
+ 3. You should **always** use fenced code blocks when submitting code examples or any other formatted output:
15
+ <pre>
16
+ ```js
17
+ put your javascript code here
18
+ ```
19
+
20
+ ```
21
+ put any other formatted output here,
22
+ like for example the one returned from using request-debug
23
+ ```
24
+ </pre>
25
+
26
+ If the problem cannot be reliably reproduced, the issue will be marked as `Not enough info (see CONTRIBUTING.md)`.
27
+
28
+ If the problem is not related to request the issue will be marked as `Help (please use Stackoverflow)`.
29
+
30
+
31
+ ## Submitting a Pull Request
32
+
33
+ 1. In almost all of the cases your PR **needs tests**. Make sure you have any.
34
+ 2. Run `npm test` locally. Fix any errors before pushing to GitHub.
35
+ 3. After submitting the PR a build will be triggered on TravisCI. Wait for it to ends and make sure all jobs are passing.
36
+
2
37
 
3
38
  -----------------------------------------
4
39
 
5
- ## What?
40
+
41
+ ## Becoming a Contributor
6
42
 
7
43
  Individuals making significant and valuable contributions are given
8
44
  commit-access to the project to contribute as they see fit. This project is
9
45
  more like an open wiki than a standard guarded open source project.
10
46
 
47
+
11
48
  ## Rules
12
49
 
13
50
  There are a few basic ground-rules for contributors:
14
51
 
15
52
  1. **No `--force` pushes** or modifying the Git history in any way.
16
53
  1. **Non-master branches** ought to be used for ongoing work.
54
+ 1. **Any** change should be added through Pull Request.
17
55
  1. **External API changes and significant modifications** ought to be subject
18
56
  to an **internal pull-request** to solicit feedback from other contributors.
19
57
  1. Internal pull-requests to solicit feedback are *encouraged* for any other
@@ -35,10 +73,9 @@ There are a few basic ground-rules for contributors:
35
73
 
36
74
  Declaring formal releases remains the prerogative of the project maintainer.
37
75
 
76
+
38
77
  ## Changes to this arrangement
39
78
 
40
79
  This is an experiment and feedback is welcome! This document may also be
41
80
  subject to pull-requests or changes by contributors where you believe you have
42
81
  something valuable to add or change.
43
-
44
- -----------------------------------------
@@ -3,10 +3,11 @@
3
3
 
4
4
  [![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)
5
5
 
6
- [![Build status](https://img.shields.io/travis/request/request.svg?style=flat-square)](https://travis-ci.org/request/request)
6
+ [![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request)
7
7
  [![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)
8
8
  [![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)
9
9
  [![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)
10
+ [![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request)
10
11
  [![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)
11
12
 
12
13
 
@@ -66,7 +67,7 @@ Request can also `pipe` to itself. When doing so, `content-type` and `content-le
66
67
  request.get('http://google.com/img.png').pipe(request.put('http://mysite.com/img.png'))
67
68
  ```
68
69
 
69
- Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](http://nodejs.org/api/http.html#http_http_incomingmessage).
70
+ Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
70
71
 
71
72
  ```js
72
73
  request
@@ -600,7 +601,6 @@ var options = {
600
601
  key: fs.readFileSync(keyFile),
601
602
  passphrase: 'password',
602
603
  ca: fs.readFileSync(caFile)
603
- }
604
604
  };
605
605
 
606
606
  request.get(options);
@@ -733,7 +733,7 @@ The first argument can be either a `url` or an `options` object. The only requir
733
733
 
734
734
  ---
735
735
 
736
- - `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer` or `String`, unless `json` is `true`. If `json` is `true`, then `body` must be a JSON-serializable object.
736
+ - `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer`, `String` or `ReadStream`. If `json` is `true`, then `body` must be a JSON-serializable object.
737
737
  - `form` - when passed an object or a querystring, this sets `body` to a querystring representation of value, and adds `Content-type: application/x-www-form-urlencoded` header. When passed no options, a `FormData` instance is returned (and is piped to request). See "Forms" section above.
738
738
  - `formData` - Data to pass for a `multipart/form-data` request. See
739
739
  [Forms](#forms) section above.
@@ -748,6 +748,7 @@ The first argument can be either a `url` or an `options` object. The only requir
748
748
  - `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request.
749
749
  - `json` - sets `body` to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON.
750
750
  - `jsonReviver` - a [reviver function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) that will be passed to `JSON.parse()` when parsing a JSON response body.
751
+ - `jsonReplacer` - a [replacer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that will be passed to `JSON.stringify()` when stringifying a JSON request body.
751
752
 
752
753
  ---
753
754
 
@@ -812,11 +813,12 @@ default in Linux can be anywhere from 20-120 seconds][linux-timeout]).
812
813
 
813
814
  - `time` - If `true`, the request-response cycle (including all redirects) is timed at millisecond resolution, and the result provided on the response's `elapsedTime` property.
814
815
  - `har` - A [HAR 1.2 Request Object](http://www.softwareishard.com/blog/har-12-spec/#request), will be processed from HAR format into options overwriting matching values *(see the [HAR 1.2 section](#support-for-har-1.2) for details)*
816
+ - `callback` - alternatively pass the request's callback in the options object
815
817
 
816
818
  The callback argument gets 3 arguments:
817
819
 
818
820
  1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object)
819
- 2. An [`http.IncomingMessage`](http://nodejs.org/api/http.html#http_http_incomingmessage) object
821
+ 2. An [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) object
820
822
  3. The third is the `response` body (`String` or `Buffer`, or JSON object if the `json` option is supplied)
821
823
 
822
824
  [back to top](#table-of-contents)
@@ -886,12 +888,13 @@ Same as `request()`, but defaults to `method: "HEAD"`.
886
888
  request.head(url)
887
889
  ```
888
890
 
889
- ### request.del
891
+ ### request.del / request.delete
890
892
 
891
893
  Same as `request()`, but defaults to `method: "DELETE"`.
892
894
 
893
895
  ```js
894
896
  request.del(url)
897
+ request.delete(url)
895
898
  ```
896
899
 
897
900
  ### request.get
@@ -0,0 +1,2 @@
1
+
2
+ comment: false