fsevents 1.0.6 → 1.0.7

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 (216) hide show
  1. package/node_modules/are-we-there-yet/LICENSE +5 -0
  2. package/node_modules/are-we-there-yet/README.md +2 -1
  3. package/node_modules/are-we-there-yet/README.md~ +183 -0
  4. package/node_modules/are-we-there-yet/package.json +10 -9
  5. package/node_modules/async/README.md +14 -10
  6. package/node_modules/async/dist/async.js +22 -18
  7. package/node_modules/async/dist/async.min.js +1 -1
  8. package/node_modules/async/lib/async.js +22 -18
  9. package/node_modules/async/package.json +11 -10
  10. package/node_modules/core-util-is/package.json +2 -1
  11. package/node_modules/dashdash/README.md +6 -3
  12. package/node_modules/dashdash/lib/dashdash.js +10 -1
  13. package/node_modules/dashdash/package.json +9 -8
  14. package/node_modules/escape-string-regexp/index.js +1 -1
  15. package/node_modules/escape-string-regexp/package.json +17 -15
  16. package/node_modules/escape-string-regexp/readme.md +4 -4
  17. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +9 -0
  18. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +42 -30
  19. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +9 -9
  20. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +28 -0
  21. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +11 -11
  22. package/node_modules/graceful-fs/package.json +2 -3
  23. package/node_modules/isarray/package.json +2 -1
  24. package/node_modules/mime-db/HISTORY.md +32 -0
  25. package/node_modules/mime-db/README.md +1 -1
  26. package/node_modules/mime-db/db.json +78 -0
  27. package/node_modules/mime-db/package.json +15 -14
  28. package/node_modules/mime-types/HISTORY.md +12 -0
  29. package/node_modules/mime-types/package.json +11 -10
  30. package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
  31. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +32 -0
  32. package/node_modules/node-pre-gyp/package.json +8 -8
  33. package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/.travis.yml +6 -1
  34. package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/index.js +8 -1
  35. package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/package.json +13 -12
  36. package/node_modules/rc/lib/utils.js +1 -1
  37. package/node_modules/rc/package.json +11 -10
  38. package/node_modules/readable-stream/README.md +27 -6
  39. package/node_modules/{bl/node_modules/readable-stream → readable-stream}/doc/stream.markdown +608 -574
  40. package/node_modules/readable-stream/lib/_stream_duplex.js +18 -25
  41. package/node_modules/readable-stream/lib/_stream_passthrough.js +2 -21
  42. package/node_modules/readable-stream/lib/_stream_readable.js +117 -93
  43. package/node_modules/readable-stream/lib/_stream_transform.js +15 -27
  44. package/node_modules/readable-stream/lib/_stream_writable.js +140 -88
  45. package/node_modules/readable-stream/package.json +33 -25
  46. package/node_modules/readable-stream/readable.js +6 -1
  47. package/node_modules/rimraf/README.md +58 -0
  48. package/node_modules/rimraf/node_modules/glob/README.md +27 -45
  49. package/node_modules/rimraf/node_modules/glob/common.js +7 -26
  50. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +1 -1
  51. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +9 -0
  52. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +42 -30
  53. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +9 -9
  54. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +28 -0
  55. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +11 -11
  56. package/node_modules/rimraf/node_modules/glob/package.json +11 -10
  57. package/node_modules/rimraf/package.json +12 -11
  58. package/node_modules/rimraf/rimraf.js +7 -5
  59. package/node_modules/sshpk/bin/sshpk-conv +1 -1
  60. package/node_modules/sshpk/lib/dhe.js +1 -2
  61. package/node_modules/sshpk/lib/ssh-buffer.js +2 -1
  62. package/node_modules/sshpk/package.json +13 -11
  63. package/node_modules/string_decoder/package.json +2 -1
  64. package/node_modules/tar-pack/index.js +1 -2
  65. package/node_modules/tar-pack/node_modules/rimraf/LICENSE +12 -20
  66. package/node_modules/tar-pack/node_modules/rimraf/README.md +17 -4
  67. package/node_modules/tar-pack/node_modules/rimraf/bin.js +11 -4
  68. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +359 -0
  69. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +226 -0
  70. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +752 -0
  71. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +17 -0
  72. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/LICENSE +15 -0
  73. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +37 -0
  74. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +44 -0
  75. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +15 -0
  76. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +36 -0
  77. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +58 -0
  78. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +51 -0
  79. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +33 -0
  80. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +67 -0
  81. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +97 -0
  82. package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/package.json +3 -3
  83. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +216 -0
  84. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +912 -0
  85. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
  86. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
  87. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
  88. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
  89. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
  90. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
  91. package/node_modules/tar-pack/node_modules/{readable-stream/node_modules/isarray/README.md → rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md} +0 -33
  92. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
  93. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +89 -0
  94. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
  95. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +50 -0
  96. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
  97. 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 +84 -0
  98. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
  99. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
  100. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
  101. 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 +6 -0
  102. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
  103. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
  104. 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 +39 -0
  105. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
  106. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +66 -0
  107. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +51 -0
  108. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
  109. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
  110. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
  111. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
  112. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
  113. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +21 -0
  114. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
  115. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +20 -0
  116. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +78 -0
  117. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +51 -0
  118. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +79 -0
  119. package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +460 -0
  120. package/node_modules/tar-pack/node_modules/rimraf/package.json +28 -40
  121. package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +138 -53
  122. package/node_modules/tar-pack/package.json +21 -11
  123. package/node_modules/tunnel-agent/index.js +2 -0
  124. package/node_modules/tunnel-agent/package.json +10 -9
  125. package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/package.json +3 -2
  126. package/node_modules/verror/package.json +3 -2
  127. package/package.json +2 -2
  128. package/CHANGELOG.md +0 -16
  129. package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
  130. package/node_modules/bl/node_modules/readable-stream/LICENSE +0 -18
  131. package/node_modules/bl/node_modules/readable-stream/README.md +0 -36
  132. package/node_modules/bl/node_modules/readable-stream/duplex.js +0 -1
  133. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -82
  134. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -27
  135. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -973
  136. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -197
  137. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -527
  138. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/LICENSE +0 -19
  139. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/README.md +0 -3
  140. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/float.patch +0 -604
  141. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +0 -107
  142. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +0 -67
  143. package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +0 -68
  144. package/node_modules/bl/node_modules/readable-stream/node_modules/isarray/README.md +0 -54
  145. package/node_modules/bl/node_modules/readable-stream/node_modules/isarray/build/build.js +0 -209
  146. package/node_modules/bl/node_modules/readable-stream/node_modules/isarray/component.json +0 -19
  147. package/node_modules/bl/node_modules/readable-stream/node_modules/isarray/index.js +0 -3
  148. package/node_modules/bl/node_modules/readable-stream/node_modules/isarray/package.json +0 -59
  149. package/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/.npmignore +0 -2
  150. package/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/LICENSE +0 -20
  151. package/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/README.md +0 -7
  152. package/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/index.js +0 -221
  153. package/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/package.json +0 -60
  154. package/node_modules/bl/node_modules/readable-stream/package.json +0 -82
  155. package/node_modules/bl/node_modules/readable-stream/passthrough.js +0 -1
  156. package/node_modules/bl/node_modules/readable-stream/readable.js +0 -12
  157. package/node_modules/bl/node_modules/readable-stream/transform.js +0 -1
  158. package/node_modules/bl/node_modules/readable-stream/writable.js +0 -1
  159. package/node_modules/node-pre-gyp/LICENSE +0 -27
  160. package/node_modules/readable-stream/float.patch +0 -923
  161. package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +0 -5
  162. package/node_modules/tar-pack/node_modules/readable-stream/LICENSE +0 -18
  163. package/node_modules/tar-pack/node_modules/readable-stream/README.md +0 -15
  164. package/node_modules/tar-pack/node_modules/readable-stream/duplex.js +0 -1
  165. package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_duplex.js +0 -89
  166. package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_passthrough.js +0 -46
  167. package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_readable.js +0 -982
  168. package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_transform.js +0 -210
  169. package/node_modules/tar-pack/node_modules/readable-stream/lib/_stream_writable.js +0 -386
  170. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +0 -19
  171. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/README.md +0 -3
  172. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/float.patch +0 -604
  173. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +0 -107
  174. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +0 -67
  175. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +0 -68
  176. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/LICENSE +0 -16
  177. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/README.md +0 -42
  178. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/inherits.js +0 -1
  179. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +0 -23
  180. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +0 -58
  181. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/test.js +0 -25
  182. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/build/build.js +0 -209
  183. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/component.json +0 -19
  184. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/index.js +0 -3
  185. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/package.json +0 -59
  186. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/.npmignore +0 -2
  187. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/LICENSE +0 -20
  188. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/README.md +0 -7
  189. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/index.js +0 -221
  190. package/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/package.json +0 -60
  191. package/node_modules/tar-pack/node_modules/readable-stream/package.json +0 -76
  192. package/node_modules/tar-pack/node_modules/readable-stream/passthrough.js +0 -1
  193. package/node_modules/tar-pack/node_modules/readable-stream/readable.js +0 -8
  194. package/node_modules/tar-pack/node_modules/readable-stream/transform.js +0 -1
  195. package/node_modules/tar-pack/node_modules/readable-stream/writable.js +0 -1
  196. package/node_modules/tar-pack/node_modules/rimraf/AUTHORS +0 -6
  197. package/node_modules/tar-pack/node_modules/rimraf/test/run.sh +0 -16
  198. package/node_modules/tar-pack/node_modules/rimraf/test/setup.sh +0 -47
  199. package/node_modules/tar-pack/node_modules/rimraf/test/test-async.js +0 -5
  200. package/node_modules/tar-pack/node_modules/rimraf/test/test-sync.js +0 -3
  201. /package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/license.md +0 -0
  202. /package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/readme.md +0 -0
  203. /package/node_modules/{bl/node_modules/readable-stream/node_modules/process-nextick-args → process-nextick-args}/test.js +0 -0
  204. /package/node_modules/{bl/node_modules/readable-stream → readable-stream}/.travis.yml +0 -0
  205. /package/node_modules/{bl/node_modules/readable-stream → readable-stream}/.zuul.yml +0 -0
  206. /package/node_modules/{bl/node_modules/readable-stream → readable-stream}/doc/wg-meetings/2015-01-30.md +0 -0
  207. /package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/LICENSE +0 -0
  208. /package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/README.md +0 -0
  209. /package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/inherits.js +0 -0
  210. /package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/inherits_browser.js +0 -0
  211. /package/node_modules/{bl/node_modules/readable-stream → tar-pack/node_modules/rimraf/node_modules/glob}/node_modules/inherits/test.js +0 -0
  212. /package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/History.md +0 -0
  213. /package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/LICENSE +0 -0
  214. /package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/README.md +0 -0
  215. /package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/browser.js +0 -0
  216. /package/node_modules/{bl/node_modules/readable-stream/node_modules/util-deprecate → util-deprecate}/node.js +0 -0
@@ -0,0 +1,17 @@
1
+ {
2
+ "env" : {
3
+ "node" : true
4
+ },
5
+ "rules" : {
6
+ "semi": [2, "never"],
7
+ "strict": 0,
8
+ "quotes": [1, "single", "avoid-escape"],
9
+ "no-use-before-define": 0,
10
+ "curly": 0,
11
+ "no-underscore-dangle": 0,
12
+ "no-lonely-if": 1,
13
+ "no-unused-vars": [2, {"vars" : "all", "args" : "after-used"}],
14
+ "no-mixed-requires": 0,
15
+ "space-infix-ops": 0
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # inflight
2
+
3
+ Add callbacks to requests in flight to avoid async duplication
4
+
5
+ ## USAGE
6
+
7
+ ```javascript
8
+ var inflight = require('inflight')
9
+
10
+ // some request that does some stuff
11
+ function req(key, callback) {
12
+ // key is any random string. like a url or filename or whatever.
13
+ //
14
+ // will return either a falsey value, indicating that the
15
+ // request for this key is already in flight, or a new callback
16
+ // which when called will call all callbacks passed to inflightk
17
+ // with the same key
18
+ callback = inflight(key, callback)
19
+
20
+ // If we got a falsey value back, then there's already a req going
21
+ if (!callback) return
22
+
23
+ // this is where you'd fetch the url or whatever
24
+ // callback is also once()-ified, so it can safely be assigned
25
+ // to multiple events etc. First call wins.
26
+ setTimeout(function() {
27
+ callback(null, key)
28
+ }, 100)
29
+ }
30
+
31
+ // only assigns a single setTimeout
32
+ // when it dings, all cbs get called
33
+ req('foo', cb1)
34
+ req('foo', cb2)
35
+ req('foo', cb3)
36
+ req('foo', cb4)
37
+ ```
@@ -0,0 +1,44 @@
1
+ var wrappy = require('wrappy')
2
+ var reqs = Object.create(null)
3
+ var once = require('once')
4
+
5
+ module.exports = wrappy(inflight)
6
+
7
+ function inflight (key, cb) {
8
+ if (reqs[key]) {
9
+ reqs[key].push(cb)
10
+ return null
11
+ } else {
12
+ reqs[key] = [cb]
13
+ return makeres(key)
14
+ }
15
+ }
16
+
17
+ function makeres (key) {
18
+ return once(function RES () {
19
+ var cbs = reqs[key]
20
+ var len = cbs.length
21
+ var args = slice(arguments)
22
+ for (var i = 0; i < len; i++) {
23
+ cbs[i].apply(null, args)
24
+ }
25
+ if (cbs.length > len) {
26
+ // added more in the interim.
27
+ // de-zalgo, just in case, but don't call again.
28
+ cbs.splice(0, len)
29
+ process.nextTick(function () {
30
+ RES.apply(null, args)
31
+ })
32
+ } else {
33
+ delete reqs[key]
34
+ }
35
+ })
36
+ }
37
+
38
+ function slice (args) {
39
+ var length = args.length
40
+ var array = []
41
+
42
+ for (var i = 0; i < length; i++) array[i] = args[i]
43
+ return array
44
+ }
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,36 @@
1
+ # wrappy
2
+
3
+ Callback wrapping utility
4
+
5
+ ## USAGE
6
+
7
+ ```javascript
8
+ var wrappy = require("wrappy")
9
+
10
+ // var wrapper = wrappy(wrapperFunction)
11
+
12
+ // make sure a cb is called only once
13
+ // See also: http://npm.im/once for this specific use case
14
+ var once = wrappy(function (cb) {
15
+ var called = false
16
+ return function () {
17
+ if (called) return
18
+ called = true
19
+ return cb.apply(this, arguments)
20
+ }
21
+ })
22
+
23
+ function printBoo () {
24
+ console.log('boo')
25
+ }
26
+ // has some rando property
27
+ printBoo.iAmBooPrinter = true
28
+
29
+ var onlyPrintOnce = once(printBoo)
30
+
31
+ onlyPrintOnce() // prints 'boo'
32
+ onlyPrintOnce() // does nothing
33
+
34
+ // random property is retained!
35
+ assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36
+ ```
@@ -0,0 +1,58 @@
1
+ {
2
+ "_from": "wrappy@1",
3
+ "_id": "wrappy@1.0.1",
4
+ "_location": "/tar-pack/rimraf/glob/inflight/wrappy",
5
+ "_nodeVersion": "0.10.31",
6
+ "_npmUser": {
7
+ "email": "i@izs.me",
8
+ "name": "isaacs"
9
+ },
10
+ "_npmVersion": "2.0.0",
11
+ "_phantomChildren": {},
12
+ "_requiredBy": [
13
+ "/tar-pack/rimraf/glob/inflight"
14
+ ],
15
+ "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
16
+ "_shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
17
+ "author": {
18
+ "email": "i@izs.me",
19
+ "name": "Isaac Z. Schlueter",
20
+ "url": "http://blog.izs.me/"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/npm/wrappy/issues"
24
+ },
25
+ "dependencies": {},
26
+ "description": "Callback wrapping utility",
27
+ "devDependencies": {
28
+ "tap": "^0.4.12"
29
+ },
30
+ "directories": {
31
+ "test": "test"
32
+ },
33
+ "dist": {
34
+ "shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
35
+ "tarball": "http://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz"
36
+ },
37
+ "gitHead": "006a8cbac6b99988315834c207896eed71fd069a",
38
+ "homepage": "https://github.com/npm/wrappy",
39
+ "license": "ISC",
40
+ "main": "wrappy.js",
41
+ "maintainers": [
42
+ {
43
+ "name": "isaacs",
44
+ "email": "i@izs.me"
45
+ }
46
+ ],
47
+ "name": "wrappy",
48
+ "optionalDependencies": {},
49
+ "readme": "ERROR: No README data found!",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/npm/wrappy.git"
53
+ },
54
+ "scripts": {
55
+ "test": "tap test/*.js"
56
+ },
57
+ "version": "1.0.1"
58
+ }
@@ -0,0 +1,51 @@
1
+ var test = require('tap').test
2
+ var wrappy = require('../wrappy.js')
3
+
4
+ test('basic', function (t) {
5
+ function onceifier (cb) {
6
+ var called = false
7
+ return function () {
8
+ if (called) return
9
+ called = true
10
+ return cb.apply(this, arguments)
11
+ }
12
+ }
13
+ onceifier.iAmOnce = {}
14
+ var once = wrappy(onceifier)
15
+ t.equal(once.iAmOnce, onceifier.iAmOnce)
16
+
17
+ var called = 0
18
+ function boo () {
19
+ t.equal(called, 0)
20
+ called++
21
+ }
22
+ // has some rando property
23
+ boo.iAmBoo = true
24
+
25
+ var onlyPrintOnce = once(boo)
26
+
27
+ onlyPrintOnce() // prints 'boo'
28
+ onlyPrintOnce() // does nothing
29
+ t.equal(called, 1)
30
+
31
+ // random property is retained!
32
+ t.equal(onlyPrintOnce.iAmBoo, true)
33
+
34
+ var logs = []
35
+ var logwrap = wrappy(function (msg, cb) {
36
+ logs.push(msg + ' wrapping cb')
37
+ return function () {
38
+ logs.push(msg + ' before cb')
39
+ var ret = cb.apply(this, arguments)
40
+ logs.push(msg + ' after cb')
41
+ }
42
+ })
43
+
44
+ var c = logwrap('foo', function () {
45
+ t.same(logs, [ 'foo wrapping cb', 'foo before cb' ])
46
+ })
47
+ c()
48
+ t.same(logs, [ 'foo wrapping cb', 'foo before cb', 'foo after cb' ])
49
+
50
+ t.end()
51
+ })
@@ -0,0 +1,33 @@
1
+ // Returns a wrapper function that returns a wrapped callback
2
+ // The wrapper function should do some stuff, and return a
3
+ // presumably different callback function.
4
+ // This makes sure that own properties are retained, so that
5
+ // decorations and such are not lost along the way.
6
+ module.exports = wrappy
7
+ function wrappy (fn, cb) {
8
+ if (fn && cb) return wrappy(fn)(cb)
9
+
10
+ if (typeof fn !== 'function')
11
+ throw new TypeError('need wrapper function')
12
+
13
+ Object.keys(fn).forEach(function (k) {
14
+ wrapper[k] = fn[k]
15
+ })
16
+
17
+ return wrapper
18
+
19
+ function wrapper() {
20
+ var args = new Array(arguments.length)
21
+ for (var i = 0; i < args.length; i++) {
22
+ args[i] = arguments[i]
23
+ }
24
+ var ret = fn.apply(this, args)
25
+ var cb = args[args.length-1]
26
+ if (typeof ret === 'function' && ret !== cb) {
27
+ Object.keys(cb).forEach(function (k) {
28
+ ret[k] = cb[k]
29
+ })
30
+ }
31
+ return ret
32
+ }
33
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "_from": "inflight@^1.0.4",
3
+ "_id": "inflight@1.0.4",
4
+ "_location": "/tar-pack/rimraf/glob/inflight",
5
+ "_nodeVersion": "0.10.32",
6
+ "_npmUser": {
7
+ "email": "ogd@aoaioxxysz.net",
8
+ "name": "othiym23"
9
+ },
10
+ "_npmVersion": "2.1.3",
11
+ "_phantomChildren": {},
12
+ "_requiredBy": [
13
+ "/tar-pack/rimraf/glob"
14
+ ],
15
+ "_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz",
16
+ "_shasum": "6cbb4521ebd51ce0ec0a936bfd7657ef7e9b172a",
17
+ "author": {
18
+ "email": "i@izs.me",
19
+ "name": "Isaac Z. Schlueter",
20
+ "url": "http://blog.izs.me/"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/isaacs/inflight/issues"
24
+ },
25
+ "dependencies": {
26
+ "once": "^1.3.0",
27
+ "wrappy": "1"
28
+ },
29
+ "description": "Add callbacks to requests in flight to avoid async duplication",
30
+ "devDependencies": {
31
+ "tap": "^0.4.10"
32
+ },
33
+ "directories": {},
34
+ "dist": {
35
+ "shasum": "6cbb4521ebd51ce0ec0a936bfd7657ef7e9b172a",
36
+ "tarball": "http://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz"
37
+ },
38
+ "gitHead": "c7b5531d572a867064d4a1da9e013e8910b7d1ba",
39
+ "homepage": "https://github.com/isaacs/inflight",
40
+ "license": "ISC",
41
+ "main": "inflight.js",
42
+ "maintainers": [
43
+ {
44
+ "name": "isaacs",
45
+ "email": "i@izs.me"
46
+ },
47
+ {
48
+ "name": "othiym23",
49
+ "email": "ogd@aoaioxxysz.net"
50
+ },
51
+ {
52
+ "name": "iarna",
53
+ "email": "me@re-becca.org"
54
+ }
55
+ ],
56
+ "name": "inflight",
57
+ "optionalDependencies": {},
58
+ "readme": "ERROR: No README data found!",
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "git://github.com/isaacs/inflight.git"
62
+ },
63
+ "scripts": {
64
+ "test": "tap test.js"
65
+ },
66
+ "version": "1.0.4"
67
+ }
@@ -0,0 +1,97 @@
1
+ var test = require('tap').test
2
+ var inf = require('./inflight.js')
3
+
4
+
5
+ function req (key, cb) {
6
+ cb = inf(key, cb)
7
+ if (cb) setTimeout(function () {
8
+ cb(key)
9
+ cb(key)
10
+ })
11
+ return cb
12
+ }
13
+
14
+ test('basic', function (t) {
15
+ var calleda = false
16
+ var a = req('key', function (k) {
17
+ t.notOk(calleda)
18
+ calleda = true
19
+ t.equal(k, 'key')
20
+ if (calledb) t.end()
21
+ })
22
+ t.ok(a, 'first returned cb function')
23
+
24
+ var calledb = false
25
+ var b = req('key', function (k) {
26
+ t.notOk(calledb)
27
+ calledb = true
28
+ t.equal(k, 'key')
29
+ if (calleda) t.end()
30
+ })
31
+
32
+ t.notOk(b, 'second should get falsey inflight response')
33
+ })
34
+
35
+ test('timing', function (t) {
36
+ var expect = [
37
+ 'method one',
38
+ 'start one',
39
+ 'end one',
40
+ 'two',
41
+ 'tick',
42
+ 'three'
43
+ ]
44
+ var i = 0
45
+
46
+ function log (m) {
47
+ t.equal(m, expect[i], m + ' === ' + expect[i])
48
+ ++i
49
+ if (i === expect.length)
50
+ t.end()
51
+ }
52
+
53
+ function method (name, cb) {
54
+ log('method ' + name)
55
+ process.nextTick(cb)
56
+ }
57
+
58
+ var one = inf('foo', function () {
59
+ log('start one')
60
+ var three = inf('foo', function () {
61
+ log('three')
62
+ })
63
+ if (three) method('three', three)
64
+ log('end one')
65
+ })
66
+
67
+ method('one', one)
68
+
69
+ var two = inf('foo', function () {
70
+ log('two')
71
+ })
72
+ if (two) method('one', two)
73
+
74
+ process.nextTick(log.bind(null, 'tick'))
75
+ })
76
+
77
+ test('parameters', function (t) {
78
+ t.plan(8)
79
+
80
+ var a = inf('key', function (first, second, third) {
81
+ t.equal(first, 1)
82
+ t.equal(second, 2)
83
+ t.equal(third, 3)
84
+ })
85
+ t.ok(a, 'first returned cb function')
86
+
87
+ var b = inf('key', function (first, second, third) {
88
+ t.equal(first, 1)
89
+ t.equal(second, 2)
90
+ t.equal(third, 3)
91
+ })
92
+ t.notOk(b, 'second should get falsey inflight response')
93
+
94
+ setTimeout(function () {
95
+ a(1, 2, 3)
96
+ })
97
+ })
@@ -1,7 +1,7 @@
1
1
  {
2
- "_from": "inherits@~2.0.1",
2
+ "_from": "inherits@2",
3
3
  "_id": "inherits@2.0.1",
4
- "_location": "/bl/readable-stream/inherits",
4
+ "_location": "/tar-pack/rimraf/glob/inherits",
5
5
  "_npmUser": {
6
6
  "email": "i@izs.me",
7
7
  "name": "isaacs"
@@ -9,7 +9,7 @@
9
9
  "_npmVersion": "1.3.8",
10
10
  "_phantomChildren": {},
11
11
  "_requiredBy": [
12
- "/bl/readable-stream"
12
+ "/tar-pack/rimraf/glob"
13
13
  ],
14
14
  "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
15
15
  "_shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",