fsevents 1.0.15 → 1.0.17

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 (361) hide show
  1. package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
  2. package/node_modules/abbrev/package.json +16 -8
  3. package/node_modules/ansi-regex/package.json +31 -23
  4. package/node_modules/ansi-styles/package.json +27 -19
  5. package/node_modules/aproba/package.json +16 -8
  6. package/node_modules/are-we-there-yet/package.json +14 -6
  7. package/node_modules/asn1/package.json +16 -8
  8. package/node_modules/assert-plus/package.json +16 -8
  9. package/node_modules/{node-uuid/LICENSE.md → asynckit/LICENSE} +1 -1
  10. package/node_modules/asynckit/README.md +233 -0
  11. package/node_modules/asynckit/bench.js +76 -0
  12. package/node_modules/asynckit/index.js +6 -0
  13. package/node_modules/asynckit/lib/abort.js +29 -0
  14. package/node_modules/asynckit/lib/async.js +34 -0
  15. package/node_modules/asynckit/lib/defer.js +26 -0
  16. package/node_modules/asynckit/lib/iterate.js +75 -0
  17. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  18. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  19. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  20. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  21. package/node_modules/asynckit/lib/state.js +37 -0
  22. package/node_modules/asynckit/lib/streamify.js +141 -0
  23. package/node_modules/asynckit/lib/terminator.js +29 -0
  24. package/node_modules/asynckit/package.json +126 -0
  25. package/node_modules/asynckit/parallel.js +43 -0
  26. package/node_modules/asynckit/serial.js +17 -0
  27. package/node_modules/asynckit/serialOrdered.js +75 -0
  28. package/node_modules/asynckit/stream.js +21 -0
  29. package/node_modules/aws-sign2/package.json +15 -7
  30. package/node_modules/aws4/README.md +9 -0
  31. package/node_modules/aws4/aws4.js +8 -3
  32. package/node_modules/aws4/package.json +62 -54
  33. package/node_modules/balanced-match/package.json +27 -19
  34. package/node_modules/bcrypt-pbkdf/README.md +39 -0
  35. package/node_modules/bcrypt-pbkdf/index.js +559 -0
  36. package/node_modules/bcrypt-pbkdf/package.json +72 -0
  37. package/node_modules/block-stream/package.json +15 -7
  38. package/node_modules/boom/package.json +14 -6
  39. package/node_modules/brace-expansion/index.js +10 -0
  40. package/node_modules/brace-expansion/package.json +35 -27
  41. package/node_modules/buffer-shims/package.json +16 -7
  42. package/node_modules/caseless/package.json +18 -10
  43. package/node_modules/chalk/node_modules/supports-color/index.js +50 -0
  44. package/node_modules/{supports-color → chalk/node_modules/supports-color}/license +0 -0
  45. package/node_modules/chalk/node_modules/supports-color/package.json +113 -0
  46. package/node_modules/chalk/node_modules/supports-color/readme.md +36 -0
  47. package/node_modules/chalk/package.json +30 -22
  48. package/node_modules/code-point-at/index.js +3 -4
  49. package/node_modules/code-point-at/package.json +40 -30
  50. package/node_modules/code-point-at/readme.md +2 -4
  51. package/node_modules/combined-stream/package.json +15 -7
  52. package/node_modules/commander/package.json +16 -8
  53. package/node_modules/concat-map/package.json +30 -22
  54. package/node_modules/console-control-strings/package.json +15 -7
  55. package/node_modules/core-util-is/package.json +22 -14
  56. package/node_modules/cryptiles/package.json +14 -6
  57. package/node_modules/dashdash/CHANGES.md +364 -0
  58. package/node_modules/dashdash/LICENSE.txt +24 -0
  59. package/node_modules/dashdash/etc/dashdash.bash_completion.in +4 -3
  60. package/node_modules/dashdash/node_modules/assert-plus/package.json +16 -8
  61. package/node_modules/dashdash/package.json +33 -24
  62. package/node_modules/debug/package.json +20 -12
  63. package/node_modules/deep-extend/package.json +23 -15
  64. package/node_modules/delayed-stream/package.json +15 -7
  65. package/node_modules/delegates/package.json +14 -6
  66. package/node_modules/ecc-jsbn/package.json +17 -9
  67. package/node_modules/escape-string-regexp/package.json +20 -12
  68. package/node_modules/extend/package.json +16 -8
  69. package/node_modules/extsprintf/package.json +14 -6
  70. package/node_modules/forever-agent/package.json +15 -7
  71. package/node_modules/form-data/README.md +7 -8
  72. package/node_modules/form-data/lib/browser.js +1 -1
  73. package/node_modules/form-data/lib/form_data.js +101 -72
  74. package/node_modules/form-data/lib/populate.js +6 -5
  75. package/node_modules/form-data/package.json +68 -52
  76. package/node_modules/fs.realpath/package.json +19 -11
  77. package/node_modules/fstream/package.json +15 -7
  78. package/node_modules/fstream-ignore/package.json +15 -7
  79. package/node_modules/gauge/CHANGELOG.md +14 -0
  80. package/node_modules/gauge/README.md +4 -0
  81. package/node_modules/gauge/index.js +7 -3
  82. package/node_modules/gauge/package.json +37 -28
  83. package/node_modules/generate-function/package.json +16 -8
  84. package/node_modules/generate-object-property/package.json +14 -6
  85. package/node_modules/getpass/node_modules/assert-plus/package.json +16 -8
  86. package/node_modules/getpass/package.json +16 -8
  87. package/node_modules/glob/README.md +3 -0
  88. package/node_modules/glob/common.js +6 -1
  89. package/node_modules/glob/glob.js +23 -14
  90. package/node_modules/glob/package.json +29 -21
  91. package/node_modules/glob/sync.js +29 -11
  92. package/node_modules/graceful-fs/README.md +1 -1
  93. package/node_modules/graceful-fs/graceful-fs.js +23 -14
  94. package/node_modules/graceful-fs/package.json +35 -27
  95. package/node_modules/graceful-fs/polyfills.js +99 -21
  96. package/node_modules/graceful-readlink/package.json +14 -6
  97. package/node_modules/har-validator/package.json +16 -8
  98. package/node_modules/has-ansi/package.json +29 -21
  99. package/node_modules/has-unicode/package.json +18 -10
  100. package/node_modules/hawk/package.json +18 -10
  101. package/node_modules/hoek/package.json +14 -6
  102. package/node_modules/http-signature/package.json +14 -6
  103. package/node_modules/inflight/inflight.js +22 -12
  104. package/node_modules/inflight/package.json +28 -20
  105. package/node_modules/inherits/inherits.js +7 -1
  106. package/node_modules/inherits/package.json +41 -21
  107. package/node_modules/ini/package.json +15 -7
  108. package/node_modules/is-fullwidth-code-point/package.json +27 -19
  109. package/node_modules/is-my-json-valid/index.js +10 -0
  110. package/node_modules/is-my-json-valid/package.json +36 -20
  111. package/node_modules/is-my-json-valid/test/misc.js +24 -0
  112. package/node_modules/is-property/package.json +19 -11
  113. package/node_modules/is-typedarray/package.json +16 -8
  114. package/node_modules/isarray/package.json +28 -20
  115. package/node_modules/isstream/package.json +19 -11
  116. package/node_modules/jodid25519/package.json +18 -10
  117. package/node_modules/jsbn/package.json +15 -7
  118. package/node_modules/json-schema/lib/links.js +17 -3
  119. package/node_modules/json-schema/lib/validate.js +18 -5
  120. package/node_modules/json-schema/package.json +32 -18
  121. package/node_modules/json-stringify-safe/package.json +18 -10
  122. package/node_modules/{async/LICENSE → jsonpointer/LICENSE.md} +3 -1
  123. package/node_modules/jsonpointer/README.md +17 -10
  124. package/node_modules/jsonpointer/jsonpointer.js +73 -56
  125. package/node_modules/jsonpointer/package.json +47 -26
  126. package/node_modules/jsprim/CHANGES.md +4 -0
  127. package/node_modules/jsprim/package.json +25 -17
  128. package/node_modules/mime-db/HISTORY.md +34 -0
  129. package/node_modules/mime-db/db.json +86 -1
  130. package/node_modules/mime-db/package.json +43 -31
  131. package/node_modules/mime-types/HISTORY.md +13 -0
  132. package/node_modules/mime-types/index.js +8 -8
  133. package/node_modules/mime-types/package.json +31 -19
  134. package/node_modules/minimatch/minimatch.js +19 -20
  135. package/node_modules/minimatch/package.json +25 -17
  136. package/node_modules/minimist/package.json +24 -16
  137. package/node_modules/mkdirp/package.json +21 -13
  138. package/node_modules/ms/package.json +14 -6
  139. package/node_modules/node-pre-gyp/CHANGELOG.md +16 -0
  140. package/node_modules/node-pre-gyp/README.md +574 -0
  141. package/node_modules/node-pre-gyp/appveyor.yml +19 -9
  142. package/node_modules/node-pre-gyp/lib/install.js +31 -7
  143. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +2 -0
  144. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +88 -0
  145. package/node_modules/node-pre-gyp/package.json +48 -40
  146. package/node_modules/nopt/package.json +19 -11
  147. package/node_modules/npmlog/CHANGELOG.md +9 -0
  148. package/node_modules/npmlog/README.md +7 -1
  149. package/node_modules/npmlog/log.js +12 -8
  150. package/node_modules/npmlog/package.json +30 -22
  151. package/node_modules/number-is-nan/package.json +39 -30
  152. package/node_modules/number-is-nan/readme.md +1 -3
  153. package/node_modules/oauth-sign/package.json +15 -7
  154. package/node_modules/object-assign/package.json +22 -14
  155. package/node_modules/once/README.md +28 -0
  156. package/node_modules/once/once.js +21 -0
  157. package/node_modules/once/package.json +31 -20
  158. package/node_modules/path-is-absolute/index.js +5 -5
  159. package/node_modules/path-is-absolute/package.json +45 -31
  160. package/node_modules/path-is-absolute/readme.md +19 -11
  161. package/node_modules/pinkie/package.json +18 -10
  162. package/node_modules/pinkie-promise/package.json +18 -10
  163. package/node_modules/process-nextick-args/package.json +16 -8
  164. package/node_modules/punycode/LICENSE-MIT.txt +20 -0
  165. package/node_modules/punycode/README.md +176 -0
  166. package/node_modules/punycode/package.json +127 -0
  167. package/node_modules/punycode/punycode.js +533 -0
  168. package/node_modules/qs/.eslintrc +15 -15
  169. package/node_modules/qs/CHANGELOG.md +24 -0
  170. package/node_modules/qs/README.md +398 -0
  171. package/node_modules/qs/dist/qs.js +138 -51
  172. package/node_modules/qs/lib/formats.js +18 -0
  173. package/node_modules/qs/lib/index.js +6 -4
  174. package/node_modules/qs/lib/parse.js +23 -24
  175. package/node_modules/qs/lib/stringify.js +63 -13
  176. package/node_modules/qs/lib/utils.js +22 -6
  177. package/node_modules/qs/package.json +40 -30
  178. package/node_modules/qs/test/.eslintrc +9 -0
  179. package/node_modules/qs/test/index.js +2 -0
  180. package/node_modules/qs/test/parse.js +81 -45
  181. package/node_modules/qs/test/stringify.js +260 -27
  182. package/node_modules/qs/test/utils.js +13 -0
  183. package/node_modules/rc/node_modules/minimist/package.json +24 -16
  184. package/node_modules/rc/package.json +21 -13
  185. package/node_modules/readable-stream/.npmignore +1 -0
  186. package/node_modules/readable-stream/.travis.yml +2 -7
  187. package/node_modules/readable-stream/README.md +6 -2
  188. package/node_modules/readable-stream/lib/_stream_readable.js +158 -110
  189. package/node_modules/readable-stream/lib/_stream_transform.js +7 -5
  190. package/node_modules/readable-stream/lib/_stream_writable.js +35 -7
  191. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  192. package/node_modules/readable-stream/package.json +34 -26
  193. package/node_modules/request/CHANGELOG.md +49 -18
  194. package/node_modules/request/README.md +3 -2
  195. package/node_modules/request/index.js +2 -3
  196. package/node_modules/request/lib/auth.js +1 -1
  197. package/node_modules/request/lib/helpers.js +4 -13
  198. package/node_modules/request/lib/multipart.js +1 -1
  199. package/node_modules/request/lib/oauth.js +1 -1
  200. package/node_modules/request/lib/redirect.js +5 -1
  201. package/node_modules/request/package.json +50 -31
  202. package/node_modules/request/request.js +84 -43
  203. package/node_modules/rimraf/package.json +28 -20
  204. package/node_modules/rimraf/rimraf.js +2 -2
  205. package/node_modules/semver/README.md +4 -0
  206. package/node_modules/semver/package.json +27 -19
  207. package/node_modules/semver/semver.js +14 -5
  208. package/node_modules/set-blocking/package.json +21 -13
  209. package/node_modules/signal-exit/CHANGELOG.md +10 -0
  210. package/node_modules/signal-exit/LICENSE.txt +2 -0
  211. package/node_modules/signal-exit/index.js +9 -0
  212. package/node_modules/signal-exit/package.json +32 -24
  213. package/node_modules/signal-exit/signals.js +5 -4
  214. package/node_modules/sntp/package.json +16 -8
  215. package/node_modules/sshpk/README.md +214 -3
  216. package/node_modules/sshpk/bin/sshpk-conv +6 -0
  217. package/node_modules/sshpk/lib/certificate.js +291 -0
  218. package/node_modules/sshpk/lib/errors.js +14 -1
  219. package/node_modules/sshpk/lib/fingerprint.js +28 -7
  220. package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
  221. package/node_modules/sshpk/lib/formats/pem.js +2 -2
  222. package/node_modules/sshpk/lib/formats/pkcs8.js +2 -7
  223. package/node_modules/sshpk/lib/formats/ssh-private.js +140 -17
  224. package/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
  225. package/node_modules/sshpk/lib/formats/x509.js +484 -0
  226. package/node_modules/sshpk/lib/identity.js +255 -0
  227. package/node_modules/sshpk/lib/index.js +13 -1
  228. package/node_modules/sshpk/lib/key.js +1 -0
  229. package/node_modules/sshpk/lib/signature.js +14 -6
  230. package/node_modules/sshpk/lib/ssh-buffer.js +24 -0
  231. package/node_modules/sshpk/lib/utils.js +43 -1
  232. package/node_modules/sshpk/node_modules/assert-plus/package.json +16 -8
  233. package/node_modules/sshpk/package.json +31 -21
  234. package/node_modules/string-width/index.js +5 -0
  235. package/node_modules/string-width/package.json +49 -36
  236. package/node_modules/string-width/readme.md +4 -3
  237. package/node_modules/string_decoder/package.json +19 -11
  238. package/node_modules/stringstream/package.json +18 -10
  239. package/node_modules/strip-ansi/package.json +29 -21
  240. package/node_modules/strip-json-comments/package.json +27 -19
  241. package/node_modules/supports-color/cli.js +28 -0
  242. package/node_modules/supports-color/index.js +2 -20
  243. package/node_modules/supports-color/package.json +52 -45
  244. package/node_modules/supports-color/readme.md +14 -6
  245. package/node_modules/tar/package.json +19 -11
  246. package/node_modules/tar-pack/README.md +4 -1
  247. package/node_modules/tar-pack/index.js +17 -12
  248. package/node_modules/tar-pack/node_modules/once/LICENSE +15 -0
  249. package/node_modules/tar-pack/node_modules/once/README.md +51 -0
  250. package/node_modules/tar-pack/node_modules/once/once.js +21 -0
  251. package/node_modules/tar-pack/node_modules/once/package.json +96 -0
  252. package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
  253. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/.travis.yml +4 -7
  254. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/LICENSE +0 -0
  255. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/README.md +2 -2
  256. package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
  257. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
  258. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/duplex.js +0 -0
  259. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
  260. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
  261. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_readable.js +164 -107
  262. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  263. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  264. package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  265. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/package.json +50 -30
  266. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/passthrough.js +0 -0
  267. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/readable.js +4 -0
  268. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/transform.js +0 -0
  269. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/writable.js +0 -0
  270. package/node_modules/tar-pack/package.json +39 -22
  271. package/node_modules/tar-pack/test/index.js +43 -1
  272. package/node_modules/tough-cookie/README.md +17 -3
  273. package/node_modules/tough-cookie/lib/cookie.js +6 -12
  274. package/node_modules/tough-cookie/package.json +50 -35
  275. package/node_modules/tunnel-agent/package.json +15 -7
  276. package/node_modules/tweetnacl/AUTHORS.md +28 -0
  277. package/node_modules/tweetnacl/CHANGELOG.md +93 -0
  278. package/node_modules/tweetnacl/LICENSE +24 -0
  279. package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
  280. package/node_modules/tweetnacl/README.md +57 -61
  281. package/node_modules/tweetnacl/nacl-fast.js +22 -52
  282. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  283. package/node_modules/tweetnacl/nacl.d.ts +98 -0
  284. package/node_modules/tweetnacl/nacl.js +21 -51
  285. package/node_modules/tweetnacl/nacl.min.js +1 -1
  286. package/node_modules/tweetnacl/package.json +47 -46
  287. package/node_modules/uid-number/package.json +15 -7
  288. package/node_modules/util-deprecate/package.json +21 -13
  289. package/node_modules/uuid/.npmignore +8 -0
  290. package/node_modules/uuid/.travis.yml +5 -0
  291. package/node_modules/uuid/AUTHORS +5 -0
  292. package/node_modules/uuid/HISTORY.md +28 -0
  293. package/node_modules/uuid/LICENSE.md +21 -0
  294. package/node_modules/uuid/README.md +132 -0
  295. package/node_modules/{node-uuid → uuid}/bin/uuid +0 -0
  296. package/node_modules/uuid/index.js +8 -0
  297. package/node_modules/uuid/lib/bytesToUuid.js +23 -0
  298. package/node_modules/uuid/lib/rng-browser.js +33 -0
  299. package/node_modules/uuid/lib/rng.js +10 -0
  300. package/node_modules/uuid/package.json +122 -0
  301. package/node_modules/uuid/test/mocha.opts +3 -0
  302. package/node_modules/uuid/test/test.js +96 -0
  303. package/node_modules/uuid/v1.js +103 -0
  304. package/node_modules/uuid/v4.js +29 -0
  305. package/node_modules/verror/package.json +14 -6
  306. package/node_modules/wide-align/package.json +19 -11
  307. package/node_modules/wrappy/package.json +17 -8
  308. package/node_modules/xtend/package.json +29 -21
  309. package/package.json +1 -1
  310. package/node_modules/async/CHANGELOG.md +0 -125
  311. package/node_modules/async/README.md +0 -1877
  312. package/node_modules/async/dist/async.js +0 -1265
  313. package/node_modules/async/dist/async.min.js +0 -2
  314. package/node_modules/async/lib/async.js +0 -1265
  315. package/node_modules/async/package.json +0 -149
  316. package/node_modules/bl/.jshintrc +0 -59
  317. package/node_modules/bl/.npmignore +0 -1
  318. package/node_modules/bl/.travis.yml +0 -13
  319. package/node_modules/bl/LICENSE.md +0 -13
  320. package/node_modules/bl/README.md +0 -200
  321. package/node_modules/bl/bl.js +0 -243
  322. package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
  323. package/node_modules/bl/node_modules/readable-stream/.zuul.yml +0 -1
  324. package/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
  325. package/node_modules/bl/package.json +0 -96
  326. package/node_modules/bl/test/test.js +0 -640
  327. package/node_modules/form-data/.dockerignore +0 -7
  328. package/node_modules/form-data/.editorconfig +0 -10
  329. package/node_modules/form-data/.eslintignore +0 -1
  330. package/node_modules/form-data/.eslintrc +0 -64
  331. package/node_modules/form-data/wercker.yml +0 -36
  332. package/node_modules/gauge/CHANGELOG.md~ +0 -123
  333. package/node_modules/gauge/README.md~ +0 -393
  334. package/node_modules/has-color/index.js +0 -32
  335. package/node_modules/has-color/package.json +0 -97
  336. package/node_modules/has-color/readme.md +0 -30
  337. package/node_modules/inherits/test.js +0 -25
  338. package/node_modules/jsonpointer/.travis.yml +0 -10
  339. package/node_modules/jsonpointer/test.js +0 -98
  340. package/node_modules/node-uuid/.npmignore +0 -4
  341. package/node_modules/node-uuid/README.md +0 -254
  342. package/node_modules/node-uuid/benchmark/README.md +0 -53
  343. package/node_modules/node-uuid/benchmark/bench.gnu +0 -174
  344. package/node_modules/node-uuid/benchmark/bench.sh +0 -34
  345. package/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
  346. package/node_modules/node-uuid/benchmark/benchmark.js +0 -84
  347. package/node_modules/node-uuid/bower.json +0 -23
  348. package/node_modules/node-uuid/component.json +0 -25
  349. package/node_modules/node-uuid/package.json +0 -105
  350. package/node_modules/node-uuid/test/compare_v1.js +0 -63
  351. package/node_modules/node-uuid/test/test.html +0 -17
  352. package/node_modules/node-uuid/test/test.js +0 -231
  353. package/node_modules/node-uuid/uuid.js +0 -272
  354. package/node_modules/npmlog/CHANGELOG.md~ +0 -31
  355. package/node_modules/qs/.jscs.json +0 -176
  356. package/node_modules/readable-stream/doc/stream.md +0 -1772
  357. package/node_modules/request/.eslintrc +0 -45
  358. package/node_modules/request/.npmignore +0 -6
  359. package/node_modules/request/.travis.yml +0 -21
  360. package/node_modules/request/CONTRIBUTING.md +0 -81
  361. package/node_modules/request/codecov.yml +0 -2
@@ -0,0 +1,141 @@
1
+ var async = require('./async.js');
2
+
3
+ // API
4
+ module.exports = {
5
+ iterator: wrapIterator,
6
+ callback: wrapCallback
7
+ };
8
+
9
+ /**
10
+ * Wraps iterators with long signature
11
+ *
12
+ * @this ReadableAsyncKit#
13
+ * @param {function} iterator - function to wrap
14
+ * @returns {function} - wrapped function
15
+ */
16
+ function wrapIterator(iterator)
17
+ {
18
+ var stream = this;
19
+
20
+ return function(item, key, cb)
21
+ {
22
+ var aborter
23
+ , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key))
24
+ ;
25
+
26
+ stream.jobs[key] = wrappedCb;
27
+
28
+ // it's either shortcut (item, cb)
29
+ if (iterator.length == 2)
30
+ {
31
+ aborter = iterator(item, wrappedCb);
32
+ }
33
+ // or long format (item, key, cb)
34
+ else
35
+ {
36
+ aborter = iterator(item, key, wrappedCb);
37
+ }
38
+
39
+ return aborter;
40
+ };
41
+ }
42
+
43
+ /**
44
+ * Wraps provided callback function
45
+ * allowing to execute snitch function before
46
+ * real callback
47
+ *
48
+ * @this ReadableAsyncKit#
49
+ * @param {function} callback - function to wrap
50
+ * @returns {function} - wrapped function
51
+ */
52
+ function wrapCallback(callback)
53
+ {
54
+ var stream = this;
55
+
56
+ var wrapped = function(error, result)
57
+ {
58
+ return finisher.call(stream, error, result, callback);
59
+ };
60
+
61
+ return wrapped;
62
+ }
63
+
64
+ /**
65
+ * Wraps provided iterator callback function
66
+ * makes sure snitch only called once,
67
+ * but passes secondary calls to the original callback
68
+ *
69
+ * @this ReadableAsyncKit#
70
+ * @param {function} callback - callback to wrap
71
+ * @param {number|string} key - iteration key
72
+ * @returns {function} wrapped callback
73
+ */
74
+ function wrapIteratorCallback(callback, key)
75
+ {
76
+ var stream = this;
77
+
78
+ return function(error, output)
79
+ {
80
+ // don't repeat yourself
81
+ if (!(key in stream.jobs))
82
+ {
83
+ callback(error, output);
84
+ return;
85
+ }
86
+
87
+ // clean up jobs
88
+ delete stream.jobs[key];
89
+
90
+ return streamer.call(stream, error, {key: key, value: output}, callback);
91
+ };
92
+ }
93
+
94
+ /**
95
+ * Stream wrapper for iterator callback
96
+ *
97
+ * @this ReadableAsyncKit#
98
+ * @param {mixed} error - error response
99
+ * @param {mixed} output - iterator output
100
+ * @param {function} callback - callback that expects iterator results
101
+ */
102
+ function streamer(error, output, callback)
103
+ {
104
+ if (error && !this.error)
105
+ {
106
+ this.error = error;
107
+ this.pause();
108
+ this.emit('error', error);
109
+ // send back value only, as expected
110
+ callback(error, output && output.value);
111
+ return;
112
+ }
113
+
114
+ // stream stuff
115
+ this.push(output);
116
+
117
+ // back to original track
118
+ // send back value only, as expected
119
+ callback(error, output && output.value);
120
+ }
121
+
122
+ /**
123
+ * Stream wrapper for finishing callback
124
+ *
125
+ * @this ReadableAsyncKit#
126
+ * @param {mixed} error - error response
127
+ * @param {mixed} output - iterator output
128
+ * @param {function} callback - callback that expects final results
129
+ */
130
+ function finisher(error, output, callback)
131
+ {
132
+ // signal end of the stream
133
+ // only for successfully finished streams
134
+ if (!error)
135
+ {
136
+ this.push(null);
137
+ }
138
+
139
+ // back to original track
140
+ callback(error, output);
141
+ }
@@ -0,0 +1,29 @@
1
+ var abort = require('./abort.js')
2
+ , async = require('./async.js')
3
+ ;
4
+
5
+ // API
6
+ module.exports = terminator;
7
+
8
+ /**
9
+ * Terminates jobs in the attached state context
10
+ *
11
+ * @this AsyncKitState#
12
+ * @param {function} callback - final callback to invoke after termination
13
+ */
14
+ function terminator(callback)
15
+ {
16
+ if (!Object.keys(this.jobs).length)
17
+ {
18
+ return;
19
+ }
20
+
21
+ // fast forward iteration index
22
+ this.index = this.size;
23
+
24
+ // abort jobs
25
+ abort(this);
26
+
27
+ // send back results we have so far
28
+ async(callback)(null, this.results);
29
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "_args": [
3
+ [
4
+ {
5
+ "raw": "asynckit@^0.4.0",
6
+ "scope": null,
7
+ "escapedName": "asynckit",
8
+ "name": "asynckit",
9
+ "rawSpec": "^0.4.0",
10
+ "spec": ">=0.4.0 <0.5.0",
11
+ "type": "range"
12
+ },
13
+ "/Users/eshanker/Code/fsevents/node_modules/form-data"
14
+ ]
15
+ ],
16
+ "_from": "asynckit@>=0.4.0 <0.5.0",
17
+ "_id": "asynckit@0.4.0",
18
+ "_inCache": true,
19
+ "_location": "/asynckit",
20
+ "_nodeVersion": "0.12.11",
21
+ "_npmOperationalInternal": {
22
+ "host": "packages-16-east.internal.npmjs.com",
23
+ "tmp": "tmp/asynckit-0.4.0.tgz_1465928940169_0.8008207362145185"
24
+ },
25
+ "_npmUser": {
26
+ "name": "alexindigo",
27
+ "email": "iam@alexindigo.com"
28
+ },
29
+ "_npmVersion": "2.15.6",
30
+ "_phantomChildren": {},
31
+ "_requested": {
32
+ "raw": "asynckit@^0.4.0",
33
+ "scope": null,
34
+ "escapedName": "asynckit",
35
+ "name": "asynckit",
36
+ "rawSpec": "^0.4.0",
37
+ "spec": ">=0.4.0 <0.5.0",
38
+ "type": "range"
39
+ },
40
+ "_requiredBy": [
41
+ "/form-data"
42
+ ],
43
+ "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
44
+ "_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
45
+ "_shrinkwrap": null,
46
+ "_spec": "asynckit@^0.4.0",
47
+ "_where": "/Users/eshanker/Code/fsevents/node_modules/form-data",
48
+ "author": {
49
+ "name": "Alex Indigo",
50
+ "email": "iam@alexindigo.com"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/alexindigo/asynckit/issues"
54
+ },
55
+ "dependencies": {},
56
+ "description": "Minimal async jobs utility library, with streams support",
57
+ "devDependencies": {
58
+ "browserify": "^13.0.0",
59
+ "browserify-istanbul": "^2.0.0",
60
+ "coveralls": "^2.11.9",
61
+ "eslint": "^2.9.0",
62
+ "istanbul": "^0.4.3",
63
+ "obake": "^0.1.2",
64
+ "phantomjs-prebuilt": "^2.1.7",
65
+ "pre-commit": "^1.1.3",
66
+ "reamde": "^1.1.0",
67
+ "rimraf": "^2.5.2",
68
+ "size-table": "^0.2.0",
69
+ "tap-spec": "^4.1.1",
70
+ "tape": "^4.5.1"
71
+ },
72
+ "directories": {},
73
+ "dist": {
74
+ "shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
75
+ "tarball": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz"
76
+ },
77
+ "gitHead": "583a75ed4fe41761b66416bb6e703ebb1f8963bf",
78
+ "homepage": "https://github.com/alexindigo/asynckit#readme",
79
+ "keywords": [
80
+ "async",
81
+ "jobs",
82
+ "parallel",
83
+ "serial",
84
+ "iterator",
85
+ "array",
86
+ "object",
87
+ "stream",
88
+ "destroy",
89
+ "terminate",
90
+ "abort"
91
+ ],
92
+ "license": "MIT",
93
+ "main": "index.js",
94
+ "maintainers": [
95
+ {
96
+ "name": "alexindigo",
97
+ "email": "iam@alexindigo.com"
98
+ }
99
+ ],
100
+ "name": "asynckit",
101
+ "optionalDependencies": {},
102
+ "pre-commit": [
103
+ "clean",
104
+ "lint",
105
+ "test",
106
+ "browser",
107
+ "report",
108
+ "size"
109
+ ],
110
+ "readme": "ERROR: No README data found!",
111
+ "repository": {
112
+ "type": "git",
113
+ "url": "git+https://github.com/alexindigo/asynckit.git"
114
+ },
115
+ "scripts": {
116
+ "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec",
117
+ "clean": "rimraf coverage",
118
+ "debug": "tape test/test-*.js",
119
+ "lint": "eslint *.js lib/*.js test/*.js",
120
+ "report": "istanbul report",
121
+ "size": "browserify index.js | size-table asynckit",
122
+ "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec",
123
+ "win-test": "tape test/test-*.js"
124
+ },
125
+ "version": "0.4.0"
126
+ }
@@ -0,0 +1,43 @@
1
+ var iterate = require('./lib/iterate.js')
2
+ , initState = require('./lib/state.js')
3
+ , terminator = require('./lib/terminator.js')
4
+ ;
5
+
6
+ // Public API
7
+ module.exports = parallel;
8
+
9
+ /**
10
+ * Runs iterator over provided array elements in parallel
11
+ *
12
+ * @param {array|object} list - array or object (named list) to iterate over
13
+ * @param {function} iterator - iterator to run
14
+ * @param {function} callback - invoked when all elements processed
15
+ * @returns {function} - jobs terminator
16
+ */
17
+ function parallel(list, iterator, callback)
18
+ {
19
+ var state = initState(list);
20
+
21
+ while (state.index < (state['keyedList'] || list).length)
22
+ {
23
+ iterate(list, iterator, state, function(error, result)
24
+ {
25
+ if (error)
26
+ {
27
+ callback(error, result);
28
+ return;
29
+ }
30
+
31
+ // looks like it's the last one
32
+ if (Object.keys(state.jobs).length === 0)
33
+ {
34
+ callback(null, state.results);
35
+ return;
36
+ }
37
+ });
38
+
39
+ state.index++;
40
+ }
41
+
42
+ return terminator.bind(state, callback);
43
+ }
@@ -0,0 +1,17 @@
1
+ var serialOrdered = require('./serialOrdered.js');
2
+
3
+ // Public API
4
+ module.exports = serial;
5
+
6
+ /**
7
+ * Runs iterator over provided array elements in series
8
+ *
9
+ * @param {array|object} list - array or object (named list) to iterate over
10
+ * @param {function} iterator - iterator to run
11
+ * @param {function} callback - invoked when all elements processed
12
+ * @returns {function} - jobs terminator
13
+ */
14
+ function serial(list, iterator, callback)
15
+ {
16
+ return serialOrdered(list, iterator, null, callback);
17
+ }
@@ -0,0 +1,75 @@
1
+ var iterate = require('./lib/iterate.js')
2
+ , initState = require('./lib/state.js')
3
+ , terminator = require('./lib/terminator.js')
4
+ ;
5
+
6
+ // Public API
7
+ module.exports = serialOrdered;
8
+ // sorting helpers
9
+ module.exports.ascending = ascending;
10
+ module.exports.descending = descending;
11
+
12
+ /**
13
+ * Runs iterator over provided sorted array elements in series
14
+ *
15
+ * @param {array|object} list - array or object (named list) to iterate over
16
+ * @param {function} iterator - iterator to run
17
+ * @param {function} sortMethod - custom sort function
18
+ * @param {function} callback - invoked when all elements processed
19
+ * @returns {function} - jobs terminator
20
+ */
21
+ function serialOrdered(list, iterator, sortMethod, callback)
22
+ {
23
+ var state = initState(list, sortMethod);
24
+
25
+ iterate(list, iterator, state, function iteratorHandler(error, result)
26
+ {
27
+ if (error)
28
+ {
29
+ callback(error, result);
30
+ return;
31
+ }
32
+
33
+ state.index++;
34
+
35
+ // are we there yet?
36
+ if (state.index < (state['keyedList'] || list).length)
37
+ {
38
+ iterate(list, iterator, state, iteratorHandler);
39
+ return;
40
+ }
41
+
42
+ // done here
43
+ callback(null, state.results);
44
+ });
45
+
46
+ return terminator.bind(state, callback);
47
+ }
48
+
49
+ /*
50
+ * -- Sort methods
51
+ */
52
+
53
+ /**
54
+ * sort helper to sort array elements in ascending order
55
+ *
56
+ * @param {mixed} a - an item to compare
57
+ * @param {mixed} b - an item to compare
58
+ * @returns {number} - comparison result
59
+ */
60
+ function ascending(a, b)
61
+ {
62
+ return a < b ? -1 : a > b ? 1 : 0;
63
+ }
64
+
65
+ /**
66
+ * sort helper to sort array elements in descending order
67
+ *
68
+ * @param {mixed} a - an item to compare
69
+ * @param {mixed} b - an item to compare
70
+ * @returns {number} - comparison result
71
+ */
72
+ function descending(a, b)
73
+ {
74
+ return -1 * ascending(a, b);
75
+ }
@@ -0,0 +1,21 @@
1
+ var inherits = require('util').inherits
2
+ , Readable = require('stream').Readable
3
+ , ReadableAsyncKit = require('./lib/readable_asynckit.js')
4
+ , ReadableParallel = require('./lib/readable_parallel.js')
5
+ , ReadableSerial = require('./lib/readable_serial.js')
6
+ , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
7
+ ;
8
+
9
+ // API
10
+ module.exports =
11
+ {
12
+ parallel : ReadableParallel,
13
+ serial : ReadableSerial,
14
+ serialOrdered : ReadableSerialOrdered,
15
+ };
16
+
17
+ inherits(ReadableAsyncKit, Readable);
18
+
19
+ inherits(ReadableParallel, ReadableAsyncKit);
20
+ inherits(ReadableSerial, ReadableAsyncKit);
21
+ inherits(ReadableSerialOrdered, ReadableAsyncKit);
@@ -1,27 +1,35 @@
1
1
  {
2
2
  "_args": [
3
3
  [
4
- "aws-sign2@~0.6.0",
4
+ {
5
+ "raw": "aws-sign2@~0.6.0",
6
+ "scope": null,
7
+ "escapedName": "aws-sign2",
8
+ "name": "aws-sign2",
9
+ "rawSpec": "~0.6.0",
10
+ "spec": ">=0.6.0 <0.7.0",
11
+ "type": "range"
12
+ },
5
13
  "/Users/eshanker/Code/fsevents/node_modules/request"
6
14
  ]
7
15
  ],
8
16
  "_from": "aws-sign2@>=0.6.0 <0.7.0",
9
17
  "_id": "aws-sign2@0.6.0",
10
18
  "_inCache": true,
11
- "_installable": true,
12
19
  "_location": "/aws-sign2",
13
20
  "_nodeVersion": "4.1.2",
14
21
  "_npmUser": {
15
- "email": "mikeal.rogers@gmail.com",
16
- "name": "mikeal"
22
+ "name": "mikeal",
23
+ "email": "mikeal.rogers@gmail.com"
17
24
  },
18
25
  "_npmVersion": "2.14.4",
19
26
  "_phantomChildren": {},
20
27
  "_requested": {
21
- "name": "aws-sign2",
22
28
  "raw": "aws-sign2@~0.6.0",
23
- "rawSpec": "~0.6.0",
24
29
  "scope": null,
30
+ "escapedName": "aws-sign2",
31
+ "name": "aws-sign2",
32
+ "rawSpec": "~0.6.0",
25
33
  "spec": ">=0.6.0 <0.7.0",
26
34
  "type": "range"
27
35
  },
@@ -34,8 +42,8 @@
34
42
  "_spec": "aws-sign2@~0.6.0",
35
43
  "_where": "/Users/eshanker/Code/fsevents/node_modules/request",
36
44
  "author": {
37
- "email": "mikeal.rogers@gmail.com",
38
45
  "name": "Mikeal Rogers",
46
+ "email": "mikeal.rogers@gmail.com",
39
47
  "url": "http://www.futurealoof.com"
40
48
  },
41
49
  "bugs": {
@@ -434,6 +434,15 @@ request(aws4.sign({
434
434
  /*
435
435
  (HTTP 202, empty response)
436
436
  */
437
+
438
+ // Generate CodeCommit Git access password
439
+ var signer = new aws4.RequestSigner({
440
+ service: 'codecommit',
441
+ host: 'git-codecommit.us-east-1.amazonaws.com',
442
+ method: 'GIT',
443
+ path: '/v1/repos/MyAwesomeRepo',
444
+ })
445
+ var password = signer.getDateTime() + 'Z' + signer.signature()
437
446
  ```
438
447
 
439
448
  API
@@ -52,6 +52,8 @@ function RequestSigner(request, credentials) {
52
52
  }
53
53
  if (!request.hostname && !request.host)
54
54
  request.hostname = headers.Host || headers.host
55
+
56
+ this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT'
55
57
  }
56
58
 
57
59
  RequestSigner.prototype.matchHost = function(host) {
@@ -109,7 +111,7 @@ RequestSigner.prototype.prepareRequest = function() {
109
111
 
110
112
  } else {
111
113
 
112
- if (!request.doNotModifyHeaders) {
114
+ if (!request.doNotModifyHeaders && !this.isCodeCommitGit) {
113
115
  if (request.body && !headers['Content-Type'] && !headers['content-type'])
114
116
  headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8'
115
117
 
@@ -153,6 +155,9 @@ RequestSigner.prototype.getDateTime = function() {
153
155
  date = new Date(headers.Date || headers.date || new Date)
154
156
 
155
157
  this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '')
158
+
159
+ // Remove the trailing 'Z' on the timestamp string for CodeCommit git access
160
+ if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1)
156
161
  }
157
162
  return this.datetime
158
163
  }
@@ -202,8 +207,8 @@ RequestSigner.prototype.canonicalString = function() {
202
207
  decodePath = this.service === 's3' || this.request.doNotEncodePath,
203
208
  decodeSlashesInPath = this.service === 's3',
204
209
  firstValOnly = this.service === 's3',
205
- bodyHash = this.service === 's3' && this.request.signQuery ?
206
- 'UNSIGNED-PAYLOAD' : hash(this.request.body || '', 'hex')
210
+ bodyHash = this.service === 's3' && this.request.signQuery ? 'UNSIGNED-PAYLOAD' :
211
+ (this.isCodeCommitGit ? '' : hash(this.request.body || '', 'hex'))
207
212
 
208
213
  if (query) {
209
214
  queryStr = encodeRfc3986(querystring.stringify(Object.keys(query).sort().reduce(function(obj, key) {