fsevents 1.0.15 → 1.1.1

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 (369) hide show
  1. package/fsevents.js +3 -0
  2. package/install.js +7 -0
  3. package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
  4. package/node_modules/abbrev/abbrev.js +0 -1
  5. package/node_modules/abbrev/package.json +32 -21
  6. package/node_modules/ansi-regex/index.js +1 -1
  7. package/node_modules/ansi-regex/package.json +61 -42
  8. package/node_modules/ansi-regex/readme.md +10 -2
  9. package/node_modules/ansi-styles/package.json +27 -19
  10. package/node_modules/aproba/README.md +33 -3
  11. package/node_modules/aproba/index.js +71 -30
  12. package/node_modules/aproba/package.json +30 -22
  13. package/node_modules/are-we-there-yet/package.json +14 -6
  14. package/node_modules/asn1/package.json +16 -8
  15. package/node_modules/assert-plus/package.json +16 -8
  16. package/node_modules/{node-uuid/LICENSE.md → asynckit/LICENSE} +1 -1
  17. package/node_modules/asynckit/README.md +233 -0
  18. package/node_modules/asynckit/bench.js +76 -0
  19. package/node_modules/asynckit/index.js +6 -0
  20. package/node_modules/asynckit/lib/abort.js +29 -0
  21. package/node_modules/asynckit/lib/async.js +34 -0
  22. package/node_modules/asynckit/lib/defer.js +26 -0
  23. package/node_modules/asynckit/lib/iterate.js +75 -0
  24. package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  25. package/node_modules/asynckit/lib/readable_parallel.js +25 -0
  26. package/node_modules/asynckit/lib/readable_serial.js +25 -0
  27. package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  28. package/node_modules/asynckit/lib/state.js +37 -0
  29. package/node_modules/asynckit/lib/streamify.js +141 -0
  30. package/node_modules/asynckit/lib/terminator.js +29 -0
  31. package/node_modules/asynckit/package.json +126 -0
  32. package/node_modules/asynckit/parallel.js +43 -0
  33. package/node_modules/asynckit/serial.js +17 -0
  34. package/node_modules/asynckit/serialOrdered.js +75 -0
  35. package/node_modules/asynckit/stream.js +21 -0
  36. package/node_modules/aws-sign2/package.json +15 -7
  37. package/node_modules/aws4/README.md +9 -0
  38. package/node_modules/aws4/aws4.js +21 -7
  39. package/node_modules/aws4/package.json +62 -54
  40. package/node_modules/balanced-match/package.json +27 -19
  41. package/node_modules/bcrypt-pbkdf/README.md +39 -0
  42. package/node_modules/bcrypt-pbkdf/index.js +556 -0
  43. package/node_modules/bcrypt-pbkdf/package.json +84 -0
  44. package/node_modules/block-stream/package.json +15 -7
  45. package/node_modules/boom/package.json +14 -6
  46. package/node_modules/brace-expansion/index.js +10 -0
  47. package/node_modules/brace-expansion/package.json +35 -27
  48. package/node_modules/buffer-shims/package.json +16 -7
  49. package/node_modules/caseless/package.json +18 -10
  50. package/node_modules/chalk/package.json +30 -22
  51. package/node_modules/code-point-at/index.js +3 -4
  52. package/node_modules/code-point-at/package.json +40 -30
  53. package/node_modules/code-point-at/readme.md +2 -4
  54. package/node_modules/combined-stream/package.json +15 -7
  55. package/node_modules/commander/package.json +16 -8
  56. package/node_modules/concat-map/package.json +30 -22
  57. package/node_modules/console-control-strings/package.json +15 -7
  58. package/node_modules/core-util-is/package.json +22 -14
  59. package/node_modules/cryptiles/package.json +14 -6
  60. package/node_modules/dashdash/CHANGES.md +364 -0
  61. package/node_modules/dashdash/LICENSE.txt +24 -0
  62. package/node_modules/dashdash/etc/dashdash.bash_completion.in +4 -3
  63. package/node_modules/dashdash/node_modules/assert-plus/package.json +16 -8
  64. package/node_modules/dashdash/package.json +33 -24
  65. package/node_modules/debug/package.json +20 -12
  66. package/node_modules/deep-extend/package.json +23 -15
  67. package/node_modules/delayed-stream/package.json +15 -7
  68. package/node_modules/delegates/package.json +14 -6
  69. package/node_modules/ecc-jsbn/package.json +17 -9
  70. package/node_modules/escape-string-regexp/package.json +20 -12
  71. package/node_modules/extend/package.json +16 -8
  72. package/node_modules/extsprintf/package.json +14 -6
  73. package/node_modules/forever-agent/package.json +15 -7
  74. package/node_modules/form-data/README.md +7 -8
  75. package/node_modules/form-data/lib/browser.js +1 -1
  76. package/node_modules/form-data/lib/form_data.js +101 -72
  77. package/node_modules/form-data/lib/populate.js +6 -5
  78. package/node_modules/form-data/package.json +68 -52
  79. package/node_modules/fs.realpath/package.json +19 -11
  80. package/node_modules/fstream/package.json +15 -7
  81. package/node_modules/fstream-ignore/package.json +15 -7
  82. package/node_modules/gauge/CHANGELOG.md +24 -0
  83. package/node_modules/gauge/README.md +4 -0
  84. package/node_modules/gauge/index.js +16 -9
  85. package/node_modules/gauge/package.json +37 -29
  86. package/node_modules/generate-function/package.json +16 -8
  87. package/node_modules/generate-object-property/package.json +14 -6
  88. package/node_modules/getpass/node_modules/assert-plus/package.json +16 -8
  89. package/node_modules/getpass/package.json +16 -8
  90. package/node_modules/glob/README.md +3 -0
  91. package/node_modules/glob/common.js +6 -1
  92. package/node_modules/glob/glob.js +23 -14
  93. package/node_modules/glob/package.json +29 -21
  94. package/node_modules/glob/sync.js +29 -11
  95. package/node_modules/graceful-fs/README.md +1 -1
  96. package/node_modules/graceful-fs/graceful-fs.js +23 -14
  97. package/node_modules/graceful-fs/package.json +35 -27
  98. package/node_modules/graceful-fs/polyfills.js +99 -21
  99. package/node_modules/graceful-readlink/package.json +14 -6
  100. package/node_modules/har-validator/package.json +16 -8
  101. package/node_modules/has-ansi/package.json +29 -21
  102. package/node_modules/has-unicode/package.json +18 -10
  103. package/node_modules/hawk/package.json +18 -10
  104. package/node_modules/hoek/package.json +14 -6
  105. package/node_modules/http-signature/package.json +14 -6
  106. package/node_modules/inflight/inflight.js +22 -12
  107. package/node_modules/inflight/package.json +28 -20
  108. package/node_modules/inherits/inherits.js +7 -1
  109. package/node_modules/inherits/package.json +41 -21
  110. package/node_modules/ini/package.json +15 -7
  111. package/node_modules/is-fullwidth-code-point/package.json +27 -19
  112. package/node_modules/is-my-json-valid/index.js +10 -0
  113. package/node_modules/is-my-json-valid/package.json +36 -20
  114. package/node_modules/is-my-json-valid/test/misc.js +24 -0
  115. package/node_modules/is-property/package.json +19 -11
  116. package/node_modules/is-typedarray/package.json +16 -8
  117. package/node_modules/isarray/package.json +28 -20
  118. package/node_modules/isstream/package.json +19 -11
  119. package/node_modules/jodid25519/package.json +18 -10
  120. package/node_modules/jsbn/index.js +8 -9
  121. package/node_modules/jsbn/package.json +30 -18
  122. package/node_modules/json-schema/lib/links.js +17 -3
  123. package/node_modules/json-schema/lib/validate.js +18 -5
  124. package/node_modules/json-schema/package.json +32 -18
  125. package/node_modules/json-stringify-safe/package.json +18 -10
  126. package/node_modules/{async/LICENSE → jsonpointer/LICENSE.md} +3 -1
  127. package/node_modules/jsonpointer/README.md +17 -10
  128. package/node_modules/jsonpointer/jsonpointer.js +73 -56
  129. package/node_modules/jsonpointer/package.json +47 -26
  130. package/node_modules/jsprim/CHANGES.md +4 -0
  131. package/node_modules/jsprim/package.json +25 -17
  132. package/node_modules/mime-db/HISTORY.md +50 -0
  133. package/node_modules/mime-db/db.json +126 -2
  134. package/node_modules/mime-db/package.json +43 -30
  135. package/node_modules/mime-types/HISTORY.md +19 -0
  136. package/node_modules/mime-types/index.js +8 -8
  137. package/node_modules/mime-types/package.json +32 -19
  138. package/node_modules/minimatch/minimatch.js +19 -20
  139. package/node_modules/minimatch/package.json +25 -17
  140. package/node_modules/minimist/package.json +24 -16
  141. package/node_modules/mkdirp/package.json +21 -13
  142. package/node_modules/ms/package.json +14 -6
  143. package/node_modules/node-pre-gyp/CHANGELOG.md +20 -0
  144. package/node_modules/node-pre-gyp/README.md +574 -0
  145. package/node_modules/node-pre-gyp/appveyor.yml +19 -9
  146. package/node_modules/node-pre-gyp/lib/install.js +31 -7
  147. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +3 -1
  148. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +140 -0
  149. package/node_modules/node-pre-gyp/package.json +52 -48
  150. package/node_modules/nopt/package.json +19 -11
  151. package/node_modules/npmlog/CHANGELOG.md +9 -0
  152. package/node_modules/npmlog/README.md +7 -1
  153. package/node_modules/npmlog/log.js +12 -8
  154. package/node_modules/npmlog/package.json +30 -22
  155. package/node_modules/number-is-nan/package.json +39 -30
  156. package/node_modules/number-is-nan/readme.md +1 -3
  157. package/node_modules/oauth-sign/package.json +15 -7
  158. package/node_modules/object-assign/index.js +11 -4
  159. package/node_modules/object-assign/package.json +42 -30
  160. package/node_modules/object-assign/readme.md +8 -3
  161. package/node_modules/once/README.md +28 -0
  162. package/node_modules/once/once.js +21 -0
  163. package/node_modules/once/package.json +31 -20
  164. package/node_modules/path-is-absolute/index.js +5 -5
  165. package/node_modules/path-is-absolute/package.json +45 -31
  166. package/node_modules/path-is-absolute/readme.md +19 -11
  167. package/node_modules/pinkie/package.json +18 -10
  168. package/node_modules/pinkie-promise/package.json +18 -10
  169. package/node_modules/process-nextick-args/package.json +16 -8
  170. package/node_modules/punycode/LICENSE-MIT.txt +20 -0
  171. package/node_modules/punycode/README.md +176 -0
  172. package/node_modules/punycode/package.json +127 -0
  173. package/node_modules/punycode/punycode.js +533 -0
  174. package/node_modules/qs/.eslintrc +15 -15
  175. package/node_modules/qs/CHANGELOG.md +36 -0
  176. package/node_modules/qs/README.md +431 -0
  177. package/node_modules/qs/dist/qs.js +167 -67
  178. package/node_modules/qs/lib/formats.js +18 -0
  179. package/node_modules/qs/lib/index.js +6 -4
  180. package/node_modules/qs/lib/parse.js +31 -32
  181. package/node_modules/qs/lib/stringify.js +83 -20
  182. package/node_modules/qs/lib/utils.js +23 -7
  183. package/node_modules/qs/package.json +40 -30
  184. package/node_modules/qs/test/.eslintrc +10 -0
  185. package/node_modules/qs/test/index.js +2 -0
  186. package/node_modules/qs/test/parse.js +108 -47
  187. package/node_modules/qs/test/stringify.js +261 -28
  188. package/node_modules/qs/test/utils.js +13 -0
  189. package/node_modules/rc/node_modules/minimist/package.json +24 -16
  190. package/node_modules/rc/package.json +35 -23
  191. package/node_modules/readable-stream/.npmignore +1 -0
  192. package/node_modules/readable-stream/.travis.yml +2 -7
  193. package/node_modules/readable-stream/README.md +6 -2
  194. package/node_modules/readable-stream/lib/_stream_readable.js +158 -110
  195. package/node_modules/readable-stream/lib/_stream_transform.js +7 -5
  196. package/node_modules/readable-stream/lib/_stream_writable.js +35 -7
  197. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  198. package/node_modules/readable-stream/package.json +34 -26
  199. package/node_modules/request/CHANGELOG.md +49 -18
  200. package/node_modules/request/README.md +3 -2
  201. package/node_modules/request/index.js +2 -3
  202. package/node_modules/request/lib/auth.js +1 -1
  203. package/node_modules/request/lib/helpers.js +4 -13
  204. package/node_modules/request/lib/multipart.js +1 -1
  205. package/node_modules/request/lib/oauth.js +1 -1
  206. package/node_modules/request/lib/redirect.js +5 -1
  207. package/node_modules/request/package.json +50 -31
  208. package/node_modules/request/request.js +84 -43
  209. package/node_modules/rimraf/package.json +28 -20
  210. package/node_modules/rimraf/rimraf.js +2 -2
  211. package/node_modules/semver/README.md +4 -0
  212. package/node_modules/semver/package.json +27 -19
  213. package/node_modules/semver/semver.js +14 -5
  214. package/node_modules/set-blocking/package.json +21 -13
  215. package/node_modules/signal-exit/CHANGELOG.md +10 -0
  216. package/node_modules/signal-exit/LICENSE.txt +2 -0
  217. package/node_modules/signal-exit/index.js +9 -0
  218. package/node_modules/signal-exit/package.json +32 -24
  219. package/node_modules/signal-exit/signals.js +5 -4
  220. package/node_modules/sntp/package.json +16 -8
  221. package/node_modules/sshpk/README.md +214 -3
  222. package/node_modules/sshpk/bin/sshpk-conv +6 -0
  223. package/node_modules/sshpk/lib/certificate.js +291 -0
  224. package/node_modules/sshpk/lib/errors.js +14 -1
  225. package/node_modules/sshpk/lib/fingerprint.js +28 -7
  226. package/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
  227. package/node_modules/sshpk/lib/formats/pem.js +2 -2
  228. package/node_modules/sshpk/lib/formats/pkcs8.js +2 -7
  229. package/node_modules/sshpk/lib/formats/ssh-private.js +140 -17
  230. package/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
  231. package/node_modules/sshpk/lib/formats/x509.js +484 -0
  232. package/node_modules/sshpk/lib/identity.js +277 -0
  233. package/node_modules/sshpk/lib/index.js +13 -1
  234. package/node_modules/sshpk/lib/key.js +1 -0
  235. package/node_modules/sshpk/lib/signature.js +14 -6
  236. package/node_modules/sshpk/lib/ssh-buffer.js +24 -0
  237. package/node_modules/sshpk/lib/utils.js +43 -1
  238. package/node_modules/sshpk/node_modules/assert-plus/package.json +16 -8
  239. package/node_modules/sshpk/package.json +32 -22
  240. package/node_modules/string-width/index.js +5 -0
  241. package/node_modules/string-width/package.json +49 -36
  242. package/node_modules/string-width/readme.md +4 -3
  243. package/node_modules/string_decoder/package.json +19 -11
  244. package/node_modules/stringstream/package.json +18 -10
  245. package/node_modules/strip-ansi/package.json +29 -21
  246. package/node_modules/strip-json-comments/index.js +70 -0
  247. package/node_modules/strip-json-comments/package.json +49 -43
  248. package/node_modules/strip-json-comments/readme.md +12 -28
  249. package/node_modules/supports-color/package.json +26 -18
  250. package/node_modules/tar/package.json +19 -11
  251. package/node_modules/tar-pack/README.md +4 -1
  252. package/node_modules/tar-pack/index.js +17 -12
  253. package/node_modules/tar-pack/node_modules/once/LICENSE +15 -0
  254. package/node_modules/tar-pack/node_modules/once/README.md +51 -0
  255. package/node_modules/tar-pack/node_modules/once/once.js +21 -0
  256. package/node_modules/tar-pack/node_modules/once/package.json +96 -0
  257. package/node_modules/tar-pack/node_modules/readable-stream/.npmignore +8 -0
  258. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/.travis.yml +4 -7
  259. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/LICENSE +0 -0
  260. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/README.md +2 -2
  261. package/node_modules/tar-pack/node_modules/readable-stream/doc/stream.md +2015 -0
  262. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -0
  263. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/duplex.js +0 -0
  264. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_duplex.js +0 -0
  265. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_passthrough.js +0 -0
  266. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_readable.js +164 -107
  267. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_transform.js +3 -3
  268. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/lib/_stream_writable.js +25 -15
  269. package/node_modules/tar-pack/node_modules/readable-stream/lib/internal/streams/BufferList.js +64 -0
  270. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/package.json +50 -30
  271. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/passthrough.js +0 -0
  272. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/readable.js +4 -0
  273. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/transform.js +0 -0
  274. package/node_modules/{bl → tar-pack}/node_modules/readable-stream/writable.js +0 -0
  275. package/node_modules/tar-pack/package.json +39 -22
  276. package/node_modules/tar-pack/test/index.js +43 -1
  277. package/node_modules/tough-cookie/README.md +17 -3
  278. package/node_modules/tough-cookie/lib/cookie.js +6 -12
  279. package/node_modules/tough-cookie/package.json +50 -35
  280. package/node_modules/tunnel-agent/package.json +15 -7
  281. package/node_modules/tweetnacl/AUTHORS.md +28 -0
  282. package/node_modules/tweetnacl/CHANGELOG.md +93 -0
  283. package/node_modules/tweetnacl/LICENSE +24 -0
  284. package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
  285. package/node_modules/tweetnacl/README.md +57 -61
  286. package/node_modules/tweetnacl/nacl-fast.js +22 -52
  287. package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
  288. package/node_modules/tweetnacl/nacl.d.ts +98 -0
  289. package/node_modules/tweetnacl/nacl.js +21 -51
  290. package/node_modules/tweetnacl/nacl.min.js +1 -1
  291. package/node_modules/tweetnacl/package.json +47 -46
  292. package/node_modules/uid-number/package.json +15 -7
  293. package/node_modules/util-deprecate/package.json +21 -13
  294. package/node_modules/uuid/.npmignore +8 -0
  295. package/node_modules/uuid/.travis.yml +5 -0
  296. package/node_modules/uuid/AUTHORS +5 -0
  297. package/node_modules/uuid/HISTORY.md +28 -0
  298. package/node_modules/uuid/LICENSE.md +21 -0
  299. package/node_modules/uuid/README.md +132 -0
  300. package/node_modules/{node-uuid → uuid}/bin/uuid +0 -0
  301. package/node_modules/uuid/index.js +8 -0
  302. package/node_modules/uuid/lib/bytesToUuid.js +23 -0
  303. package/node_modules/uuid/lib/rng-browser.js +33 -0
  304. package/node_modules/uuid/lib/rng.js +10 -0
  305. package/node_modules/uuid/package.json +122 -0
  306. package/node_modules/uuid/test/mocha.opts +3 -0
  307. package/node_modules/uuid/test/test.js +96 -0
  308. package/node_modules/uuid/v1.js +103 -0
  309. package/node_modules/uuid/v4.js +29 -0
  310. package/node_modules/verror/package.json +14 -6
  311. package/node_modules/wide-align/package.json +19 -11
  312. package/node_modules/wrappy/package.json +17 -8
  313. package/node_modules/xtend/package.json +29 -21
  314. package/package.json +2 -2
  315. package/node_modules/async/CHANGELOG.md +0 -125
  316. package/node_modules/async/README.md +0 -1877
  317. package/node_modules/async/dist/async.js +0 -1265
  318. package/node_modules/async/dist/async.min.js +0 -2
  319. package/node_modules/async/lib/async.js +0 -1265
  320. package/node_modules/async/package.json +0 -149
  321. package/node_modules/bl/.jshintrc +0 -59
  322. package/node_modules/bl/.npmignore +0 -1
  323. package/node_modules/bl/.travis.yml +0 -13
  324. package/node_modules/bl/LICENSE.md +0 -13
  325. package/node_modules/bl/README.md +0 -200
  326. package/node_modules/bl/bl.js +0 -243
  327. package/node_modules/bl/node_modules/readable-stream/.npmignore +0 -5
  328. package/node_modules/bl/node_modules/readable-stream/.zuul.yml +0 -1
  329. package/node_modules/bl/node_modules/readable-stream/doc/stream.markdown +0 -1760
  330. package/node_modules/bl/package.json +0 -96
  331. package/node_modules/bl/test/test.js +0 -640
  332. package/node_modules/form-data/.dockerignore +0 -7
  333. package/node_modules/form-data/.editorconfig +0 -10
  334. package/node_modules/form-data/.eslintignore +0 -1
  335. package/node_modules/form-data/.eslintrc +0 -64
  336. package/node_modules/form-data/wercker.yml +0 -36
  337. package/node_modules/gauge/CHANGELOG.md~ +0 -123
  338. package/node_modules/gauge/README.md~ +0 -393
  339. package/node_modules/has-color/index.js +0 -32
  340. package/node_modules/has-color/package.json +0 -97
  341. package/node_modules/has-color/readme.md +0 -30
  342. package/node_modules/inherits/test.js +0 -25
  343. package/node_modules/jsonpointer/.travis.yml +0 -10
  344. package/node_modules/jsonpointer/test.js +0 -98
  345. package/node_modules/node-uuid/.npmignore +0 -4
  346. package/node_modules/node-uuid/README.md +0 -254
  347. package/node_modules/node-uuid/benchmark/README.md +0 -53
  348. package/node_modules/node-uuid/benchmark/bench.gnu +0 -174
  349. package/node_modules/node-uuid/benchmark/bench.sh +0 -34
  350. package/node_modules/node-uuid/benchmark/benchmark-native.c +0 -34
  351. package/node_modules/node-uuid/benchmark/benchmark.js +0 -84
  352. package/node_modules/node-uuid/bower.json +0 -23
  353. package/node_modules/node-uuid/component.json +0 -25
  354. package/node_modules/node-uuid/package.json +0 -105
  355. package/node_modules/node-uuid/test/compare_v1.js +0 -63
  356. package/node_modules/node-uuid/test/test.html +0 -17
  357. package/node_modules/node-uuid/test/test.js +0 -231
  358. package/node_modules/node-uuid/uuid.js +0 -272
  359. package/node_modules/npmlog/CHANGELOG.md~ +0 -31
  360. package/node_modules/qs/.jscs.json +0 -176
  361. package/node_modules/qs/CONTRIBUTING.md +0 -1
  362. package/node_modules/readable-stream/doc/stream.md +0 -1772
  363. package/node_modules/request/.eslintrc +0 -45
  364. package/node_modules/request/.npmignore +0 -6
  365. package/node_modules/request/.travis.yml +0 -21
  366. package/node_modules/request/CONTRIBUTING.md +0 -81
  367. package/node_modules/request/codecov.yml +0 -2
  368. package/node_modules/strip-json-comments/cli.js +0 -41
  369. package/node_modules/strip-json-comments/strip-json-comments.js +0 -73
@@ -1,149 +0,0 @@
1
- {
2
- "_args": [
3
- [
4
- "async@^1.5.2",
5
- "/Users/eshanker/Code/fsevents/node_modules/form-data"
6
- ]
7
- ],
8
- "_from": "async@>=1.5.2 <2.0.0",
9
- "_id": "async@1.5.2",
10
- "_inCache": true,
11
- "_installable": true,
12
- "_location": "/async",
13
- "_nodeVersion": "4.2.3",
14
- "_npmUser": {
15
- "email": "alexander.early@gmail.com",
16
- "name": "aearly"
17
- },
18
- "_npmVersion": "3.5.2",
19
- "_phantomChildren": {},
20
- "_requested": {
21
- "name": "async",
22
- "raw": "async@^1.5.2",
23
- "rawSpec": "^1.5.2",
24
- "scope": null,
25
- "spec": ">=1.5.2 <2.0.0",
26
- "type": "range"
27
- },
28
- "_requiredBy": [
29
- "/form-data"
30
- ],
31
- "_resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz",
32
- "_shasum": "ec6a61ae56480c0c3cb241c95618e20892f9672a",
33
- "_shrinkwrap": null,
34
- "_spec": "async@^1.5.2",
35
- "_where": "/Users/eshanker/Code/fsevents/node_modules/form-data",
36
- "author": {
37
- "name": "Caolan McMahon"
38
- },
39
- "bugs": {
40
- "url": "https://github.com/caolan/async/issues"
41
- },
42
- "dependencies": {},
43
- "description": "Higher-order functions and common patterns for asynchronous code",
44
- "devDependencies": {
45
- "benchmark": "github:bestiejs/benchmark.js",
46
- "bluebird": "^2.9.32",
47
- "chai": "^3.1.0",
48
- "coveralls": "^2.11.2",
49
- "es6-promise": "^2.3.0",
50
- "jscs": "^1.13.1",
51
- "jshint": "~2.8.0",
52
- "karma": "^0.13.2",
53
- "karma-browserify": "^4.2.1",
54
- "karma-firefox-launcher": "^0.1.6",
55
- "karma-mocha": "^0.2.0",
56
- "karma-mocha-reporter": "^1.0.2",
57
- "lodash": "^3.9.0",
58
- "mkdirp": "~0.5.1",
59
- "mocha": "^2.2.5",
60
- "native-promise-only": "^0.8.0-a",
61
- "nodeunit": ">0.0.0",
62
- "nyc": "^2.1.0",
63
- "rsvp": "^3.0.18",
64
- "semver": "^4.3.6",
65
- "uglify-js": "~2.4.0",
66
- "xyz": "^0.5.0",
67
- "yargs": "~3.9.1"
68
- },
69
- "directories": {},
70
- "dist": {
71
- "shasum": "ec6a61ae56480c0c3cb241c95618e20892f9672a",
72
- "tarball": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"
73
- },
74
- "files": [
75
- "dist/async.js",
76
- "dist/async.min.js",
77
- "lib"
78
- ],
79
- "gitHead": "9ab5c67b7cb3a4c3dad4a2d4552a2f6775545d6c",
80
- "homepage": "https://github.com/caolan/async#readme",
81
- "jam": {
82
- "categories": [
83
- "Utilities"
84
- ],
85
- "include": [
86
- "LICENSE",
87
- "README.md",
88
- "lib/async.js"
89
- ],
90
- "main": "lib/async.js"
91
- },
92
- "keywords": [
93
- "async",
94
- "callback",
95
- "module",
96
- "utility"
97
- ],
98
- "license": "MIT",
99
- "main": "lib/async.js",
100
- "maintainers": [
101
- {
102
- "name": "caolan",
103
- "email": "caolan.mcmahon@gmail.com"
104
- },
105
- {
106
- "name": "beaugunderson",
107
- "email": "beau@beaugunderson.com"
108
- },
109
- {
110
- "name": "aearly",
111
- "email": "alexander.early@gmail.com"
112
- },
113
- {
114
- "name": "megawac",
115
- "email": "megawac@gmail.com"
116
- }
117
- ],
118
- "name": "async",
119
- "optionalDependencies": {},
120
- "readme": "ERROR: No README data found!",
121
- "repository": {
122
- "type": "git",
123
- "url": "git+https://github.com/caolan/async.git"
124
- },
125
- "scripts": {
126
- "coverage": "nyc npm test && nyc report",
127
- "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
128
- "lint": "jshint lib/*.js test/*.js perf/*.js && jscs lib/*.js test/*.js perf/*.js",
129
- "mocha-browser-test": "karma start",
130
- "mocha-node-test": "mocha mocha_test/",
131
- "mocha-test": "npm run mocha-node-test && npm run mocha-browser-test",
132
- "nodeunit-test": "nodeunit test/test-async.js",
133
- "test": "npm run-script lint && npm run nodeunit-test && npm run mocha-test"
134
- },
135
- "spm": {
136
- "main": "lib/async.js"
137
- },
138
- "version": "1.5.2",
139
- "volo": {
140
- "ignore": [
141
- "**/.*",
142
- "bower_components",
143
- "node_modules",
144
- "test",
145
- "tests"
146
- ],
147
- "main": "lib/async.js"
148
- }
149
- }
@@ -1,59 +0,0 @@
1
- {
2
- "predef": [ ]
3
- , "bitwise": false
4
- , "camelcase": false
5
- , "curly": false
6
- , "eqeqeq": false
7
- , "forin": false
8
- , "immed": false
9
- , "latedef": false
10
- , "noarg": true
11
- , "noempty": true
12
- , "nonew": true
13
- , "plusplus": false
14
- , "quotmark": true
15
- , "regexp": false
16
- , "undef": true
17
- , "unused": true
18
- , "strict": false
19
- , "trailing": true
20
- , "maxlen": 120
21
- , "asi": true
22
- , "boss": true
23
- , "debug": true
24
- , "eqnull": true
25
- , "esnext": true
26
- , "evil": true
27
- , "expr": true
28
- , "funcscope": false
29
- , "globalstrict": false
30
- , "iterator": false
31
- , "lastsemic": true
32
- , "laxbreak": true
33
- , "laxcomma": true
34
- , "loopfunc": true
35
- , "multistr": false
36
- , "onecase": false
37
- , "proto": false
38
- , "regexdash": false
39
- , "scripturl": true
40
- , "smarttabs": false
41
- , "shadow": false
42
- , "sub": true
43
- , "supernew": false
44
- , "validthis": true
45
- , "browser": true
46
- , "couch": false
47
- , "devel": false
48
- , "dojo": false
49
- , "mootools": false
50
- , "node": true
51
- , "nonstandard": true
52
- , "prototypejs": false
53
- , "rhino": false
54
- , "worker": true
55
- , "wsh": false
56
- , "nomen": false
57
- , "onevar": false
58
- , "passfail": false
59
- }
@@ -1 +0,0 @@
1
- node_modules/
@@ -1,13 +0,0 @@
1
- sudo: false
2
- language: node_js
3
- node_js:
4
- - '0.10'
5
- - '0.12'
6
- - '4'
7
- - '5'
8
- branches:
9
- only:
10
- - master
11
- notifications:
12
- email:
13
- - rod@vagg.org
@@ -1,13 +0,0 @@
1
- The MIT License (MIT)
2
- =====================
3
-
4
- Copyright (c) 2014 bl contributors
5
- ----------------------------------
6
-
7
- *bl contributors listed at <https://github.com/rvagg/bl#contributors>*
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,200 +0,0 @@
1
- # bl *(BufferList)*
2
-
3
- [![Build Status](https://travis-ci.org/rvagg/bl.svg?branch=master)](https://travis-ci.org/rvagg/bl)
4
-
5
- **A Node.js Buffer list collector, reader and streamer thingy.**
6
-
7
- [![NPM](https://nodei.co/npm/bl.png?downloads=true&downloadRank=true)](https://nodei.co/npm/bl/)
8
- [![NPM](https://nodei.co/npm-dl/bl.png?months=6&height=3)](https://nodei.co/npm/bl/)
9
-
10
- **bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them!
11
-
12
- The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently.
13
-
14
- ```js
15
- const BufferList = require('bl')
16
-
17
- var bl = new BufferList()
18
- bl.append(new Buffer('abcd'))
19
- bl.append(new Buffer('efg'))
20
- bl.append('hi') // bl will also accept & convert Strings
21
- bl.append(new Buffer('j'))
22
- bl.append(new Buffer([ 0x3, 0x4 ]))
23
-
24
- console.log(bl.length) // 12
25
-
26
- console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij'
27
- console.log(bl.slice(3, 10).toString('ascii')) // 'defghij'
28
- console.log(bl.slice(3, 6).toString('ascii')) // 'def'
29
- console.log(bl.slice(3, 8).toString('ascii')) // 'defgh'
30
- console.log(bl.slice(5, 10).toString('ascii')) // 'fghij'
31
-
32
- // or just use toString!
33
- console.log(bl.toString()) // 'abcdefghij\u0003\u0004'
34
- console.log(bl.toString('ascii', 3, 8)) // 'defgh'
35
- console.log(bl.toString('ascii', 5, 10)) // 'fghij'
36
-
37
- // other standard Buffer readables
38
- console.log(bl.readUInt16BE(10)) // 0x0304
39
- console.log(bl.readUInt16LE(10)) // 0x0403
40
- ```
41
-
42
- Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**:
43
-
44
- ```js
45
- const bl = require('bl')
46
- , fs = require('fs')
47
-
48
- fs.createReadStream('README.md')
49
- .pipe(bl(function (err, data) { // note 'new' isn't strictly required
50
- // `data` is a complete Buffer object containing the full data
51
- console.log(data.toString())
52
- }))
53
- ```
54
-
55
- Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream.
56
-
57
- Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!):
58
- ```js
59
- const hyperquest = require('hyperquest')
60
- , bl = require('bl')
61
- , url = 'https://raw.github.com/rvagg/bl/master/README.md'
62
-
63
- hyperquest(url).pipe(bl(function (err, data) {
64
- console.log(data.toString())
65
- }))
66
- ```
67
-
68
- Or, use it as a readable stream to recompose a list of Buffers to an output source:
69
-
70
- ```js
71
- const BufferList = require('bl')
72
- , fs = require('fs')
73
-
74
- var bl = new BufferList()
75
- bl.append(new Buffer('abcd'))
76
- bl.append(new Buffer('efg'))
77
- bl.append(new Buffer('hi'))
78
- bl.append(new Buffer('j'))
79
-
80
- bl.pipe(fs.createWriteStream('gibberish.txt'))
81
- ```
82
-
83
- ## API
84
-
85
- * <a href="#ctor"><code><b>new BufferList([ callback ])</b></code></a>
86
- * <a href="#length"><code>bl.<b>length</b></code></a>
87
- * <a href="#append"><code>bl.<b>append(buffer)</b></code></a>
88
- * <a href="#get"><code>bl.<b>get(index)</b></code></a>
89
- * <a href="#slice"><code>bl.<b>slice([ start[, end ] ])</b></code></a>
90
- * <a href="#copy"><code>bl.<b>copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])</b></code></a>
91
- * <a href="#duplicate"><code>bl.<b>duplicate()</b></code></a>
92
- * <a href="#consume"><code>bl.<b>consume(bytes)</b></code></a>
93
- * <a href="#toString"><code>bl.<b>toString([encoding, [ start, [ end ]]])</b></code></a>
94
- * <a href="#readXX"><code>bl.<b>readDoubleBE()</b></code>, <code>bl.<b>readDoubleLE()</b></code>, <code>bl.<b>readFloatBE()</b></code>, <code>bl.<b>readFloatLE()</b></code>, <code>bl.<b>readInt32BE()</b></code>, <code>bl.<b>readInt32LE()</b></code>, <code>bl.<b>readUInt32BE()</b></code>, <code>bl.<b>readUInt32LE()</b></code>, <code>bl.<b>readInt16BE()</b></code>, <code>bl.<b>readInt16LE()</b></code>, <code>bl.<b>readUInt16BE()</b></code>, <code>bl.<b>readUInt16LE()</b></code>, <code>bl.<b>readInt8()</b></code>, <code>bl.<b>readUInt8()</b></code></a>
95
- * <a href="#streams">Streams</a>
96
-
97
- --------------------------------------------------------
98
- <a name="ctor"></a>
99
- ### new BufferList([ callback | Buffer | Buffer array | BufferList | BufferList array | String ])
100
- The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream.
101
-
102
- Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object.
103
-
104
- `new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with:
105
-
106
- ```js
107
- var bl = require('bl')
108
- var myinstance = bl()
109
-
110
- // equivilant to:
111
-
112
- var BufferList = require('bl')
113
- var myinstance = new BufferList()
114
- ```
115
-
116
- --------------------------------------------------------
117
- <a name="length"></a>
118
- ### bl.length
119
- Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list.
120
-
121
- --------------------------------------------------------
122
- <a name="append"></a>
123
- ### bl.append(Buffer | Buffer array | BufferList | BufferList array | String)
124
- `append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained.
125
-
126
- --------------------------------------------------------
127
- <a name="get"></a>
128
- ### bl.get(index)
129
- `get()` will return the byte at the specified index.
130
-
131
- --------------------------------------------------------
132
- <a name="slice"></a>
133
- ### bl.slice([ start, [ end ] ])
134
- `slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively.
135
-
136
- If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer.
137
-
138
- --------------------------------------------------------
139
- <a name="copy"></a>
140
- ### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ])
141
- `copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively.
142
-
143
- --------------------------------------------------------
144
- <a name="duplicate"></a>
145
- ### bl.duplicate()
146
- `duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example:
147
-
148
- ```js
149
- var bl = new BufferList()
150
-
151
- bl.append('hello')
152
- bl.append(' world')
153
- bl.append('\n')
154
-
155
- bl.duplicate().pipe(process.stdout, { end: false })
156
-
157
- console.log(bl.toString())
158
- ```
159
-
160
- --------------------------------------------------------
161
- <a name="consume"></a>
162
- ### bl.consume(bytes)
163
- `consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers&mdash;initial offsets will be calculated accordingly in order to give you a consistent view of the data.
164
-
165
- --------------------------------------------------------
166
- <a name="toString"></a>
167
- ### bl.toString([encoding, [ start, [ end ]]])
168
- `toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information.
169
-
170
- --------------------------------------------------------
171
- <a name="readXX"></a>
172
- ### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8()
173
-
174
- All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently.
175
-
176
- See the <b><code>[Buffer](http://nodejs.org/docs/latest/api/buffer.html)</code></b> documentation for how these work.
177
-
178
- --------------------------------------------------------
179
- <a name="streams"></a>
180
- ### Streams
181
- **bl** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **bl** instance.
182
-
183
- --------------------------------------------------------
184
-
185
- ## Contributors
186
-
187
- **bl** is brought to you by the following hackers:
188
-
189
- * [Rod Vagg](https://github.com/rvagg)
190
- * [Matteo Collina](https://github.com/mcollina)
191
- * [Jarett Cruger](https://github.com/jcrugzz)
192
-
193
- =======
194
-
195
- <a name="license"></a>
196
- ## License &amp; copyright
197
-
198
- Copyright (c) 2013-2014 bl contributors (listed above).
199
-
200
- bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
@@ -1,243 +0,0 @@
1
- var DuplexStream = require('readable-stream/duplex')
2
- , util = require('util')
3
-
4
-
5
- function BufferList (callback) {
6
- if (!(this instanceof BufferList))
7
- return new BufferList(callback)
8
-
9
- this._bufs = []
10
- this.length = 0
11
-
12
- if (typeof callback == 'function') {
13
- this._callback = callback
14
-
15
- var piper = function piper (err) {
16
- if (this._callback) {
17
- this._callback(err)
18
- this._callback = null
19
- }
20
- }.bind(this)
21
-
22
- this.on('pipe', function onPipe (src) {
23
- src.on('error', piper)
24
- })
25
- this.on('unpipe', function onUnpipe (src) {
26
- src.removeListener('error', piper)
27
- })
28
- } else {
29
- this.append(callback)
30
- }
31
-
32
- DuplexStream.call(this)
33
- }
34
-
35
-
36
- util.inherits(BufferList, DuplexStream)
37
-
38
-
39
- BufferList.prototype._offset = function _offset (offset) {
40
- var tot = 0, i = 0, _t
41
- for (; i < this._bufs.length; i++) {
42
- _t = tot + this._bufs[i].length
43
- if (offset < _t)
44
- return [ i, offset - tot ]
45
- tot = _t
46
- }
47
- }
48
-
49
-
50
- BufferList.prototype.append = function append (buf) {
51
- var i = 0
52
- , newBuf
53
-
54
- if (Array.isArray(buf)) {
55
- for (; i < buf.length; i++)
56
- this.append(buf[i])
57
- } else if (buf instanceof BufferList) {
58
- // unwrap argument into individual BufferLists
59
- for (; i < buf._bufs.length; i++)
60
- this.append(buf._bufs[i])
61
- } else if (buf != null) {
62
- // coerce number arguments to strings, since Buffer(number) does
63
- // uninitialized memory allocation
64
- if (typeof buf == 'number')
65
- buf = buf.toString()
66
-
67
- newBuf = Buffer.isBuffer(buf) ? buf : new Buffer(buf)
68
- this._bufs.push(newBuf)
69
- this.length += newBuf.length
70
- }
71
-
72
- return this
73
- }
74
-
75
-
76
- BufferList.prototype._write = function _write (buf, encoding, callback) {
77
- this.append(buf)
78
-
79
- if (typeof callback == 'function')
80
- callback()
81
- }
82
-
83
-
84
- BufferList.prototype._read = function _read (size) {
85
- if (!this.length)
86
- return this.push(null)
87
-
88
- size = Math.min(size, this.length)
89
- this.push(this.slice(0, size))
90
- this.consume(size)
91
- }
92
-
93
-
94
- BufferList.prototype.end = function end (chunk) {
95
- DuplexStream.prototype.end.call(this, chunk)
96
-
97
- if (this._callback) {
98
- this._callback(null, this.slice())
99
- this._callback = null
100
- }
101
- }
102
-
103
-
104
- BufferList.prototype.get = function get (index) {
105
- return this.slice(index, index + 1)[0]
106
- }
107
-
108
-
109
- BufferList.prototype.slice = function slice (start, end) {
110
- return this.copy(null, 0, start, end)
111
- }
112
-
113
-
114
- BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) {
115
- if (typeof srcStart != 'number' || srcStart < 0)
116
- srcStart = 0
117
- if (typeof srcEnd != 'number' || srcEnd > this.length)
118
- srcEnd = this.length
119
- if (srcStart >= this.length)
120
- return dst || new Buffer(0)
121
- if (srcEnd <= 0)
122
- return dst || new Buffer(0)
123
-
124
- var copy = !!dst
125
- , off = this._offset(srcStart)
126
- , len = srcEnd - srcStart
127
- , bytes = len
128
- , bufoff = (copy && dstStart) || 0
129
- , start = off[1]
130
- , l
131
- , i
132
-
133
- // copy/slice everything
134
- if (srcStart === 0 && srcEnd == this.length) {
135
- if (!copy) // slice, just return a full concat
136
- return Buffer.concat(this._bufs)
137
-
138
- // copy, need to copy individual buffers
139
- for (i = 0; i < this._bufs.length; i++) {
140
- this._bufs[i].copy(dst, bufoff)
141
- bufoff += this._bufs[i].length
142
- }
143
-
144
- return dst
145
- }
146
-
147
- // easy, cheap case where it's a subset of one of the buffers
148
- if (bytes <= this._bufs[off[0]].length - start) {
149
- return copy
150
- ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes)
151
- : this._bufs[off[0]].slice(start, start + bytes)
152
- }
153
-
154
- if (!copy) // a slice, we need something to copy in to
155
- dst = new Buffer(len)
156
-
157
- for (i = off[0]; i < this._bufs.length; i++) {
158
- l = this._bufs[i].length - start
159
-
160
- if (bytes > l) {
161
- this._bufs[i].copy(dst, bufoff, start)
162
- } else {
163
- this._bufs[i].copy(dst, bufoff, start, start + bytes)
164
- break
165
- }
166
-
167
- bufoff += l
168
- bytes -= l
169
-
170
- if (start)
171
- start = 0
172
- }
173
-
174
- return dst
175
- }
176
-
177
- BufferList.prototype.toString = function toString (encoding, start, end) {
178
- return this.slice(start, end).toString(encoding)
179
- }
180
-
181
- BufferList.prototype.consume = function consume (bytes) {
182
- while (this._bufs.length) {
183
- if (bytes >= this._bufs[0].length) {
184
- bytes -= this._bufs[0].length
185
- this.length -= this._bufs[0].length
186
- this._bufs.shift()
187
- } else {
188
- this._bufs[0] = this._bufs[0].slice(bytes)
189
- this.length -= bytes
190
- break
191
- }
192
- }
193
- return this
194
- }
195
-
196
-
197
- BufferList.prototype.duplicate = function duplicate () {
198
- var i = 0
199
- , copy = new BufferList()
200
-
201
- for (; i < this._bufs.length; i++)
202
- copy.append(this._bufs[i])
203
-
204
- return copy
205
- }
206
-
207
-
208
- BufferList.prototype.destroy = function destroy () {
209
- this._bufs.length = 0
210
- this.length = 0
211
- this.push(null)
212
- }
213
-
214
-
215
- ;(function () {
216
- var methods = {
217
- 'readDoubleBE' : 8
218
- , 'readDoubleLE' : 8
219
- , 'readFloatBE' : 4
220
- , 'readFloatLE' : 4
221
- , 'readInt32BE' : 4
222
- , 'readInt32LE' : 4
223
- , 'readUInt32BE' : 4
224
- , 'readUInt32LE' : 4
225
- , 'readInt16BE' : 2
226
- , 'readInt16LE' : 2
227
- , 'readUInt16BE' : 2
228
- , 'readUInt16LE' : 2
229
- , 'readInt8' : 1
230
- , 'readUInt8' : 1
231
- }
232
-
233
- for (var m in methods) {
234
- (function (m) {
235
- BufferList.prototype[m] = function (offset) {
236
- return this.slice(offset, offset + methods[m])[m](0)
237
- }
238
- }(m))
239
- }
240
- }())
241
-
242
-
243
- module.exports = BufferList
@@ -1,5 +0,0 @@
1
- build/
2
- test/
3
- examples/
4
- fs.js
5
- zlib.js