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
@@ -74,14 +74,6 @@ slashes in it, then it will seek for any file anywhere in the tree
74
74
  with a matching basename. For example, `*.js` would match
75
75
  `test/simple/basic.js`.
76
76
 
77
- ### Negation
78
-
79
- The intent for negation would be for a pattern starting with `!` to
80
- match everything that *doesn't* match the supplied pattern. However,
81
- the implementation is weird, and for the time being, this should be
82
- avoided. The behavior is deprecated in version 5, and will be removed
83
- entirely in version 6.
84
-
85
77
  ### Empty Sets
86
78
 
87
79
  If no matching files are found, then an empty array is returned. This
@@ -114,19 +106,19 @@ options.
114
106
 
115
107
  ## glob(pattern, [options], cb)
116
108
 
117
- * `pattern` {String} Pattern to be matched
118
- * `options` {Object}
119
- * `cb` {Function}
120
- * `err` {Error | null}
121
- * `matches` {Array<String>} filenames found matching the pattern
109
+ * `pattern` `{String}` Pattern to be matched
110
+ * `options` `{Object}`
111
+ * `cb` `{Function}`
112
+ * `err` `{Error | null}`
113
+ * `matches` `{Array<String>}` filenames found matching the pattern
122
114
 
123
115
  Perform an asynchronous glob search.
124
116
 
125
117
  ## glob.sync(pattern, [options])
126
118
 
127
- * `pattern` {String} Pattern to be matched
128
- * `options` {Object}
129
- * return: {Array<String>} filenames found matching the pattern
119
+ * `pattern` `{String}` Pattern to be matched
120
+ * `options` `{Object}`
121
+ * return: `{Array<String>}` filenames found matching the pattern
130
122
 
131
123
  Perform a synchronous glob search.
132
124
 
@@ -144,11 +136,11 @@ immediately.
144
136
 
145
137
  ### new glob.Glob(pattern, [options], [cb])
146
138
 
147
- * `pattern` {String} pattern to search for
148
- * `options` {Object}
149
- * `cb` {Function} Called when an error occurs, or matches are found
150
- * `err` {Error | null}
151
- * `matches` {Array<String>} filenames found matching the pattern
139
+ * `pattern` `{String}` pattern to search for
140
+ * `options` `{Object}`
141
+ * `cb` `{Function}` Called when an error occurs, or matches are found
142
+ * `err` `{Error | null}`
143
+ * `matches` `{Array<String>}` filenames found matching the pattern
152
144
 
153
145
  Note that if the `sync` flag is set in the options, then matches will
154
146
  be immediately available on the `g.found` member.
@@ -164,8 +156,8 @@ be immediately available on the `g.found` member.
164
156
  values:
165
157
  * `false` - Path does not exist
166
158
  * `true` - Path exists
167
- * `'DIR'` - Path exists, and is not a directory
168
- * `'FILE'` - Path exists, and is a directory
159
+ * `'FILE'` - Path exists, and is not a directory
160
+ * `'DIR'` - Path exists, and is a directory
169
161
  * `[file, entries, ...]` - Path exists, is a directory, and the
170
162
  array value is the results of `fs.readdir`
171
163
  * `statCache` Cache of `fs.stat` results, to prevent statting the same
@@ -182,7 +174,8 @@ be immediately available on the `g.found` member.
182
174
  matches found. If the `nonull` option is set, and no match was found,
183
175
  then the `matches` list contains the original pattern. The matches
184
176
  are sorted, unless the `nosort` flag is set.
185
- * `match` Every time a match is found, this is emitted with the matched.
177
+ * `match` Every time a match is found, this is emitted with the specific
178
+ thing that matched. It is not deduplicated or resolved to a realpath.
186
179
  * `error` Emitted when an unexpected error is encountered, or whenever
187
180
  any fs error occurs if `options.strict` is set.
188
181
  * `abort` When `abort()` is called, this event is raised.
@@ -264,7 +257,9 @@ the filesystem.
264
257
  equivalent to `**/*.js`, matching all js files in all directories.
265
258
  * `nodir` Do not match directories, only files. (Note: to match
266
259
  *only* directories, simply put a `/` at the end of the pattern.)
267
- * `ignore` Add a pattern or an array of patterns to exclude matches.
260
+ * `ignore` Add a pattern or an array of glob patterns to exclude matches.
261
+ Note: `ignore` patterns are *always* in `dot:true` mode, regardless
262
+ of any other settings.
268
263
  * `follow` Follow symlinked directories when expanding `**` patterns.
269
264
  Note that this can result in a lot of duplicate references in the
270
265
  presence of cyclic links.
@@ -272,10 +267,6 @@ the filesystem.
272
267
  In the case of a symlink that cannot be resolved, the full absolute
273
268
  path to the matched entry is returned (though it will usually be a
274
269
  broken symlink)
275
- * `nonegate` Suppress deprecated `negate` behavior. (See below.)
276
- Default=true
277
- * `nocomment` Suppress deprecated `comment` behavior. (See below.)
278
- Default=true
279
270
 
280
271
  ## Comparisons to other fnmatch/glob implementations
281
272
 
@@ -308,22 +299,13 @@ checked for validity. Since those two are valid, matching proceeds.
308
299
 
309
300
  ### Comments and Negation
310
301
 
311
- **Note**: In version 5 of this module, negation and comments are
312
- **disabled** by default. You can explicitly set `nonegate:false` or
313
- `nocomment:false` to re-enable them. They are going away entirely in
314
- version 6.
315
-
316
- The intent for negation would be for a pattern starting with `!` to
317
- match everything that *doesn't* match the supplied pattern. However,
318
- the implementation is weird. It is better to use the `ignore` option
319
- to set a pattern or set of patterns to exclude from matches. If you
320
- want the "everything except *x*" type of behavior, you can use `**` as
321
- the main pattern, and set an `ignore` for the things to exclude.
322
-
323
- The comments feature is added in minimatch, primarily to more easily
324
- support use cases like ignore files, where a `#` at the start of a
325
- line makes the pattern "empty". However, in the context of a
326
- straightforward filesystem globber, "comments" don't make much sense.
302
+ Previously, this module let you mark a pattern as a "comment" if it
303
+ started with a `#` character, or a "negated" pattern if it started
304
+ with a `!` character.
305
+
306
+ These options were deprecated in version 5, and removed in version 6.
307
+
308
+ To specify things that should not match, use the `ignore` option.
327
309
 
328
310
  ## Windows
329
311
 
@@ -36,15 +36,16 @@ function setupIgnores (self, options) {
36
36
  }
37
37
  }
38
38
 
39
+ // ignore patterns are always in dot:true mode.
39
40
  function ignoreMap (pattern) {
40
41
  var gmatcher = null
41
42
  if (pattern.slice(-3) === '/**') {
42
43
  var gpattern = pattern.replace(/(\/\*\*)+$/, '')
43
- gmatcher = new Minimatch(gpattern)
44
+ gmatcher = new Minimatch(gpattern, { dot: true })
44
45
  }
45
46
 
46
47
  return {
47
- matcher: new Minimatch(pattern),
48
+ matcher: new Minimatch(pattern, { dot: true }),
48
49
  gmatcher: gmatcher
49
50
  }
50
51
  }
@@ -103,35 +104,15 @@ function setopts (self, pattern, options) {
103
104
 
104
105
  self.nomount = !!options.nomount
105
106
 
106
- // disable comments and negation unless the user explicitly
107
- // passes in false as the option.
108
- options.nonegate = options.nonegate === false ? false : true
109
- options.nocomment = options.nocomment === false ? false : true
110
- deprecationWarning(options)
107
+ // disable comments and negation in Minimatch.
108
+ // Note that they are not supported in Glob itself anyway.
109
+ options.nonegate = true
110
+ options.nocomment = true
111
111
 
112
112
  self.minimatch = new Minimatch(pattern, options)
113
113
  self.options = self.minimatch.options
114
114
  }
115
115
 
116
- // TODO(isaacs): remove entirely in v6
117
- // exported to reset in tests
118
- exports.deprecationWarned
119
- function deprecationWarning(options) {
120
- if (!options.nonegate || !options.nocomment) {
121
- if (process.noDeprecation !== true && !exports.deprecationWarned) {
122
- var msg = 'glob WARNING: comments and negation will be disabled in v6'
123
- if (process.throwDeprecation)
124
- throw new Error(msg)
125
- else if (process.traceDeprecation)
126
- console.trace(msg)
127
- else
128
- console.error(msg)
129
-
130
- exports.deprecationWarned = true
131
- }
132
- }
133
- }
134
-
135
116
  function finish (self) {
136
117
  var nou = self.nounique
137
118
  var all = nou ? [] : Object.create(null)
@@ -1,5 +1,5 @@
1
1
  {
2
- "_from": "inherits@2",
2
+ "_from": "inherits@~2.0.0",
3
3
  "_id": "inherits@2.0.1",
4
4
  "_location": "/rimraf/glob/inherits",
5
5
  "_npmUser": {
@@ -47,6 +47,15 @@ If there's no match, `undefined` will be returned.
47
47
 
48
48
  If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']`.
49
49
 
50
+ ### var r = balanced.range(a, b, str)
51
+
52
+ For the first non-nested matching pair of `a` and `b` in `str`, return an
53
+ array with indexes: `[ <a index>, <b index> ]`.
54
+
55
+ If there's no match, `undefined` will be returned.
56
+
57
+ If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]`.
58
+
50
59
  ## Installation
51
60
 
52
61
  With [npm](https://npmjs.org) do:
@@ -1,38 +1,50 @@
1
1
  module.exports = balanced;
2
2
  function balanced(a, b, str) {
3
- var bal = 0;
4
- var m = {};
5
- var ended = false;
6
-
7
- for (var i = 0; i < str.length; i++) {
8
- if (a == str.substr(i, a.length)) {
9
- if (!('start' in m)) m.start = i;
10
- bal++;
11
- }
12
- else if (b == str.substr(i, b.length) && 'start' in m) {
13
- ended = true;
14
- bal--;
15
- if (!bal) {
16
- m.end = i;
17
- m.pre = str.substr(0, m.start);
18
- m.body = (m.end - m.start > 1)
19
- ? str.substring(m.start + a.length, m.end)
20
- : '';
21
- m.post = str.slice(m.end + b.length);
22
- return m;
3
+ var r = range(a, b, str);
4
+
5
+ return r && {
6
+ start: r[0],
7
+ end: r[1],
8
+ pre: str.slice(0, r[0]),
9
+ body: str.slice(r[0] + a.length, r[1]),
10
+ post: str.slice(r[1] + b.length)
11
+ };
12
+ }
13
+
14
+ balanced.range = range;
15
+ function range(a, b, str) {
16
+ var begs, beg, left, right, result;
17
+ var ai = str.indexOf(a);
18
+ var bi = str.indexOf(b, ai + 1);
19
+ var i = ai;
20
+
21
+ if (ai >= 0 && bi > 0) {
22
+ begs = [];
23
+ left = str.length;
24
+
25
+ while (i < str.length && i >= 0 && ! result) {
26
+ if (i == ai) {
27
+ begs.push(i);
28
+ ai = str.indexOf(a, i + 1);
29
+ } else if (begs.length == 1) {
30
+ result = [ begs.pop(), bi ];
31
+ } else {
32
+ beg = begs.pop();
33
+ if (beg < left) {
34
+ left = beg;
35
+ right = bi;
36
+ }
37
+
38
+ bi = str.indexOf(b, i + 1);
23
39
  }
40
+
41
+ i = ai < bi && ai >= 0 ? ai : bi;
24
42
  }
25
- }
26
43
 
27
- // if we opened more than we closed, find the one we closed
28
- if (bal && ended) {
29
- var start = m.start + a.length;
30
- m = balanced(a, b, str.substr(start));
31
- if (m) {
32
- m.start += start;
33
- m.end += start;
34
- m.pre = str.slice(0, start) + m.pre;
44
+ if (begs.length) {
45
+ result = [ left, right ];
35
46
  }
36
- return m;
37
47
  }
48
+
49
+ return result;
38
50
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "_from": "balanced-match@^0.2.0",
3
- "_id": "balanced-match@0.2.1",
2
+ "_from": "balanced-match@^0.3.0",
3
+ "_id": "balanced-match@0.3.0",
4
4
  "_location": "/rimraf/glob/minimatch/brace-expansion/balanced-match",
5
5
  "_nodeVersion": "4.2.1",
6
6
  "_npmUser": {
@@ -12,8 +12,8 @@
12
12
  "_requiredBy": [
13
13
  "/rimraf/glob/minimatch/brace-expansion"
14
14
  ],
15
- "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz",
16
- "_shasum": "7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7",
15
+ "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz",
16
+ "_shasum": "a91cdd1ebef1a86659e70ff4def01625fc2d6756",
17
17
  "author": {
18
18
  "email": "mail@juliangruber.com",
19
19
  "name": "Julian Gruber",
@@ -25,14 +25,14 @@
25
25
  "dependencies": {},
26
26
  "description": "Match balanced character pairs, like \"{\" and \"}\"",
27
27
  "devDependencies": {
28
- "tape": "~1.1.1"
28
+ "tape": "~4.2.2"
29
29
  },
30
30
  "directories": {},
31
31
  "dist": {
32
- "shasum": "7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7",
33
- "tarball": "http://registry.npmjs.org/balanced-match/-/balanced-match-0.2.1.tgz"
32
+ "shasum": "a91cdd1ebef1a86659e70ff4def01625fc2d6756",
33
+ "tarball": "http://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz"
34
34
  },
35
- "gitHead": "d743dd31d7376e0fcf99392a4be7227f2e99bf5d",
35
+ "gitHead": "a7114b0986554787e90b7ac595a043ca75ea77e5",
36
36
  "homepage": "https://github.com/juliangruber/balanced-match",
37
37
  "keywords": [
38
38
  "balanced",
@@ -75,5 +75,5 @@
75
75
  ],
76
76
  "files": "test/*.js"
77
77
  },
78
- "version": "0.2.1"
78
+ "version": "0.3.0"
79
79
  }
@@ -52,5 +52,33 @@ test('balanced', function(t) {
52
52
  body: 'in<b>nest</b>',
53
53
  post: 'post'
54
54
  });
55
+ t.deepEqual(balanced('{{', '}}', 'pre{{{in}}}post'), {
56
+ start: 3,
57
+ end: 9,
58
+ pre: 'pre',
59
+ body: '{in}',
60
+ post: 'post'
61
+ });
62
+ t.deepEqual(balanced('{{{', '}}', 'pre{{{in}}}post'), {
63
+ start: 3,
64
+ end: 8,
65
+ pre: 'pre',
66
+ body: 'in',
67
+ post: '}post'
68
+ });
69
+ t.deepEqual(balanced('{', '}', 'pre{{first}in{second}post'), {
70
+ start: 4,
71
+ end: 10,
72
+ pre: 'pre{',
73
+ body: 'first',
74
+ post: 'in{second}post'
75
+ });
76
+ t.deepEqual(balanced('<?', '?>', 'pre<?>post'), {
77
+ start: 3,
78
+ end: 4,
79
+ pre: 'pre',
80
+ body: '',
81
+ post: 'post'
82
+ });
55
83
  t.end();
56
84
  });
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "_from": "brace-expansion@^1.0.0",
3
- "_id": "brace-expansion@1.1.1",
3
+ "_id": "brace-expansion@1.1.2",
4
4
  "_location": "/rimraf/glob/minimatch/brace-expansion",
5
- "_nodeVersion": "0.10.36",
5
+ "_nodeVersion": "4.2.1",
6
6
  "_npmUser": {
7
7
  "email": "julian@juliangruber.com",
8
8
  "name": "juliangruber"
9
9
  },
10
- "_npmVersion": "2.6.1",
10
+ "_npmVersion": "2.14.7",
11
11
  "_phantomChildren": {},
12
12
  "_requiredBy": [
13
13
  "/rimraf/glob/minimatch"
14
14
  ],
15
- "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.1.tgz",
16
- "_shasum": "da5fb78aef4c44c9e4acf525064fb3208ebab045",
15
+ "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.2.tgz",
16
+ "_shasum": "f21445d0488b658e2771efd870eff51df29f04ef",
17
17
  "author": {
18
18
  "email": "mail@juliangruber.com",
19
19
  "name": "Julian Gruber",
@@ -23,19 +23,19 @@
23
23
  "url": "https://github.com/juliangruber/brace-expansion/issues"
24
24
  },
25
25
  "dependencies": {
26
- "balanced-match": "^0.2.0",
26
+ "balanced-match": "^0.3.0",
27
27
  "concat-map": "0.0.1"
28
28
  },
29
29
  "description": "Brace expansion as known from sh/bash",
30
30
  "devDependencies": {
31
- "tape": "^3.0.3"
31
+ "tape": "4.2.2"
32
32
  },
33
33
  "directories": {},
34
34
  "dist": {
35
- "shasum": "da5fb78aef4c44c9e4acf525064fb3208ebab045",
36
- "tarball": "http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.1.tgz"
35
+ "shasum": "f21445d0488b658e2771efd870eff51df29f04ef",
36
+ "tarball": "http://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.2.tgz"
37
37
  },
38
- "gitHead": "f50da498166d76ea570cf3b30179f01f0f119612",
38
+ "gitHead": "b03773a30fa516b1374945b68e9acb6253d595fa",
39
39
  "homepage": "https://github.com/juliangruber/brace-expansion",
40
40
  "keywords": [],
41
41
  "license": "MIT",
@@ -77,5 +77,5 @@
77
77
  ],
78
78
  "files": "test/*.js"
79
79
  },
80
- "version": "1.1.1"
80
+ "version": "1.1.2"
81
81
  }
@@ -1,10 +1,10 @@
1
1
  {
2
- "_from": "glob@^5.0.14",
3
- "_id": "glob@5.0.15",
2
+ "_from": "glob@^6.0.1",
3
+ "_id": "glob@6.0.3",
4
4
  "_location": "/rimraf/glob",
5
5
  "_nodeVersion": "4.0.0",
6
6
  "_npmUser": {
7
- "email": "isaacs@npmjs.com",
7
+ "email": "i@izs.me",
8
8
  "name": "isaacs"
9
9
  },
10
10
  "_npmVersion": "3.3.2",
@@ -12,8 +12,8 @@
12
12
  "_requiredBy": [
13
13
  "/rimraf"
14
14
  ],
15
- "_resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz",
16
- "_shasum": "1bc936b9e02f4a603fcc222ecf7633d30b8b93b1",
15
+ "_resolved": "https://registry.npmjs.org/glob/-/glob-6.0.3.tgz",
16
+ "_shasum": "5f02cd89587ce58b154ae0855de02a2e63986fca",
17
17
  "author": {
18
18
  "email": "i@izs.me",
19
19
  "name": "Isaac Z. Schlueter",
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "directories": {},
40
40
  "dist": {
41
- "shasum": "1bc936b9e02f4a603fcc222ecf7633d30b8b93b1",
42
- "tarball": "http://registry.npmjs.org/glob/-/glob-5.0.15.tgz"
41
+ "shasum": "5f02cd89587ce58b154ae0855de02a2e63986fca",
42
+ "tarball": "http://registry.npmjs.org/glob/-/glob-6.0.3.tgz"
43
43
  },
44
44
  "engines": {
45
45
  "node": "*"
@@ -49,7 +49,7 @@
49
49
  "glob.js",
50
50
  "sync.js"
51
51
  ],
52
- "gitHead": "3a7e71d453dd80e75b196fd262dd23ed54beeceb",
52
+ "gitHead": "dd5b255ff9b161d23f81c4d0a381ca46a97d049a",
53
53
  "homepage": "https://github.com/isaacs/node-glob#readme",
54
54
  "license": "ISC",
55
55
  "main": "glob.js",
@@ -61,7 +61,8 @@
61
61
  ],
62
62
  "name": "glob",
63
63
  "optionalDependencies": {},
64
- "readme": "ERROR: No README data found!",
64
+ "readme": "[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Dependency Status](https://david-dm.org/isaacs/node-glob.svg)](https://david-dm.org/isaacs/node-glob) [![devDependency Status](https://david-dm.org/isaacs/node-glob/dev-status.svg)](https://david-dm.org/isaacs/node-glob#info=devDependencies) [![optionalDependency Status](https://david-dm.org/isaacs/node-glob/optional-status.svg)](https://david-dm.org/isaacs/node-glob#info=optionalDependencies)\n\n# Glob\n\nMatch files using the patterns the shell uses, like stars and stuff.\n\nThis is a glob implementation in JavaScript. It uses the `minimatch`\nlibrary to do its matching.\n\n![](oh-my-glob.gif)\n\n## Usage\n\n```javascript\nvar glob = require(\"glob\")\n\n// options is optional\nglob(\"**/*.js\", options, function (er, files) {\n // files is an array of filenames.\n // If the `nonull` option is set, and nothing\n // was found, then files is [\"**/*.js\"]\n // er is an error object or null.\n})\n```\n\n## Glob Primer\n\n\"Globs\" are the patterns you type when you do stuff like `ls *.js` on\nthe command line, or put `build/*` in a `.gitignore` file.\n\nBefore parsing the path part patterns, braced sections are expanded\ninto a set. Braced sections start with `{` and end with `}`, with any\nnumber of comma-delimited sections within. Braced sections may contain\nslash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`.\n\nThe following characters have special magic meaning when used in a\npath portion:\n\n* `*` Matches 0 or more characters in a single path portion\n* `?` Matches 1 character\n* `[...]` Matches a range of characters, similar to a RegExp range.\n If the first character of the range is `!` or `^` then it matches\n any character not in the range.\n* `!(pattern|pattern|pattern)` Matches anything that does not match\n any of the patterns provided.\n* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the\n patterns provided.\n* `+(pattern|pattern|pattern)` Matches one or more occurrences of the\n patterns provided.\n* `*(a|b|c)` Matches zero or more occurrences of the patterns provided\n* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns\n provided\n* `**` If a \"globstar\" is alone in a path portion, then it matches\n zero or more directories and subdirectories searching for matches.\n It does not crawl symlinked directories.\n\n### Dots\n\nIf a file or directory path portion has a `.` as the first character,\nthen it will not match any glob pattern unless that pattern's\ncorresponding path part also has a `.` as its first character.\n\nFor example, the pattern `a/.*/c` would match the file at `a/.b/c`.\nHowever the pattern `a/*/c` would not, because `*` does not start with\na dot character.\n\nYou can make glob treat dots as normal characters by setting\n`dot:true` in the options.\n\n### Basename Matching\n\nIf you set `matchBase:true` in the options, and the pattern has no\nslashes in it, then it will seek for any file anywhere in the tree\nwith a matching basename. For example, `*.js` would match\n`test/simple/basic.js`.\n\n### Empty Sets\n\nIf no matching files are found, then an empty array is returned. This\ndiffers from the shell, where the pattern itself is returned. For\nexample:\n\n $ echo a*s*d*f\n a*s*d*f\n\nTo get the bash-style behavior, set the `nonull:true` in the options.\n\n### See Also:\n\n* `man sh`\n* `man bash` (Search for \"Pattern Matching\")\n* `man 3 fnmatch`\n* `man 5 gitignore`\n* [minimatch documentation](https://github.com/isaacs/minimatch)\n\n## glob.hasMagic(pattern, [options])\n\nReturns `true` if there are any special characters in the pattern, and\n`false` otherwise.\n\nNote that the options affect the results. If `noext:true` is set in\nthe options object, then `+(a|b)` will not be considered a magic\npattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`\nthen that is considered magical, unless `nobrace:true` is set in the\noptions.\n\n## glob(pattern, [options], cb)\n\n* `pattern` `{String}` Pattern to be matched\n* `options` `{Object}`\n* `cb` `{Function}`\n * `err` `{Error | null}`\n * `matches` `{Array<String>}` filenames found matching the pattern\n\nPerform an asynchronous glob search.\n\n## glob.sync(pattern, [options])\n\n* `pattern` `{String}` Pattern to be matched\n* `options` `{Object}`\n* return: `{Array<String>}` filenames found matching the pattern\n\nPerform a synchronous glob search.\n\n## Class: glob.Glob\n\nCreate a Glob object by instantiating the `glob.Glob` class.\n\n```javascript\nvar Glob = require(\"glob\").Glob\nvar mg = new Glob(pattern, options, cb)\n```\n\nIt's an EventEmitter, and starts walking the filesystem to find matches\nimmediately.\n\n### new glob.Glob(pattern, [options], [cb])\n\n* `pattern` `{String}` pattern to search for\n* `options` `{Object}`\n* `cb` `{Function}` Called when an error occurs, or matches are found\n * `err` `{Error | null}`\n * `matches` `{Array<String>}` filenames found matching the pattern\n\nNote that if the `sync` flag is set in the options, then matches will\nbe immediately available on the `g.found` member.\n\n### Properties\n\n* `minimatch` The minimatch object that the glob uses.\n* `options` The options object passed in.\n* `aborted` Boolean which is set to true when calling `abort()`. There\n is no way at this time to continue a glob search after aborting, but\n you can re-use the statCache to avoid having to duplicate syscalls.\n* `cache` Convenience object. Each field has the following possible\n values:\n * `false` - Path does not exist\n * `true` - Path exists\n * `'FILE'` - Path exists, and is not a directory\n * `'DIR'` - Path exists, and is a directory\n * `[file, entries, ...]` - Path exists, is a directory, and the\n array value is the results of `fs.readdir`\n* `statCache` Cache of `fs.stat` results, to prevent statting the same\n path multiple times.\n* `symlinks` A record of which paths are symbolic links, which is\n relevant in resolving `**` patterns.\n* `realpathCache` An optional object which is passed to `fs.realpath`\n to minimize unnecessary syscalls. It is stored on the instantiated\n Glob object, and may be re-used.\n\n### Events\n\n* `end` When the matching is finished, this is emitted with all the\n matches found. If the `nonull` option is set, and no match was found,\n then the `matches` list contains the original pattern. The matches\n are sorted, unless the `nosort` flag is set.\n* `match` Every time a match is found, this is emitted with the specific\n thing that matched. It is not deduplicated or resolved to a realpath.\n* `error` Emitted when an unexpected error is encountered, or whenever\n any fs error occurs if `options.strict` is set.\n* `abort` When `abort()` is called, this event is raised.\n\n### Methods\n\n* `pause` Temporarily stop the search\n* `resume` Resume the search\n* `abort` Stop the search forever\n\n### Options\n\nAll the options that can be passed to Minimatch can also be passed to\nGlob to change pattern matching behavior. Also, some have been added,\nor have glob-specific ramifications.\n\nAll options are false by default, unless otherwise noted.\n\nAll options are added to the Glob object, as well.\n\nIf you are running many `glob` operations, you can pass a Glob object\nas the `options` argument to a subsequent operation to shortcut some\n`stat` and `readdir` calls. At the very least, you may pass in shared\n`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that\nparallel glob operations will be sped up by sharing information about\nthe filesystem.\n\n* `cwd` The current working directory in which to search. Defaults\n to `process.cwd()`.\n* `root` The place where patterns starting with `/` will be mounted\n onto. Defaults to `path.resolve(options.cwd, \"/\")` (`/` on Unix\n systems, and `C:\\` or some such on Windows.)\n* `dot` Include `.dot` files in normal matches and `globstar` matches.\n Note that an explicit dot in a portion of the pattern will always\n match dot files.\n* `nomount` By default, a pattern starting with a forward-slash will be\n \"mounted\" onto the root setting, so that a valid filesystem path is\n returned. Set this flag to disable that behavior.\n* `mark` Add a `/` character to directory matches. Note that this\n requires additional stat calls.\n* `nosort` Don't sort the results.\n* `stat` Set to true to stat *all* results. This reduces performance\n somewhat, and is completely unnecessary, unless `readdir` is presumed\n to be an untrustworthy indicator of file existence.\n* `silent` When an unusual error is encountered when attempting to\n read a directory, a warning will be printed to stderr. Set the\n `silent` option to true to suppress these warnings.\n* `strict` When an unusual error is encountered when attempting to\n read a directory, the process will just continue on in search of\n other matches. Set the `strict` option to raise an error in these\n cases.\n* `cache` See `cache` property above. Pass in a previously generated\n cache object to save some fs calls.\n* `statCache` A cache of results of filesystem information, to prevent\n unnecessary stat calls. While it should not normally be necessary\n to set this, you may pass the statCache from one glob() call to the\n options object of another, if you know that the filesystem will not\n change between calls. (See \"Race Conditions\" below.)\n* `symlinks` A cache of known symbolic links. You may pass in a\n previously generated `symlinks` object to save `lstat` calls when\n resolving `**` matches.\n* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead.\n* `nounique` In some cases, brace-expanded patterns can result in the\n same file showing up multiple times in the result set. By default,\n this implementation prevents duplicates in the result set. Set this\n flag to disable that behavior.\n* `nonull` Set to never return an empty set, instead returning a set\n containing the pattern itself. This is the default in glob(3).\n* `debug` Set to enable debug logging in minimatch and glob.\n* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.\n* `noglobstar` Do not match `**` against multiple filenames. (Ie,\n treat it as a normal `*` instead.)\n* `noext` Do not match `+(a|b)` \"extglob\" patterns.\n* `nocase` Perform a case-insensitive match. Note: on\n case-insensitive filesystems, non-magic patterns will match by\n default, since `stat` and `readdir` will not raise errors.\n* `matchBase` Perform a basename-only match if the pattern does not\n contain any slash characters. That is, `*.js` would be treated as\n equivalent to `**/*.js`, matching all js files in all directories.\n* `nodir` Do not match directories, only files. (Note: to match\n *only* directories, simply put a `/` at the end of the pattern.)\n* `ignore` Add a pattern or an array of glob patterns to exclude matches.\n Note: `ignore` patterns are *always* in `dot:true` mode, regardless\n of any other settings.\n* `follow` Follow symlinked directories when expanding `**` patterns.\n Note that this can result in a lot of duplicate references in the\n presence of cyclic links.\n* `realpath` Set to true to call `fs.realpath` on all of the results.\n In the case of a symlink that cannot be resolved, the full absolute\n path to the matched entry is returned (though it will usually be a\n broken symlink)\n\n## Comparisons to other fnmatch/glob implementations\n\nWhile strict compliance with the existing standards is a worthwhile\ngoal, some discrepancies exist between node-glob and other\nimplementations, and are intentional.\n\nThe double-star character `**` is supported by default, unless the\n`noglobstar` flag is set. This is supported in the manner of bsdglob\nand bash 4.3, where `**` only has special significance if it is the only\nthing in a path part. That is, `a/**/b` will match `a/x/y/b`, but\n`a/**b` will not.\n\nNote that symlinked directories are not crawled as part of a `**`,\nthough their contents may match against subsequent portions of the\npattern. This prevents infinite loops and duplicates and the like.\n\nIf an escaped pattern has no matches, and the `nonull` flag is set,\nthen glob returns the pattern as-provided, rather than\ninterpreting the character escapes. For example,\n`glob.match([], \"\\\\*a\\\\?\")` will return `\"\\\\*a\\\\?\"` rather than\n`\"*a?\"`. This is akin to setting the `nullglob` option in bash, except\nthat it does not resolve escaped pattern characters.\n\nIf brace expansion is not disabled, then it is performed before any\nother interpretation of the glob pattern. Thus, a pattern like\n`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded\n**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are\nchecked for validity. Since those two are valid, matching proceeds.\n\n### Comments and Negation\n\nPreviously, this module let you mark a pattern as a \"comment\" if it\nstarted with a `#` character, or a \"negated\" pattern if it started\nwith a `!` character.\n\nThese options were deprecated in version 5, and removed in version 6.\n\nTo specify things that should not match, use the `ignore` option.\n\n## Windows\n\n**Please only use forward-slashes in glob expressions.**\n\nThough windows uses either `/` or `\\` as its path separator, only `/`\ncharacters are used by this glob implementation. You must use\nforward-slashes **only** in glob expressions. Back-slashes will always\nbe interpreted as escape characters, not path separators.\n\nResults from absolute patterns such as `/foo/*` are mounted onto the\nroot setting using `path.join`. On windows, this will by default result\nin `/foo/*` matching `C:\\foo\\bar.txt`.\n\n## Race Conditions\n\nGlob searching, by its very nature, is susceptible to race conditions,\nsince it relies on directory walking and such.\n\nAs a result, it is possible that a file that exists when glob looks for\nit may have been deleted or modified by the time it returns the result.\n\nAs part of its internal implementation, this program caches all stat\nand readdir calls that it makes, in order to cut down on system\noverhead. However, this also makes it even more susceptible to races,\nespecially if the cache or statCache objects are reused between glob\ncalls.\n\nUsers are thus advised not to use a glob result as a guarantee of\nfilesystem state in the face of rapid changes. For the vast majority\nof operations, this is never a problem.\n\n## Contributing\n\nAny change to behavior (including bugfixes) must come with a test.\n\nPatches that fail tests or reduce performance will be rejected.\n\n```\n# to run tests\nnpm test\n\n# to re-generate test fixtures\nnpm run test-regen\n\n# to benchmark against bash/zsh\nnpm run bench\n\n# to profile javascript\nnpm run prof\n```\n",
65
+ "readmeFilename": "README.md",
65
66
  "repository": {
66
67
  "type": "git",
67
68
  "url": "git://github.com/isaacs/node-glob.git"
@@ -75,5 +76,5 @@
75
76
  "test": "tap test/*.js --cov",
76
77
  "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
77
78
  },
78
- "version": "5.0.15"
79
+ "version": "6.0.3"
79
80
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "_from": "rimraf@~2.4.0",
3
- "_id": "rimraf@2.4.4",
2
+ "_from": "rimraf@~2.5.0",
3
+ "_id": "rimraf@2.5.0",
4
4
  "_location": "/rimraf",
5
5
  "_nodeVersion": "4.0.0",
6
6
  "_npmUser": {
@@ -13,8 +13,8 @@
13
13
  "/fstream",
14
14
  "/node-pre-gyp"
15
15
  ],
16
- "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.4.4.tgz",
17
- "_shasum": "b528ce2ebe0e6d89fb03b265de11d61da0dbcf82",
16
+ "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.0.tgz",
17
+ "_shasum": "30c096cdf772e26bf3e1d2cff84c2196541a9bb6",
18
18
  "author": {
19
19
  "email": "i@izs.me",
20
20
  "name": "Isaac Z. Schlueter",
@@ -27,17 +27,17 @@
27
27
  "url": "https://github.com/isaacs/rimraf/issues"
28
28
  },
29
29
  "dependencies": {
30
- "glob": "^5.0.14"
30
+ "glob": "^6.0.1"
31
31
  },
32
32
  "description": "A deep deletion module for node (like `rm -rf`)",
33
33
  "devDependencies": {
34
34
  "mkdirp": "^0.5.1",
35
- "tap": "^1.3.1"
35
+ "tap": "^2.3.4"
36
36
  },
37
37
  "directories": {},
38
38
  "dist": {
39
- "shasum": "b528ce2ebe0e6d89fb03b265de11d61da0dbcf82",
40
- "tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.4.4.tgz"
39
+ "shasum": "30c096cdf772e26bf3e1d2cff84c2196541a9bb6",
40
+ "tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.5.0.tgz"
41
41
  },
42
42
  "files": [
43
43
  "LICENSE",
@@ -45,7 +45,7 @@
45
45
  "bin.js",
46
46
  "rimraf.js"
47
47
  ],
48
- "gitHead": "62ae8a4037e7190691eeab35265aed1c768d23e3",
48
+ "gitHead": "c42412ca7a4c9fcf1a219bdfef2283bd7dcbc1d2",
49
49
  "homepage": "https://github.com/isaacs/rimraf#readme",
50
50
  "license": "ISC",
51
51
  "main": "rimraf.js",
@@ -57,7 +57,8 @@
57
57
  ],
58
58
  "name": "rimraf",
59
59
  "optionalDependencies": {},
60
- "readme": "ERROR: No README data found!",
60
+ "readme": "[![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies)\n\nThe [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.\n\nInstall with `npm install rimraf`, or just drop rimraf.js somewhere.\n\n## API\n\n`rimraf(f, [opts], callback)`\n\nThe first parameter will be interpreted as a globbing pattern for files. If you\nwant to disable globbing you can do so with `opts.disableGlob` (defaults to\n`false`). This might be handy, for instance, if you have filenames that contain\nglobbing wildcard characters.\n\nThe callback will be called with an error if there is one. Certain\nerrors are handled for you:\n\n* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of\n `opts.maxBusyTries` times before giving up, adding 100ms of wait\n between each attempt. The default `maxBusyTries` is 3.\n* `ENOENT` - If the file doesn't exist, rimraf will return\n successfully, since your desired outcome is already the case.\n* `EMFILE` - Since `readdir` requires opening a file descriptor, it's\n possible to hit `EMFILE` if too many file descriptors are in use.\n In the sync case, there's nothing to be done for this. But in the\n async case, rimraf will gradually back off with timeouts up to\n `opts.emfileWait` ms, which defaults to 1000.\n\n## options\n\n* unlink, chmod, stat, lstat, rmdir, readdir\n unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync\n\n In order to use a custom file system library, you can override\n specific fs functions on the options object.\n\n If any of these functions are present on the options object, then\n the supplied function will be used instead of the default fs\n method.\n\n Sync methods are only relevant for `rimraf.sync()`, of course.\n\n For example:\n\n ```javascript\n var myCustomFS = require('some-custom-fs')\n\n rimraf('some-thing', myCustomFS, callback)\n ```\n\n* maxBusyTries\n\n If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered\n on Windows systems, then rimraf will retry with a linear backoff\n wait of 100ms longer on each try. The default maxBusyTries is 3.\n\n Only relevant for async usage.\n\n* emfileWait\n\n If an `EMFILE` error is encountered, then rimraf will retry\n repeatedly with a linear backoff of 1ms longer on each try, until\n the timeout counter hits this max. The default limit is 1000.\n\n If you repeatedly encounter `EMFILE` errors, then consider using\n [graceful-fs](http://npm.im/graceful-fs) in your program.\n\n Only relevant for async usage.\n\n* glob\n\n Set to `false` to disable [glob](http://npm.im/glob) pattern\n matching.\n\n Set to an object to pass options to the glob module. The default\n glob options are `{ nosort: true, silent: true }`.\n\n Glob version 6 is used in this module.\n\n Relevant for both sync and async usage.\n\n* disableGlob\n\n Set to any non-falsey value to disable globbing entirely.\n (Equivalent to setting `glob: false`.)\n\n## rimraf.sync\n\nIt can remove stuff synchronously, too. But that's not so good. Use\nthe async API. It's better.\n\n## CLI\n\nIf installed with `npm install rimraf -g` it can be used as a global\ncommand `rimraf <path> [<path> ...]` which is useful for cross platform support.\n\n## mkdirp\n\nIf you need to create a directory recursively, check out\n[mkdirp](https://github.com/substack/node-mkdirp).\n",
61
+ "readmeFilename": "README.md",
61
62
  "repository": {
62
63
  "type": "git",
63
64
  "url": "git://github.com/isaacs/rimraf.git"
@@ -65,5 +66,5 @@
65
66
  "scripts": {
66
67
  "test": "tap test/*.js"
67
68
  },
68
- "version": "2.4.4"
69
+ "version": "2.5.0"
69
70
  }
@@ -6,10 +6,8 @@ var path = require("path")
6
6
  var fs = require("fs")
7
7
  var glob = require("glob")
8
8
 
9
- var globOpts = {
9
+ var defaultGlobOpts = {
10
10
  nosort: true,
11
- nocomment: true,
12
- nonegate: true,
13
11
  silent: true
14
12
  }
15
13
 
@@ -35,7 +33,11 @@ function defaults (options) {
35
33
 
36
34
  options.maxBusyTries = options.maxBusyTries || 3
37
35
  options.emfileWait = options.emfileWait || 1000
36
+ if (options.glob === false) {
37
+ options.disableGlob = true
38
+ }
38
39
  options.disableGlob = options.disableGlob || false
40
+ options.glob = options.glob || defaultGlobOpts
39
41
  }
40
42
 
41
43
  function rimraf (p, options, cb) {
@@ -63,7 +65,7 @@ function rimraf (p, options, cb) {
63
65
  if (!er)
64
66
  return afterGlob(null, [p])
65
67
 
66
- glob(p, globOpts, afterGlob)
68
+ glob(p, options.glob, afterGlob)
67
69
  })
68
70
 
69
71
  function next (er) {
@@ -270,7 +272,7 @@ function rimrafSync (p, options) {
270
272
  fs.lstatSync(p)
271
273
  results = [p]
272
274
  } catch (er) {
273
- results = glob.sync(p, globOpts)
275
+ results = glob.sync(p, options.glob)
274
276
  }
275
277
  }
276
278
 
@@ -166,7 +166,7 @@ if (require.main === module) {
166
166
  });
167
167
  } else {
168
168
  var kind = 'public';
169
- if (PrivateKey.isPrivateKey(key))
169
+ if (sshpk.PrivateKey.isPrivateKey(key))
170
170
  kind = 'private';
171
171
  console.log('%s: a %d bit %s %s key', inFileName,
172
172
  key.size, key.type.toUpperCase(), kind);