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
@@ -1,221 +0,0 @@
1
- // Copyright Joyent, Inc. and other Node contributors.
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a
4
- // copy of this software and associated documentation files (the
5
- // "Software"), to deal in the Software without restriction, including
6
- // without limitation the rights to use, copy, modify, merge, publish,
7
- // distribute, sublicense, and/or sell copies of the Software, and to permit
8
- // persons to whom the Software is furnished to do so, subject to the
9
- // following conditions:
10
- //
11
- // The above copyright notice and this permission notice shall be included
12
- // in all copies or substantial portions of the Software.
13
- //
14
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
17
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
18
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
19
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
20
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- var Buffer = require('buffer').Buffer;
23
-
24
- var isBufferEncoding = Buffer.isEncoding
25
- || function(encoding) {
26
- switch (encoding && encoding.toLowerCase()) {
27
- case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;
28
- default: return false;
29
- }
30
- }
31
-
32
-
33
- function assertEncoding(encoding) {
34
- if (encoding && !isBufferEncoding(encoding)) {
35
- throw new Error('Unknown encoding: ' + encoding);
36
- }
37
- }
38
-
39
- // StringDecoder provides an interface for efficiently splitting a series of
40
- // buffers into a series of JS strings without breaking apart multi-byte
41
- // characters. CESU-8 is handled as part of the UTF-8 encoding.
42
- //
43
- // @TODO Handling all encodings inside a single object makes it very difficult
44
- // to reason about this code, so it should be split up in the future.
45
- // @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code
46
- // points as used by CESU-8.
47
- var StringDecoder = exports.StringDecoder = function(encoding) {
48
- this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');
49
- assertEncoding(encoding);
50
- switch (this.encoding) {
51
- case 'utf8':
52
- // CESU-8 represents each of Surrogate Pair by 3-bytes
53
- this.surrogateSize = 3;
54
- break;
55
- case 'ucs2':
56
- case 'utf16le':
57
- // UTF-16 represents each of Surrogate Pair by 2-bytes
58
- this.surrogateSize = 2;
59
- this.detectIncompleteChar = utf16DetectIncompleteChar;
60
- break;
61
- case 'base64':
62
- // Base-64 stores 3 bytes in 4 chars, and pads the remainder.
63
- this.surrogateSize = 3;
64
- this.detectIncompleteChar = base64DetectIncompleteChar;
65
- break;
66
- default:
67
- this.write = passThroughWrite;
68
- return;
69
- }
70
-
71
- // Enough space to store all bytes of a single character. UTF-8 needs 4
72
- // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).
73
- this.charBuffer = new Buffer(6);
74
- // Number of bytes received for the current incomplete multi-byte character.
75
- this.charReceived = 0;
76
- // Number of bytes expected for the current incomplete multi-byte character.
77
- this.charLength = 0;
78
- };
79
-
80
-
81
- // write decodes the given buffer and returns it as JS string that is
82
- // guaranteed to not contain any partial multi-byte characters. Any partial
83
- // character found at the end of the buffer is buffered up, and will be
84
- // returned when calling write again with the remaining bytes.
85
- //
86
- // Note: Converting a Buffer containing an orphan surrogate to a String
87
- // currently works, but converting a String to a Buffer (via `new Buffer`, or
88
- // Buffer#write) will replace incomplete surrogates with the unicode
89
- // replacement character. See https://codereview.chromium.org/121173009/ .
90
- StringDecoder.prototype.write = function(buffer) {
91
- var charStr = '';
92
- // if our last write ended with an incomplete multibyte character
93
- while (this.charLength) {
94
- // determine how many remaining bytes this buffer has to offer for this char
95
- var available = (buffer.length >= this.charLength - this.charReceived) ?
96
- this.charLength - this.charReceived :
97
- buffer.length;
98
-
99
- // add the new bytes to the char buffer
100
- buffer.copy(this.charBuffer, this.charReceived, 0, available);
101
- this.charReceived += available;
102
-
103
- if (this.charReceived < this.charLength) {
104
- // still not enough chars in this buffer? wait for more ...
105
- return '';
106
- }
107
-
108
- // remove bytes belonging to the current character from the buffer
109
- buffer = buffer.slice(available, buffer.length);
110
-
111
- // get the character that was split
112
- charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);
113
-
114
- // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
115
- var charCode = charStr.charCodeAt(charStr.length - 1);
116
- if (charCode >= 0xD800 && charCode <= 0xDBFF) {
117
- this.charLength += this.surrogateSize;
118
- charStr = '';
119
- continue;
120
- }
121
- this.charReceived = this.charLength = 0;
122
-
123
- // if there are no more bytes in this buffer, just emit our char
124
- if (buffer.length === 0) {
125
- return charStr;
126
- }
127
- break;
128
- }
129
-
130
- // determine and set charLength / charReceived
131
- this.detectIncompleteChar(buffer);
132
-
133
- var end = buffer.length;
134
- if (this.charLength) {
135
- // buffer the incomplete character bytes we got
136
- buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);
137
- end -= this.charReceived;
138
- }
139
-
140
- charStr += buffer.toString(this.encoding, 0, end);
141
-
142
- var end = charStr.length - 1;
143
- var charCode = charStr.charCodeAt(end);
144
- // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character
145
- if (charCode >= 0xD800 && charCode <= 0xDBFF) {
146
- var size = this.surrogateSize;
147
- this.charLength += size;
148
- this.charReceived += size;
149
- this.charBuffer.copy(this.charBuffer, size, 0, size);
150
- buffer.copy(this.charBuffer, 0, 0, size);
151
- return charStr.substring(0, end);
152
- }
153
-
154
- // or just emit the charStr
155
- return charStr;
156
- };
157
-
158
- // detectIncompleteChar determines if there is an incomplete UTF-8 character at
159
- // the end of the given buffer. If so, it sets this.charLength to the byte
160
- // length that character, and sets this.charReceived to the number of bytes
161
- // that are available for this character.
162
- StringDecoder.prototype.detectIncompleteChar = function(buffer) {
163
- // determine how many bytes we have to check at the end of this buffer
164
- var i = (buffer.length >= 3) ? 3 : buffer.length;
165
-
166
- // Figure out if one of the last i bytes of our buffer announces an
167
- // incomplete char.
168
- for (; i > 0; i--) {
169
- var c = buffer[buffer.length - i];
170
-
171
- // See http://en.wikipedia.org/wiki/UTF-8#Description
172
-
173
- // 110XXXXX
174
- if (i == 1 && c >> 5 == 0x06) {
175
- this.charLength = 2;
176
- break;
177
- }
178
-
179
- // 1110XXXX
180
- if (i <= 2 && c >> 4 == 0x0E) {
181
- this.charLength = 3;
182
- break;
183
- }
184
-
185
- // 11110XXX
186
- if (i <= 3 && c >> 3 == 0x1E) {
187
- this.charLength = 4;
188
- break;
189
- }
190
- }
191
- this.charReceived = i;
192
- };
193
-
194
- StringDecoder.prototype.end = function(buffer) {
195
- var res = '';
196
- if (buffer && buffer.length)
197
- res = this.write(buffer);
198
-
199
- if (this.charReceived) {
200
- var cr = this.charReceived;
201
- var buf = this.charBuffer;
202
- var enc = this.encoding;
203
- res += buf.slice(0, cr).toString(enc);
204
- }
205
-
206
- return res;
207
- };
208
-
209
- function passThroughWrite(buffer) {
210
- return buffer.toString(this.encoding);
211
- }
212
-
213
- function utf16DetectIncompleteChar(buffer) {
214
- this.charReceived = buffer.length % 2;
215
- this.charLength = this.charReceived ? 2 : 0;
216
- }
217
-
218
- function base64DetectIncompleteChar(buffer) {
219
- this.charReceived = buffer.length % 3;
220
- this.charLength = this.charReceived ? 3 : 0;
221
- }
@@ -1,60 +0,0 @@
1
- {
2
- "_from": "string_decoder@~0.10.x",
3
- "_id": "string_decoder@0.10.31",
4
- "_location": "/bl/readable-stream/string_decoder",
5
- "_npmUser": {
6
- "email": "rod@vagg.org",
7
- "name": "rvagg"
8
- },
9
- "_npmVersion": "1.4.23",
10
- "_phantomChildren": {},
11
- "_requiredBy": [
12
- "/bl/readable-stream"
13
- ],
14
- "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
15
- "_shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94",
16
- "bugs": {
17
- "url": "https://github.com/rvagg/string_decoder/issues"
18
- },
19
- "dependencies": {},
20
- "description": "The string_decoder module from Node core",
21
- "devDependencies": {
22
- "tap": "~0.4.8"
23
- },
24
- "directories": {},
25
- "dist": {
26
- "shasum": "62e203bc41766c6c28c9fc84301dab1c5310fa94",
27
- "tarball": "http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz"
28
- },
29
- "gitHead": "d46d4fd87cf1d06e031c23f1ba170ca7d4ade9a0",
30
- "homepage": "https://github.com/rvagg/string_decoder",
31
- "keywords": [
32
- "browser",
33
- "browserify",
34
- "decoder",
35
- "string"
36
- ],
37
- "license": "MIT",
38
- "main": "index.js",
39
- "maintainers": [
40
- {
41
- "name": "substack",
42
- "email": "mail@substack.net"
43
- },
44
- {
45
- "name": "rvagg",
46
- "email": "rod@vagg.org"
47
- }
48
- ],
49
- "name": "string_decoder",
50
- "optionalDependencies": {},
51
- "readme": "ERROR: No README data found!",
52
- "repository": {
53
- "type": "git",
54
- "url": "git://github.com/rvagg/string_decoder.git"
55
- },
56
- "scripts": {
57
- "test": "tap test/simple/*.js"
58
- },
59
- "version": "0.10.31"
60
- }
@@ -1,82 +0,0 @@
1
- {
2
- "_from": "readable-stream@~2.0.0",
3
- "_id": "readable-stream@2.0.4",
4
- "_location": "/bl/readable-stream",
5
- "_nodeVersion": "4.1.1",
6
- "_npmUser": {
7
- "email": "calvin.metcalf@gmail.com",
8
- "name": "cwmma"
9
- },
10
- "_npmVersion": "2.14.4",
11
- "_phantomChildren": {},
12
- "_requiredBy": [
13
- "/bl"
14
- ],
15
- "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.4.tgz",
16
- "_shasum": "2523ef27ffa339d7ba9da8603f2d0599d06edbd8",
17
- "browser": {
18
- "util": false
19
- },
20
- "bugs": {
21
- "url": "https://github.com/nodejs/readable-stream/issues"
22
- },
23
- "dependencies": {
24
- "core-util-is": "~1.0.0",
25
- "inherits": "~2.0.1",
26
- "isarray": "0.0.1",
27
- "process-nextick-args": "~1.0.0",
28
- "string_decoder": "~0.10.x",
29
- "util-deprecate": "~1.0.1"
30
- },
31
- "description": "Streams3, a user-land copy of the stream library from iojs v2.x",
32
- "devDependencies": {
33
- "tap": "~0.2.6",
34
- "tape": "~4.0.0",
35
- "zuul": "~3.0.0"
36
- },
37
- "directories": {},
38
- "dist": {
39
- "shasum": "2523ef27ffa339d7ba9da8603f2d0599d06edbd8",
40
- "tarball": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.0.4.tgz"
41
- },
42
- "gitHead": "f2a4f4a659bacbe742a494b7d2aede64fab0d4f9",
43
- "homepage": "https://github.com/nodejs/readable-stream#readme",
44
- "keywords": [
45
- "pipe",
46
- "readable",
47
- "stream"
48
- ],
49
- "license": "MIT",
50
- "main": "readable.js",
51
- "maintainers": [
52
- {
53
- "name": "isaacs",
54
- "email": "isaacs@npmjs.com"
55
- },
56
- {
57
- "name": "tootallnate",
58
- "email": "nathan@tootallnate.net"
59
- },
60
- {
61
- "name": "rvagg",
62
- "email": "rod@vagg.org"
63
- },
64
- {
65
- "name": "cwmma",
66
- "email": "calvin.metcalf@gmail.com"
67
- }
68
- ],
69
- "name": "readable-stream",
70
- "optionalDependencies": {},
71
- "readme": "ERROR: No README data found!",
72
- "repository": {
73
- "type": "git",
74
- "url": "git://github.com/nodejs/readable-stream.git"
75
- },
76
- "scripts": {
77
- "browser": "npm run write-zuul && zuul -- test/browser.js",
78
- "test": "tap test/parallel/*.js",
79
- "write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml"
80
- },
81
- "version": "2.0.4"
82
- }
@@ -1 +0,0 @@
1
- module.exports = require("./lib/_stream_passthrough.js")
@@ -1,12 +0,0 @@
1
- var Stream = (function (){
2
- try {
3
- return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
4
- } catch(_){}
5
- }());
6
- exports = module.exports = require('./lib/_stream_readable.js');
7
- exports.Stream = Stream || exports;
8
- exports.Readable = exports;
9
- exports.Writable = require('./lib/_stream_writable.js');
10
- exports.Duplex = require('./lib/_stream_duplex.js');
11
- exports.Transform = require('./lib/_stream_transform.js');
12
- exports.PassThrough = require('./lib/_stream_passthrough.js');
@@ -1 +0,0 @@
1
- module.exports = require("./lib/_stream_transform.js")
@@ -1 +0,0 @@
1
- module.exports = require("./lib/_stream_writable.js")
@@ -1,27 +0,0 @@
1
- Copyright (c), Mapbox
2
-
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without modification,
6
- are permitted provided that the following conditions are met:
7
-
8
- * Redistributions of source code must retain the above copyright notice,
9
- this list of conditions and the following disclaimer.
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
- * Neither the name of node-pre-gyp nor the names of its contributors
14
- may be used to endorse or promote products derived from this software
15
- without specific prior written permission.
16
-
17
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.