fsevents 1.0.12 → 1.0.14

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

Potentially problematic release.


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

Files changed (514) hide show
  1. package/.npmignore +1 -3
  2. package/.travis.yml +6 -5
  3. package/build/.target.mk +49 -0
  4. package/build/Makefile +352 -0
  5. package/build/action_after_build.target.mk +32 -0
  6. package/build/binding.Makefile +6 -0
  7. package/build/fse.target.mk +169 -0
  8. package/build/gyp-mac-tool +612 -0
  9. package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
  10. package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
  11. package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
  12. package/node_modules/abbrev/package.json +82 -0
  13. package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
  14. package/node_modules/ansi-regex/package.json +20 -2
  15. package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
  16. package/node_modules/ansi-styles/package.json +21 -4
  17. package/node_modules/aproba/LICENSE +14 -0
  18. package/node_modules/aproba/README.md +59 -0
  19. package/node_modules/aproba/index.js +62 -0
  20. package/node_modules/aproba/package.json +88 -0
  21. package/node_modules/are-we-there-yet/package.json +21 -4
  22. package/node_modules/asn1/package.json +19 -1
  23. package/node_modules/assert-plus/package.json +21 -4
  24. package/node_modules/async/CHANGELOG.md +125 -0
  25. package/node_modules/async/LICENSE +19 -0
  26. package/node_modules/async/package.json +20 -2
  27. package/node_modules/aws-sign2/package.json +20 -2
  28. package/node_modules/aws4/aws4.js +1 -1
  29. package/node_modules/aws4/lru.js +96 -0
  30. package/node_modules/aws4/package.json +31 -16
  31. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
  32. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
  33. package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
  34. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
  35. package/node_modules/bl/README.md +3 -3
  36. package/node_modules/bl/bl.js +54 -38
  37. package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
  38. package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
  39. package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
  40. package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
  41. package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  42. package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
  43. package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
  44. package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
  45. package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
  46. package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
  47. package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
  48. package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
  49. package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
  50. package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
  51. package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
  52. package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
  53. package/node_modules/bl/package.json +39 -15
  54. package/node_modules/bl/test/test.js +71 -2
  55. package/node_modules/block-stream/package.json +37 -12
  56. package/node_modules/boom/package.json +20 -2
  57. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
  58. package/node_modules/buffer-shims/index.js +108 -0
  59. package/node_modules/buffer-shims/license.md +19 -0
  60. package/node_modules/buffer-shims/package.json +77 -0
  61. package/node_modules/buffer-shims/readme.md +21 -0
  62. package/node_modules/caseless/package.json +20 -2
  63. package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
  64. package/node_modules/chalk/package.json +21 -4
  65. package/node_modules/code-point-at/index.js +33 -0
  66. package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
  67. package/node_modules/code-point-at/package.json +96 -0
  68. package/node_modules/code-point-at/readme.md +34 -0
  69. package/node_modules/combined-stream/package.json +20 -2
  70. package/node_modules/commander/History.md +261 -0
  71. package/node_modules/commander/LICENSE +22 -0
  72. package/node_modules/commander/package.json +20 -2
  73. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
  74. package/node_modules/console-control-strings/LICENSE +13 -0
  75. package/node_modules/console-control-strings/README.md +145 -0
  76. package/node_modules/console-control-strings/README.md~ +140 -0
  77. package/node_modules/console-control-strings/index.js +125 -0
  78. package/node_modules/console-control-strings/package.json +88 -0
  79. package/node_modules/core-util-is/package.json +21 -2
  80. package/node_modules/cryptiles/package.json +20 -2
  81. package/node_modules/dashdash/lib/dashdash.js +34 -1
  82. package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
  83. package/node_modules/dashdash/package.json +29 -12
  84. package/node_modules/debug/package.json +20 -2
  85. package/node_modules/deep-extend/CHANGELOG.md +21 -0
  86. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
  87. package/node_modules/deep-extend/package.json +21 -4
  88. package/node_modules/delayed-stream/package.json +20 -2
  89. package/node_modules/delegates/package.json +21 -4
  90. package/node_modules/ecc-jsbn/package.json +20 -2
  91. package/node_modules/escape-string-regexp/license +21 -0
  92. package/node_modules/escape-string-regexp/package.json +21 -4
  93. package/node_modules/extend/package.json +20 -2
  94. package/node_modules/extsprintf/package.json +20 -3
  95. package/node_modules/forever-agent/package.json +20 -2
  96. package/node_modules/form-data/package.json +21 -4
  97. package/node_modules/fs.realpath/LICENSE +43 -0
  98. package/node_modules/fs.realpath/README.md +33 -0
  99. package/node_modules/fs.realpath/index.js +66 -0
  100. package/node_modules/fs.realpath/old.js +303 -0
  101. package/node_modules/fs.realpath/package.json +86 -0
  102. package/node_modules/fstream/.travis.yml +4 -4
  103. package/node_modules/fstream/lib/collect.js +2 -0
  104. package/node_modules/fstream/package.json +37 -15
  105. package/node_modules/fstream-ignore/package.json +45 -17
  106. package/node_modules/gauge/CHANGELOG.md +131 -0
  107. package/node_modules/gauge/CHANGELOG.md~ +123 -0
  108. package/node_modules/gauge/README.md +317 -88
  109. package/node_modules/gauge/README.md~ +393 -0
  110. package/node_modules/gauge/base-theme.js +14 -0
  111. package/node_modules/gauge/error.js +24 -0
  112. package/node_modules/gauge/has-color.js +12 -0
  113. package/node_modules/gauge/index.js +226 -0
  114. package/node_modules/gauge/package.json +67 -21
  115. package/node_modules/gauge/plumbing.js +47 -0
  116. package/node_modules/gauge/process.js +3 -0
  117. package/node_modules/gauge/progress-bar.js +29 -219
  118. package/node_modules/gauge/render-template.js +181 -0
  119. package/node_modules/gauge/set-immediate.js +7 -0
  120. package/node_modules/gauge/set-interval.js +3 -0
  121. package/node_modules/gauge/spin.js +5 -0
  122. package/node_modules/gauge/template-item.js +73 -0
  123. package/node_modules/gauge/theme-set.js +115 -0
  124. package/node_modules/gauge/themes.js +54 -0
  125. package/node_modules/gauge/wide-truncate.js +25 -0
  126. package/node_modules/generate-function/package.json +20 -2
  127. package/node_modules/generate-object-property/package.json +20 -2
  128. package/node_modules/getpass/.npmignore +8 -0
  129. package/node_modules/getpass/.travis.yml +9 -0
  130. package/node_modules/getpass/LICENSE +18 -0
  131. package/node_modules/getpass/README.md +32 -0
  132. package/node_modules/getpass/lib/index.js +123 -0
  133. package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
  134. package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
  135. package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
  136. package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
  137. package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
  138. package/node_modules/getpass/package.json +82 -0
  139. package/node_modules/glob/changelog.md +67 -0
  140. package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
  141. package/node_modules/glob/package.json +103 -0
  142. package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
  143. package/node_modules/graceful-fs/LICENSE +15 -0
  144. package/node_modules/graceful-fs/README.md +82 -2
  145. package/node_modules/graceful-fs/package.json +30 -12
  146. package/node_modules/graceful-readlink/package.json +20 -2
  147. package/node_modules/har-validator/LICENSE +13 -0
  148. package/node_modules/har-validator/package.json +20 -2
  149. package/node_modules/has-ansi/license +21 -0
  150. package/node_modules/has-ansi/package.json +20 -2
  151. package/node_modules/has-color/index.js +32 -0
  152. package/node_modules/has-color/package.json +97 -0
  153. package/node_modules/has-color/readme.md +30 -0
  154. package/node_modules/has-unicode/index.js +3 -8
  155. package/node_modules/has-unicode/package.json +36 -12
  156. package/node_modules/hawk/package.json +20 -2
  157. package/node_modules/hoek/package.json +20 -2
  158. package/node_modules/http-signature/package.json +20 -2
  159. package/node_modules/inflight/package.json +97 -0
  160. package/node_modules/inherits/package.json +16 -9
  161. package/node_modules/ini/package.json +21 -4
  162. package/node_modules/is-fullwidth-code-point/index.js +46 -0
  163. package/node_modules/is-fullwidth-code-point/license +21 -0
  164. package/node_modules/is-fullwidth-code-point/package.json +100 -0
  165. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  166. package/node_modules/is-my-json-valid/package.json +21 -4
  167. package/node_modules/is-property/package.json +20 -2
  168. package/node_modules/is-typedarray/package.json +20 -2
  169. package/node_modules/isarray/package.json +21 -2
  170. package/node_modules/isstream/package.json +20 -2
  171. package/node_modules/jodid25519/package.json +19 -1
  172. package/node_modules/jsbn/package.json +19 -1
  173. package/node_modules/json-schema/package.json +20 -2
  174. package/node_modules/json-stringify-safe/package.json +20 -2
  175. package/node_modules/jsonpointer/package.json +19 -1
  176. package/node_modules/jsprim/CHANGES.md +5 -0
  177. package/node_modules/jsprim/README.md +13 -4
  178. package/node_modules/jsprim/lib/jsprim.js +12 -2
  179. package/node_modules/jsprim/package.json +33 -11
  180. package/node_modules/mime-db/HISTORY.md +21 -0
  181. package/node_modules/mime-db/db.json +53 -1
  182. package/node_modules/mime-db/package.json +36 -19
  183. package/node_modules/mime-types/HISTORY.md +6 -0
  184. package/node_modules/mime-types/package.json +33 -16
  185. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
  186. package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
  187. package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
  188. package/node_modules/mkdirp/package.json +10 -8
  189. package/node_modules/ms/History.md +66 -0
  190. package/node_modules/ms/package.json +19 -1
  191. package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
  192. package/node_modules/node-pre-gyp/appveyor.yml +2 -2
  193. package/node_modules/node-pre-gyp/lib/install.js +12 -2
  194. package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
  195. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
  196. package/node_modules/node-pre-gyp/package.json +21 -31
  197. package/node_modules/node-uuid/package.json +20 -2
  198. package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
  199. package/node_modules/npmlog/CHANGELOG.md +36 -0
  200. package/node_modules/npmlog/CHANGELOG.md~ +31 -0
  201. package/node_modules/npmlog/README.md +16 -1
  202. package/node_modules/npmlog/log.js +97 -50
  203. package/node_modules/npmlog/package.json +43 -17
  204. package/node_modules/number-is-nan/index.js +4 -0
  205. package/node_modules/number-is-nan/license +21 -0
  206. package/node_modules/number-is-nan/package.json +94 -0
  207. package/node_modules/number-is-nan/readme.md +30 -0
  208. package/node_modules/oauth-sign/package.json +36 -12
  209. package/node_modules/object-assign/index.js +83 -0
  210. package/node_modules/object-assign/license +21 -0
  211. package/node_modules/object-assign/package.json +106 -0
  212. package/node_modules/object-assign/readme.md +56 -0
  213. package/node_modules/once/package.json +22 -2
  214. package/node_modules/path-is-absolute/license +21 -0
  215. package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
  216. package/node_modules/pinkie/license +21 -0
  217. package/node_modules/pinkie/package.json +21 -4
  218. package/node_modules/pinkie-promise/index.js +1 -1
  219. package/node_modules/pinkie-promise/license +21 -0
  220. package/node_modules/pinkie-promise/package.json +32 -10
  221. package/node_modules/process-nextick-args/index.js +31 -8
  222. package/node_modules/process-nextick-args/package.json +33 -10
  223. package/node_modules/qs/.eslintrc +5 -3
  224. package/node_modules/qs/.jscs.json +176 -0
  225. package/node_modules/qs/CHANGELOG.md +10 -0
  226. package/node_modules/qs/dist/qs.js +75 -63
  227. package/node_modules/qs/lib/parse.js +32 -29
  228. package/node_modules/qs/lib/stringify.js +37 -30
  229. package/node_modules/qs/lib/utils.js +6 -4
  230. package/node_modules/qs/package.json +41 -18
  231. package/node_modules/qs/test/parse.js +30 -0
  232. package/node_modules/qs/test/stringify.js +70 -0
  233. package/node_modules/rc/node_modules/minimist/package.json +20 -2
  234. package/node_modules/rc/package.json +21 -4
  235. package/node_modules/readable-stream/.npmignore +4 -1
  236. package/node_modules/readable-stream/.travis.yml +2 -0
  237. package/node_modules/readable-stream/README.md +2 -2
  238. package/node_modules/readable-stream/doc/stream.md +1772 -0
  239. package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
  240. package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  241. package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  242. package/node_modules/readable-stream/package.json +44 -15
  243. package/node_modules/readable-stream/readable.js +4 -0
  244. package/node_modules/request/.eslintrc +1 -1
  245. package/node_modules/request/.travis.yml +9 -3
  246. package/node_modules/request/CHANGELOG.md +46 -8
  247. package/node_modules/request/CONTRIBUTING.md +41 -4
  248. package/node_modules/request/README.md +9 -6
  249. package/node_modules/request/codecov.yml +2 -0
  250. package/node_modules/request/index.js +6 -5
  251. package/node_modules/request/lib/helpers.js +3 -3
  252. package/node_modules/request/package.json +52 -30
  253. package/node_modules/request/request.js +58 -43
  254. package/node_modules/rimraf/package.json +33 -16
  255. package/node_modules/rimraf/rimraf.js +10 -2
  256. package/node_modules/semver/README.md +27 -8
  257. package/node_modules/semver/package.json +38 -12
  258. package/node_modules/semver/range.bnf +1 -1
  259. package/node_modules/semver/semver.js +7 -1
  260. package/node_modules/set-blocking/CHANGELOG.md +26 -0
  261. package/node_modules/set-blocking/LICENSE.txt +14 -0
  262. package/node_modules/set-blocking/README.md +31 -0
  263. package/node_modules/set-blocking/index.js +7 -0
  264. package/node_modules/set-blocking/package.json +98 -0
  265. package/node_modules/signal-exit/CHANGELOG.md +17 -0
  266. package/node_modules/signal-exit/LICENSE.txt +14 -0
  267. package/node_modules/signal-exit/README.md +40 -0
  268. package/node_modules/signal-exit/index.js +148 -0
  269. package/node_modules/signal-exit/package.json +98 -0
  270. package/node_modules/signal-exit/signals.js +52 -0
  271. package/node_modules/sntp/package.json +20 -2
  272. package/node_modules/sshpk/.travis.yml +3 -3
  273. package/node_modules/sshpk/README.md +26 -7
  274. package/node_modules/sshpk/bin/sshpk-conv +14 -2
  275. package/node_modules/sshpk/bin/sshpk-sign +16 -1
  276. package/node_modules/sshpk/lib/errors.js +14 -1
  277. package/node_modules/sshpk/lib/formats/auto.js +8 -8
  278. package/node_modules/sshpk/lib/formats/pem.js +39 -5
  279. package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
  280. package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
  281. package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
  282. package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
  283. package/node_modules/sshpk/lib/formats/ssh.js +2 -2
  284. package/node_modules/sshpk/lib/index.js +2 -1
  285. package/node_modules/sshpk/lib/key.js +20 -17
  286. package/node_modules/sshpk/lib/private-key.js +19 -12
  287. package/node_modules/sshpk/lib/utils.js +40 -1
  288. package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
  289. package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
  290. package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
  291. package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
  292. package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
  293. package/node_modules/sshpk/package.json +48 -30
  294. package/node_modules/string-width/index.js +32 -0
  295. package/node_modules/string-width/license +21 -0
  296. package/node_modules/string-width/package.json +111 -0
  297. package/node_modules/string-width/readme.md +41 -0
  298. package/node_modules/string_decoder/package.json +21 -2
  299. package/node_modules/stringstream/package.json +20 -2
  300. package/node_modules/strip-ansi/license +21 -0
  301. package/node_modules/strip-ansi/package.json +24 -5
  302. package/node_modules/strip-json-comments/license +21 -0
  303. package/node_modules/strip-json-comments/package.json +20 -2
  304. package/node_modules/supports-color/license +21 -0
  305. package/node_modules/supports-color/package.json +20 -2
  306. package/node_modules/tar/package.json +20 -2
  307. package/node_modules/tar-pack/package.json +34 -17
  308. package/node_modules/tough-cookie/LICENSE +27 -0
  309. package/node_modules/tough-cookie/package.json +21 -4
  310. package/node_modules/tunnel-agent/package.json +35 -10
  311. package/node_modules/tweetnacl/CHANGELOG.md +0 -53
  312. package/node_modules/tweetnacl/README.md +42 -24
  313. package/node_modules/tweetnacl/nacl-fast.js +52 -22
  314. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  315. package/node_modules/tweetnacl/nacl.js +51 -21
  316. package/node_modules/tweetnacl/nacl.min.js +1 -1
  317. package/node_modules/tweetnacl/package.json +56 -30
  318. package/node_modules/uid-number/package.json +21 -4
  319. package/node_modules/util-deprecate/package.json +21 -2
  320. package/node_modules/verror/package.json +20 -3
  321. package/node_modules/wide-align/.npmignore +5 -0
  322. package/node_modules/wide-align/LICENSE +14 -0
  323. package/node_modules/wide-align/README.md +47 -0
  324. package/node_modules/wide-align/align.js +65 -0
  325. package/node_modules/wide-align/package.json +85 -0
  326. package/node_modules/wide-align/test/align.js +37 -0
  327. package/node_modules/wrappy/package.json +44 -14
  328. package/node_modules/xtend/package.json +20 -2
  329. package/package.json +2 -2
  330. package/node_modules/ansi/.jshintrc +0 -4
  331. package/node_modules/ansi/History.md +0 -23
  332. package/node_modules/ansi/LICENSE +0 -24
  333. package/node_modules/ansi/README.md +0 -98
  334. package/node_modules/ansi/examples/beep/index.js +0 -16
  335. package/node_modules/ansi/examples/clear/index.js +0 -15
  336. package/node_modules/ansi/examples/cursorPosition.js +0 -32
  337. package/node_modules/ansi/examples/progress/index.js +0 -87
  338. package/node_modules/ansi/lib/ansi.js +0 -405
  339. package/node_modules/ansi/lib/newlines.js +0 -71
  340. package/node_modules/ansi/package.json +0 -69
  341. package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
  342. package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
  343. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
  344. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
  345. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
  346. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
  347. package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
  348. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
  349. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
  350. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
  351. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
  352. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
  353. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
  354. package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
  355. package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
  356. package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
  357. package/node_modules/block-stream/bench/block-stream.js +0 -68
  358. package/node_modules/block-stream/bench/dropper-pause.js +0 -70
  359. package/node_modules/block-stream/bench/dropper.js +0 -68
  360. package/node_modules/block-stream/test/basic.js +0 -27
  361. package/node_modules/block-stream/test/nopad-thorough.js +0 -68
  362. package/node_modules/block-stream/test/nopad.js +0 -57
  363. package/node_modules/block-stream/test/pause-resume.js +0 -73
  364. package/node_modules/block-stream/test/thorough.js +0 -68
  365. package/node_modules/block-stream/test/two-stream.js +0 -59
  366. package/node_modules/fstream-ignore/.npmignore +0 -1
  367. package/node_modules/fstream-ignore/example/basic.js +0 -13
  368. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
  369. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  370. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  371. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  372. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  373. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
  374. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  375. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
  376. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  377. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
  378. package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
  379. package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
  380. package/node_modules/fstream-ignore/test/.ignore +0 -2
  381. package/node_modules/fstream-ignore/test/.npmignore +0 -1
  382. package/node_modules/fstream-ignore/test/00-setup.js +0 -71
  383. package/node_modules/fstream-ignore/test/basic.js +0 -28
  384. package/node_modules/fstream-ignore/test/common.js +0 -40
  385. package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
  386. package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
  387. package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
  388. package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
  389. package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
  390. package/node_modules/gauge/.npmignore +0 -32
  391. package/node_modules/gauge/example.png +0 -0
  392. package/node_modules/gauge/test/progress-bar.js +0 -176
  393. package/node_modules/has-unicode/.npmignore +0 -32
  394. package/node_modules/has-unicode/test/index.js +0 -26
  395. package/node_modules/lodash.pad/README.md +0 -18
  396. package/node_modules/lodash.pad/index.js +0 -296
  397. package/node_modules/lodash.pad/package.json +0 -91
  398. package/node_modules/lodash.padend/README.md +0 -18
  399. package/node_modules/lodash.padend/index.js +0 -285
  400. package/node_modules/lodash.padend/package.json +0 -91
  401. package/node_modules/lodash.padstart/README.md +0 -18
  402. package/node_modules/lodash.padstart/index.js +0 -285
  403. package/node_modules/lodash.padstart/package.json +0 -91
  404. package/node_modules/lodash.repeat/README.md +0 -18
  405. package/node_modules/lodash.repeat/index.js +0 -215
  406. package/node_modules/lodash.repeat/package.json +0 -92
  407. package/node_modules/lodash.tostring/LICENSE +0 -23
  408. package/node_modules/lodash.tostring/README.md +0 -18
  409. package/node_modules/lodash.tostring/index.js +0 -164
  410. package/node_modules/lodash.tostring/package.json +0 -91
  411. package/node_modules/node-pre-gyp/README.md +0 -570
  412. package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
  413. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
  414. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
  415. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
  416. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
  417. package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
  418. package/node_modules/npmlog/.nyc_output/64996.json +0 -1
  419. package/node_modules/npmlog/.nyc_output/64998.json +0 -1
  420. package/node_modules/npmlog/.nyc_output/65000.json +0 -1
  421. package/node_modules/npmlog/.travis.yml +0 -14
  422. package/node_modules/npmlog/example.js +0 -39
  423. package/node_modules/npmlog/test/basic.js +0 -235
  424. package/node_modules/npmlog/test/progress.js +0 -131
  425. package/node_modules/oauth-sign/test.js +0 -89
  426. package/node_modules/qs/.npmignore +0 -18
  427. package/node_modules/qs/.travis.yml +0 -69
  428. package/node_modules/qs/README.md +0 -335
  429. package/node_modules/qs/bower.json +0 -22
  430. package/node_modules/qs/component.json +0 -15
  431. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
  432. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
  433. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
  434. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
  435. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
  436. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
  437. package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
  438. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
  439. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
  440. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
  441. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
  442. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
  443. package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
  444. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
  445. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
  446. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
  447. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
  448. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
  449. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
  450. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
  451. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
  452. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
  453. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
  454. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
  455. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
  456. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
  457. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
  458. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
  459. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
  460. package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
  461. package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
  462. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
  463. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
  464. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
  465. package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
  466. package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
  467. package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
  468. package/node_modules/rimraf/node_modules/glob/package.json +0 -85
  469. package/node_modules/semver/.npmignore +0 -4
  470. package/node_modules/semver/.travis.yml +0 -5
  471. package/node_modules/semver/test/big-numbers.js +0 -31
  472. package/node_modules/semver/test/clean.js +0 -29
  473. package/node_modules/semver/test/gtr.js +0 -173
  474. package/node_modules/semver/test/index.js +0 -698
  475. package/node_modules/semver/test/ltr.js +0 -181
  476. package/node_modules/semver/test/major-minor-patch.js +0 -72
  477. package/node_modules/tunnel-agent/.jshintrc +0 -5
  478. package/node_modules/tweetnacl/COPYING.txt +0 -9
  479. package/node_modules/wrappy/test/basic.js +0 -51
  480. package/test/fsevents.js +0 -27
  481. package/test/function.js +0 -93
  482. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
  483. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
  484. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
  485. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
  486. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
  487. /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
  488. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
  489. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
  490. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
  491. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
  492. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
  493. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
  494. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
  495. /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
  496. /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
  497. /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
  498. /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
  499. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
  500. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
  501. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
  502. /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
  503. /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
  504. /package/node_modules/{ansi → nopt}/.npmignore +0 -0
  505. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
  506. /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
  507. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
  508. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
  509. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
  510. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
  511. /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
  512. /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
  513. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
  514. /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -1,912 +0,0 @@
1
- module.exports = minimatch
2
- minimatch.Minimatch = Minimatch
3
-
4
- var path = { sep: '/' }
5
- try {
6
- path = require('path')
7
- } catch (er) {}
8
-
9
- var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
10
- var expand = require('brace-expansion')
11
-
12
- // any single thing other than /
13
- // don't need to escape / when using new RegExp()
14
- var qmark = '[^/]'
15
-
16
- // * => any number of characters
17
- var star = qmark + '*?'
18
-
19
- // ** when dots are allowed. Anything goes, except .. and .
20
- // not (^ or / followed by one or two dots followed by $ or /),
21
- // followed by anything, any number of times.
22
- var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
23
-
24
- // not a ^ or / followed by a dot,
25
- // followed by anything, any number of times.
26
- var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
27
-
28
- // characters that need to be escaped in RegExp.
29
- var reSpecials = charSet('().*{}+?[]^$\\!')
30
-
31
- // "abc" -> { a:true, b:true, c:true }
32
- function charSet (s) {
33
- return s.split('').reduce(function (set, c) {
34
- set[c] = true
35
- return set
36
- }, {})
37
- }
38
-
39
- // normalizes slashes.
40
- var slashSplit = /\/+/
41
-
42
- minimatch.filter = filter
43
- function filter (pattern, options) {
44
- options = options || {}
45
- return function (p, i, list) {
46
- return minimatch(p, pattern, options)
47
- }
48
- }
49
-
50
- function ext (a, b) {
51
- a = a || {}
52
- b = b || {}
53
- var t = {}
54
- Object.keys(b).forEach(function (k) {
55
- t[k] = b[k]
56
- })
57
- Object.keys(a).forEach(function (k) {
58
- t[k] = a[k]
59
- })
60
- return t
61
- }
62
-
63
- minimatch.defaults = function (def) {
64
- if (!def || !Object.keys(def).length) return minimatch
65
-
66
- var orig = minimatch
67
-
68
- var m = function minimatch (p, pattern, options) {
69
- return orig.minimatch(p, pattern, ext(def, options))
70
- }
71
-
72
- m.Minimatch = function Minimatch (pattern, options) {
73
- return new orig.Minimatch(pattern, ext(def, options))
74
- }
75
-
76
- return m
77
- }
78
-
79
- Minimatch.defaults = function (def) {
80
- if (!def || !Object.keys(def).length) return Minimatch
81
- return minimatch.defaults(def).Minimatch
82
- }
83
-
84
- function minimatch (p, pattern, options) {
85
- if (typeof pattern !== 'string') {
86
- throw new TypeError('glob pattern string required')
87
- }
88
-
89
- if (!options) options = {}
90
-
91
- // shortcut: comments match nothing.
92
- if (!options.nocomment && pattern.charAt(0) === '#') {
93
- return false
94
- }
95
-
96
- // "" only matches ""
97
- if (pattern.trim() === '') return p === ''
98
-
99
- return new Minimatch(pattern, options).match(p)
100
- }
101
-
102
- function Minimatch (pattern, options) {
103
- if (!(this instanceof Minimatch)) {
104
- return new Minimatch(pattern, options)
105
- }
106
-
107
- if (typeof pattern !== 'string') {
108
- throw new TypeError('glob pattern string required')
109
- }
110
-
111
- if (!options) options = {}
112
- pattern = pattern.trim()
113
-
114
- // windows support: need to use /, not \
115
- if (path.sep !== '/') {
116
- pattern = pattern.split(path.sep).join('/')
117
- }
118
-
119
- this.options = options
120
- this.set = []
121
- this.pattern = pattern
122
- this.regexp = null
123
- this.negate = false
124
- this.comment = false
125
- this.empty = false
126
-
127
- // make the set of regexps etc.
128
- this.make()
129
- }
130
-
131
- Minimatch.prototype.debug = function () {}
132
-
133
- Minimatch.prototype.make = make
134
- function make () {
135
- // don't do it more than once.
136
- if (this._made) return
137
-
138
- var pattern = this.pattern
139
- var options = this.options
140
-
141
- // empty patterns and comments match nothing.
142
- if (!options.nocomment && pattern.charAt(0) === '#') {
143
- this.comment = true
144
- return
145
- }
146
- if (!pattern) {
147
- this.empty = true
148
- return
149
- }
150
-
151
- // step 1: figure out negation, etc.
152
- this.parseNegate()
153
-
154
- // step 2: expand braces
155
- var set = this.globSet = this.braceExpand()
156
-
157
- if (options.debug) this.debug = console.error
158
-
159
- this.debug(this.pattern, set)
160
-
161
- // step 3: now we have a set, so turn each one into a series of path-portion
162
- // matching patterns.
163
- // These will be regexps, except in the case of "**", which is
164
- // set to the GLOBSTAR object for globstar behavior,
165
- // and will not contain any / characters
166
- set = this.globParts = set.map(function (s) {
167
- return s.split(slashSplit)
168
- })
169
-
170
- this.debug(this.pattern, set)
171
-
172
- // glob --> regexps
173
- set = set.map(function (s, si, set) {
174
- return s.map(this.parse, this)
175
- }, this)
176
-
177
- this.debug(this.pattern, set)
178
-
179
- // filter out everything that didn't compile properly.
180
- set = set.filter(function (s) {
181
- return s.indexOf(false) === -1
182
- })
183
-
184
- this.debug(this.pattern, set)
185
-
186
- this.set = set
187
- }
188
-
189
- Minimatch.prototype.parseNegate = parseNegate
190
- function parseNegate () {
191
- var pattern = this.pattern
192
- var negate = false
193
- var options = this.options
194
- var negateOffset = 0
195
-
196
- if (options.nonegate) return
197
-
198
- for (var i = 0, l = pattern.length
199
- ; i < l && pattern.charAt(i) === '!'
200
- ; i++) {
201
- negate = !negate
202
- negateOffset++
203
- }
204
-
205
- if (negateOffset) this.pattern = pattern.substr(negateOffset)
206
- this.negate = negate
207
- }
208
-
209
- // Brace expansion:
210
- // a{b,c}d -> abd acd
211
- // a{b,}c -> abc ac
212
- // a{0..3}d -> a0d a1d a2d a3d
213
- // a{b,c{d,e}f}g -> abg acdfg acefg
214
- // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
215
- //
216
- // Invalid sets are not expanded.
217
- // a{2..}b -> a{2..}b
218
- // a{b}c -> a{b}c
219
- minimatch.braceExpand = function (pattern, options) {
220
- return braceExpand(pattern, options)
221
- }
222
-
223
- Minimatch.prototype.braceExpand = braceExpand
224
-
225
- function braceExpand (pattern, options) {
226
- if (!options) {
227
- if (this instanceof Minimatch) {
228
- options = this.options
229
- } else {
230
- options = {}
231
- }
232
- }
233
-
234
- pattern = typeof pattern === 'undefined'
235
- ? this.pattern : pattern
236
-
237
- if (typeof pattern === 'undefined') {
238
- throw new Error('undefined pattern')
239
- }
240
-
241
- if (options.nobrace ||
242
- !pattern.match(/\{.*\}/)) {
243
- // shortcut. no need to expand.
244
- return [pattern]
245
- }
246
-
247
- return expand(pattern)
248
- }
249
-
250
- // parse a component of the expanded set.
251
- // At this point, no pattern may contain "/" in it
252
- // so we're going to return a 2d array, where each entry is the full
253
- // pattern, split on '/', and then turned into a regular expression.
254
- // A regexp is made at the end which joins each array with an
255
- // escaped /, and another full one which joins each regexp with |.
256
- //
257
- // Following the lead of Bash 4.1, note that "**" only has special meaning
258
- // when it is the *only* thing in a path portion. Otherwise, any series
259
- // of * is equivalent to a single *. Globstar behavior is enabled by
260
- // default, and can be disabled by setting options.noglobstar.
261
- Minimatch.prototype.parse = parse
262
- var SUBPARSE = {}
263
- function parse (pattern, isSub) {
264
- var options = this.options
265
-
266
- // shortcuts
267
- if (!options.noglobstar && pattern === '**') return GLOBSTAR
268
- if (pattern === '') return ''
269
-
270
- var re = ''
271
- var hasMagic = !!options.nocase
272
- var escaping = false
273
- // ? => one single character
274
- var patternListStack = []
275
- var negativeLists = []
276
- var plType
277
- var stateChar
278
- var inClass = false
279
- var reClassStart = -1
280
- var classStart = -1
281
- // . and .. never match anything that doesn't start with .,
282
- // even when options.dot is set.
283
- var patternStart = pattern.charAt(0) === '.' ? '' // anything
284
- // not (start or / followed by . or .. followed by / or end)
285
- : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
286
- : '(?!\\.)'
287
- var self = this
288
-
289
- function clearStateChar () {
290
- if (stateChar) {
291
- // we had some state-tracking character
292
- // that wasn't consumed by this pass.
293
- switch (stateChar) {
294
- case '*':
295
- re += star
296
- hasMagic = true
297
- break
298
- case '?':
299
- re += qmark
300
- hasMagic = true
301
- break
302
- default:
303
- re += '\\' + stateChar
304
- break
305
- }
306
- self.debug('clearStateChar %j %j', stateChar, re)
307
- stateChar = false
308
- }
309
- }
310
-
311
- for (var i = 0, len = pattern.length, c
312
- ; (i < len) && (c = pattern.charAt(i))
313
- ; i++) {
314
- this.debug('%s\t%s %s %j', pattern, i, re, c)
315
-
316
- // skip over any that are escaped.
317
- if (escaping && reSpecials[c]) {
318
- re += '\\' + c
319
- escaping = false
320
- continue
321
- }
322
-
323
- switch (c) {
324
- case '/':
325
- // completely not allowed, even escaped.
326
- // Should already be path-split by now.
327
- return false
328
-
329
- case '\\':
330
- clearStateChar()
331
- escaping = true
332
- continue
333
-
334
- // the various stateChar values
335
- // for the "extglob" stuff.
336
- case '?':
337
- case '*':
338
- case '+':
339
- case '@':
340
- case '!':
341
- this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
342
-
343
- // all of those are literals inside a class, except that
344
- // the glob [!a] means [^a] in regexp
345
- if (inClass) {
346
- this.debug(' in class')
347
- if (c === '!' && i === classStart + 1) c = '^'
348
- re += c
349
- continue
350
- }
351
-
352
- // if we already have a stateChar, then it means
353
- // that there was something like ** or +? in there.
354
- // Handle the stateChar, then proceed with this one.
355
- self.debug('call clearStateChar %j', stateChar)
356
- clearStateChar()
357
- stateChar = c
358
- // if extglob is disabled, then +(asdf|foo) isn't a thing.
359
- // just clear the statechar *now*, rather than even diving into
360
- // the patternList stuff.
361
- if (options.noext) clearStateChar()
362
- continue
363
-
364
- case '(':
365
- if (inClass) {
366
- re += '('
367
- continue
368
- }
369
-
370
- if (!stateChar) {
371
- re += '\\('
372
- continue
373
- }
374
-
375
- plType = stateChar
376
- patternListStack.push({
377
- type: plType,
378
- start: i - 1,
379
- reStart: re.length
380
- })
381
- // negation is (?:(?!js)[^/]*)
382
- re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
383
- this.debug('plType %j %j', stateChar, re)
384
- stateChar = false
385
- continue
386
-
387
- case ')':
388
- if (inClass || !patternListStack.length) {
389
- re += '\\)'
390
- continue
391
- }
392
-
393
- clearStateChar()
394
- hasMagic = true
395
- re += ')'
396
- var pl = patternListStack.pop()
397
- plType = pl.type
398
- // negation is (?:(?!js)[^/]*)
399
- // The others are (?:<pattern>)<type>
400
- switch (plType) {
401
- case '!':
402
- negativeLists.push(pl)
403
- re += ')[^/]*?)'
404
- pl.reEnd = re.length
405
- break
406
- case '?':
407
- case '+':
408
- case '*':
409
- re += plType
410
- break
411
- case '@': break // the default anyway
412
- }
413
- continue
414
-
415
- case '|':
416
- if (inClass || !patternListStack.length || escaping) {
417
- re += '\\|'
418
- escaping = false
419
- continue
420
- }
421
-
422
- clearStateChar()
423
- re += '|'
424
- continue
425
-
426
- // these are mostly the same in regexp and glob
427
- case '[':
428
- // swallow any state-tracking char before the [
429
- clearStateChar()
430
-
431
- if (inClass) {
432
- re += '\\' + c
433
- continue
434
- }
435
-
436
- inClass = true
437
- classStart = i
438
- reClassStart = re.length
439
- re += c
440
- continue
441
-
442
- case ']':
443
- // a right bracket shall lose its special
444
- // meaning and represent itself in
445
- // a bracket expression if it occurs
446
- // first in the list. -- POSIX.2 2.8.3.2
447
- if (i === classStart + 1 || !inClass) {
448
- re += '\\' + c
449
- escaping = false
450
- continue
451
- }
452
-
453
- // handle the case where we left a class open.
454
- // "[z-a]" is valid, equivalent to "\[z-a\]"
455
- if (inClass) {
456
- // split where the last [ was, make sure we don't have
457
- // an invalid re. if so, re-walk the contents of the
458
- // would-be class to re-translate any characters that
459
- // were passed through as-is
460
- // TODO: It would probably be faster to determine this
461
- // without a try/catch and a new RegExp, but it's tricky
462
- // to do safely. For now, this is safe and works.
463
- var cs = pattern.substring(classStart + 1, i)
464
- try {
465
- RegExp('[' + cs + ']')
466
- } catch (er) {
467
- // not a valid class!
468
- var sp = this.parse(cs, SUBPARSE)
469
- re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
470
- hasMagic = hasMagic || sp[1]
471
- inClass = false
472
- continue
473
- }
474
- }
475
-
476
- // finish up the class.
477
- hasMagic = true
478
- inClass = false
479
- re += c
480
- continue
481
-
482
- default:
483
- // swallow any state char that wasn't consumed
484
- clearStateChar()
485
-
486
- if (escaping) {
487
- // no need
488
- escaping = false
489
- } else if (reSpecials[c]
490
- && !(c === '^' && inClass)) {
491
- re += '\\'
492
- }
493
-
494
- re += c
495
-
496
- } // switch
497
- } // for
498
-
499
- // handle the case where we left a class open.
500
- // "[abc" is valid, equivalent to "\[abc"
501
- if (inClass) {
502
- // split where the last [ was, and escape it
503
- // this is a huge pita. We now have to re-walk
504
- // the contents of the would-be class to re-translate
505
- // any characters that were passed through as-is
506
- cs = pattern.substr(classStart + 1)
507
- sp = this.parse(cs, SUBPARSE)
508
- re = re.substr(0, reClassStart) + '\\[' + sp[0]
509
- hasMagic = hasMagic || sp[1]
510
- }
511
-
512
- // handle the case where we had a +( thing at the *end*
513
- // of the pattern.
514
- // each pattern list stack adds 3 chars, and we need to go through
515
- // and escape any | chars that were passed through as-is for the regexp.
516
- // Go through and escape them, taking care not to double-escape any
517
- // | chars that were already escaped.
518
- for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
519
- var tail = re.slice(pl.reStart + 3)
520
- // maybe some even number of \, then maybe 1 \, followed by a |
521
- tail = tail.replace(/((?:\\{2})*)(\\?)\|/g, function (_, $1, $2) {
522
- if (!$2) {
523
- // the | isn't already escaped, so escape it.
524
- $2 = '\\'
525
- }
526
-
527
- // need to escape all those slashes *again*, without escaping the
528
- // one that we need for escaping the | character. As it works out,
529
- // escaping an even number of slashes can be done by simply repeating
530
- // it exactly after itself. That's why this trick works.
531
- //
532
- // I am sorry that you have to see this.
533
- return $1 + $1 + $2 + '|'
534
- })
535
-
536
- this.debug('tail=%j\n %s', tail, tail)
537
- var t = pl.type === '*' ? star
538
- : pl.type === '?' ? qmark
539
- : '\\' + pl.type
540
-
541
- hasMagic = true
542
- re = re.slice(0, pl.reStart) + t + '\\(' + tail
543
- }
544
-
545
- // handle trailing things that only matter at the very end.
546
- clearStateChar()
547
- if (escaping) {
548
- // trailing \\
549
- re += '\\\\'
550
- }
551
-
552
- // only need to apply the nodot start if the re starts with
553
- // something that could conceivably capture a dot
554
- var addPatternStart = false
555
- switch (re.charAt(0)) {
556
- case '.':
557
- case '[':
558
- case '(': addPatternStart = true
559
- }
560
-
561
- // Hack to work around lack of negative lookbehind in JS
562
- // A pattern like: *.!(x).!(y|z) needs to ensure that a name
563
- // like 'a.xyz.yz' doesn't match. So, the first negative
564
- // lookahead, has to look ALL the way ahead, to the end of
565
- // the pattern.
566
- for (var n = negativeLists.length - 1; n > -1; n--) {
567
- var nl = negativeLists[n]
568
-
569
- var nlBefore = re.slice(0, nl.reStart)
570
- var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
571
- var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)
572
- var nlAfter = re.slice(nl.reEnd)
573
-
574
- nlLast += nlAfter
575
-
576
- // Handle nested stuff like *(*.js|!(*.json)), where open parens
577
- // mean that we should *not* include the ) in the bit that is considered
578
- // "after" the negated section.
579
- var openParensBefore = nlBefore.split('(').length - 1
580
- var cleanAfter = nlAfter
581
- for (i = 0; i < openParensBefore; i++) {
582
- cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
583
- }
584
- nlAfter = cleanAfter
585
-
586
- var dollar = ''
587
- if (nlAfter === '' && isSub !== SUBPARSE) {
588
- dollar = '$'
589
- }
590
- var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast
591
- re = newRe
592
- }
593
-
594
- // if the re is not "" at this point, then we need to make sure
595
- // it doesn't match against an empty path part.
596
- // Otherwise a/* will match a/, which it should not.
597
- if (re !== '' && hasMagic) {
598
- re = '(?=.)' + re
599
- }
600
-
601
- if (addPatternStart) {
602
- re = patternStart + re
603
- }
604
-
605
- // parsing just a piece of a larger pattern.
606
- if (isSub === SUBPARSE) {
607
- return [re, hasMagic]
608
- }
609
-
610
- // skip the regexp for non-magical patterns
611
- // unescape anything in it, though, so that it'll be
612
- // an exact match against a file etc.
613
- if (!hasMagic) {
614
- return globUnescape(pattern)
615
- }
616
-
617
- var flags = options.nocase ? 'i' : ''
618
- var regExp = new RegExp('^' + re + '$', flags)
619
-
620
- regExp._glob = pattern
621
- regExp._src = re
622
-
623
- return regExp
624
- }
625
-
626
- minimatch.makeRe = function (pattern, options) {
627
- return new Minimatch(pattern, options || {}).makeRe()
628
- }
629
-
630
- Minimatch.prototype.makeRe = makeRe
631
- function makeRe () {
632
- if (this.regexp || this.regexp === false) return this.regexp
633
-
634
- // at this point, this.set is a 2d array of partial
635
- // pattern strings, or "**".
636
- //
637
- // It's better to use .match(). This function shouldn't
638
- // be used, really, but it's pretty convenient sometimes,
639
- // when you just want to work with a regex.
640
- var set = this.set
641
-
642
- if (!set.length) {
643
- this.regexp = false
644
- return this.regexp
645
- }
646
- var options = this.options
647
-
648
- var twoStar = options.noglobstar ? star
649
- : options.dot ? twoStarDot
650
- : twoStarNoDot
651
- var flags = options.nocase ? 'i' : ''
652
-
653
- var re = set.map(function (pattern) {
654
- return pattern.map(function (p) {
655
- return (p === GLOBSTAR) ? twoStar
656
- : (typeof p === 'string') ? regExpEscape(p)
657
- : p._src
658
- }).join('\\\/')
659
- }).join('|')
660
-
661
- // must match entire pattern
662
- // ending in a * or ** will make it less strict.
663
- re = '^(?:' + re + ')$'
664
-
665
- // can match anything, as long as it's not this.
666
- if (this.negate) re = '^(?!' + re + ').*$'
667
-
668
- try {
669
- this.regexp = new RegExp(re, flags)
670
- } catch (ex) {
671
- this.regexp = false
672
- }
673
- return this.regexp
674
- }
675
-
676
- minimatch.match = function (list, pattern, options) {
677
- options = options || {}
678
- var mm = new Minimatch(pattern, options)
679
- list = list.filter(function (f) {
680
- return mm.match(f)
681
- })
682
- if (mm.options.nonull && !list.length) {
683
- list.push(pattern)
684
- }
685
- return list
686
- }
687
-
688
- Minimatch.prototype.match = match
689
- function match (f, partial) {
690
- this.debug('match', f, this.pattern)
691
- // short-circuit in the case of busted things.
692
- // comments, etc.
693
- if (this.comment) return false
694
- if (this.empty) return f === ''
695
-
696
- if (f === '/' && partial) return true
697
-
698
- var options = this.options
699
-
700
- // windows: need to use /, not \
701
- if (path.sep !== '/') {
702
- f = f.split(path.sep).join('/')
703
- }
704
-
705
- // treat the test path as a set of pathparts.
706
- f = f.split(slashSplit)
707
- this.debug(this.pattern, 'split', f)
708
-
709
- // just ONE of the pattern sets in this.set needs to match
710
- // in order for it to be valid. If negating, then just one
711
- // match means that we have failed.
712
- // Either way, return on the first hit.
713
-
714
- var set = this.set
715
- this.debug(this.pattern, 'set', set)
716
-
717
- // Find the basename of the path by looking for the last non-empty segment
718
- var filename
719
- var i
720
- for (i = f.length - 1; i >= 0; i--) {
721
- filename = f[i]
722
- if (filename) break
723
- }
724
-
725
- for (i = 0; i < set.length; i++) {
726
- var pattern = set[i]
727
- var file = f
728
- if (options.matchBase && pattern.length === 1) {
729
- file = [filename]
730
- }
731
- var hit = this.matchOne(file, pattern, partial)
732
- if (hit) {
733
- if (options.flipNegate) return true
734
- return !this.negate
735
- }
736
- }
737
-
738
- // didn't get any hits. this is success if it's a negative
739
- // pattern, failure otherwise.
740
- if (options.flipNegate) return false
741
- return this.negate
742
- }
743
-
744
- // set partial to true to test if, for example,
745
- // "/a/b" matches the start of "/*/b/*/d"
746
- // Partial means, if you run out of file before you run
747
- // out of pattern, then that's fine, as long as all
748
- // the parts match.
749
- Minimatch.prototype.matchOne = function (file, pattern, partial) {
750
- var options = this.options
751
-
752
- this.debug('matchOne',
753
- { 'this': this, file: file, pattern: pattern })
754
-
755
- this.debug('matchOne', file.length, pattern.length)
756
-
757
- for (var fi = 0,
758
- pi = 0,
759
- fl = file.length,
760
- pl = pattern.length
761
- ; (fi < fl) && (pi < pl)
762
- ; fi++, pi++) {
763
- this.debug('matchOne loop')
764
- var p = pattern[pi]
765
- var f = file[fi]
766
-
767
- this.debug(pattern, p, f)
768
-
769
- // should be impossible.
770
- // some invalid regexp stuff in the set.
771
- if (p === false) return false
772
-
773
- if (p === GLOBSTAR) {
774
- this.debug('GLOBSTAR', [pattern, p, f])
775
-
776
- // "**"
777
- // a/**/b/**/c would match the following:
778
- // a/b/x/y/z/c
779
- // a/x/y/z/b/c
780
- // a/b/x/b/x/c
781
- // a/b/c
782
- // To do this, take the rest of the pattern after
783
- // the **, and see if it would match the file remainder.
784
- // If so, return success.
785
- // If not, the ** "swallows" a segment, and try again.
786
- // This is recursively awful.
787
- //
788
- // a/**/b/**/c matching a/b/x/y/z/c
789
- // - a matches a
790
- // - doublestar
791
- // - matchOne(b/x/y/z/c, b/**/c)
792
- // - b matches b
793
- // - doublestar
794
- // - matchOne(x/y/z/c, c) -> no
795
- // - matchOne(y/z/c, c) -> no
796
- // - matchOne(z/c, c) -> no
797
- // - matchOne(c, c) yes, hit
798
- var fr = fi
799
- var pr = pi + 1
800
- if (pr === pl) {
801
- this.debug('** at the end')
802
- // a ** at the end will just swallow the rest.
803
- // We have found a match.
804
- // however, it will not swallow /.x, unless
805
- // options.dot is set.
806
- // . and .. are *never* matched by **, for explosively
807
- // exponential reasons.
808
- for (; fi < fl; fi++) {
809
- if (file[fi] === '.' || file[fi] === '..' ||
810
- (!options.dot && file[fi].charAt(0) === '.')) return false
811
- }
812
- return true
813
- }
814
-
815
- // ok, let's see if we can swallow whatever we can.
816
- while (fr < fl) {
817
- var swallowee = file[fr]
818
-
819
- this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
820
-
821
- // XXX remove this slice. Just pass the start index.
822
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
823
- this.debug('globstar found match!', fr, fl, swallowee)
824
- // found a match.
825
- return true
826
- } else {
827
- // can't swallow "." or ".." ever.
828
- // can only swallow ".foo" when explicitly asked.
829
- if (swallowee === '.' || swallowee === '..' ||
830
- (!options.dot && swallowee.charAt(0) === '.')) {
831
- this.debug('dot detected!', file, fr, pattern, pr)
832
- break
833
- }
834
-
835
- // ** swallows a segment, and continue.
836
- this.debug('globstar swallow a segment, and continue')
837
- fr++
838
- }
839
- }
840
-
841
- // no match was found.
842
- // However, in partial mode, we can't say this is necessarily over.
843
- // If there's more *pattern* left, then
844
- if (partial) {
845
- // ran out of file
846
- this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
847
- if (fr === fl) return true
848
- }
849
- return false
850
- }
851
-
852
- // something other than **
853
- // non-magic patterns just have to match exactly
854
- // patterns with magic have been turned into regexps.
855
- var hit
856
- if (typeof p === 'string') {
857
- if (options.nocase) {
858
- hit = f.toLowerCase() === p.toLowerCase()
859
- } else {
860
- hit = f === p
861
- }
862
- this.debug('string match', p, f, hit)
863
- } else {
864
- hit = f.match(p)
865
- this.debug('pattern match', p, f, hit)
866
- }
867
-
868
- if (!hit) return false
869
- }
870
-
871
- // Note: ending in / means that we'll get a final ""
872
- // at the end of the pattern. This can only match a
873
- // corresponding "" at the end of the file.
874
- // If the file ends in /, then it can only match a
875
- // a pattern that ends in /, unless the pattern just
876
- // doesn't have any more for it. But, a/b/ should *not*
877
- // match "a/b/*", even though "" matches against the
878
- // [^/]*? pattern, except in partial mode, where it might
879
- // simply not be reached yet.
880
- // However, a/b/ should still satisfy a/*
881
-
882
- // now either we fell off the end of the pattern, or we're done.
883
- if (fi === fl && pi === pl) {
884
- // ran out of pattern and filename at the same time.
885
- // an exact hit!
886
- return true
887
- } else if (fi === fl) {
888
- // ran out of file, but still had pattern left.
889
- // this is ok if we're doing the match as part of
890
- // a glob fs traversal.
891
- return partial
892
- } else if (pi === pl) {
893
- // ran out of pattern, still have file left.
894
- // this is only acceptable if we're on the very last
895
- // empty segment of a file with a trailing slash.
896
- // a/* should match a/b/
897
- var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
898
- return emptyFileEnd
899
- }
900
-
901
- // should be unreachable.
902
- throw new Error('wtf?')
903
- }
904
-
905
- // replace stuff like \* with *
906
- function globUnescape (s) {
907
- return s.replace(/\\(.)/g, '$1')
908
- }
909
-
910
- function regExpEscape (s) {
911
- return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
912
- }