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.
- package/.npmignore +1 -3
- package/.travis.yml +6 -5
- package/build/.target.mk +49 -0
- package/build/Makefile +352 -0
- package/build/action_after_build.target.mk +32 -0
- package/build/binding.Makefile +6 -0
- package/build/fse.target.mk +169 -0
- package/build/gyp-mac-tool +612 -0
- package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
- package/node_modules/abbrev/package.json +82 -0
- package/node_modules/{lodash.repeat/LICENSE → ansi-regex/license} +5 -7
- package/node_modules/ansi-regex/package.json +20 -2
- package/node_modules/{lodash.padstart/LICENSE → ansi-styles/license} +5 -7
- package/node_modules/ansi-styles/package.json +21 -4
- package/node_modules/aproba/LICENSE +14 -0
- package/node_modules/aproba/README.md +59 -0
- package/node_modules/aproba/index.js +62 -0
- package/node_modules/aproba/package.json +88 -0
- package/node_modules/are-we-there-yet/package.json +21 -4
- package/node_modules/asn1/package.json +19 -1
- package/node_modules/assert-plus/package.json +21 -4
- package/node_modules/async/CHANGELOG.md +125 -0
- package/node_modules/async/LICENSE +19 -0
- package/node_modules/async/package.json +20 -2
- package/node_modules/aws-sign2/package.json +20 -2
- package/node_modules/aws4/aws4.js +1 -1
- package/node_modules/aws4/lru.js +96 -0
- package/node_modules/aws4/package.json +31 -16
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → balanced-match}/.npmignore +2 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/README.md +5 -3
- package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/index.js +9 -1
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/package.json +35 -13
- package/node_modules/bl/README.md +3 -3
- package/node_modules/bl/bl.js +54 -38
- package/node_modules/bl/node_modules/readable-stream/.npmignore +5 -0
- package/node_modules/bl/node_modules/readable-stream/.travis.yml +52 -0
- package/node_modules/bl/node_modules/readable-stream/LICENSE +18 -0
- package/node_modules/bl/node_modules/readable-stream/README.md +36 -0
- package/node_modules/bl/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/bl/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +75 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +26 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +880 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +180 -0
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +516 -0
- package/node_modules/bl/node_modules/readable-stream/package.json +105 -0
- package/node_modules/bl/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/readable.js +12 -0
- package/node_modules/bl/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/bl/node_modules/readable-stream/writable.js +1 -0
- package/node_modules/bl/package.json +39 -15
- package/node_modules/bl/test/test.js +71 -2
- package/node_modules/block-stream/package.json +37 -12
- package/node_modules/boom/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/package.json +34 -16
- package/node_modules/buffer-shims/index.js +108 -0
- package/node_modules/buffer-shims/license.md +19 -0
- package/node_modules/buffer-shims/package.json +77 -0
- package/node_modules/buffer-shims/readme.md +21 -0
- package/node_modules/caseless/package.json +20 -2
- package/node_modules/{lodash.pad/LICENSE → chalk/license} +5 -7
- package/node_modules/chalk/package.json +21 -4
- package/node_modules/code-point-at/index.js +33 -0
- package/node_modules/{lodash.padend/LICENSE → code-point-at/license} +5 -7
- package/node_modules/code-point-at/package.json +96 -0
- package/node_modules/code-point-at/readme.md +34 -0
- package/node_modules/combined-stream/package.json +20 -2
- package/node_modules/commander/History.md +261 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/package.json +20 -2
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/package.json +21 -3
- package/node_modules/console-control-strings/LICENSE +13 -0
- package/node_modules/console-control-strings/README.md +145 -0
- package/node_modules/console-control-strings/README.md~ +140 -0
- package/node_modules/console-control-strings/index.js +125 -0
- package/node_modules/console-control-strings/package.json +88 -0
- package/node_modules/core-util-is/package.json +21 -2
- package/node_modules/cryptiles/package.json +20 -2
- package/node_modules/dashdash/lib/dashdash.js +34 -1
- package/node_modules/dashdash/node_modules/assert-plus/package.json +21 -4
- package/node_modules/dashdash/package.json +29 -12
- package/node_modules/debug/package.json +20 -2
- package/node_modules/deep-extend/CHANGELOG.md +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → deep-extend}/LICENSE +3 -1
- package/node_modules/deep-extend/package.json +21 -4
- package/node_modules/delayed-stream/package.json +20 -2
- package/node_modules/delegates/package.json +21 -4
- package/node_modules/ecc-jsbn/package.json +20 -2
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +21 -4
- package/node_modules/extend/package.json +20 -2
- package/node_modules/extsprintf/package.json +20 -3
- package/node_modules/forever-agent/package.json +20 -2
- package/node_modules/form-data/package.json +21 -4
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +86 -0
- package/node_modules/fstream/.travis.yml +4 -4
- package/node_modules/fstream/lib/collect.js +2 -0
- package/node_modules/fstream/package.json +37 -15
- package/node_modules/fstream-ignore/package.json +45 -17
- package/node_modules/gauge/CHANGELOG.md +131 -0
- package/node_modules/gauge/CHANGELOG.md~ +123 -0
- package/node_modules/gauge/README.md +317 -88
- package/node_modules/gauge/README.md~ +393 -0
- package/node_modules/gauge/base-theme.js +14 -0
- package/node_modules/gauge/error.js +24 -0
- package/node_modules/gauge/has-color.js +12 -0
- package/node_modules/gauge/index.js +226 -0
- package/node_modules/gauge/package.json +67 -21
- package/node_modules/gauge/plumbing.js +47 -0
- package/node_modules/gauge/process.js +3 -0
- package/node_modules/gauge/progress-bar.js +29 -219
- package/node_modules/gauge/render-template.js +181 -0
- package/node_modules/gauge/set-immediate.js +7 -0
- package/node_modules/gauge/set-interval.js +3 -0
- package/node_modules/gauge/spin.js +5 -0
- package/node_modules/gauge/template-item.js +73 -0
- package/node_modules/gauge/theme-set.js +115 -0
- package/node_modules/gauge/themes.js +54 -0
- package/node_modules/gauge/wide-truncate.js +25 -0
- package/node_modules/generate-function/package.json +20 -2
- package/node_modules/generate-object-property/package.json +20 -2
- package/node_modules/getpass/.npmignore +8 -0
- package/node_modules/getpass/.travis.yml +9 -0
- package/node_modules/getpass/LICENSE +18 -0
- package/node_modules/getpass/README.md +32 -0
- package/node_modules/getpass/lib/index.js +123 -0
- package/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- package/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/getpass/node_modules/assert-plus/package.json +107 -0
- package/node_modules/getpass/package.json +82 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/glob.js +2 -1
- package/node_modules/glob/package.json +103 -0
- package/node_modules/{rimraf/node_modules/glob → glob}/sync.js +2 -1
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +82 -2
- package/node_modules/graceful-fs/package.json +30 -12
- package/node_modules/graceful-readlink/package.json +20 -2
- package/node_modules/har-validator/LICENSE +13 -0
- package/node_modules/har-validator/package.json +20 -2
- package/node_modules/has-ansi/license +21 -0
- package/node_modules/has-ansi/package.json +20 -2
- package/node_modules/has-color/index.js +32 -0
- package/node_modules/has-color/package.json +97 -0
- package/node_modules/has-color/readme.md +30 -0
- package/node_modules/has-unicode/index.js +3 -8
- package/node_modules/has-unicode/package.json +36 -12
- package/node_modules/hawk/package.json +20 -2
- package/node_modules/hoek/package.json +20 -2
- package/node_modules/http-signature/package.json +20 -2
- package/node_modules/inflight/package.json +97 -0
- package/node_modules/inherits/package.json +16 -9
- package/node_modules/ini/package.json +21 -4
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +100 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-my-json-valid/package.json +21 -4
- package/node_modules/is-property/package.json +20 -2
- package/node_modules/is-typedarray/package.json +20 -2
- package/node_modules/isarray/package.json +21 -2
- package/node_modules/isstream/package.json +20 -2
- package/node_modules/jodid25519/package.json +19 -1
- package/node_modules/jsbn/package.json +19 -1
- package/node_modules/json-schema/package.json +20 -2
- package/node_modules/json-stringify-safe/package.json +20 -2
- package/node_modules/jsonpointer/package.json +19 -1
- package/node_modules/jsprim/CHANGES.md +5 -0
- package/node_modules/jsprim/README.md +13 -4
- package/node_modules/jsprim/lib/jsprim.js +12 -2
- package/node_modules/jsprim/package.json +33 -11
- package/node_modules/mime-db/HISTORY.md +21 -0
- package/node_modules/mime-db/db.json +53 -1
- package/node_modules/mime-db/package.json +36 -19
- package/node_modules/mime-types/HISTORY.md +6 -0
- package/node_modules/mime-types/package.json +33 -16
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/README.md +2 -9
- package/node_modules/{fstream-ignore/node_modules/minimatch → minimatch}/minimatch.js +15 -3
- package/node_modules/{rimraf/node_modules/glob/node_modules/minimatch → minimatch}/package.json +37 -14
- package/node_modules/mkdirp/package.json +10 -8
- package/node_modules/ms/History.md +66 -0
- package/node_modules/ms/package.json +19 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +21 -0
- package/node_modules/node-pre-gyp/appveyor.yml +2 -2
- package/node_modules/node-pre-gyp/lib/install.js +12 -2
- package/node_modules/node-pre-gyp/lib/testbinary.js +9 -9
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +84 -0
- package/node_modules/node-pre-gyp/package.json +21 -31
- package/node_modules/node-uuid/package.json +20 -2
- package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/package.json +21 -3
- package/node_modules/npmlog/CHANGELOG.md +36 -0
- package/node_modules/npmlog/CHANGELOG.md~ +31 -0
- package/node_modules/npmlog/README.md +16 -1
- package/node_modules/npmlog/log.js +97 -50
- package/node_modules/npmlog/package.json +43 -17
- package/node_modules/number-is-nan/index.js +4 -0
- package/node_modules/number-is-nan/license +21 -0
- package/node_modules/number-is-nan/package.json +94 -0
- package/node_modules/number-is-nan/readme.md +30 -0
- package/node_modules/oauth-sign/package.json +36 -12
- package/node_modules/object-assign/index.js +83 -0
- package/node_modules/object-assign/license +21 -0
- package/node_modules/object-assign/package.json +106 -0
- package/node_modules/object-assign/readme.md +56 -0
- package/node_modules/once/package.json +22 -2
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/package.json +22 -4
- package/node_modules/pinkie/license +21 -0
- package/node_modules/pinkie/package.json +21 -4
- package/node_modules/pinkie-promise/index.js +1 -1
- package/node_modules/pinkie-promise/license +21 -0
- package/node_modules/pinkie-promise/package.json +32 -10
- package/node_modules/process-nextick-args/index.js +31 -8
- package/node_modules/process-nextick-args/package.json +33 -10
- package/node_modules/qs/.eslintrc +5 -3
- package/node_modules/qs/.jscs.json +176 -0
- package/node_modules/qs/CHANGELOG.md +10 -0
- package/node_modules/qs/dist/qs.js +75 -63
- package/node_modules/qs/lib/parse.js +32 -29
- package/node_modules/qs/lib/stringify.js +37 -30
- package/node_modules/qs/lib/utils.js +6 -4
- package/node_modules/qs/package.json +41 -18
- package/node_modules/qs/test/parse.js +30 -0
- package/node_modules/qs/test/stringify.js +70 -0
- package/node_modules/rc/node_modules/minimist/package.json +20 -2
- package/node_modules/rc/package.json +21 -4
- package/node_modules/readable-stream/.npmignore +4 -1
- package/node_modules/readable-stream/.travis.yml +2 -0
- package/node_modules/readable-stream/README.md +2 -2
- package/node_modules/readable-stream/doc/stream.md +1772 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +33 -20
- package/node_modules/readable-stream/lib/_stream_transform.js +3 -3
- package/node_modules/readable-stream/lib/_stream_writable.js +25 -15
- package/node_modules/readable-stream/package.json +44 -15
- package/node_modules/readable-stream/readable.js +4 -0
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +9 -3
- package/node_modules/request/CHANGELOG.md +46 -8
- package/node_modules/request/CONTRIBUTING.md +41 -4
- package/node_modules/request/README.md +9 -6
- package/node_modules/request/codecov.yml +2 -0
- package/node_modules/request/index.js +6 -5
- package/node_modules/request/lib/helpers.js +3 -3
- package/node_modules/request/package.json +52 -30
- package/node_modules/request/request.js +58 -43
- package/node_modules/rimraf/package.json +33 -16
- package/node_modules/rimraf/rimraf.js +10 -2
- package/node_modules/semver/README.md +27 -8
- package/node_modules/semver/package.json +38 -12
- package/node_modules/semver/range.bnf +1 -1
- package/node_modules/semver/semver.js +7 -1
- package/node_modules/set-blocking/CHANGELOG.md +26 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +98 -0
- package/node_modules/signal-exit/CHANGELOG.md +17 -0
- package/node_modules/signal-exit/LICENSE.txt +14 -0
- package/node_modules/signal-exit/README.md +40 -0
- package/node_modules/signal-exit/index.js +148 -0
- package/node_modules/signal-exit/package.json +98 -0
- package/node_modules/signal-exit/signals.js +52 -0
- package/node_modules/sntp/package.json +20 -2
- package/node_modules/sshpk/.travis.yml +3 -3
- package/node_modules/sshpk/README.md +26 -7
- package/node_modules/sshpk/bin/sshpk-conv +14 -2
- package/node_modules/sshpk/bin/sshpk-sign +16 -1
- package/node_modules/sshpk/lib/errors.js +14 -1
- package/node_modules/sshpk/lib/formats/auto.js +8 -8
- package/node_modules/sshpk/lib/formats/pem.js +39 -5
- package/node_modules/sshpk/lib/formats/pkcs1.js +4 -4
- package/node_modules/sshpk/lib/formats/pkcs8.js +4 -4
- package/node_modules/sshpk/lib/formats/rfc4253.js +2 -2
- package/node_modules/sshpk/lib/formats/ssh-private.js +3 -3
- package/node_modules/sshpk/lib/formats/ssh.js +2 -2
- package/node_modules/sshpk/lib/index.js +2 -1
- package/node_modules/sshpk/lib/key.js +20 -17
- package/node_modules/sshpk/lib/private-key.js +19 -12
- package/node_modules/sshpk/lib/utils.js +40 -1
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +107 -0
- package/node_modules/sshpk/package.json +48 -30
- package/node_modules/string-width/index.js +32 -0
- package/node_modules/string-width/license +21 -0
- package/node_modules/string-width/package.json +111 -0
- package/node_modules/string-width/readme.md +41 -0
- package/node_modules/string_decoder/package.json +21 -2
- package/node_modules/stringstream/package.json +20 -2
- package/node_modules/strip-ansi/license +21 -0
- package/node_modules/strip-ansi/package.json +24 -5
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +20 -2
- package/node_modules/supports-color/license +21 -0
- package/node_modules/supports-color/package.json +20 -2
- package/node_modules/tar/package.json +20 -2
- package/node_modules/tar-pack/package.json +34 -17
- package/node_modules/tough-cookie/LICENSE +27 -0
- package/node_modules/tough-cookie/package.json +21 -4
- package/node_modules/tunnel-agent/package.json +35 -10
- package/node_modules/tweetnacl/CHANGELOG.md +0 -53
- package/node_modules/tweetnacl/README.md +42 -24
- package/node_modules/tweetnacl/nacl-fast.js +52 -22
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.js +51 -21
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +56 -30
- package/node_modules/uid-number/package.json +21 -4
- package/node_modules/util-deprecate/package.json +21 -2
- package/node_modules/verror/package.json +20 -3
- package/node_modules/wide-align/.npmignore +5 -0
- package/node_modules/wide-align/LICENSE +14 -0
- package/node_modules/wide-align/README.md +47 -0
- package/node_modules/wide-align/align.js +65 -0
- package/node_modules/wide-align/package.json +85 -0
- package/node_modules/wide-align/test/align.js +37 -0
- package/node_modules/wrappy/package.json +44 -14
- package/node_modules/xtend/package.json +20 -2
- package/package.json +2 -2
- package/node_modules/ansi/.jshintrc +0 -4
- package/node_modules/ansi/History.md +0 -23
- package/node_modules/ansi/LICENSE +0 -24
- package/node_modules/ansi/README.md +0 -98
- package/node_modules/ansi/examples/beep/index.js +0 -16
- package/node_modules/ansi/examples/clear/index.js +0 -15
- package/node_modules/ansi/examples/cursorPosition.js +0 -32
- package/node_modules/ansi/examples/progress/index.js +0 -87
- package/node_modules/ansi/lib/ansi.js +0 -405
- package/node_modules/ansi/lib/newlines.js +0 -71
- package/node_modules/ansi/package.json +0 -69
- package/node_modules/aws4/node_modules/lru-cache/README.md +0 -142
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +0 -469
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +0 -9
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +0 -113
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +0 -86
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +0 -7
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +0 -4
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +0 -204
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +0 -60
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +0 -188
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +0 -360
- package/node_modules/aws4/node_modules/lru-cache/package.json +0 -78
- package/node_modules/block-stream/bench/block-stream-pause.js +0 -70
- package/node_modules/block-stream/bench/block-stream.js +0 -68
- package/node_modules/block-stream/bench/dropper-pause.js +0 -70
- package/node_modules/block-stream/bench/dropper.js +0 -68
- package/node_modules/block-stream/test/basic.js +0 -27
- package/node_modules/block-stream/test/nopad-thorough.js +0 -68
- package/node_modules/block-stream/test/nopad.js +0 -57
- package/node_modules/block-stream/test/pause-resume.js +0 -73
- package/node_modules/block-stream/test/thorough.js +0 -68
- package/node_modules/block-stream/test/two-stream.js +0 -59
- package/node_modules/fstream-ignore/.npmignore +0 -1
- package/node_modules/fstream-ignore/example/basic.js +0 -13
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -80
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -91
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -86
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +0 -67
- package/node_modules/fstream-ignore/test/.ignore +0 -2
- package/node_modules/fstream-ignore/test/.npmignore +0 -1
- package/node_modules/fstream-ignore/test/00-setup.js +0 -71
- package/node_modules/fstream-ignore/test/basic.js +0 -28
- package/node_modules/fstream-ignore/test/common.js +0 -40
- package/node_modules/fstream-ignore/test/ignore-most.js +0 -41
- package/node_modules/fstream-ignore/test/nested-ignores.js +0 -51
- package/node_modules/fstream-ignore/test/read-file-order.js +0 -81
- package/node_modules/fstream-ignore/test/unignore-child.js +0 -38
- package/node_modules/fstream-ignore/test/zz-cleanup.js +0 -10
- package/node_modules/gauge/.npmignore +0 -32
- package/node_modules/gauge/example.png +0 -0
- package/node_modules/gauge/test/progress-bar.js +0 -176
- package/node_modules/has-unicode/.npmignore +0 -32
- package/node_modules/has-unicode/test/index.js +0 -26
- package/node_modules/lodash.pad/README.md +0 -18
- package/node_modules/lodash.pad/index.js +0 -296
- package/node_modules/lodash.pad/package.json +0 -91
- package/node_modules/lodash.padend/README.md +0 -18
- package/node_modules/lodash.padend/index.js +0 -285
- package/node_modules/lodash.padend/package.json +0 -91
- package/node_modules/lodash.padstart/README.md +0 -18
- package/node_modules/lodash.padstart/index.js +0 -285
- package/node_modules/lodash.padstart/package.json +0 -91
- package/node_modules/lodash.repeat/README.md +0 -18
- package/node_modules/lodash.repeat/index.js +0 -215
- package/node_modules/lodash.repeat/package.json +0 -92
- package/node_modules/lodash.tostring/LICENSE +0 -23
- package/node_modules/lodash.tostring/README.md +0 -18
- package/node_modules/lodash.tostring/index.js +0 -164
- package/node_modules/lodash.tostring/package.json +0 -91
- package/node_modules/node-pre-gyp/README.md +0 -570
- package/node_modules/node-pre-gyp/node_modules/nopt/.npmignore +0 -1
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore +0 -4
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml +0 -5
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md +0 -3
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/package.json +0 -56
- package/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/test.js +0 -47
- package/node_modules/npmlog/.nyc_output/64996.json +0 -1
- package/node_modules/npmlog/.nyc_output/64998.json +0 -1
- package/node_modules/npmlog/.nyc_output/65000.json +0 -1
- package/node_modules/npmlog/.travis.yml +0 -14
- package/node_modules/npmlog/example.js +0 -39
- package/node_modules/npmlog/test/basic.js +0 -235
- package/node_modules/npmlog/test/progress.js +0 -131
- package/node_modules/oauth-sign/test.js +0 -89
- package/node_modules/qs/.npmignore +0 -18
- package/node_modules/qs/.travis.yml +0 -69
- package/node_modules/qs/README.md +0 -335
- package/node_modules/qs/bower.json +0 -22
- package/node_modules/qs/component.json +0 -15
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -68
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -3
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +0 -59
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -71
- package/node_modules/rimraf/node_modules/glob/package.json +0 -85
- package/node_modules/semver/.npmignore +0 -4
- package/node_modules/semver/.travis.yml +0 -5
- package/node_modules/semver/test/big-numbers.js +0 -31
- package/node_modules/semver/test/clean.js +0 -29
- package/node_modules/semver/test/gtr.js +0 -173
- package/node_modules/semver/test/index.js +0 -698
- package/node_modules/semver/test/ltr.js +0 -181
- package/node_modules/semver/test/major-minor-patch.js +0 -72
- package/node_modules/tunnel-agent/.jshintrc +0 -5
- package/node_modules/tweetnacl/COPYING.txt +0 -9
- package/node_modules/wrappy/test/basic.js +0 -51
- package/test/fsevents.js +0 -27
- package/test/function.js +0 -93
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/pseudomap → abbrev}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → abbrev}/abbrev.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/.zuul.yml +0 -0
- /package/node_modules/{readable-stream → bl/node_modules/readable-stream}/doc/stream.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/README.md +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion → brace-expansion}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/.travis.yml +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/LICENSE +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/README.markdown +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/example/map.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/index.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map → concat-map}/test/map.js +0 -0
- /package/node_modules/{aws4/node_modules/lru-cache/node_modules/yallist → glob}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob → glob}/common.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/README.md +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight → inflight}/inflight.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → ini}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt/node_modules/abbrev → minimatch}/LICENSE +0 -0
- /package/node_modules/{ansi → nopt}/.npmignore +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/.travis.yml +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → nopt}/LICENSE +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/README.md +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/bin/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/examples/my-program.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/lib/nopt.js +0 -0
- /package/node_modules/{node-pre-gyp/node_modules/nopt → nopt}/test/basic.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → once}/LICENSE +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/index.js +0 -0
- /package/node_modules/{rimraf/node_modules/glob/node_modules/path-is-absolute → path-is-absolute}/readme.md +0 -0
@@ -10,15 +10,11 @@ var processNextTick = require('process-nextick-args');
|
|
10
10
|
var isArray = require('isarray');
|
11
11
|
/*</replacement>*/
|
12
12
|
|
13
|
-
/*<replacement>*/
|
14
|
-
var Buffer = require('buffer').Buffer;
|
15
|
-
/*</replacement>*/
|
16
|
-
|
17
13
|
Readable.ReadableState = ReadableState;
|
18
14
|
|
19
|
-
var EE = require('events');
|
20
|
-
|
21
15
|
/*<replacement>*/
|
16
|
+
var EE = require('events').EventEmitter;
|
17
|
+
|
22
18
|
var EElistenerCount = function (emitter, type) {
|
23
19
|
return emitter.listeners(type).length;
|
24
20
|
};
|
@@ -36,6 +32,9 @@ var Stream;
|
|
36
32
|
/*</replacement>*/
|
37
33
|
|
38
34
|
var Buffer = require('buffer').Buffer;
|
35
|
+
/*<replacement>*/
|
36
|
+
var bufferShim = require('buffer-shims');
|
37
|
+
/*</replacement>*/
|
39
38
|
|
40
39
|
/*<replacement>*/
|
41
40
|
var util = require('core-util-is');
|
@@ -44,7 +43,7 @@ util.inherits = require('inherits');
|
|
44
43
|
|
45
44
|
/*<replacement>*/
|
46
45
|
var debugUtil = require('util');
|
47
|
-
var debug =
|
46
|
+
var debug = void 0;
|
48
47
|
if (debugUtil && debugUtil.debuglog) {
|
49
48
|
debug = debugUtil.debuglog('stream');
|
50
49
|
} else {
|
@@ -56,6 +55,19 @@ var StringDecoder;
|
|
56
55
|
|
57
56
|
util.inherits(Readable, Stream);
|
58
57
|
|
58
|
+
var hasPrependListener = typeof EE.prototype.prependListener === 'function';
|
59
|
+
|
60
|
+
function prependListener(emitter, event, fn) {
|
61
|
+
if (hasPrependListener) return emitter.prependListener(event, fn);
|
62
|
+
|
63
|
+
// This is a brutally ugly hack to make sure that our error handler
|
64
|
+
// is attached before any userland ones. NEVER DO THIS. This is here
|
65
|
+
// only because this code needs to continue to work with older versions
|
66
|
+
// of Node.js that do not include the prependListener() method. The goal
|
67
|
+
// is to eventually remove this hack.
|
68
|
+
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
|
69
|
+
}
|
70
|
+
|
59
71
|
var Duplex;
|
60
72
|
function ReadableState(options, stream) {
|
61
73
|
Duplex = Duplex || require('./_stream_duplex');
|
@@ -149,7 +161,7 @@ Readable.prototype.push = function (chunk, encoding) {
|
|
149
161
|
if (!state.objectMode && typeof chunk === 'string') {
|
150
162
|
encoding = encoding || state.defaultEncoding;
|
151
163
|
if (encoding !== state.encoding) {
|
152
|
-
chunk =
|
164
|
+
chunk = bufferShim.from(chunk, encoding);
|
153
165
|
encoding = '';
|
154
166
|
}
|
155
167
|
}
|
@@ -179,8 +191,8 @@ function readableAddChunk(stream, state, chunk, encoding, addToFront) {
|
|
179
191
|
var e = new Error('stream.push() after EOF');
|
180
192
|
stream.emit('error', e);
|
181
193
|
} else if (state.endEmitted && addToFront) {
|
182
|
-
var
|
183
|
-
stream.emit('error',
|
194
|
+
var _e = new Error('stream.unshift() after end event');
|
195
|
+
stream.emit('error', _e);
|
184
196
|
} else {
|
185
197
|
var skipAdd;
|
186
198
|
if (state.decoder && !addToFront && !encoding) {
|
@@ -533,7 +545,8 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
533
545
|
// If the user unpiped during `dest.write()`, it is possible
|
534
546
|
// to get stuck in a permanently paused state if that write
|
535
547
|
// also returned false.
|
536
|
-
|
548
|
+
// => Check whether `dest` is still a piping destination.
|
549
|
+
if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
|
537
550
|
debug('false write response, pause', src._readableState.awaitDrain);
|
538
551
|
src._readableState.awaitDrain++;
|
539
552
|
}
|
@@ -549,9 +562,9 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
549
562
|
dest.removeListener('error', onerror);
|
550
563
|
if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
|
551
564
|
}
|
552
|
-
|
553
|
-
// is attached before
|
554
|
-
|
565
|
+
|
566
|
+
// Make sure our error handler is attached before userland ones.
|
567
|
+
prependListener(dest, 'error', onerror);
|
555
568
|
|
556
569
|
// Both close and finish should trigger unpipe, but only once.
|
557
570
|
function onclose() {
|
@@ -825,16 +838,16 @@ function fromList(n, state) {
|
|
825
838
|
} else {
|
826
839
|
// complex case.
|
827
840
|
// we have enough to cover it, but it spans past the first buffer.
|
828
|
-
if (stringMode) ret = '';else ret =
|
841
|
+
if (stringMode) ret = '';else ret = bufferShim.allocUnsafe(n);
|
829
842
|
|
830
843
|
var c = 0;
|
831
844
|
for (var i = 0, l = list.length; i < l && c < n; i++) {
|
832
|
-
var
|
833
|
-
var cpy = Math.min(n - c,
|
845
|
+
var _buf = list[0];
|
846
|
+
var cpy = Math.min(n - c, _buf.length);
|
834
847
|
|
835
|
-
if (stringMode) ret +=
|
848
|
+
if (stringMode) ret += _buf.slice(0, cpy);else _buf.copy(ret, c, 0, cpy);
|
836
849
|
|
837
|
-
if (cpy <
|
850
|
+
if (cpy < _buf.length) list[0] = _buf.slice(cpy);else list.shift();
|
838
851
|
|
839
852
|
c += cpy;
|
840
853
|
}
|
@@ -849,7 +862,7 @@ function endReadable(stream) {
|
|
849
862
|
|
850
863
|
// If we get here before consuming all the bytes, then that is a
|
851
864
|
// bug in node. Should never happen.
|
852
|
-
if (state.length > 0) throw new Error('endReadable called on non-empty stream');
|
865
|
+
if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
|
853
866
|
|
854
867
|
if (!state.endEmitted) {
|
855
868
|
state.ended = true;
|
@@ -134,7 +134,7 @@ Transform.prototype.push = function (chunk, encoding) {
|
|
134
134
|
// an error, then that'll put the hurt on the whole operation. If you
|
135
135
|
// never call cb(), then you'll never get another chunk.
|
136
136
|
Transform.prototype._transform = function (chunk, encoding, cb) {
|
137
|
-
throw new Error('
|
137
|
+
throw new Error('Not implemented');
|
138
138
|
};
|
139
139
|
|
140
140
|
Transform.prototype._write = function (chunk, encoding, cb) {
|
@@ -172,9 +172,9 @@ function done(stream, er) {
|
|
172
172
|
var ws = stream._writableState;
|
173
173
|
var ts = stream._transformState;
|
174
174
|
|
175
|
-
if (ws.length) throw new Error('
|
175
|
+
if (ws.length) throw new Error('Calling transform done when ws.length != 0');
|
176
176
|
|
177
|
-
if (ts.transforming) throw new Error('
|
177
|
+
if (ts.transforming) throw new Error('Calling transform done when still transforming');
|
178
178
|
|
179
179
|
return stream.push(null);
|
180
180
|
}
|
@@ -14,10 +14,6 @@ var processNextTick = require('process-nextick-args');
|
|
14
14
|
var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;
|
15
15
|
/*</replacement>*/
|
16
16
|
|
17
|
-
/*<replacement>*/
|
18
|
-
var Buffer = require('buffer').Buffer;
|
19
|
-
/*</replacement>*/
|
20
|
-
|
21
17
|
Writable.WritableState = WritableState;
|
22
18
|
|
23
19
|
/*<replacement>*/
|
@@ -43,6 +39,9 @@ var Stream;
|
|
43
39
|
/*</replacement>*/
|
44
40
|
|
45
41
|
var Buffer = require('buffer').Buffer;
|
42
|
+
/*<replacement>*/
|
43
|
+
var bufferShim = require('buffer-shims');
|
44
|
+
/*</replacement>*/
|
46
45
|
|
47
46
|
util.inherits(Writable, Stream);
|
48
47
|
|
@@ -146,10 +145,9 @@ function WritableState(options, stream) {
|
|
146
145
|
// count buffered requests
|
147
146
|
this.bufferedRequestCount = 0;
|
148
147
|
|
149
|
-
//
|
150
|
-
//
|
148
|
+
// allocate the first CorkedRequest, there is always
|
149
|
+
// one allocated and free to use, and we maintain at most two
|
151
150
|
this.corkedRequestsFree = new CorkedRequest(this);
|
152
|
-
this.corkedRequestsFree.next = new CorkedRequest(this);
|
153
151
|
}
|
154
152
|
|
155
153
|
WritableState.prototype.getBuffer = function writableStateGetBuffer() {
|
@@ -196,7 +194,7 @@ function Writable(options) {
|
|
196
194
|
|
197
195
|
// Otherwise people can pipe Writable streams, which is just wrong.
|
198
196
|
Writable.prototype.pipe = function () {
|
199
|
-
this.emit('error', new Error('Cannot pipe
|
197
|
+
this.emit('error', new Error('Cannot pipe, not readable'));
|
200
198
|
};
|
201
199
|
|
202
200
|
function writeAfterEnd(stream, cb) {
|
@@ -213,9 +211,16 @@ function writeAfterEnd(stream, cb) {
|
|
213
211
|
// how many bytes or characters.
|
214
212
|
function validChunk(stream, state, chunk, cb) {
|
215
213
|
var valid = true;
|
216
|
-
|
217
|
-
|
218
|
-
|
214
|
+
var er = false;
|
215
|
+
// Always throw error if a null is written
|
216
|
+
// if we are not in object mode then throw
|
217
|
+
// if it is not a buffer, string, or undefined.
|
218
|
+
if (chunk === null) {
|
219
|
+
er = new TypeError('May not write null values to stream');
|
220
|
+
} else if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
|
221
|
+
er = new TypeError('Invalid non-string/buffer chunk');
|
222
|
+
}
|
223
|
+
if (er) {
|
219
224
|
stream.emit('error', er);
|
220
225
|
processNextTick(cb, er);
|
221
226
|
valid = false;
|
@@ -265,11 +270,12 @@ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
|
265
270
|
if (typeof encoding === 'string') encoding = encoding.toLowerCase();
|
266
271
|
if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
|
267
272
|
this._writableState.defaultEncoding = encoding;
|
273
|
+
return this;
|
268
274
|
};
|
269
275
|
|
270
276
|
function decodeChunk(state, chunk, encoding) {
|
271
277
|
if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
|
272
|
-
chunk =
|
278
|
+
chunk = bufferShim.from(chunk, encoding);
|
273
279
|
}
|
274
280
|
return chunk;
|
275
281
|
}
|
@@ -392,12 +398,16 @@ function clearBuffer(stream, state) {
|
|
392
398
|
|
393
399
|
doWrite(stream, state, true, state.length, buffer, '', holder.finish);
|
394
400
|
|
395
|
-
// doWrite is always async, defer these to save a bit of time
|
401
|
+
// doWrite is almost always async, defer these to save a bit of time
|
396
402
|
// as the hot path ends with doWrite
|
397
403
|
state.pendingcb++;
|
398
404
|
state.lastBufferedRequest = null;
|
399
|
-
|
400
|
-
|
405
|
+
if (holder.next) {
|
406
|
+
state.corkedRequestsFree = holder.next;
|
407
|
+
holder.next = null;
|
408
|
+
} else {
|
409
|
+
state.corkedRequestsFree = new CorkedRequest(state);
|
410
|
+
}
|
401
411
|
} else {
|
402
412
|
// Slow case, write chunks one-by-one
|
403
413
|
while (entry) {
|
@@ -1,26 +1,43 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
"readable-stream@^2.0.0 || ^1.1.13",
|
5
|
+
"/Users/eshanker/Code/fsevents/node_modules/are-we-there-yet"
|
6
|
+
]
|
7
|
+
],
|
8
|
+
"_from": "readable-stream@>=2.0.0 <3.0.0||>=1.1.13 <2.0.0",
|
9
|
+
"_id": "readable-stream@2.1.4",
|
10
|
+
"_inCache": true,
|
11
|
+
"_installable": true,
|
4
12
|
"_location": "/readable-stream",
|
5
|
-
"_nodeVersion": "5.
|
13
|
+
"_nodeVersion": "5.11.0",
|
6
14
|
"_npmOperationalInternal": {
|
7
15
|
"host": "packages-12-west.internal.npmjs.com",
|
8
|
-
"tmp": "tmp/readable-stream-2.
|
16
|
+
"tmp": "tmp/readable-stream-2.1.4.tgz_1463679605032_0.6917394688352942"
|
9
17
|
},
|
10
18
|
"_npmUser": {
|
11
19
|
"email": "calvin.metcalf@gmail.com",
|
12
20
|
"name": "cwmma"
|
13
21
|
},
|
14
|
-
"_npmVersion": "3.6
|
22
|
+
"_npmVersion": "3.8.6",
|
15
23
|
"_phantomChildren": {},
|
24
|
+
"_requested": {
|
25
|
+
"name": "readable-stream",
|
26
|
+
"raw": "readable-stream@^2.0.0 || ^1.1.13",
|
27
|
+
"rawSpec": "^2.0.0 || ^1.1.13",
|
28
|
+
"scope": null,
|
29
|
+
"spec": ">=2.0.0 <3.0.0||>=1.1.13 <2.0.0",
|
30
|
+
"type": "range"
|
31
|
+
},
|
16
32
|
"_requiredBy": [
|
17
33
|
"/are-we-there-yet",
|
18
|
-
"/bl",
|
19
34
|
"/tar-pack"
|
20
35
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.
|
22
|
-
"_shasum": "
|
36
|
+
"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.4.tgz",
|
37
|
+
"_shasum": "70b9791c6fcb8480db44bd155a0f6bb58f172468",
|
23
38
|
"_shrinkwrap": null,
|
39
|
+
"_spec": "readable-stream@^2.0.0 || ^1.1.13",
|
40
|
+
"_where": "/Users/eshanker/Code/fsevents/node_modules/are-we-there-yet",
|
24
41
|
"browser": {
|
25
42
|
"util": false
|
26
43
|
},
|
@@ -28,6 +45,7 @@
|
|
28
45
|
"url": "https://github.com/nodejs/readable-stream/issues"
|
29
46
|
},
|
30
47
|
"dependencies": {
|
48
|
+
"buffer-shims": "^1.0.0",
|
31
49
|
"core-util-is": "~1.0.0",
|
32
50
|
"inherits": "~2.0.1",
|
33
51
|
"isarray": "~1.0.0",
|
@@ -37,16 +55,19 @@
|
|
37
55
|
},
|
38
56
|
"description": "Streams3, a user-land copy of the stream library from Node.js",
|
39
57
|
"devDependencies": {
|
40
|
-
"
|
58
|
+
"assert": "~1.4.0",
|
59
|
+
"nyc": "^6.4.0",
|
60
|
+
"tap": "~0.7.1",
|
41
61
|
"tape": "~4.5.1",
|
42
|
-
"zuul": "~3.9.0"
|
62
|
+
"zuul": "~3.9.0",
|
63
|
+
"zuul-ngrok": "^4.0.0"
|
43
64
|
},
|
44
65
|
"directories": {},
|
45
66
|
"dist": {
|
46
|
-
"shasum": "
|
47
|
-
"tarball": "
|
67
|
+
"shasum": "70b9791c6fcb8480db44bd155a0f6bb58f172468",
|
68
|
+
"tarball": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.1.4.tgz"
|
48
69
|
},
|
49
|
-
"gitHead": "
|
70
|
+
"gitHead": "7752832fba237929388dea6c96911a0a6379abfc",
|
50
71
|
"homepage": "https://github.com/nodejs/readable-stream#readme",
|
51
72
|
"keywords": [
|
52
73
|
"pipe",
|
@@ -74,6 +95,11 @@
|
|
74
95
|
}
|
75
96
|
],
|
76
97
|
"name": "readable-stream",
|
98
|
+
"nyc": {
|
99
|
+
"include": [
|
100
|
+
"lib/**.js"
|
101
|
+
]
|
102
|
+
},
|
77
103
|
"optionalDependencies": {},
|
78
104
|
"readme": "ERROR: No README data found!",
|
79
105
|
"repository": {
|
@@ -82,8 +108,11 @@
|
|
82
108
|
},
|
83
109
|
"scripts": {
|
84
110
|
"browser": "npm run write-zuul && zuul -- test/browser.js",
|
111
|
+
"cover": "nyc npm test",
|
112
|
+
"local": "zuul --local -- test/browser.js",
|
113
|
+
"report": "nyc report --reporter=lcov",
|
85
114
|
"test": "tap test/parallel/*.js test/ours/*.js",
|
86
|
-
"write-zuul": "printf \"ui: tape\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml"
|
115
|
+
"write-zuul": "printf \"ui: tape\ntunnel: ngrok\nbrowsers:\n - name: $BROWSER_NAME\n version: $BROWSER_VERSION\n\">.zuul.yml"
|
87
116
|
},
|
88
|
-
"version": "2.
|
117
|
+
"version": "2.1.4"
|
89
118
|
}
|
@@ -10,3 +10,7 @@ exports.Writable = require('./lib/_stream_writable.js');
|
|
10
10
|
exports.Duplex = require('./lib/_stream_duplex.js');
|
11
11
|
exports.Transform = require('./lib/_stream_transform.js');
|
12
12
|
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
13
|
+
|
14
|
+
if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
|
15
|
+
module.exports = Stream;
|
16
|
+
}
|
@@ -1,15 +1,21 @@
|
|
1
|
+
|
1
2
|
language: node_js
|
3
|
+
|
2
4
|
node_js:
|
3
5
|
- node
|
4
|
-
-
|
6
|
+
- 4
|
5
7
|
- 0.12
|
6
8
|
- 0.10
|
7
|
-
sudo: false
|
8
9
|
|
9
|
-
after_script:
|
10
|
+
after_script:
|
11
|
+
- npm run test-cov
|
12
|
+
- codecov
|
13
|
+
- cat ./coverage/lcov.info | coveralls
|
10
14
|
|
11
15
|
webhooks:
|
12
16
|
urls: https://webhooks.gitter.im/e/237280ed4796c19cc626
|
13
17
|
on_success: change # options: [always|never|change] default: always
|
14
18
|
on_failure: always # options: [always|never|change] default: always
|
15
19
|
on_start: false # default: false
|
20
|
+
|
21
|
+
sudo: false
|
@@ -1,5 +1,49 @@
|
|
1
1
|
## Change Log
|
2
2
|
|
3
|
+
### v2.73.0 (2016/07/09)
|
4
|
+
- [#2240](https://github.com/request/request/pull/2240) Remove connectionErrorHandler to fix #1903 (@zarenner)
|
5
|
+
- [#2251](https://github.com/request/request/pull/2251) tape@4.6.0 breaks build 🚨 (@greenkeeperio-bot)
|
6
|
+
- [#2225](https://github.com/request/request/pull/2225) Update docs (@ArtskydJ)
|
7
|
+
- [#2203](https://github.com/request/request/pull/2203) Update browserify to version 13.0.1 🚀 (@greenkeeperio-bot)
|
8
|
+
- [#2275](https://github.com/request/request/pull/2275) Update karma to version 1.1.1 🚀 (@greenkeeperio-bot)
|
9
|
+
- [#2204](https://github.com/request/request/pull/2204) Add codecov.yml and disable PR comments (@simov)
|
10
|
+
- [#2212](https://github.com/request/request/pull/2212) Fix link to http.IncomingMessage documentation (@nazieb)
|
11
|
+
- [#2208](https://github.com/request/request/pull/2208) Update to form-data RC4 and pass null values to it (@simov)
|
12
|
+
- [#2207](https://github.com/request/request/pull/2207) Move aws4 require statement to the top (@simov)
|
13
|
+
- [#2199](https://github.com/request/request/pull/2199) Update karma-coverage to version 1.0.0 🚀 (@greenkeeperio-bot)
|
14
|
+
- [#2206](https://github.com/request/request/pull/2206) Update qs to version 6.2.0 🚀 (@greenkeeperio-bot)
|
15
|
+
- [#2205](https://github.com/request/request/pull/2205) Use server-destory to close hanging sockets in tests (@simov)
|
16
|
+
- [#2200](https://github.com/request/request/pull/2200) Update karma-cli to version 1.0.0 🚀 (@greenkeeperio-bot)
|
17
|
+
|
18
|
+
### v2.72.0 (2016/04/17)
|
19
|
+
- [#2176](https://github.com/request/request/pull/2176) Do not try to pipe Gzip responses with no body (@simov)
|
20
|
+
- [#2175](https://github.com/request/request/pull/2175) Add 'delete' alias for the 'del' API method (@simov, @MuhanZou)
|
21
|
+
- [#2172](https://github.com/request/request/pull/2172) Add support for deflate content encoding (@czardoz)
|
22
|
+
- [#2169](https://github.com/request/request/pull/2169) Add callback option (@simov)
|
23
|
+
- [#2165](https://github.com/request/request/pull/2165) Check for self.req existence inside the write method (@simov)
|
24
|
+
- [#2167](https://github.com/request/request/pull/2167) Fix TravisCI badge reference master branch (@a0viedo)
|
25
|
+
|
26
|
+
### v2.71.0 (2016/04/12)
|
27
|
+
- [#2164](https://github.com/request/request/pull/2164) Catch errors from the underlying http module (@simov)
|
28
|
+
|
29
|
+
### v2.70.0 (2016/04/05)
|
30
|
+
- [#2147](https://github.com/request/request/pull/2147) Update eslint to version 2.5.3 🚀 (@simov, @greenkeeperio-bot)
|
31
|
+
- [#2009](https://github.com/request/request/pull/2009) Support JSON stringify replacer argument. (@elyobo)
|
32
|
+
- [#2142](https://github.com/request/request/pull/2142) Update eslint to version 2.5.1 🚀 (@greenkeeperio-bot)
|
33
|
+
- [#2128](https://github.com/request/request/pull/2128) Update browserify-istanbul to version 2.0.0 🚀 (@greenkeeperio-bot)
|
34
|
+
- [#2115](https://github.com/request/request/pull/2115) Update eslint to version 2.3.0 🚀 (@simov, @greenkeeperio-bot)
|
35
|
+
- [#2089](https://github.com/request/request/pull/2089) Fix badges (@simov)
|
36
|
+
- [#2092](https://github.com/request/request/pull/2092) Update browserify-istanbul to version 1.0.0 🚀 (@greenkeeperio-bot)
|
37
|
+
- [#2079](https://github.com/request/request/pull/2079) Accept read stream as body option (@simov)
|
38
|
+
- [#2070](https://github.com/request/request/pull/2070) Update bl to version 1.1.2 🚀 (@greenkeeperio-bot)
|
39
|
+
- [#2063](https://github.com/request/request/pull/2063) Up bluebird and oauth-sign (@simov)
|
40
|
+
- [#2058](https://github.com/request/request/pull/2058) Karma fixes for latest versions (@eiriksm)
|
41
|
+
- [#2057](https://github.com/request/request/pull/2057) Update contributing guidelines (@simov)
|
42
|
+
- [#2054](https://github.com/request/request/pull/2054) Update qs to version 6.1.0 🚀 (@greenkeeperio-bot)
|
43
|
+
|
44
|
+
### v2.69.0 (2016/01/27)
|
45
|
+
- [#2041](https://github.com/request/request/pull/2041) restore aws4 as regular dependency (@rmg)
|
46
|
+
|
3
47
|
### v2.68.0 (2016/01/27)
|
4
48
|
- [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
|
5
49
|
- [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
|
@@ -152,7 +196,7 @@
|
|
152
196
|
- [#1460](https://github.com/request/request/pull/1460) localAddress or proxy config is lost when redirecting (@simov, @0x4139)
|
153
197
|
- [#1453](https://github.com/request/request/pull/1453) Test on Node.js 0.12 and io.js with allowed failures (@nicolasmccurdy, @demohi)
|
154
198
|
- [#1426](https://github.com/request/request/pull/1426) Fixing tests to pass on io.js and node 0.12 (only test-https.js stiff failing) (@mikeal)
|
155
|
-
- [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @
|
199
|
+
- [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimon)
|
156
200
|
- [#1428](https://github.com/request/request/pull/1428) Deprecate Node v0.8.x (@nylen)
|
157
201
|
- [#1436](https://github.com/request/request/pull/1436) Add ability to set a requester without setting default options (@tikotzky)
|
158
202
|
- [#1435](https://github.com/request/request/pull/1435) dry up verb methods (@sethpollack)
|
@@ -280,7 +324,7 @@
|
|
280
324
|
- [#1131](https://github.com/request/request/pull/1131) Update pool documentation (@FredKSchott)
|
281
325
|
- [#1143](https://github.com/request/request/pull/1143) Rewrite all tests to use tape (@nylen)
|
282
326
|
- [#1137](https://github.com/request/request/pull/1137) Add ability to specifiy querystring lib in options. (@jgrund)
|
283
|
-
- [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@
|
327
|
+
- [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@slimelabs)
|
284
328
|
- [#1134](https://github.com/request/request/pull/1134) Fix multiple redirects and `self.followRedirect` (@blakeembrey)
|
285
329
|
- [#1130](https://github.com/request/request/pull/1130) documentation fix: add note about npm test for contributing (@FredKSchott)
|
286
330
|
- [#1120](https://github.com/request/request/pull/1120) Support/refactor request setup tunnel (@seanstrom)
|
@@ -453,24 +497,18 @@
|
|
453
497
|
### v2.23.0 (2013/07/23)
|
454
498
|
- [#589](https://github.com/request/request/pull/589) Prevent setting headers after they are sent (@geek)
|
455
499
|
- [#587](https://github.com/request/request/pull/587) Global cookie jar disabled by default (@threepointone)
|
456
|
-
|
457
|
-
### v2.22.0 (2013/07/05)
|
458
500
|
- [#544](https://github.com/request/request/pull/544) Update http-signature version. (@davidlehn)
|
459
501
|
- [#581](https://github.com/request/request/pull/581) Fix spelling of "ignoring." (@bigeasy)
|
460
502
|
- [#568](https://github.com/request/request/pull/568) use agentOptions to create agent when specified in request (@SamPlacette)
|
461
503
|
- [#564](https://github.com/request/request/pull/564) Fix redirections (@criloz)
|
462
504
|
- [#541](https://github.com/request/request/pull/541) The exported request function doesn't have an auth method (@tschaub)
|
463
505
|
- [#542](https://github.com/request/request/pull/542) Expose Request class (@regality)
|
464
|
-
|
465
|
-
### v2.21.0 (2013/04/30)
|
466
506
|
- [#536](https://github.com/request/request/pull/536) Allow explicitly empty user field for basic authentication. (@mikeando)
|
467
507
|
- [#532](https://github.com/request/request/pull/532) fix typo (@fredericosilva)
|
468
508
|
- [#497](https://github.com/request/request/pull/497) Added redirect event (@Cauldrath)
|
469
509
|
- [#503](https://github.com/request/request/pull/503) Fix basic auth for passwords that contain colons (@tonistiigi)
|
470
510
|
- [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway421)
|
471
511
|
- [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
|
472
|
-
|
473
|
-
### v2.18.0 (2013/04/22)
|
474
512
|
- [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway421)
|
475
513
|
- [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway421)
|
476
514
|
- [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
|
@@ -1,19 +1,57 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
# Contributing to Request
|
3
|
+
|
4
|
+
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
|
5
|
+
|
6
|
+
The following is a set of guidelines for contributing to Request and its packages, which are hosted in the [Request Organization](https://github.com/request) on GitHub.
|
7
|
+
These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request.
|
8
|
+
|
9
|
+
|
10
|
+
## Submitting an Issue
|
11
|
+
|
12
|
+
1. Provide a small self **sufficient** code example to **reproduce** the issue.
|
13
|
+
2. Run your test code using [request-debug](https://github.com/request/request-debug) and copy/paste the results inside the issue.
|
14
|
+
3. You should **always** use fenced code blocks when submitting code examples or any other formatted output:
|
15
|
+
<pre>
|
16
|
+
```js
|
17
|
+
put your javascript code here
|
18
|
+
```
|
19
|
+
|
20
|
+
```
|
21
|
+
put any other formatted output here,
|
22
|
+
like for example the one returned from using request-debug
|
23
|
+
```
|
24
|
+
</pre>
|
25
|
+
|
26
|
+
If the problem cannot be reliably reproduced, the issue will be marked as `Not enough info (see CONTRIBUTING.md)`.
|
27
|
+
|
28
|
+
If the problem is not related to request the issue will be marked as `Help (please use Stackoverflow)`.
|
29
|
+
|
30
|
+
|
31
|
+
## Submitting a Pull Request
|
32
|
+
|
33
|
+
1. In almost all of the cases your PR **needs tests**. Make sure you have any.
|
34
|
+
2. Run `npm test` locally. Fix any errors before pushing to GitHub.
|
35
|
+
3. After submitting the PR a build will be triggered on TravisCI. Wait for it to ends and make sure all jobs are passing.
|
36
|
+
|
2
37
|
|
3
38
|
-----------------------------------------
|
4
39
|
|
5
|
-
|
40
|
+
|
41
|
+
## Becoming a Contributor
|
6
42
|
|
7
43
|
Individuals making significant and valuable contributions are given
|
8
44
|
commit-access to the project to contribute as they see fit. This project is
|
9
45
|
more like an open wiki than a standard guarded open source project.
|
10
46
|
|
47
|
+
|
11
48
|
## Rules
|
12
49
|
|
13
50
|
There are a few basic ground-rules for contributors:
|
14
51
|
|
15
52
|
1. **No `--force` pushes** or modifying the Git history in any way.
|
16
53
|
1. **Non-master branches** ought to be used for ongoing work.
|
54
|
+
1. **Any** change should be added through Pull Request.
|
17
55
|
1. **External API changes and significant modifications** ought to be subject
|
18
56
|
to an **internal pull-request** to solicit feedback from other contributors.
|
19
57
|
1. Internal pull-requests to solicit feedback are *encouraged* for any other
|
@@ -35,10 +73,9 @@ There are a few basic ground-rules for contributors:
|
|
35
73
|
|
36
74
|
Declaring formal releases remains the prerogative of the project maintainer.
|
37
75
|
|
76
|
+
|
38
77
|
## Changes to this arrangement
|
39
78
|
|
40
79
|
This is an experiment and feedback is welcome! This document may also be
|
41
80
|
subject to pull-requests or changes by contributors where you believe you have
|
42
81
|
something valuable to add or change.
|
43
|
-
|
44
|
-
-----------------------------------------
|
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)
|
5
5
|
|
6
|
-
[![Build status](https://img.shields.io/travis/request/request.svg?style=flat-square)](https://travis-ci.org/request/request)
|
6
|
+
[![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request)
|
7
7
|
[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)
|
8
8
|
[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)
|
9
9
|
[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)
|
10
|
+
[![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request)
|
10
11
|
[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)
|
11
12
|
|
12
13
|
|
@@ -66,7 +67,7 @@ Request can also `pipe` to itself. When doing so, `content-type` and `content-le
|
|
66
67
|
request.get('http://google.com/img.png').pipe(request.put('http://mysite.com/img.png'))
|
67
68
|
```
|
68
69
|
|
69
|
-
Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](
|
70
|
+
Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
|
70
71
|
|
71
72
|
```js
|
72
73
|
request
|
@@ -600,7 +601,6 @@ var options = {
|
|
600
601
|
key: fs.readFileSync(keyFile),
|
601
602
|
passphrase: 'password',
|
602
603
|
ca: fs.readFileSync(caFile)
|
603
|
-
}
|
604
604
|
};
|
605
605
|
|
606
606
|
request.get(options);
|
@@ -733,7 +733,7 @@ The first argument can be either a `url` or an `options` object. The only requir
|
|
733
733
|
|
734
734
|
---
|
735
735
|
|
736
|
-
- `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer
|
736
|
+
- `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer`, `String` or `ReadStream`. If `json` is `true`, then `body` must be a JSON-serializable object.
|
737
737
|
- `form` - when passed an object or a querystring, this sets `body` to a querystring representation of value, and adds `Content-type: application/x-www-form-urlencoded` header. When passed no options, a `FormData` instance is returned (and is piped to request). See "Forms" section above.
|
738
738
|
- `formData` - Data to pass for a `multipart/form-data` request. See
|
739
739
|
[Forms](#forms) section above.
|
@@ -748,6 +748,7 @@ The first argument can be either a `url` or an `options` object. The only requir
|
|
748
748
|
- `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request.
|
749
749
|
- `json` - sets `body` to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON.
|
750
750
|
- `jsonReviver` - a [reviver function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) that will be passed to `JSON.parse()` when parsing a JSON response body.
|
751
|
+
- `jsonReplacer` - a [replacer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that will be passed to `JSON.stringify()` when stringifying a JSON request body.
|
751
752
|
|
752
753
|
---
|
753
754
|
|
@@ -812,11 +813,12 @@ default in Linux can be anywhere from 20-120 seconds][linux-timeout]).
|
|
812
813
|
|
813
814
|
- `time` - If `true`, the request-response cycle (including all redirects) is timed at millisecond resolution, and the result provided on the response's `elapsedTime` property.
|
814
815
|
- `har` - A [HAR 1.2 Request Object](http://www.softwareishard.com/blog/har-12-spec/#request), will be processed from HAR format into options overwriting matching values *(see the [HAR 1.2 section](#support-for-har-1.2) for details)*
|
816
|
+
- `callback` - alternatively pass the request's callback in the options object
|
815
817
|
|
816
818
|
The callback argument gets 3 arguments:
|
817
819
|
|
818
820
|
1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object)
|
819
|
-
2. An [`http.IncomingMessage`](
|
821
|
+
2. An [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) object
|
820
822
|
3. The third is the `response` body (`String` or `Buffer`, or JSON object if the `json` option is supplied)
|
821
823
|
|
822
824
|
[back to top](#table-of-contents)
|
@@ -886,12 +888,13 @@ Same as `request()`, but defaults to `method: "HEAD"`.
|
|
886
888
|
request.head(url)
|
887
889
|
```
|
888
890
|
|
889
|
-
### request.del
|
891
|
+
### request.del / request.delete
|
890
892
|
|
891
893
|
Same as `request()`, but defaults to `method: "DELETE"`.
|
892
894
|
|
893
895
|
```js
|
894
896
|
request.del(url)
|
897
|
+
request.delete(url)
|
895
898
|
```
|
896
899
|
|
897
900
|
### request.get
|