fsevents 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (360) hide show
  1. package/Readme.md +12 -13
  2. package/node_modules/ansi/package.json +1 -2
  3. package/node_modules/are-we-there-yet/package.json +1 -2
  4. package/node_modules/asn1/.travis.yml +4 -0
  5. package/node_modules/asn1/lib/ber/reader.js +27 -33
  6. package/node_modules/asn1/lib/ber/writer.js +10 -11
  7. package/node_modules/asn1/package.json +21 -19
  8. package/node_modules/asn1/tst/ber/reader.test.js +36 -0
  9. package/node_modules/asn1/tst/ber/writer.test.js +74 -0
  10. package/node_modules/assert-plus/package.json +1 -0
  11. package/node_modules/{ctype → bl/node_modules/readable-stream/node_modules/core-util-is}/LICENSE +1 -6
  12. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
  13. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
  14. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
  15. package/node_modules/boom/package.json +1 -1
  16. package/node_modules/commander/package.json +1 -1
  17. package/node_modules/core-util-is/LICENSE +19 -0
  18. package/node_modules/core-util-is/lib/util.js +11 -11
  19. package/node_modules/core-util-is/package.json +17 -12
  20. package/node_modules/core-util-is/test.js +68 -0
  21. package/node_modules/dashdash/README.md +508 -0
  22. package/node_modules/dashdash/lib/dashdash.js +813 -0
  23. package/node_modules/dashdash/package.json +87 -0
  24. package/node_modules/deep-extend/LICENSE +1 -1
  25. package/node_modules/deep-extend/README.md +89 -52
  26. package/node_modules/deep-extend/index.js +1 -90
  27. package/node_modules/deep-extend/lib/deep-extend.js +144 -0
  28. package/node_modules/deep-extend/package.json +47 -16
  29. package/node_modules/deep-extend/test/index.spec.js +168 -5
  30. package/node_modules/delegates/package.json +1 -2
  31. package/node_modules/ecc-jsbn/.npmignore +15 -0
  32. package/node_modules/ecc-jsbn/LICENSE +21 -0
  33. package/node_modules/ecc-jsbn/README.md +8 -0
  34. package/node_modules/ecc-jsbn/index.js +57 -0
  35. package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
  36. package/node_modules/ecc-jsbn/lib/ec.js +561 -0
  37. package/node_modules/ecc-jsbn/lib/sec.js +170 -0
  38. package/node_modules/ecc-jsbn/package.json +63 -0
  39. package/node_modules/ecc-jsbn/test.js +14 -0
  40. package/node_modules/extsprintf/.gitmodules +6 -0
  41. package/node_modules/{path-is-absolute/license → extsprintf/LICENSE} +2 -4
  42. package/node_modules/extsprintf/Makefile +23 -0
  43. package/node_modules/extsprintf/Makefile.deps +39 -0
  44. package/node_modules/extsprintf/Makefile.targ +285 -0
  45. package/node_modules/extsprintf/README.md +39 -0
  46. package/node_modules/extsprintf/examples/simple.js +2 -0
  47. package/node_modules/{ctype/tools/jsl.conf → extsprintf/jsl.node.conf} +71 -63
  48. package/node_modules/extsprintf/lib/extsprintf.js +166 -0
  49. package/node_modules/extsprintf/package.json +48 -0
  50. package/node_modules/fstream/package.json +1 -2
  51. package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/package.json +4 -22
  52. package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/package.json +3 -21
  53. package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/package.json +4 -23
  54. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +4 -24
  55. package/node_modules/fstream-ignore/package.json +1 -2
  56. package/node_modules/gauge/package.json +1 -2
  57. package/node_modules/har-validator/package.json +15 -15
  58. package/node_modules/has-unicode/package.json +1 -2
  59. package/node_modules/hawk/dist/client.js +340 -0
  60. package/node_modules/hawk/lib/browser.js +14 -20
  61. package/node_modules/hawk/package.json +10 -10
  62. package/node_modules/hawk/test/browser.js +134 -101
  63. package/node_modules/hawk/test/index.js +61 -61
  64. package/node_modules/hawk/test/server.js +72 -84
  65. package/node_modules/hawk/test/uri.js +52 -63
  66. package/node_modules/http-signature/CHANGES.md +39 -0
  67. package/node_modules/http-signature/http_signing.md +16 -17
  68. package/node_modules/http-signature/lib/index.js +6 -4
  69. package/node_modules/http-signature/lib/parser.js +43 -29
  70. package/node_modules/http-signature/lib/signer.js +290 -74
  71. package/node_modules/http-signature/lib/utils.js +112 -0
  72. package/node_modules/http-signature/lib/verify.js +47 -15
  73. package/node_modules/http-signature/package.json +20 -14
  74. package/node_modules/is-my-json-valid/index.js +16 -14
  75. package/node_modules/is-my-json-valid/package.json +16 -12
  76. package/node_modules/is-typedarray/LICENSE.md +18 -0
  77. package/node_modules/is-typedarray/README.md +16 -0
  78. package/node_modules/is-typedarray/index.js +41 -0
  79. package/node_modules/is-typedarray/package.json +63 -0
  80. package/node_modules/is-typedarray/test.js +34 -0
  81. package/node_modules/jodid25519/.npmignore +11 -0
  82. package/node_modules/jodid25519/.travis.yml +7 -0
  83. package/node_modules/jodid25519/AUTHORS.md +3 -0
  84. package/node_modules/jodid25519/LICENSE +23 -0
  85. package/node_modules/jodid25519/README.md +51 -0
  86. package/node_modules/jodid25519/almond.0 +42 -0
  87. package/node_modules/jodid25519/almond.1 +13 -0
  88. package/node_modules/jodid25519/index.js +35 -0
  89. package/node_modules/jodid25519/jsdoc.json +19 -0
  90. package/node_modules/jodid25519/lib/core.js +481 -0
  91. package/node_modules/jodid25519/lib/curve255.js +221 -0
  92. package/node_modules/jodid25519/lib/dh.js +111 -0
  93. package/node_modules/jodid25519/lib/eddsa.js +573 -0
  94. package/node_modules/jodid25519/lib/utils.js +198 -0
  95. package/node_modules/jodid25519/package.json +77 -0
  96. package/node_modules/jsbn/.npmignore +2 -0
  97. package/node_modules/jsbn/LICENSE +40 -0
  98. package/node_modules/jsbn/README.md +175 -0
  99. package/node_modules/jsbn/example.html +12 -0
  100. package/node_modules/jsbn/example.js +3 -0
  101. package/node_modules/jsbn/index.js +1358 -0
  102. package/node_modules/jsbn/package.json +60 -0
  103. package/node_modules/json-schema/README.md +5 -0
  104. package/node_modules/json-schema/draft-00/hyper-schema +68 -0
  105. package/node_modules/json-schema/draft-00/json-ref +26 -0
  106. package/node_modules/json-schema/draft-00/links +33 -0
  107. package/node_modules/json-schema/draft-00/schema +155 -0
  108. package/node_modules/json-schema/draft-01/hyper-schema +68 -0
  109. package/node_modules/json-schema/draft-01/json-ref +26 -0
  110. package/node_modules/json-schema/draft-01/links +33 -0
  111. package/node_modules/json-schema/draft-01/schema +155 -0
  112. package/node_modules/json-schema/draft-02/hyper-schema +68 -0
  113. package/node_modules/json-schema/draft-02/json-ref +26 -0
  114. package/node_modules/json-schema/draft-02/links +35 -0
  115. package/node_modules/json-schema/draft-02/schema +166 -0
  116. package/node_modules/json-schema/draft-03/examples/address +20 -0
  117. package/node_modules/json-schema/draft-03/examples/calendar +53 -0
  118. package/node_modules/json-schema/draft-03/examples/card +105 -0
  119. package/node_modules/json-schema/draft-03/examples/geo +8 -0
  120. package/node_modules/json-schema/draft-03/examples/interfaces +23 -0
  121. package/node_modules/json-schema/draft-03/hyper-schema +60 -0
  122. package/node_modules/json-schema/draft-03/json-ref +26 -0
  123. package/node_modules/json-schema/draft-03/links +35 -0
  124. package/node_modules/json-schema/draft-03/schema +174 -0
  125. package/node_modules/json-schema/draft-04/hyper-schema +60 -0
  126. package/node_modules/json-schema/draft-04/links +41 -0
  127. package/node_modules/json-schema/draft-04/schema +189 -0
  128. package/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
  129. package/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
  130. package/node_modules/json-schema/lib/links.js +52 -0
  131. package/node_modules/json-schema/lib/validate.js +260 -0
  132. package/node_modules/json-schema/package.json +67 -0
  133. package/node_modules/json-schema/test/tests.js +95 -0
  134. package/node_modules/jsprim/CHANGES.md +30 -0
  135. package/node_modules/jsprim/LICENSE +19 -0
  136. package/node_modules/jsprim/README.md +228 -0
  137. package/node_modules/jsprim/lib/jsprim.js +478 -0
  138. package/node_modules/jsprim/package.json +54 -0
  139. package/node_modules/lodash._basetostring/package.json +1 -2
  140. package/node_modules/lodash._createpadding/package.json +1 -2
  141. package/node_modules/lodash.pad/package.json +1 -2
  142. package/node_modules/lodash.padleft/package.json +1 -2
  143. package/node_modules/lodash.padright/package.json +1 -2
  144. package/node_modules/lodash.repeat/package.json +1 -2
  145. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  146. package/node_modules/node-pre-gyp/README.md +570 -0
  147. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
  148. package/node_modules/node-pre-gyp/node_modules/nopt/lib/nopt.js +2 -1
  149. package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/package.json +30 -37
  150. package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -57
  151. package/node_modules/node-pre-gyp/node_modules/nopt/test/basic.js +22 -0
  152. package/node_modules/node-pre-gyp/package.json +17 -17
  153. package/node_modules/node-uuid/.npmignore +2 -0
  154. package/node_modules/node-uuid/README.md +12 -1
  155. package/node_modules/node-uuid/bower.json +1 -1
  156. package/node_modules/node-uuid/component.json +11 -4
  157. package/node_modules/node-uuid/package.json +25 -12
  158. package/node_modules/node-uuid/test/test.js +3 -0
  159. package/node_modules/node-uuid/uuid.js +70 -45
  160. package/node_modules/npmlog/.travis.yml +14 -0
  161. package/node_modules/npmlog/log.js +3 -0
  162. package/node_modules/npmlog/package.json +23 -20
  163. package/node_modules/npmlog/test/basic.js +8 -1
  164. package/node_modules/once/package.json +2 -3
  165. package/node_modules/pinkie/index.js +23 -7
  166. package/node_modules/pinkie/package.json +22 -15
  167. package/node_modules/pinkie/readme.md +17 -9
  168. package/node_modules/pinkie-promise/package.json +16 -14
  169. package/node_modules/pinkie-promise/readme.md +5 -3
  170. package/node_modules/rc/README.md +1 -1
  171. package/node_modules/rc/index.js +1 -1
  172. package/node_modules/rc/node_modules/minimist/package.json +1 -1
  173. package/node_modules/rc/package.json +12 -12
  174. package/node_modules/request/.eslintrc +1 -1
  175. package/node_modules/request/.travis.yml +4 -4
  176. package/node_modules/request/CHANGELOG.md +25 -0
  177. package/node_modules/request/README.md +12 -13
  178. package/node_modules/request/lib/har.js +84 -75
  179. package/node_modules/request/lib/redirect.js +2 -3
  180. package/node_modules/request/lib/tunnel.js +13 -18
  181. package/node_modules/request/package.json +17 -16
  182. package/node_modules/request/request.js +16 -59
  183. package/node_modules/rimraf/README.md +7 -2
  184. package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/package.json +5 -25
  185. package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/package.json +5 -25
  186. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +16 -0
  187. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +42 -0
  188. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +1 -0
  189. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
  190. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +58 -0
  191. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +25 -0
  192. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
  193. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
  194. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  195. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  196. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  197. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
  198. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +21 -0
  199. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  200. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
  201. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  202. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
  203. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
  204. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
  205. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
  206. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  207. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  208. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
  209. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  210. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
  211. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
  212. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
  213. package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json +3 -21
  214. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  215. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
  216. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  217. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  218. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
  219. package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/package.json +4 -22
  220. package/node_modules/rimraf/node_modules/glob/package.json +2 -20
  221. package/node_modules/rimraf/package.json +10 -10
  222. package/node_modules/semver/README.md +25 -1
  223. package/node_modules/semver/package.json +10 -10
  224. package/node_modules/semver/range.bnf +16 -0
  225. package/node_modules/semver/semver.js +0 -12
  226. package/node_modules/sshpk/.npmignore +8 -0
  227. package/node_modules/sshpk/.travis.yml +11 -0
  228. package/node_modules/sshpk/LICENSE +18 -0
  229. package/node_modules/sshpk/README.md +436 -0
  230. package/node_modules/sshpk/bin/sshpk-conv +183 -0
  231. package/node_modules/sshpk/lib/algs.js +168 -0
  232. package/node_modules/sshpk/lib/dhe.js +312 -0
  233. package/node_modules/sshpk/lib/ed-compat.js +94 -0
  234. package/node_modules/sshpk/lib/errors.js +58 -0
  235. package/node_modules/sshpk/lib/fingerprint.js +140 -0
  236. package/node_modules/sshpk/lib/formats/auto.js +73 -0
  237. package/node_modules/sshpk/lib/formats/pem.js +152 -0
  238. package/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
  239. package/node_modules/sshpk/lib/formats/pkcs8.js +510 -0
  240. package/node_modules/sshpk/lib/formats/rfc4253.js +145 -0
  241. package/node_modules/sshpk/lib/formats/ssh-private.js +138 -0
  242. package/node_modules/sshpk/lib/formats/ssh.js +114 -0
  243. package/node_modules/sshpk/lib/index.js +25 -0
  244. package/node_modules/sshpk/lib/key.js +260 -0
  245. package/node_modules/sshpk/lib/private-key.js +224 -0
  246. package/node_modules/sshpk/lib/signature.js +237 -0
  247. package/node_modules/sshpk/lib/ssh-buffer.js +123 -0
  248. package/node_modules/sshpk/lib/utils.js +207 -0
  249. package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
  250. package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +8 -0
  251. package/node_modules/sshpk/node_modules/assert-plus/README.md +155 -0
  252. package/node_modules/sshpk/node_modules/assert-plus/assert.js +206 -0
  253. package/node_modules/sshpk/node_modules/assert-plus/package.json +88 -0
  254. package/node_modules/sshpk/package.json +92 -0
  255. package/node_modules/strip-json-comments/cli.js +2 -2
  256. package/node_modules/strip-json-comments/package.json +13 -12
  257. package/node_modules/strip-json-comments/readme.md +11 -5
  258. package/node_modules/strip-json-comments/strip-json-comments.js +16 -7
  259. package/node_modules/tar/package.json +1 -2
  260. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +19 -0
  261. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
  262. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
  263. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
  264. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
  265. package/node_modules/tar-pack/node_modules/rimraf/package.json +1 -2
  266. package/node_modules/tar-pack/package.json +1 -2
  267. package/node_modules/tough-cookie/lib/cookie.js +1 -1
  268. package/node_modules/tough-cookie/package.json +7 -7
  269. package/node_modules/tweetnacl/.npmignore +4 -0
  270. package/node_modules/tweetnacl/CHANGELOG.md +128 -0
  271. package/node_modules/tweetnacl/README.md +463 -0
  272. package/node_modules/tweetnacl/nacl-fast.js +2418 -0
  273. package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
  274. package/node_modules/tweetnacl/nacl.js +1205 -0
  275. package/node_modules/tweetnacl/nacl.min.js +1 -0
  276. package/node_modules/tweetnacl/package.json +101 -0
  277. package/node_modules/uid-number/package.json +2 -3
  278. package/node_modules/verror/.gitmodules +0 -0
  279. package/node_modules/verror/LICENSE +19 -0
  280. package/node_modules/verror/Makefile +35 -0
  281. package/node_modules/verror/Makefile.targ +285 -0
  282. package/node_modules/verror/README.md +120 -0
  283. package/node_modules/verror/examples/levels-verror.js +36 -0
  284. package/node_modules/verror/examples/levels-werror.js +34 -0
  285. package/node_modules/verror/examples/varargs.js +6 -0
  286. package/node_modules/verror/examples/verror.js +13 -0
  287. package/node_modules/verror/examples/werror.js +14 -0
  288. package/node_modules/verror/jsl.node.conf +139 -0
  289. package/node_modules/verror/lib/verror.js +157 -0
  290. package/node_modules/verror/package.json +51 -0
  291. package/node_modules/verror/tests/tst.inherit.js +100 -0
  292. package/node_modules/verror/tests/tst.verror.js +156 -0
  293. package/node_modules/verror/tests/tst.werror.js +179 -0
  294. package/package.json +3 -3
  295. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
  296. package/node_modules/core-util-is/util.js +0 -106
  297. package/node_modules/ctype/.npmignore +0 -1
  298. package/node_modules/ctype/CHANGELOG +0 -78
  299. package/node_modules/ctype/README +0 -82
  300. package/node_modules/ctype/README.old +0 -298
  301. package/node_modules/ctype/ctf.js +0 -245
  302. package/node_modules/ctype/ctio.js +0 -1485
  303. package/node_modules/ctype/ctype.js +0 -944
  304. package/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
  305. package/node_modules/ctype/package.json +0 -51
  306. package/node_modules/ctype/tools/jsstyle +0 -839
  307. package/node_modules/http-signature/lib/util.js +0 -306
  308. package/node_modules/inflight/node_modules/once/package.json +0 -86
  309. package/node_modules/inflight/node_modules/once/test/once.js +0 -23
  310. package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
  311. package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
  312. package/node_modules/rimraf/node_modules/once/LICENSE +0 -15
  313. package/node_modules/rimraf/node_modules/once/README.md +0 -51
  314. package/node_modules/rimraf/node_modules/once/once.js +0 -21
  315. package/node_modules/rimraf/node_modules/once/package.json +0 -84
  316. package/node_modules/rimraf/node_modules/once/test/once.js +0 -23
  317. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
  318. package/node_modules/wrappy/LICENSE +0 -15
  319. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/.npmignore +0 -0
  320. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/README.md +0 -0
  321. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/example.js +0 -0
  322. /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/index.js +0 -0
  323. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.npmignore +0 -0
  324. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
  325. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/LICENSE.md +0 -0
  326. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/Makefile +0 -0
  327. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/README.md +0 -0
  328. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/example.js +0 -0
  329. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/index.js +0 -0
  330. /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/test/balanced.js +0 -0
  331. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +0 -0
  332. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/LICENSE +0 -0
  333. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/README.markdown +0 -0
  334. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/example/map.js +0 -0
  335. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/index.js +0 -0
  336. /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/test/map.js +0 -0
  337. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.npmignore +0 -0
  338. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.travis.yml +0 -0
  339. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/CONTRIBUTING.md +0 -0
  340. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/LICENSE +0 -0
  341. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/README.md +0 -0
  342. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/abbrev.js +0 -0
  343. /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/test.js +0 -0
  344. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/.eslintrc +0 -0
  345. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/LICENSE +0 -0
  346. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/README.md +0 -0
  347. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/inflight.js +0 -0
  348. /package/node_modules/{fstream-ignore/node_modules/minimatch → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/LICENSE +0 -0
  349. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/README.md +0 -0
  350. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/test/basic.js +0 -0
  351. /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/wrappy.js +0 -0
  352. /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/test.js +0 -0
  353. /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/README.md +0 -0
  354. /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/minimatch.js +0 -0
  355. /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/README.md +0 -0
  356. /package/node_modules/{inflight/node_modules/once → rimraf/node_modules/glob/node_modules/once/node_modules/wrappy}/LICENSE +0 -0
  357. /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/once.js +0 -0
  358. /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/index.js +0 -0
  359. /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/readme.md +0 -0
  360. /package/node_modules/{deep-extend → verror}/.npmignore +0 -0
@@ -161,7 +161,7 @@ request.post({url:'http://service.com/upload', form: {key:'value'}}, function(er
161
161
 
162
162
  #### multipart/form-data (Multipart Form Uploads)
163
163
 
164
- For `multipart/form-data` we use the [form-data](https://github.com/felixge/node-form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option.
164
+ For `multipart/form-data` we use the [form-data](https://github.com/form-data/form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option.
165
165
 
166
166
 
167
167
  ```js
@@ -179,7 +179,7 @@ var formData = {
179
179
  ],
180
180
  // Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS}
181
181
  // Use case: for some types of streams, you'll need to provide "file"-related information manually.
182
- // See the `form-data` README for more information about options: https://github.com/felixge/node-form-data
182
+ // See the `form-data` README for more information about options: https://github.com/form-data/form-data
183
183
  custom_file: {
184
184
  value: fs.createReadStream('/dev/urandom'),
185
185
  options: {
@@ -206,7 +206,7 @@ form.append('my_field', 'my_value');
206
206
  form.append('my_buffer', new Buffer([1, 2, 3]));
207
207
  form.append('custom_file', fs.createReadStream(__dirname + '/unicycle.jpg'), {filename: 'unicycle.jpg'});
208
208
  ```
209
- See the [form-data README](https://github.com/felixge/node-form-data) for more information & examples.
209
+ See the [form-data README](https://github.com/form-data/form-data) for more information & examples.
210
210
 
211
211
 
212
212
  #### multipart/related
@@ -472,7 +472,7 @@ HTTP/1.1 200 OK
472
472
  At this point, the connection is left open, and the client is
473
473
  communicating directly with the `endpoint-server.com` machine.
474
474
 
475
- See [the wikipedia page on HTTP Tunneling](http://en.wikipedia.org/wiki/HTTP_tunnel)
475
+ See [the wikipedia page on HTTP Tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel)
476
476
  for more information.
477
477
 
478
478
  By default, when proxying `http` traffic, request will simply make a
@@ -566,7 +566,7 @@ Here's some examples of valid `no_proxy` values:
566
566
 
567
567
  ## UNIX Domain Sockets
568
568
 
569
- `request` supports making requests to [UNIX Domain Sockets](http://en.wikipedia.org/wiki/Unix_domain_socket). To make one, use the following URL scheme:
569
+ `request` supports making requests to [UNIX Domain Sockets](https://en.wikipedia.org/wiki/Unix_domain_socket). To make one, use the following URL scheme:
570
570
 
571
571
  ```js
572
572
  /* Pattern */ 'http://unix:SOCKET:PATH'
@@ -746,7 +746,7 @@ The first argument can be either a `url` or an `options` object. The only requir
746
746
  In non-chunked requests, data items with body streams are not allowed.
747
747
  - `preambleCRLF` - append a newline/CRLF before the boundary of your `multipart/form-data` request.
748
748
  - `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request.
749
- - `json` - sets `body` but to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON.
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
751
 
752
752
  ---
@@ -762,7 +762,7 @@ The first argument can be either a `url` or an `options` object. The only requir
762
762
  - `followRedirect` - follow HTTP 3xx responses as redirects (default: `true`). This property can also be implemented as function which gets `response` object as a single argument and should return `true` if redirects should continue or `false` otherwise.
763
763
  - `followAllRedirects` - follow non-GET HTTP 3xx responses as redirects (default: `false`)
764
764
  - `maxRedirects` - the maximum number of redirects to follow (default: `10`)
765
- - `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`).
765
+ - `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`). **Note:** if true, referer header set in the initial request is preserved during redirect chain.
766
766
 
767
767
  ---
768
768
 
@@ -799,8 +799,7 @@ default in Linux can be anywhere from 20-120 seconds][linux-timeout]).
799
799
  - `tunnel` - controls the behavior of
800
800
  [HTTP `CONNECT` tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling)
801
801
  as follows:
802
- - `undefined` (default) - `true` if the destination is `https` or a previous
803
- request in the redirect chain used a tunneling proxy, `false` otherwise
802
+ - `undefined` (default) - `true` if the destination is `https`, `false` otherwise
804
803
  - `true` - always tunnel to the destination by making a `CONNECT` request to
805
804
  the proxy
806
805
  - `false` - request the destination as a `GET` request.
@@ -845,7 +844,7 @@ For example:
845
844
  ```js
846
845
  //requests using baseRequest() will set the 'x-token' header
847
846
  var baseRequest = request.defaults({
848
- headers: {x-token: 'my-token'}
847
+ headers: {'x-token': 'my-token'}
849
848
  })
850
849
 
851
850
  //requests using specialRequest() will include the 'x-token' header set in
@@ -933,7 +932,7 @@ There are at least three ways to debug the operation of `request`:
933
932
  2. Set `require('request').debug = true` at any time (this does the same thing
934
933
  as #1).
935
934
 
936
- 3. Use the [request-debug module](https://github.com/nylen/request-debug) to
935
+ 3. Use the [request-debug module](https://github.com/request/request-debug) to
937
936
  view request and response headers and bodies.
938
937
 
939
938
  [back to top](#table-of-contents)
@@ -1076,9 +1075,9 @@ request('http://www.google.com', function() {
1076
1075
  ```
1077
1076
 
1078
1077
  The cookie store must be a
1079
- [`tough-cookie`](https://github.com/goinstant/tough-cookie)
1078
+ [`tough-cookie`](https://github.com/SalesforceEng/tough-cookie)
1080
1079
  store and it must support synchronous operations; see the
1081
- [`CookieStore` API docs](https://github.com/goinstant/tough-cookie/#cookiestore-api)
1080
+ [`CookieStore` API docs](https://github.com/SalesforceEng/tough-cookie#cookiestore-api)
1082
1081
  for details.
1083
1082
 
1084
1083
  To inspect your cookie jar after a request:
@@ -60,43 +60,53 @@ Har.prototype.prep = function (data) {
60
60
  }
61
61
 
62
62
  // prep body
63
- switch (data.postData.mimeType) {
64
- case 'multipart/mixed':
65
- case 'multipart/related':
66
- case 'multipart/form-data':
67
- case 'multipart/alternative':
68
- // reset values
69
- data.postData.mimeType = 'multipart/form-data'
70
- break
71
-
72
- case 'application/x-www-form-urlencoded':
73
- if (!data.postData.params) {
74
- data.postData.text = ''
75
- } else {
76
- data.postData.paramsObj = data.postData.params.reduce(this.reducer, {})
77
-
78
- // always overwrite
79
- data.postData.text = qs.stringify(data.postData.paramsObj)
80
- }
81
- break
82
-
83
- case 'text/json':
84
- case 'text/x-json':
85
- case 'application/json':
86
- case 'application/x-json':
87
- data.postData.mimeType = 'application/json'
88
-
89
- if (data.postData.text) {
90
- try {
91
- data.postData.jsonObj = JSON.parse(data.postData.text)
92
- } catch (e) {
93
- this.request.debug(e)
94
-
95
- // force back to text/plain
96
- data.postData.mimeType = 'text/plain'
97
- }
63
+ function some (arr) {
64
+ return arr.some(function (type) {
65
+ return data.postData.mimeType.indexOf(type) === 0
66
+ })
67
+ }
68
+
69
+ if (some([
70
+ 'multipart/mixed',
71
+ 'multipart/related',
72
+ 'multipart/form-data',
73
+ 'multipart/alternative'])) {
74
+
75
+ // reset values
76
+ data.postData.mimeType = 'multipart/form-data'
77
+ }
78
+
79
+ else if (some([
80
+ 'application/x-www-form-urlencoded'])) {
81
+
82
+ if (!data.postData.params) {
83
+ data.postData.text = ''
84
+ } else {
85
+ data.postData.paramsObj = data.postData.params.reduce(this.reducer, {})
86
+
87
+ // always overwrite
88
+ data.postData.text = qs.stringify(data.postData.paramsObj)
89
+ }
90
+ }
91
+
92
+ else if (some([
93
+ 'text/json',
94
+ 'text/x-json',
95
+ 'application/json',
96
+ 'application/x-json'])) {
97
+
98
+ data.postData.mimeType = 'application/json'
99
+
100
+ if (data.postData.text) {
101
+ try {
102
+ data.postData.jsonObj = JSON.parse(data.postData.text)
103
+ } catch (e) {
104
+ this.request.debug(e)
105
+
106
+ // force back to text/plain
107
+ data.postData.mimeType = 'text/plain'
98
108
  }
99
- break
109
+ }
100
110
  }
101
111
 
102
112
  return data
@@ -152,51 +162,50 @@ Har.prototype.options = function (options) {
152
162
  options.headers = req.headersObj
153
163
  }
154
164
 
155
- switch (req.postData.mimeType) {
156
- case 'application/x-www-form-urlencoded':
157
- options.form = req.postData.paramsObj
158
- break
159
-
160
- case 'application/json':
161
- if (req.postData.jsonObj) {
162
- options.body = req.postData.jsonObj
163
- options.json = true
164
- }
165
- break
166
-
167
- case 'multipart/form-data':
168
- options.formData = {}
165
+ function test (type) {
166
+ return req.postData.mimeType.indexOf(type) === 0
167
+ }
168
+ if (test('application/x-www-form-urlencoded')) {
169
+ options.form = req.postData.paramsObj
170
+ }
171
+ else if (test('application/json')) {
172
+ if (req.postData.jsonObj) {
173
+ options.body = req.postData.jsonObj
174
+ options.json = true
175
+ }
176
+ }
177
+ else if (test('multipart/form-data')) {
178
+ options.formData = {}
169
179
 
170
- req.postData.params.forEach(function (param) {
171
- var attachment = {}
180
+ req.postData.params.forEach(function (param) {
181
+ var attachment = {}
172
182
 
173
- if (!param.fileName && !param.fileName && !param.contentType) {
174
- options.formData[param.name] = param.value
175
- return
176
- }
183
+ if (!param.fileName && !param.fileName && !param.contentType) {
184
+ options.formData[param.name] = param.value
185
+ return
186
+ }
177
187
 
178
- // attempt to read from disk!
179
- if (param.fileName && !param.value) {
180
- attachment.value = fs.createReadStream(param.fileName)
181
- } else if (param.value) {
182
- attachment.value = param.value
183
- }
188
+ // attempt to read from disk!
189
+ if (param.fileName && !param.value) {
190
+ attachment.value = fs.createReadStream(param.fileName)
191
+ } else if (param.value) {
192
+ attachment.value = param.value
193
+ }
184
194
 
185
- if (param.fileName) {
186
- attachment.options = {
187
- filename: param.fileName,
188
- contentType: param.contentType ? param.contentType : null
189
- }
195
+ if (param.fileName) {
196
+ attachment.options = {
197
+ filename: param.fileName,
198
+ contentType: param.contentType ? param.contentType : null
190
199
  }
191
-
192
- options.formData[param.name] = attachment
193
- })
194
- break
195
-
196
- default:
197
- if (req.postData.text) {
198
- options.body = req.postData.text
199
200
  }
201
+
202
+ options.formData[param.name] = attachment
203
+ })
204
+ }
205
+ else {
206
+ if (req.postData.text) {
207
+ options.body = req.postData.text
208
+ }
200
209
  }
201
210
 
202
211
  return options
@@ -105,7 +105,7 @@ Redirect.prototype.onResponse = function (response) {
105
105
 
106
106
  // handle the case where we change protocol from https to http or vice versa
107
107
  if (request.uri.protocol !== uriPrev.protocol) {
108
- request._updateProtocol()
108
+ delete request.agent
109
109
  }
110
110
 
111
111
  self.redirects.push(
@@ -120,7 +120,6 @@ Redirect.prototype.onResponse = function (response) {
120
120
  // request.method = 'GET' // Force all redirects to use GET || commented out fixes #215
121
121
  delete request.src
122
122
  delete request.req
123
- delete request.agent
124
123
  delete request._started
125
124
  if (response.statusCode !== 401 && response.statusCode !== 307) {
126
125
  // Remove parameters from the previous response, unless this is the second request
@@ -141,7 +140,7 @@ Redirect.prototype.onResponse = function (response) {
141
140
  }
142
141
 
143
142
  if (!self.removeRefererHeader) {
144
- request.setHeader('referer', request.uri.href)
143
+ request.setHeader('referer', uriPrev.href)
145
144
  }
146
145
 
147
146
  request.emit('redirect')
@@ -34,7 +34,7 @@ var defaultProxyHeaderExclusiveList = [
34
34
  ]
35
35
 
36
36
  function constructProxyHost(uriObject) {
37
- var port = uriObject.portA
37
+ var port = uriObject.port
38
38
  , protocol = uriObject.protocol
39
39
  , proxyHost = uriObject.hostname + ':'
40
40
 
@@ -109,22 +109,19 @@ function Tunnel (request) {
109
109
  this.request = request
110
110
  this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList
111
111
  this.proxyHeaderExclusiveList = []
112
- }
113
-
114
- Tunnel.prototype.isEnabled = function (options) {
115
- var request = this.request
116
- // Tunnel HTTPS by default, or if a previous request in the redirect chain
117
- // was tunneled. Allow the user to override this setting.
118
-
119
- // If self.tunnel is already set (because this is a redirect), use the
120
- // existing value.
121
112
  if (typeof request.tunnel !== 'undefined') {
122
- return request.tunnel
113
+ this.tunnelOverride = request.tunnel
123
114
  }
115
+ }
116
+
117
+ Tunnel.prototype.isEnabled = function () {
118
+ var self = this
119
+ , request = self.request
120
+ // Tunnel HTTPS by default. Allow the user to override this setting.
124
121
 
125
- // If options.tunnel is set (the user specified a value), use it.
126
- if (typeof options.tunnel !== 'undefined') {
127
- return options.tunnel
122
+ // If self.tunnelOverride is set (the user specified a value), use it.
123
+ if (typeof self.tunnelOverride !== 'undefined') {
124
+ return self.tunnelOverride
128
125
  }
129
126
 
130
127
  // If the destination is HTTPS, tunnel.
@@ -132,10 +129,8 @@ Tunnel.prototype.isEnabled = function (options) {
132
129
  return true
133
130
  }
134
131
 
135
- // Otherwise, leave tunnel unset, because if a later request in the redirect
136
- // chain is HTTPS then that request (and any subsequent ones) should be
137
- // tunneled.
138
- return undefined
132
+ // Otherwise, do not use tunnel.
133
+ return false
139
134
  }
140
135
 
141
136
  Tunnel.prototype.setup = function (options) {
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "_from": "request@2.x",
3
- "_id": "request@2.65.0",
3
+ "_id": "request@2.67.0",
4
4
  "_location": "/request",
5
- "_nodeVersion": "4.1.0",
5
+ "_nodeVersion": "5.0.0",
6
6
  "_npmUser": {
7
7
  "email": "simeonvelichkov@gmail.com",
8
8
  "name": "simov"
9
9
  },
10
- "_npmVersion": "2.14.3",
10
+ "_npmVersion": "3.3.12",
11
11
  "_phantomChildren": {},
12
12
  "_requiredBy": [
13
13
  "/node-pre-gyp"
14
14
  ],
15
- "_resolved": "https://registry.npmjs.org/request/-/request-2.65.0.tgz",
16
- "_shasum": "cc1a3bc72b96254734fc34296da322f9486ddeba",
15
+ "_resolved": "https://registry.npmjs.org/request/-/request-2.67.0.tgz",
16
+ "_shasum": "8af74780e2bf11ea0ae9aa965c11f11afd272742",
17
17
  "author": {
18
18
  "email": "mikeal.rogers@gmail.com",
19
19
  "name": "Mikeal Rogers"
@@ -31,11 +31,12 @@
31
31
  "form-data": "~1.0.0-rc3",
32
32
  "har-validator": "~2.0.2",
33
33
  "hawk": "~3.1.0",
34
- "http-signature": "~0.11.0",
34
+ "http-signature": "~1.1.0",
35
+ "is-typedarray": "~1.0.0",
35
36
  "isstream": "~0.1.2",
36
37
  "json-stringify-safe": "~5.0.1",
37
38
  "mime-types": "~2.1.7",
38
- "node-uuid": "~1.4.3",
39
+ "node-uuid": "~1.4.7",
39
40
  "oauth-sign": "~0.8.0",
40
41
  "qs": "~5.2.0",
41
42
  "stringstream": "~0.0.4",
@@ -44,19 +45,19 @@
44
45
  },
45
46
  "description": "Simplified HTTP request client.",
46
47
  "devDependencies": {
47
- "bluebird": "^2.10.1",
48
- "browserify": "^11.2.0",
48
+ "bluebird": "^3.0.2",
49
+ "browserify": "^12.0.1",
49
50
  "browserify-istanbul": "^0.1.5",
50
51
  "buffer-equal": "^0.0.1",
51
52
  "codecov.io": "^0.1.6",
52
53
  "coveralls": "^2.11.4",
53
- "eslint": "0.18.0",
54
+ "eslint": "1.9.0",
54
55
  "function-bind": "^1.0.2",
55
- "istanbul": "^0.3.21",
56
+ "istanbul": "^0.4.0",
56
57
  "karma": "^0.13.10",
57
58
  "karma-browserify": "^4.4.0",
58
59
  "karma-cli": "^0.1.1",
59
- "karma-coverage": "^0.2.6",
60
+ "karma-coverage": "^0.5.3",
60
61
  "karma-phantomjs-launcher": "^0.1.4",
61
62
  "karma-tap": "^1.0.3",
62
63
  "rimraf": "^2.2.8",
@@ -66,13 +67,13 @@
66
67
  },
67
68
  "directories": {},
68
69
  "dist": {
69
- "shasum": "cc1a3bc72b96254734fc34296da322f9486ddeba",
70
- "tarball": "http://registry.npmjs.org/request/-/request-2.65.0.tgz"
70
+ "shasum": "8af74780e2bf11ea0ae9aa965c11f11afd272742",
71
+ "tarball": "http://registry.npmjs.org/request/-/request-2.67.0.tgz"
71
72
  },
72
73
  "engines": {
73
74
  "node": ">=0.8.0"
74
75
  },
75
- "gitHead": "8a7a37835c600f5006a6679aa23a0db504003ecd",
76
+ "gitHead": "76f0655befbe8b37fa246bdca1107cbf57798d9a",
76
77
  "homepage": "https://github.com/request/request#readme",
77
78
  "license": "Apache-2.0",
78
79
  "main": "index.js",
@@ -114,5 +115,5 @@
114
115
  "util",
115
116
  "utility"
116
117
  ],
117
- "version": "2.65.0"
118
+ "version": "2.67.0"
118
119
  }
@@ -15,6 +15,7 @@ var http = require('http')
15
15
  , caseless = require('caseless')
16
16
  , ForeverAgent = require('forever-agent')
17
17
  , FormData = require('form-data')
18
+ , isTypedArray = require('is-typedarray').strict
18
19
  , helpers = require('./lib/helpers')
19
20
  , cookies = require('./lib/cookies')
20
21
  , getProxyFromURI = require('./lib/getProxyFromURI')
@@ -122,7 +123,6 @@ function Request (options) {
122
123
  var reserved = Object.keys(Request.prototype)
123
124
  var nonReserved = filterForNonReserved(reserved, options)
124
125
 
125
- stream.Stream.call(self)
126
126
  util._extend(self, nonReserved)
127
127
  options = filterOutReservedFunctions(reserved, options)
128
128
 
@@ -249,6 +249,11 @@ Request.prototype.init = function (options) {
249
249
  self.uri = url.parse(self.uri)
250
250
  }
251
251
 
252
+ // Some URL objects are not from a URL parsed string and need href added
253
+ if (!self.uri.href) {
254
+ self.uri.href = url.format(self.uri)
255
+ }
256
+
252
257
  // DEPRECATED: Warning for users of the old Unix Sockets URL Scheme
253
258
  if (self.uri.protocol === 'unix:') {
254
259
  return self.emit('error', new Error('`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`'))
@@ -277,6 +282,7 @@ Request.prototype.init = function (options) {
277
282
  message += '. This can be caused by a crappy redirection.'
278
283
  }
279
284
  // This error was fatal
285
+ self.abort()
280
286
  return self.emit('error', new Error(message))
281
287
  }
282
288
 
@@ -284,7 +290,7 @@ Request.prototype.init = function (options) {
284
290
  self.proxy = getProxyFromURI(self.uri)
285
291
  }
286
292
 
287
- self.tunnel = self._tunnel.isEnabled(options)
293
+ self.tunnel = self._tunnel.isEnabled()
288
294
  if (self.proxy) {
289
295
  self._tunnel.setup(options)
290
296
  }
@@ -422,6 +428,10 @@ Request.prototype.init = function (options) {
422
428
  }
423
429
 
424
430
  function setContentLength () {
431
+ if (isTypedArray(self.body)) {
432
+ self.body = new Buffer(self.body)
433
+ }
434
+
425
435
  if (!self.hasHeader('content-length')) {
426
436
  var length
427
437
  if (typeof self.body === 'string') {
@@ -583,63 +593,6 @@ Request.prototype.init = function (options) {
583
593
 
584
594
  }
585
595
 
586
- // Must call this when following a redirect from https to http or vice versa
587
- // Attempts to keep everything as identical as possible, but update the
588
- // httpModule, Tunneling agent, and/or Forever Agent in use.
589
- Request.prototype._updateProtocol = function () {
590
- var self = this
591
- var protocol = self.uri.protocol
592
-
593
- if (protocol === 'https:' || self.tunnel) {
594
- // previously was doing http, now doing https
595
- // if it's https, then we might need to tunnel now.
596
- if (self.proxy) {
597
- if (self._tunnel.setup()) {
598
- return
599
- }
600
- }
601
-
602
- self.httpModule = https
603
- switch (self.agentClass) {
604
- case ForeverAgent:
605
- self.agentClass = ForeverAgent.SSL
606
- break
607
- case http.Agent:
608
- self.agentClass = https.Agent
609
- break
610
- default:
611
- // nothing we can do. Just hope for the best.
612
- return
613
- }
614
-
615
- // if there's an agent, we need to get a new one.
616
- if (self.agent) {
617
- self.agent = self.getNewAgent()
618
- }
619
-
620
- } else {
621
- // previously was doing https, now doing http
622
- self.httpModule = http
623
- switch (self.agentClass) {
624
- case ForeverAgent.SSL:
625
- self.agentClass = ForeverAgent
626
- break
627
- case https.Agent:
628
- self.agentClass = http.Agent
629
- break
630
- default:
631
- // nothing we can do. just hope for the best
632
- return
633
- }
634
-
635
- // if there's an agent, then get a new one.
636
- if (self.agent) {
637
- self.agent = null
638
- self.agent = self.getNewAgent()
639
- }
640
- }
641
- }
642
-
643
596
  Request.prototype.getNewAgent = function () {
644
597
  var self = this
645
598
  var Agent = self.agentClass
@@ -1386,6 +1339,8 @@ Request.prototype.pipe = function (dest, opts) {
1386
1339
  }
1387
1340
  Request.prototype.write = function () {
1388
1341
  var self = this
1342
+ if (self._aborted) {return}
1343
+
1389
1344
  if (!self._started) {
1390
1345
  self.start()
1391
1346
  }
@@ -1393,6 +1348,8 @@ Request.prototype.write = function () {
1393
1348
  }
1394
1349
  Request.prototype.end = function (chunk) {
1395
1350
  var self = this
1351
+ if (self._aborted) {return}
1352
+
1396
1353
  if (chunk) {
1397
1354
  self.write(chunk)
1398
1355
  }
@@ -1,12 +1,17 @@
1
1
  [![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies)
2
2
 
3
- The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
3
+ The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
4
4
 
5
5
  Install with `npm install rimraf`, or just drop rimraf.js somewhere.
6
6
 
7
7
  ## API
8
8
 
9
- `rimraf(f, callback)`
9
+ `rimraf(f, [opts], callback)`
10
+
11
+ The first parameter will be interpreted as a globbing pattern for files. If you
12
+ want to disable globbing you can do so with `opts.disableGlob` (defaults to
13
+ `false`). This might be handy, for instance, if you have filenames that contain
14
+ globbing wildcard characters.
10
15
 
11
16
  The callback will be called with an error if there is one. Certain
12
17
  errors are handled for you:
@@ -1,15 +1,7 @@
1
1
  {
2
- "_args": [
3
- [
4
- "wrappy@1",
5
- "/Users/eshanker/Code/fsevents/node_modules/inflight"
6
- ]
7
- ],
8
- "_from": "wrappy@>=1.0.0 <2.0.0",
2
+ "_from": "wrappy@1",
9
3
  "_id": "wrappy@1.0.1",
10
- "_inCache": true,
11
- "_installable": true,
12
- "_location": "/wrappy",
4
+ "_location": "/rimraf/glob/inflight/wrappy",
13
5
  "_nodeVersion": "0.10.31",
14
6
  "_npmUser": {
15
7
  "email": "i@izs.me",
@@ -17,24 +9,11 @@
17
9
  },
18
10
  "_npmVersion": "2.0.0",
19
11
  "_phantomChildren": {},
20
- "_requested": {
21
- "name": "wrappy",
22
- "raw": "wrappy@1",
23
- "rawSpec": "1",
24
- "scope": null,
25
- "spec": ">=1.0.0 <2.0.0",
26
- "type": "range"
27
- },
28
12
  "_requiredBy": [
29
- "/inflight",
30
- "/inflight/once",
31
- "/rimraf/once"
13
+ "/rimraf/glob/inflight"
32
14
  ],
33
15
  "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
34
16
  "_shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
35
- "_shrinkwrap": null,
36
- "_spec": "wrappy@1",
37
- "_where": "/Users/eshanker/Code/fsevents/node_modules/inflight",
38
17
  "author": {
39
18
  "email": "i@izs.me",
40
19
  "name": "Isaac Z. Schlueter",
@@ -67,9 +46,10 @@
67
46
  ],
68
47
  "name": "wrappy",
69
48
  "optionalDependencies": {},
49
+ "readme": "ERROR: No README data found!",
70
50
  "repository": {
71
51
  "type": "git",
72
- "url": "https://github.com/npm/wrappy"
52
+ "url": "git+https://github.com/npm/wrappy.git"
73
53
  },
74
54
  "scripts": {
75
55
  "test": "tap test/*.js"