fsevents 1.0.7 → 1.0.8

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

Potentially problematic release.


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

Files changed (322) hide show
  1. package/node_modules/ansi/History.md +7 -0
  2. package/node_modules/ansi/LICENSE +24 -0
  3. package/node_modules/ansi/lib/ansi.js +2 -2
  4. package/node_modules/ansi/package.json +15 -10
  5. package/node_modules/ansi-regex/package.json +1 -0
  6. package/node_modules/ansi-styles/package.json +1 -0
  7. package/node_modules/are-we-there-yet/.npmignore +2 -0
  8. package/node_modules/are-we-there-yet/index.js +20 -18
  9. package/node_modules/are-we-there-yet/package.json +15 -13
  10. package/node_modules/asn1/package.json +3 -1
  11. package/node_modules/assert-plus/README.md +50 -21
  12. package/node_modules/assert-plus/assert.js +168 -207
  13. package/node_modules/assert-plus/package.json +55 -15
  14. package/node_modules/async/README.md +86 -4
  15. package/node_modules/async/dist/async.js +4 -3
  16. package/node_modules/async/dist/async.min.js +1 -1
  17. package/node_modules/async/lib/async.js +4 -3
  18. package/node_modules/async/package.json +10 -10
  19. package/node_modules/aws-sign2/package.json +1 -0
  20. package/node_modules/aws4/.npmignore +3 -0
  21. package/node_modules/aws4/.tern-port +1 -0
  22. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → aws4}/.travis.yml +2 -0
  23. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md → aws4/LICENSE} +1 -3
  24. package/node_modules/aws4/README.md +510 -0
  25. package/node_modules/aws4/aws4.js +313 -0
  26. package/node_modules/aws4/example.js +372 -0
  27. package/node_modules/aws4/node_modules/lru-cache/.npmignore +1 -0
  28. package/node_modules/aws4/node_modules/lru-cache/.travis.yml +8 -0
  29. package/node_modules/aws4/node_modules/lru-cache/CONTRIBUTORS +14 -0
  30. package/node_modules/aws4/node_modules/lru-cache/README.md +137 -0
  31. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +334 -0
  32. package/node_modules/aws4/node_modules/lru-cache/package.json +66 -0
  33. package/node_modules/aws4/node_modules/lru-cache/test/basic.js +396 -0
  34. package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +120 -0
  35. package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +51 -0
  36. package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +216 -0
  37. package/node_modules/aws4/package.json +113 -0
  38. package/node_modules/bl/.travis.yml +5 -6
  39. package/node_modules/bl/bl.js +5 -0
  40. package/node_modules/bl/package.json +16 -13
  41. package/node_modules/bl/test/test.js +554 -6
  42. package/node_modules/block-stream/package.json +1 -0
  43. package/node_modules/boom/package.json +1 -0
  44. package/node_modules/caseless/package.json +1 -0
  45. package/node_modules/chalk/package.json +1 -0
  46. package/node_modules/combined-stream/package.json +1 -0
  47. package/node_modules/commander/package.json +1 -0
  48. package/node_modules/core-util-is/package.json +2 -2
  49. package/node_modules/cryptiles/package.json +1 -0
  50. package/node_modules/dashdash/README.md +70 -7
  51. package/node_modules/dashdash/etc/dashdash.bash_completion.in +388 -0
  52. package/node_modules/dashdash/lib/dashdash.js +202 -2
  53. package/node_modules/dashdash/package.json +12 -9
  54. package/node_modules/debug/.jshintrc +3 -0
  55. package/node_modules/debug/.npmignore +6 -0
  56. package/node_modules/debug/History.md +195 -0
  57. package/node_modules/debug/Makefile +36 -0
  58. package/node_modules/debug/Readme.md +86 -13
  59. package/node_modules/debug/bower.json +28 -0
  60. package/node_modules/debug/browser.js +168 -0
  61. package/node_modules/debug/component.json +19 -0
  62. package/node_modules/debug/debug.js +132 -72
  63. package/node_modules/debug/node.js +209 -0
  64. package/node_modules/debug/package.json +32 -22
  65. package/node_modules/deep-extend/README.md +51 -50
  66. package/node_modules/deep-extend/package.json +14 -16
  67. package/node_modules/delayed-stream/package.json +1 -0
  68. package/node_modules/delegates/History.md +6 -0
  69. package/node_modules/delegates/License +20 -0
  70. package/node_modules/delegates/package.json +17 -13
  71. package/node_modules/ecc-jsbn/package.json +3 -1
  72. package/node_modules/escape-string-regexp/package.json +2 -2
  73. package/node_modules/extend/package.json +1 -0
  74. package/node_modules/extsprintf/package.json +4 -2
  75. package/node_modules/forever-agent/package.json +1 -0
  76. package/node_modules/form-data/package.json +1 -0
  77. package/node_modules/fstream/package.json +1 -0
  78. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  79. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  80. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  81. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +1 -0
  82. package/node_modules/fstream-ignore/package.json +3 -1
  83. package/node_modules/gauge/package.json +14 -12
  84. package/node_modules/gauge/progress-bar.js +4 -5
  85. package/node_modules/gauge/test/progress-bar.js +1 -1
  86. package/node_modules/generate-function/package.json +1 -0
  87. package/node_modules/generate-object-property/package.json +1 -0
  88. package/node_modules/graceful-fs/README.md +17 -0
  89. package/node_modules/graceful-fs/graceful-fs.js +2 -0
  90. package/node_modules/graceful-fs/package.json +16 -11
  91. package/node_modules/graceful-readlink/package.json +1 -0
  92. package/node_modules/har-validator/README.md +45 -122
  93. package/node_modules/har-validator/package.json +16 -16
  94. package/node_modules/has-ansi/package.json +1 -0
  95. package/node_modules/has-unicode/README.md +6 -3
  96. package/node_modules/has-unicode/index.js +7 -3
  97. package/node_modules/has-unicode/package.json +15 -13
  98. package/node_modules/has-unicode/test/index.js +1 -1
  99. package/node_modules/hawk/README.md +634 -634
  100. package/node_modules/hawk/bower.json +24 -24
  101. package/node_modules/hawk/component.json +18 -18
  102. package/node_modules/hawk/dist/client.js +343 -340
  103. package/node_modules/hawk/example/usage.js +78 -78
  104. package/node_modules/hawk/lib/browser.js +637 -637
  105. package/node_modules/hawk/lib/client.js +369 -369
  106. package/node_modules/hawk/lib/crypto.js +126 -126
  107. package/node_modules/hawk/lib/index.js +15 -15
  108. package/node_modules/hawk/lib/server.js +548 -540
  109. package/node_modules/hawk/lib/utils.js +184 -164
  110. package/node_modules/hawk/package.json +9 -8
  111. package/node_modules/hawk/test/browser.js +1492 -1492
  112. package/node_modules/hawk/test/client.js +440 -440
  113. package/node_modules/hawk/test/crypto.js +70 -70
  114. package/node_modules/hawk/test/index.js +378 -378
  115. package/node_modules/hawk/test/readme.js +95 -95
  116. package/node_modules/hawk/test/server.js +1329 -1302
  117. package/node_modules/hawk/test/uri.js +838 -838
  118. package/node_modules/hawk/test/utils.js +149 -121
  119. package/node_modules/hoek/package.json +1 -0
  120. package/node_modules/http-signature/CHANGES.md +7 -0
  121. package/node_modules/http-signature/http_signing.md +71 -3
  122. package/node_modules/http-signature/lib/signer.js +5 -0
  123. package/node_modules/http-signature/package.json +13 -11
  124. package/node_modules/ini/package.json +3 -1
  125. package/node_modules/is-my-json-valid/formats.js +1 -1
  126. package/node_modules/is-my-json-valid/package.json +11 -10
  127. package/node_modules/is-property/package.json +1 -0
  128. package/node_modules/is-typedarray/package.json +3 -1
  129. package/node_modules/isarray/package.json +2 -2
  130. package/node_modules/isstream/package.json +1 -0
  131. package/node_modules/jodid25519/package.json +3 -1
  132. package/node_modules/jsbn/package.json +3 -1
  133. package/node_modules/json-schema/package.json +2 -1
  134. package/node_modules/json-stringify-safe/package.json +1 -0
  135. package/node_modules/jsonpointer/package.json +1 -0
  136. package/node_modules/jsprim/package.json +3 -1
  137. package/node_modules/lodash._basetostring/package.json +4 -4
  138. package/node_modules/lodash._createpadding/package.json +3 -2
  139. package/node_modules/lodash._root/LICENSE +22 -0
  140. package/node_modules/lodash._root/README.md +18 -0
  141. package/node_modules/lodash._root/index.js +53 -0
  142. package/node_modules/lodash._root/package.json +77 -0
  143. package/node_modules/lodash.pad/LICENSE +2 -2
  144. package/node_modules/lodash.pad/README.md +4 -6
  145. package/node_modules/lodash.pad/index.js +347 -15
  146. package/node_modules/lodash.pad/package.json +20 -34
  147. package/node_modules/lodash.padleft/package.json +3 -1
  148. package/node_modules/lodash.padright/package.json +3 -1
  149. package/node_modules/lodash.repeat/LICENSE +2 -2
  150. package/node_modules/lodash.repeat/README.md +4 -6
  151. package/node_modules/lodash.repeat/index.js +262 -11
  152. package/node_modules/lodash.repeat/package.json +21 -34
  153. package/node_modules/mime-db/package.json +2 -2
  154. package/node_modules/mime-types/package.json +2 -2
  155. package/node_modules/ms/.npmignore +5 -0
  156. package/node_modules/{deep-extend → ms}/LICENSE +2 -2
  157. package/node_modules/ms/README.md +35 -0
  158. package/node_modules/ms/index.js +125 -0
  159. package/node_modules/ms/package.json +56 -0
  160. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  161. package/node_modules/node-pre-gyp/LICENSE +27 -0
  162. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +36 -0
  163. package/node_modules/node-pre-gyp/package.json +23 -22
  164. package/node_modules/node-uuid/package.json +1 -0
  165. package/node_modules/npmlog/package.json +18 -16
  166. package/node_modules/oauth-sign/index.js +2 -0
  167. package/node_modules/oauth-sign/package.json +10 -9
  168. package/node_modules/once/README.md +18 -0
  169. package/node_modules/once/once.js +8 -6
  170. package/node_modules/once/package.json +20 -12
  171. package/node_modules/pinkie/index.js +3 -3
  172. package/node_modules/pinkie/package.json +10 -9
  173. package/node_modules/pinkie/readme.md +1 -1
  174. package/node_modules/pinkie-promise/package.json +1 -0
  175. package/node_modules/process-nextick-args/package.json +2 -2
  176. package/node_modules/qs/.eslintrc +17 -0
  177. package/node_modules/qs/.travis.yml +66 -5
  178. package/node_modules/qs/CHANGELOG.md +86 -75
  179. package/node_modules/qs/README.md +85 -81
  180. package/node_modules/qs/bower.json +1 -1
  181. package/node_modules/qs/component.json +1 -1
  182. package/node_modules/qs/dist/qs.js +108 -177
  183. package/node_modules/qs/lib/index.js +1 -7
  184. package/node_modules/qs/lib/parse.js +26 -49
  185. package/node_modules/qs/lib/stringify.js +22 -46
  186. package/node_modules/qs/lib/utils.js +45 -73
  187. package/node_modules/qs/package.json +51 -28
  188. package/node_modules/qs/test/index.js +5 -0
  189. package/node_modules/qs/test/parse.js +236 -321
  190. package/node_modules/qs/test/stringify.js +139 -197
  191. package/node_modules/qs/test/utils.js +6 -25
  192. package/node_modules/rc/node_modules/minimist/package.json +1 -0
  193. package/node_modules/rc/package.json +1 -0
  194. package/node_modules/readable-stream/package.json +1 -0
  195. package/node_modules/request/CHANGELOG.md +16 -1
  196. package/node_modules/request/README.md +1 -1
  197. package/node_modules/request/lib/har.js +3 -2
  198. package/node_modules/request/lib/multipart.js +3 -0
  199. package/node_modules/request/lib/tunnel.js +0 -2
  200. package/node_modules/request/package.json +20 -17
  201. package/node_modules/request/request.js +50 -26
  202. package/node_modules/rimraf/README.md +1 -1
  203. package/node_modules/rimraf/node_modules/glob/README.md +2 -2
  204. package/node_modules/rimraf/node_modules/glob/glob.js +14 -1
  205. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +1 -0
  206. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +1 -0
  207. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +2 -1
  208. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
  209. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
  210. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
  211. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +1 -0
  212. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +1 -0
  213. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +1 -0
  214. package/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +1 -0
  215. package/node_modules/rimraf/node_modules/glob/package.json +11 -11
  216. package/node_modules/rimraf/package.json +13 -12
  217. package/node_modules/semver/package.json +3 -1
  218. package/node_modules/sntp/package.json +1 -0
  219. package/node_modules/sshpk/.npmignore +1 -0
  220. package/node_modules/sshpk/bin/sshpk-sign +176 -0
  221. package/node_modules/sshpk/bin/sshpk-verify +166 -0
  222. package/node_modules/sshpk/lib/ed-compat.js +2 -0
  223. package/node_modules/sshpk/lib/key.js +6 -0
  224. package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
  225. package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
  226. package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
  227. package/node_modules/sshpk/package.json +18 -9
  228. package/node_modules/string_decoder/package.json +2 -2
  229. package/node_modules/stringstream/package.json +1 -0
  230. package/node_modules/strip-ansi/package.json +1 -0
  231. package/node_modules/strip-json-comments/package.json +1 -0
  232. package/node_modules/supports-color/package.json +1 -0
  233. package/node_modules/tar/package.json +1 -0
  234. package/node_modules/tar-pack/README.md +2 -2
  235. package/node_modules/tar-pack/package.json +25 -26
  236. package/node_modules/tough-cookie/package.json +1 -0
  237. package/node_modules/tunnel-agent/package.json +1 -0
  238. package/node_modules/tweetnacl/README.md +1 -1
  239. package/node_modules/tweetnacl/package.json +13 -11
  240. package/node_modules/uid-number/package.json +14 -13
  241. package/node_modules/uid-number/uid-number.js +9 -4
  242. package/node_modules/util-deprecate/package.json +2 -2
  243. package/node_modules/verror/package.json +1 -0
  244. package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → wrappy}/package.json +3 -2
  245. package/node_modules/xtend/package.json +1 -0
  246. package/package.json +2 -2
  247. package/node_modules/are-we-there-yet/README.md~ +0 -183
  248. package/node_modules/bl/test/basic-test.js +0 -541
  249. package/node_modules/bl/test/sauce.js +0 -38
  250. package/node_modules/debug/index.js +0 -5
  251. package/node_modules/debug/lib/debug.js +0 -147
  252. package/node_modules/deep-extend/test/index.spec.js +0 -220
  253. package/node_modules/deep-extend/test/mocha.opts +0 -1
  254. package/node_modules/gauge/README.md~ +0 -161
  255. package/node_modules/has-unicode/README.md~ +0 -4
  256. package/node_modules/once/LICENSE +0 -27
  257. package/node_modules/once/test/once.js +0 -18
  258. package/node_modules/sshpk/node_modules/assert-plus/README.md +0 -155
  259. package/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -206
  260. package/node_modules/sshpk/node_modules/assert-plus/package.json +0 -88
  261. package/node_modules/tar-pack/node_modules/rimraf/README.md +0 -43
  262. package/node_modules/tar-pack/node_modules/rimraf/bin.js +0 -40
  263. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +0 -359
  264. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +0 -226
  265. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +0 -752
  266. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  267. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +0 -37
  268. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
  269. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -58
  270. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -67
  271. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  272. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  273. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  274. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  275. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  276. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -58
  277. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  278. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  279. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  280. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  281. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  282. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  283. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  284. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  285. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  286. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  287. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  288. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  289. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -79
  290. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  291. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  292. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -18
  293. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  294. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  295. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  296. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -90
  297. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  298. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -81
  299. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -66
  300. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  301. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +0 -15
  302. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  303. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  304. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  305. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  306. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -70
  307. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +0 -20
  308. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +0 -78
  309. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +0 -51
  310. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +0 -79
  311. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +0 -460
  312. package/node_modules/tar-pack/node_modules/rimraf/package.json +0 -69
  313. package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +0 -333
  314. package/node_modules/uid-number/LICENCE +0 -25
  315. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/AUTHORS +0 -0
  316. /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/CHANGES.md +0 -0
  317. /package/node_modules/{tar-pack/node_modules/rimraf → aws4/node_modules/lru-cache}/LICENSE +0 -0
  318. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight → uid-number}/LICENSE +0 -0
  319. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/LICENSE +0 -0
  320. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/README.md +0 -0
  321. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/test/basic.js +0 -0
  322. /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/wrappy.js +0 -0
@@ -1,245 +1,206 @@
1
1
  // Copyright (c) 2012, Mark Cavage. All rights reserved.
2
+ // Copyright 2015 Joyent, Inc.
2
3
 
3
4
  var assert = require('assert');
4
5
  var Stream = require('stream').Stream;
5
6
  var util = require('util');
6
7
 
7
8
 
8
-
9
9
  ///--- Globals
10
10
 
11
- var NDEBUG = process.env.NODE_NDEBUG || false;
11
+ /* JSSTYLED */
12
12
  var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
13
13
 
14
14
 
15
-
16
- ///--- Messages
17
-
18
- var ARRAY_TYPE_REQUIRED = '%s ([%s]) required';
19
- var TYPE_REQUIRED = '%s (%s) is required';
20
-
21
-
22
-
23
15
  ///--- Internal
24
16
 
25
- function capitalize(str) {
26
- return (str.charAt(0).toUpperCase() + str.slice(1));
17
+ function _capitalize(str) {
18
+ return (str.charAt(0).toUpperCase() + str.slice(1));
27
19
  }
28
20
 
29
- function uncapitalize(str) {
30
- return (str.charAt(0).toLowerCase() + str.slice(1));
21
+ function _toss(name, expected, oper, arg, actual) {
22
+ throw new assert.AssertionError({
23
+ message: util.format('%s (%s) is required', name, expected),
24
+ actual: (actual === undefined) ? typeof (arg) : actual(arg),
25
+ expected: expected,
26
+ operator: oper || '===',
27
+ stackStartFunction: _toss.caller
28
+ });
31
29
  }
32
30
 
33
- function _() {
34
- return (util.format.apply(util, arguments));
31
+ function _getClass(arg) {
32
+ return (Object.prototype.toString.call(arg).slice(8, -1));
35
33
  }
36
34
 
37
-
38
- function _assert(arg, type, name, stackFunc) {
39
- if (!NDEBUG) {
40
- name = name || type;
41
- stackFunc = stackFunc || _assert.caller;
42
- var t = typeof (arg);
43
-
44
- if (t !== type) {
45
- throw new assert.AssertionError({
46
- message: _(TYPE_REQUIRED, name, type),
47
- actual: t,
48
- expected: type,
49
- operator: '===',
50
- stackStartFunction: stackFunc
51
- });
52
- }
53
- }
35
+ function noop() {
36
+ // Why even bother with asserts?
54
37
  }
55
38
 
56
39
 
57
- function _instanceof(arg, type, name, stackFunc) {
58
- if (!NDEBUG) {
59
- name = name || type;
60
- stackFunc = stackFunc || _instanceof.caller;
40
+ ///--- Exports
61
41
 
62
- if (!(arg instanceof type)) {
63
- throw new assert.AssertionError({
64
- message: _(TYPE_REQUIRED, name, type.name),
65
- actual: _getClass(arg),
66
- expected: type.name,
67
- operator: 'instanceof',
68
- stackStartFunction: stackFunc
69
- });
70
- }
42
+ var types = {
43
+ bool: {
44
+ check: function (arg) { return typeof (arg) === 'boolean'; }
45
+ },
46
+ func: {
47
+ check: function (arg) { return typeof (arg) === 'function'; }
48
+ },
49
+ string: {
50
+ check: function (arg) { return typeof (arg) === 'string'; }
51
+ },
52
+ object: {
53
+ check: function (arg) {
54
+ return typeof (arg) === 'object' && arg !== null;
71
55
  }
72
- }
73
-
74
- function _getClass(object) {
75
- return (Object.prototype.toString.call(object).slice(8, -1));
56
+ },
57
+ number: {
58
+ check: function (arg) {
59
+ return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg);
60
+ }
61
+ },
62
+ buffer: {
63
+ check: function (arg) { return Buffer.isBuffer(arg); },
64
+ operator: 'Buffer.isBuffer'
65
+ },
66
+ array: {
67
+ check: function (arg) { return Array.isArray(arg); },
68
+ operator: 'Array.isArray'
69
+ },
70
+ stream: {
71
+ check: function (arg) { return arg instanceof Stream; },
72
+ operator: 'instanceof',
73
+ actual: _getClass
74
+ },
75
+ date: {
76
+ check: function (arg) { return arg instanceof Date; },
77
+ operator: 'instanceof',
78
+ actual: _getClass
79
+ },
80
+ regexp: {
81
+ check: function (arg) { return arg instanceof RegExp; },
82
+ operator: 'instanceof',
83
+ actual: _getClass
84
+ },
85
+ uuid: {
86
+ check: function (arg) {
87
+ return typeof (arg) === 'string' && UUID_REGEXP.test(arg);
88
+ },
89
+ operator: 'isUUID'
90
+ }
76
91
  };
77
92
 
93
+ function _setExports(ndebug) {
94
+ var keys = Object.keys(types);
95
+ var out;
96
+
97
+ /* re-export standard assert */
98
+ if (process.env.NODE_NDEBUG) {
99
+ out = noop;
100
+ } else {
101
+ out = function (arg, msg) {
102
+ if (!arg) {
103
+ _toss(msg, 'true', arg);
104
+ }
105
+ };
106
+ }
78
107
 
79
-
80
- ///--- API
81
-
82
- function array(arr, type, name) {
83
- if (!NDEBUG) {
84
- name = name || type;
85
-
86
- if (!Array.isArray(arr)) {
87
- throw new assert.AssertionError({
88
- message: _(ARRAY_TYPE_REQUIRED, name, type),
89
- actual: typeof (arr),
90
- expected: 'array',
91
- operator: 'Array.isArray',
92
- stackStartFunction: array.caller
93
- });
94
- }
95
-
96
- for (var i = 0; i < arr.length; i++) {
97
- _assert(arr[i], type, name, array);
98
- }
108
+ /* standard checks */
109
+ keys.forEach(function (k) {
110
+ if (ndebug) {
111
+ out[k] = noop;
112
+ return;
99
113
  }
100
- }
101
-
102
-
103
- function bool(arg, name) {
104
- _assert(arg, 'boolean', name, bool);
105
- }
106
-
107
-
108
- function buffer(arg, name) {
109
- if (!Buffer.isBuffer(arg)) {
110
- throw new assert.AssertionError({
111
- message: _(TYPE_REQUIRED, name || '', 'Buffer'),
112
- actual: typeof (arg),
113
- expected: 'buffer',
114
- operator: 'Buffer.isBuffer',
115
- stackStartFunction: buffer
116
- });
114
+ var type = types[k];
115
+ out[k] = function (arg, msg) {
116
+ if (!type.check(arg)) {
117
+ _toss(msg, k, type.operator, arg, type.actual);
118
+ }
119
+ };
120
+ });
121
+
122
+ /* optional checks */
123
+ keys.forEach(function (k) {
124
+ var name = 'optional' + _capitalize(k);
125
+ if (ndebug) {
126
+ out[name] = noop;
127
+ return;
117
128
  }
118
- }
119
-
120
-
121
- function func(arg, name) {
122
- _assert(arg, 'function', name);
123
- }
124
-
125
-
126
- function number(arg, name) {
127
- _assert(arg, 'number', name);
128
- if (!NDEBUG && (isNaN(arg) || !isFinite(arg))) {
129
- throw new assert.AssertionError({
130
- message: _(TYPE_REQUIRED, name, 'number'),
131
- actual: arg,
132
- expected: 'number',
133
- operator: 'isNaN',
134
- stackStartFunction: number
135
- });
129
+ var type = types[k];
130
+ out[name] = function (arg, msg) {
131
+ if (arg === undefined || arg === null) {
132
+ return;
133
+ }
134
+ if (!type.check(arg)) {
135
+ _toss(msg, k, type.operator, arg, type.actual);
136
+ }
137
+ };
138
+ });
139
+
140
+ /* arrayOf checks */
141
+ keys.forEach(function (k) {
142
+ var name = 'arrayOf' + _capitalize(k);
143
+ if (ndebug) {
144
+ out[name] = noop;
145
+ return;
136
146
  }
137
- }
138
-
139
-
140
- function object(arg, name) {
141
- _assert(arg, 'object', name);
142
- }
143
-
144
-
145
- function stream(arg, name) {
146
- _instanceof(arg, Stream, name);
147
- }
148
-
149
-
150
- function date(arg, name) {
151
- _instanceof(arg, Date, name);
152
- }
153
-
154
- function regexp(arg, name) {
155
- _instanceof(arg, RegExp, name);
156
- }
157
-
158
-
159
- function string(arg, name) {
160
- _assert(arg, 'string', name);
161
- }
162
-
163
-
164
- function uuid(arg, name) {
165
- string(arg, name);
166
- if (!NDEBUG && !UUID_REGEXP.test(arg)) {
167
- throw new assert.AssertionError({
168
- message: _(TYPE_REQUIRED, name, 'uuid'),
169
- actual: 'string',
170
- expected: 'uuid',
171
- operator: 'test',
172
- stackStartFunction: uuid
173
- });
147
+ var type = types[k];
148
+ var expected = '[' + k + ']';
149
+ out[name] = function (arg, msg) {
150
+ if (!Array.isArray(arg)) {
151
+ _toss(msg, expected, type.operator, arg, type.actual);
152
+ }
153
+ var i;
154
+ for (i = 0; i < arg.length; i++) {
155
+ if (!type.check(arg[i])) {
156
+ _toss(msg, expected, type.operator, arg, type.actual);
157
+ }
158
+ }
159
+ };
160
+ });
161
+
162
+ /* optionalArrayOf checks */
163
+ keys.forEach(function (k) {
164
+ var name = 'optionalArrayOf' + _capitalize(k);
165
+ if (ndebug) {
166
+ out[name] = noop;
167
+ return;
174
168
  }
175
- }
176
-
177
-
178
- ///--- Exports
179
-
180
- module.exports = {
181
- bool: bool,
182
- buffer: buffer,
183
- date: date,
184
- func: func,
185
- number: number,
186
- object: object,
187
- regexp: regexp,
188
- stream: stream,
189
- string: string,
190
- uuid: uuid
191
- };
192
-
193
-
194
- Object.keys(module.exports).forEach(function (k) {
195
- if (k === 'buffer')
169
+ var type = types[k];
170
+ var expected = '[' + k + ']';
171
+ out[name] = function (arg, msg) {
172
+ if (arg === undefined || arg === null) {
196
173
  return;
197
-
198
- var name = 'arrayOf' + capitalize(k);
199
-
200
- if (k === 'bool')
201
- k = 'boolean';
202
- if (k === 'func')
203
- k = 'function';
204
- module.exports[name] = function (arg, name) {
205
- array(arg, k, name);
174
+ }
175
+ if (!Array.isArray(arg)) {
176
+ _toss(msg, expected, type.operator, arg, type.actual);
177
+ }
178
+ var i;
179
+ for (i = 0; i < arg.length; i++) {
180
+ if (!type.check(arg[i])) {
181
+ _toss(msg, expected, type.operator, arg, type.actual);
182
+ }
183
+ }
206
184
  };
207
- });
208
-
209
- Object.keys(module.exports).forEach(function (k) {
210
- var _name = 'optional' + capitalize(k);
211
- var s = uncapitalize(k.replace('arrayOf', ''));
212
- if (s === 'bool')
213
- s = 'boolean';
214
- if (s === 'func')
215
- s = 'function';
216
-
217
- if (k.indexOf('arrayOf') !== -1) {
218
- module.exports[_name] = function (arg, name) {
219
- if (!NDEBUG && arg !== undefined) {
220
- array(arg, s, name);
221
- }
222
- };
223
- } else {
224
- module.exports[_name] = function (arg, name) {
225
- if (!NDEBUG && arg !== undefined) {
226
- _assert(arg, s, name);
227
- }
228
- };
229
- }
230
- });
231
-
185
+ });
232
186
 
233
- // Reexport built-in assertions
234
- Object.keys(assert).forEach(function (k) {
187
+ /* re-export built-in assertions */
188
+ Object.keys(assert).forEach(function (k) {
235
189
  if (k === 'AssertionError') {
236
- module.exports[k] = assert[k];
237
- return;
190
+ out[k] = assert[k];
191
+ return;
238
192
  }
193
+ if (ndebug) {
194
+ out[k] = noop;
195
+ return;
196
+ }
197
+ out[k] = assert[k];
198
+ });
239
199
 
240
- module.exports[k] = function () {
241
- if (!NDEBUG) {
242
- assert[k].apply(assert[k], arguments);
243
- }
244
- };
245
- });
200
+ /* export ourselves (for unit tests _only_) */
201
+ out._setExports = _setExports;
202
+
203
+ return out;
204
+ }
205
+
206
+ module.exports = _setExports(process.env.NODE_NDEBUG);
@@ -1,19 +1,22 @@
1
1
  {
2
- "_from": "assert-plus@^0.1.5",
3
- "_id": "assert-plus@0.1.5",
2
+ "_from": "assert-plus@^0.2.0",
3
+ "_id": "assert-plus@0.2.0",
4
4
  "_location": "/assert-plus",
5
+ "_nodeVersion": "0.10.36",
5
6
  "_npmUser": {
6
- "email": "mcavage@gmail.com",
7
- "name": "mcavage"
7
+ "email": "patrick.f.mooney@gmail.com",
8
+ "name": "pfmooney"
8
9
  },
9
- "_npmVersion": "1.3.11",
10
+ "_npmVersion": "3.3.8",
10
11
  "_phantomChildren": {},
11
12
  "_requiredBy": [
12
13
  "/dashdash",
13
- "/http-signature"
14
+ "/http-signature",
15
+ "/sshpk"
14
16
  ],
15
- "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz",
16
- "_shasum": "ee74009413002d84cec7219c6ac811812e723160",
17
+ "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
18
+ "_shasum": "d74e1b87e7affc0db8aadb7021f3fe48101ab234",
19
+ "_shrinkwrap": null,
17
20
  "author": {
18
21
  "email": "mcavage@gmail.com",
19
22
  "name": "Mark Cavage"
@@ -21,32 +24,69 @@
21
24
  "bugs": {
22
25
  "url": "https://github.com/mcavage/node-assert-plus/issues"
23
26
  },
27
+ "contributors": [
28
+ {
29
+ "name": "Dave Eddy",
30
+ "email": "dave@daveeddy.com"
31
+ },
32
+ {
33
+ "name": "Fred Kuo",
34
+ "email": "fred.kuo@joyent.com"
35
+ },
36
+ {
37
+ "name": "Lars-Magnus Skog",
38
+ "email": "ralphtheninja@riseup.net"
39
+ },
40
+ {
41
+ "name": "Mark Cavage",
42
+ "email": "mcavage@gmail.com"
43
+ },
44
+ {
45
+ "name": "Patrick Mooney",
46
+ "email": "pmooney@pfmooney.com"
47
+ },
48
+ {
49
+ "name": "Rob Gulewich",
50
+ "email": "robert.gulewich@joyent.com"
51
+ }
52
+ ],
24
53
  "dependencies": {},
25
54
  "description": "Extra assertions on top of node's assert module",
26
- "devDependencies": {},
55
+ "devDependencies": {
56
+ "faucet": "0.0.1",
57
+ "tape": "4.2.2"
58
+ },
27
59
  "directories": {},
28
60
  "dist": {
29
- "shasum": "ee74009413002d84cec7219c6ac811812e723160",
30
- "tarball": "http://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz"
61
+ "shasum": "d74e1b87e7affc0db8aadb7021f3fe48101ab234",
62
+ "tarball": "http://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz"
31
63
  },
32
64
  "engines": {
33
65
  "node": ">=0.8"
34
66
  },
35
- "homepage": "https://github.com/mcavage/node-assert-plus",
67
+ "homepage": "https://github.com/mcavage/node-assert-plus#readme",
68
+ "license": "MIT",
36
69
  "main": "./assert.js",
37
70
  "maintainers": [
38
71
  {
39
72
  "name": "mcavage",
40
73
  "email": "mcavage@gmail.com"
74
+ },
75
+ {
76
+ "name": "pfmooney",
77
+ "email": "patrick.f.mooney@gmail.com"
41
78
  }
42
79
  ],
43
80
  "name": "assert-plus",
44
81
  "optionalDependencies": {},
45
- "readme": "ERROR: No README data found!",
82
+ "readme": "# assert-plus\n\nThis library is a super small wrapper over node's assert module that has two\nthings: (1) the ability to disable assertions with the environment variable\nNODE\\_NDEBUG, and (2) some API wrappers for argument testing. Like\n`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks\nlike this:\n\n```javascript\n var assert = require('assert-plus');\n\n function fooAccount(options, callback) {\n assert.object(options, 'options');\n assert.number(options.id, 'options.id');\n assert.bool(options.isManager, 'options.isManager');\n assert.string(options.name, 'options.name');\n assert.arrayOfString(options.email, 'options.email');\n assert.func(callback, 'callback');\n\n // Do stuff\n callback(null, {});\n }\n```\n\n# API\n\nAll methods that *aren't* part of node's core assert API are simply assumed to\ntake an argument, and then a string 'name' that's not a message; `AssertionError`\nwill be thrown if the assertion fails with a message like:\n\n AssertionError: foo (string) is required\n at test (/home/mark/work/foo/foo.js:3:9)\n at Object.<anonymous> (/home/mark/work/foo/foo.js:15:1)\n at Module._compile (module.js:446:26)\n at Object..js (module.js:464:10)\n at Module.load (module.js:353:31)\n at Function._load (module.js:311:12)\n at Array.0 (module.js:484:10)\n at EventEmitter._tickCallback (node.js:190:38)\n\nfrom:\n\n```javascript\n function test(foo) {\n assert.string(foo, 'foo');\n }\n```\n\nThere you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`:\n\n```javascript\n function test(foo) {\n assert.arrayOfString(foo, 'foo');\n }\n```\n\nYou can assert IFF an argument is not `undefined` (i.e., an optional arg):\n\n```javascript\n assert.optionalString(foo, 'foo');\n```\n\nLastly, you can opt-out of assertion checking altogether by setting the\nenvironment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have\nlots of assertions, and don't want to pay `typeof ()` taxes to v8 in\nproduction. Be advised: The standard functions re-exported from `assert` are\nalso disabled in assert-plus if NDEBUG is specified. Using them directly from\nthe `assert` module avoids this behavior.\n\nThe complete list of APIs is:\n\n* assert.array\n* assert.bool\n* assert.buffer\n* assert.func\n* assert.number\n* assert.object\n* assert.string\n* assert.stream\n* assert.date\n* assert.regex\n* assert.uuid\n* assert.arrayOfArray\n* assert.arrayOfBool\n* assert.arrayOfBuffer\n* assert.arrayOfFunc\n* assert.arrayOfNumber\n* assert.arrayOfObject\n* assert.arrayOfString\n* assert.arrayOfStream\n* assert.arrayOfDate\n* assert.arrayOfUuid\n* assert.optionalArray\n* assert.optionalBool\n* assert.optionalBuffer\n* assert.optionalFunc\n* assert.optionalNumber\n* assert.optionalObject\n* assert.optionalString\n* assert.optionalStream\n* assert.optionalDate\n* assert.optionalUuid\n* assert.optionalArrayOfArray\n* assert.optionalArrayOfBool\n* assert.optionalArrayOfBuffer\n* assert.optionalArrayOfFunc\n* assert.optionalArrayOfNumber\n* assert.optionalArrayOfObject\n* assert.optionalArrayOfString\n* assert.optionalArrayOfStream\n* assert.optionalArrayOfDate\n* assert.optionalArrayOfUuid\n* assert.AssertionError\n* assert.fail\n* assert.ok\n* assert.equal\n* assert.notEqual\n* assert.deepEqual\n* assert.notDeepEqual\n* assert.strictEqual\n* assert.notStrictEqual\n* assert.throws\n* assert.doesNotThrow\n* assert.ifError\n\n# Installation\n\n npm install assert-plus\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2012 Mark Cavage\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Bugs\n\nSee <https://github.com/mcavage/node-assert-plus/issues>.\n",
83
+ "readmeFilename": "README.md",
46
84
  "repository": {
47
85
  "type": "git",
48
86
  "url": "git+https://github.com/mcavage/node-assert-plus.git"
49
87
  },
50
- "scripts": {},
51
- "version": "0.1.5"
88
+ "scripts": {
89
+ "test": "tape tests/*.js | ./node_modules/.bin/faucet"
90
+ },
91
+ "version": "0.2.0"
52
92
  }
@@ -985,6 +985,52 @@ async.waterfall([
985
985
  // result now equals 'done'
986
986
  });
987
987
  ```
988
+ Or, with named functions:
989
+
990
+ ```js
991
+ async.waterfall([
992
+ myFirstFunction,
993
+ mySecondFunction,
994
+ myLastFunction,
995
+ ], function (err, result) {
996
+ // result now equals 'done'
997
+ });
998
+ function myFirstFunction(callback) {
999
+ callback(null, 'one', 'two');
1000
+ }
1001
+ function mySecondFunction(arg1, arg2, callback) {
1002
+ // arg1 now equals 'one' and arg2 now equals 'two'
1003
+ callback(null, 'three');
1004
+ }
1005
+ function myLastFunction(arg1, callback) {
1006
+ // arg1 now equals 'three'
1007
+ callback(null, 'done');
1008
+ }
1009
+ ```
1010
+
1011
+ Or, if you need to pass any argument to the first function:
1012
+
1013
+ ```js
1014
+ async.waterfall([
1015
+ async.apply(myFirstFunction, 'zero'),
1016
+ mySecondFunction,
1017
+ myLastFunction,
1018
+ ], function (err, result) {
1019
+ // result now equals 'done'
1020
+ });
1021
+ function myFirstFunction(arg1, callback) {
1022
+ // arg1 now equals 'zero'
1023
+ callback(null, 'one', 'two');
1024
+ }
1025
+ function mySecondFunction(arg1, arg2, callback) {
1026
+ // arg1 now equals 'one' and arg2 now equals 'two'
1027
+ callback(null, 'three');
1028
+ }
1029
+ function myLastFunction(arg1, callback) {
1030
+ // arg1 now equals 'three'
1031
+ callback(null, 'done');
1032
+ }
1033
+ ```
988
1034
 
989
1035
  ---------------------------------------
990
1036
  <a name="compose" />
@@ -1399,8 +1445,10 @@ result (if any) of the final attempt.
1399
1445
 
1400
1446
  __Arguments__
1401
1447
 
1402
- * `opts` - Can be either an object with `times` and `interval` or a number. `times` is how many attempts should be made before giving up. `interval` is how long to wait inbetween attempts. Defaults to {times: 5, interval: 0}
1403
- * if a number is passed in it sets `times` only (with `interval` defaulting to 0).
1448
+ * `opts` - Can be either an object with `times` and `interval` or a number.
1449
+ * `times` - The number of attempts to make before giving up. The default is `5`.
1450
+ * `interval` - The time to wait between retries, in milliseconds. The default is `0`.
1451
+ * If `opts` is a number, the number specifies the number of times to retry, with the default interval of `0`.
1404
1452
  * `task(callback, results)` - A function which receives two arguments: (1) a `callback(err, result)`
1405
1453
  which must be called when finished, passing `err` (which can be `null`) and the `result` of
1406
1454
  the function's execution, and (2) a `results` object, containing the results of
@@ -1408,21 +1456,29 @@ __Arguments__
1408
1456
  * `callback(err, results)` - An optional callback which is called when the
1409
1457
  task has succeeded, or after the final failed attempt. It receives the `err` and `result` arguments of the last attempt at completing the `task`.
1410
1458
 
1411
- The [`retry`](#retry) function can be used as a stand-alone control flow by passing a
1412
- callback, as shown below:
1459
+ The [`retry`](#retry) function can be used as a stand-alone control flow by passing a callback, as shown below:
1413
1460
 
1414
1461
  ```js
1462
+ // try calling apiMethod 3 times
1415
1463
  async.retry(3, apiMethod, function(err, result) {
1416
1464
  // do something with the result
1417
1465
  });
1418
1466
  ```
1419
1467
 
1420
1468
  ```js
1469
+ // try calling apiMethod 3 times, waiting 200 ms between each retry
1421
1470
  async.retry({times: 3, interval: 200}, apiMethod, function(err, result) {
1422
1471
  // do something with the result
1423
1472
  });
1424
1473
  ```
1425
1474
 
1475
+ ```js
1476
+ // try calling apiMethod the default 5 times no delay between each retry
1477
+ async.retry(apiMethod, function(err, result) {
1478
+ // do something with the result
1479
+ });
1480
+ ```
1481
+
1426
1482
  It can also be embedded within other control flow functions to retry individual methods
1427
1483
  that are not as reliable, like this:
1428
1484
 
@@ -1727,6 +1783,32 @@ async.waterfall([
1727
1783
  ], callback)
1728
1784
  ```
1729
1785
 
1786
+ If the function passed to `asyncify` returns a Promise, that promises's resolved/rejected state will be used to call the callback, rather than simply the synchronous return value. Example:
1787
+
1788
+ ```js
1789
+ async.waterfall([
1790
+ async.apply(fs.readFile, filename, "utf8"),
1791
+ async.asyncify(function (contents) {
1792
+ return db.model.create(contents);
1793
+ }),
1794
+ function (model, next) {
1795
+ // `model` is the instantiated model object.
1796
+ // If there was an error, this function would be skipped.
1797
+ }
1798
+ ], callback)
1799
+ ```
1800
+
1801
+ This also means you can asyncify ES2016 `async` functions.
1802
+
1803
+ ```js
1804
+ var q = async.queue(async.asyncify(async function (file) {
1805
+ var intermediateStep = await processFile(file);
1806
+ return await somePromise(intermediateStep)
1807
+ }));
1808
+
1809
+ q.push(files);
1810
+ ```
1811
+
1730
1812
  ---------------------------------------
1731
1813
 
1732
1814
  <a name="log" />