fsevents 1.0.5 → 1.0.6
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.
- package/Readme.md +12 -13
- package/node_modules/ansi/package.json +1 -2
- package/node_modules/are-we-there-yet/package.json +1 -2
- package/node_modules/asn1/.travis.yml +4 -0
- package/node_modules/asn1/lib/ber/reader.js +27 -33
- package/node_modules/asn1/lib/ber/writer.js +10 -11
- package/node_modules/asn1/package.json +21 -19
- package/node_modules/asn1/tst/ber/reader.test.js +36 -0
- package/node_modules/asn1/tst/ber/writer.test.js +74 -0
- package/node_modules/assert-plus/package.json +1 -0
- package/node_modules/{ctype → bl/node_modules/readable-stream/node_modules/core-util-is}/LICENSE +1 -6
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/boom/package.json +1 -1
- package/node_modules/commander/package.json +1 -1
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/core-util-is/package.json +17 -12
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/dashdash/README.md +508 -0
- package/node_modules/dashdash/lib/dashdash.js +813 -0
- package/node_modules/dashdash/package.json +87 -0
- package/node_modules/deep-extend/LICENSE +1 -1
- package/node_modules/deep-extend/README.md +89 -52
- package/node_modules/deep-extend/index.js +1 -90
- package/node_modules/deep-extend/lib/deep-extend.js +144 -0
- package/node_modules/deep-extend/package.json +47 -16
- package/node_modules/deep-extend/test/index.spec.js +168 -5
- package/node_modules/delegates/package.json +1 -2
- package/node_modules/ecc-jsbn/.npmignore +15 -0
- package/node_modules/ecc-jsbn/LICENSE +21 -0
- package/node_modules/ecc-jsbn/README.md +8 -0
- package/node_modules/ecc-jsbn/index.js +57 -0
- package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- package/node_modules/ecc-jsbn/lib/ec.js +561 -0
- package/node_modules/ecc-jsbn/lib/sec.js +170 -0
- package/node_modules/ecc-jsbn/package.json +63 -0
- package/node_modules/ecc-jsbn/test.js +14 -0
- package/node_modules/extsprintf/.gitmodules +6 -0
- package/node_modules/{path-is-absolute/license → extsprintf/LICENSE} +2 -4
- package/node_modules/extsprintf/Makefile +23 -0
- package/node_modules/extsprintf/Makefile.deps +39 -0
- package/node_modules/extsprintf/Makefile.targ +285 -0
- package/node_modules/extsprintf/README.md +39 -0
- package/node_modules/extsprintf/examples/simple.js +2 -0
- package/node_modules/{ctype/tools/jsl.conf → extsprintf/jsl.node.conf} +71 -63
- package/node_modules/extsprintf/lib/extsprintf.js +166 -0
- package/node_modules/extsprintf/package.json +48 -0
- package/node_modules/fstream/package.json +1 -2
- package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/package.json +4 -22
- package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/package.json +3 -21
- package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/package.json +4 -23
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +4 -24
- package/node_modules/fstream-ignore/package.json +1 -2
- package/node_modules/gauge/package.json +1 -2
- package/node_modules/har-validator/package.json +15 -15
- package/node_modules/has-unicode/package.json +1 -2
- package/node_modules/hawk/dist/client.js +340 -0
- package/node_modules/hawk/lib/browser.js +14 -20
- package/node_modules/hawk/package.json +10 -10
- package/node_modules/hawk/test/browser.js +134 -101
- package/node_modules/hawk/test/index.js +61 -61
- package/node_modules/hawk/test/server.js +72 -84
- package/node_modules/hawk/test/uri.js +52 -63
- package/node_modules/http-signature/CHANGES.md +39 -0
- package/node_modules/http-signature/http_signing.md +16 -17
- package/node_modules/http-signature/lib/index.js +6 -4
- package/node_modules/http-signature/lib/parser.js +43 -29
- package/node_modules/http-signature/lib/signer.js +290 -74
- package/node_modules/http-signature/lib/utils.js +112 -0
- package/node_modules/http-signature/lib/verify.js +47 -15
- package/node_modules/http-signature/package.json +20 -14
- package/node_modules/is-my-json-valid/index.js +16 -14
- package/node_modules/is-my-json-valid/package.json +16 -12
- package/node_modules/is-typedarray/LICENSE.md +18 -0
- package/node_modules/is-typedarray/README.md +16 -0
- package/node_modules/is-typedarray/index.js +41 -0
- package/node_modules/is-typedarray/package.json +63 -0
- package/node_modules/is-typedarray/test.js +34 -0
- package/node_modules/jodid25519/.npmignore +11 -0
- package/node_modules/jodid25519/.travis.yml +7 -0
- package/node_modules/jodid25519/AUTHORS.md +3 -0
- package/node_modules/jodid25519/LICENSE +23 -0
- package/node_modules/jodid25519/README.md +51 -0
- package/node_modules/jodid25519/almond.0 +42 -0
- package/node_modules/jodid25519/almond.1 +13 -0
- package/node_modules/jodid25519/index.js +35 -0
- package/node_modules/jodid25519/jsdoc.json +19 -0
- package/node_modules/jodid25519/lib/core.js +481 -0
- package/node_modules/jodid25519/lib/curve255.js +221 -0
- package/node_modules/jodid25519/lib/dh.js +111 -0
- package/node_modules/jodid25519/lib/eddsa.js +573 -0
- package/node_modules/jodid25519/lib/utils.js +198 -0
- package/node_modules/jodid25519/package.json +77 -0
- package/node_modules/jsbn/.npmignore +2 -0
- package/node_modules/jsbn/LICENSE +40 -0
- package/node_modules/jsbn/README.md +175 -0
- package/node_modules/jsbn/example.html +12 -0
- package/node_modules/jsbn/example.js +3 -0
- package/node_modules/jsbn/index.js +1358 -0
- package/node_modules/jsbn/package.json +60 -0
- package/node_modules/json-schema/README.md +5 -0
- package/node_modules/json-schema/draft-00/hyper-schema +68 -0
- package/node_modules/json-schema/draft-00/json-ref +26 -0
- package/node_modules/json-schema/draft-00/links +33 -0
- package/node_modules/json-schema/draft-00/schema +155 -0
- package/node_modules/json-schema/draft-01/hyper-schema +68 -0
- package/node_modules/json-schema/draft-01/json-ref +26 -0
- package/node_modules/json-schema/draft-01/links +33 -0
- package/node_modules/json-schema/draft-01/schema +155 -0
- package/node_modules/json-schema/draft-02/hyper-schema +68 -0
- package/node_modules/json-schema/draft-02/json-ref +26 -0
- package/node_modules/json-schema/draft-02/links +35 -0
- package/node_modules/json-schema/draft-02/schema +166 -0
- package/node_modules/json-schema/draft-03/examples/address +20 -0
- package/node_modules/json-schema/draft-03/examples/calendar +53 -0
- package/node_modules/json-schema/draft-03/examples/card +105 -0
- package/node_modules/json-schema/draft-03/examples/geo +8 -0
- package/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- package/node_modules/json-schema/draft-03/hyper-schema +60 -0
- package/node_modules/json-schema/draft-03/json-ref +26 -0
- package/node_modules/json-schema/draft-03/links +35 -0
- package/node_modules/json-schema/draft-03/schema +174 -0
- package/node_modules/json-schema/draft-04/hyper-schema +60 -0
- package/node_modules/json-schema/draft-04/links +41 -0
- package/node_modules/json-schema/draft-04/schema +189 -0
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- package/node_modules/json-schema/lib/links.js +52 -0
- package/node_modules/json-schema/lib/validate.js +260 -0
- package/node_modules/json-schema/package.json +67 -0
- package/node_modules/json-schema/test/tests.js +95 -0
- package/node_modules/jsprim/CHANGES.md +30 -0
- package/node_modules/jsprim/LICENSE +19 -0
- package/node_modules/jsprim/README.md +228 -0
- package/node_modules/jsprim/lib/jsprim.js +478 -0
- package/node_modules/jsprim/package.json +54 -0
- package/node_modules/lodash._basetostring/package.json +1 -2
- package/node_modules/lodash._createpadding/package.json +1 -2
- package/node_modules/lodash.pad/package.json +1 -2
- package/node_modules/lodash.padleft/package.json +1 -2
- package/node_modules/lodash.padright/package.json +1 -2
- package/node_modules/lodash.repeat/package.json +1 -2
- package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
- package/node_modules/node-pre-gyp/README.md +570 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
- package/node_modules/node-pre-gyp/node_modules/nopt/lib/nopt.js +2 -1
- package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/package.json +30 -37
- package/node_modules/node-pre-gyp/node_modules/nopt/package.json +37 -57
- package/node_modules/node-pre-gyp/node_modules/nopt/test/basic.js +22 -0
- package/node_modules/node-pre-gyp/package.json +17 -17
- package/node_modules/node-uuid/.npmignore +2 -0
- package/node_modules/node-uuid/README.md +12 -1
- package/node_modules/node-uuid/bower.json +1 -1
- package/node_modules/node-uuid/component.json +11 -4
- package/node_modules/node-uuid/package.json +25 -12
- package/node_modules/node-uuid/test/test.js +3 -0
- package/node_modules/node-uuid/uuid.js +70 -45
- package/node_modules/npmlog/.travis.yml +14 -0
- package/node_modules/npmlog/log.js +3 -0
- package/node_modules/npmlog/package.json +23 -20
- package/node_modules/npmlog/test/basic.js +8 -1
- package/node_modules/once/package.json +2 -3
- package/node_modules/pinkie/index.js +23 -7
- package/node_modules/pinkie/package.json +22 -15
- package/node_modules/pinkie/readme.md +17 -9
- package/node_modules/pinkie-promise/package.json +16 -14
- package/node_modules/pinkie-promise/readme.md +5 -3
- package/node_modules/rc/README.md +1 -1
- package/node_modules/rc/index.js +1 -1
- package/node_modules/rc/node_modules/minimist/package.json +1 -1
- package/node_modules/rc/package.json +12 -12
- package/node_modules/request/.eslintrc +1 -1
- package/node_modules/request/.travis.yml +4 -4
- package/node_modules/request/CHANGELOG.md +25 -0
- package/node_modules/request/README.md +12 -13
- package/node_modules/request/lib/har.js +84 -75
- package/node_modules/request/lib/redirect.js +2 -3
- package/node_modules/request/lib/tunnel.js +13 -18
- package/node_modules/request/package.json +17 -16
- package/node_modules/request/request.js +16 -59
- package/node_modules/rimraf/README.md +7 -2
- package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/package.json +5 -25
- package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/package.json +5 -25
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +42 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +25 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +122 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +8 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +191 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +2 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +3 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +80 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +5 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +38 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +79 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +56 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +13 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +90 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +81 -0
- package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/package.json +3 -21
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +36 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +58 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +51 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +70 -0
- package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/package.json +4 -22
- package/node_modules/rimraf/node_modules/glob/package.json +2 -20
- package/node_modules/rimraf/package.json +10 -10
- package/node_modules/semver/README.md +25 -1
- package/node_modules/semver/package.json +10 -10
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +0 -12
- package/node_modules/sshpk/.npmignore +8 -0
- package/node_modules/sshpk/.travis.yml +11 -0
- package/node_modules/sshpk/LICENSE +18 -0
- package/node_modules/sshpk/README.md +436 -0
- package/node_modules/sshpk/bin/sshpk-conv +183 -0
- package/node_modules/sshpk/lib/algs.js +168 -0
- package/node_modules/sshpk/lib/dhe.js +312 -0
- package/node_modules/sshpk/lib/ed-compat.js +94 -0
- package/node_modules/sshpk/lib/errors.js +58 -0
- package/node_modules/sshpk/lib/fingerprint.js +140 -0
- package/node_modules/sshpk/lib/formats/auto.js +73 -0
- package/node_modules/sshpk/lib/formats/pem.js +152 -0
- package/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- package/node_modules/sshpk/lib/formats/pkcs8.js +510 -0
- package/node_modules/sshpk/lib/formats/rfc4253.js +145 -0
- package/node_modules/sshpk/lib/formats/ssh-private.js +138 -0
- package/node_modules/sshpk/lib/formats/ssh.js +114 -0
- package/node_modules/sshpk/lib/index.js +25 -0
- package/node_modules/sshpk/lib/key.js +260 -0
- package/node_modules/sshpk/lib/private-key.js +224 -0
- package/node_modules/sshpk/lib/signature.js +237 -0
- package/node_modules/sshpk/lib/ssh-buffer.js +123 -0
- package/node_modules/sshpk/lib/utils.js +207 -0
- package/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +8 -0
- package/node_modules/sshpk/node_modules/assert-plus/README.md +155 -0
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +206 -0
- package/node_modules/sshpk/node_modules/assert-plus/package.json +88 -0
- package/node_modules/sshpk/package.json +92 -0
- package/node_modules/strip-json-comments/cli.js +2 -2
- package/node_modules/strip-json-comments/package.json +13 -12
- package/node_modules/strip-json-comments/readme.md +11 -5
- package/node_modules/strip-json-comments/strip-json-comments.js +16 -7
- package/node_modules/tar/package.json +1 -2
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +11 -11
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +17 -12
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/test.js +68 -0
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
- package/node_modules/tar-pack/node_modules/rimraf/package.json +1 -2
- package/node_modules/tar-pack/package.json +1 -2
- package/node_modules/tough-cookie/lib/cookie.js +1 -1
- package/node_modules/tough-cookie/package.json +7 -7
- package/node_modules/tweetnacl/.npmignore +4 -0
- package/node_modules/tweetnacl/CHANGELOG.md +128 -0
- package/node_modules/tweetnacl/README.md +463 -0
- package/node_modules/tweetnacl/nacl-fast.js +2418 -0
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- package/node_modules/tweetnacl/nacl.js +1205 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/tweetnacl/package.json +101 -0
- package/node_modules/uid-number/package.json +2 -3
- package/node_modules/verror/.gitmodules +0 -0
- package/node_modules/verror/LICENSE +19 -0
- package/node_modules/verror/Makefile +35 -0
- package/node_modules/verror/Makefile.targ +285 -0
- package/node_modules/verror/README.md +120 -0
- package/node_modules/verror/examples/levels-verror.js +36 -0
- package/node_modules/verror/examples/levels-werror.js +34 -0
- package/node_modules/verror/examples/varargs.js +6 -0
- package/node_modules/verror/examples/verror.js +13 -0
- package/node_modules/verror/examples/werror.js +14 -0
- package/node_modules/verror/jsl.node.conf +139 -0
- package/node_modules/verror/lib/verror.js +157 -0
- package/node_modules/verror/package.json +51 -0
- package/node_modules/verror/tests/tst.inherit.js +100 -0
- package/node_modules/verror/tests/tst.verror.js +156 -0
- package/node_modules/verror/tests/tst.werror.js +179 -0
- package/package.json +3 -3
- package/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/core-util-is/util.js +0 -106
- package/node_modules/ctype/.npmignore +0 -1
- package/node_modules/ctype/CHANGELOG +0 -78
- package/node_modules/ctype/README +0 -82
- package/node_modules/ctype/README.old +0 -298
- package/node_modules/ctype/ctf.js +0 -245
- package/node_modules/ctype/ctio.js +0 -1485
- package/node_modules/ctype/ctype.js +0 -944
- package/node_modules/ctype/man/man3ctype/ctio.3ctype +0 -241
- package/node_modules/ctype/package.json +0 -51
- package/node_modules/ctype/tools/jsstyle +0 -839
- package/node_modules/http-signature/lib/util.js +0 -306
- package/node_modules/inflight/node_modules/once/package.json +0 -86
- package/node_modules/inflight/node_modules/once/test/once.js +0 -23
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/once/README.md +0 -51
- package/node_modules/rimraf/node_modules/once/once.js +0 -21
- package/node_modules/rimraf/node_modules/once/package.json +0 -84
- package/node_modules/rimraf/node_modules/once/test/once.js +0 -23
- package/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/util.js +0 -106
- package/node_modules/wrappy/LICENSE +0 -15
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/.npmignore +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/example.js +0 -0
- /package/node_modules/{brace-expansion → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.npmignore +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/.travis.yml +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/LICENSE.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/Makefile +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/README.md +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/example.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/index.js +0 -0
- /package/node_modules/{balanced-match → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match}/test/balanced.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/.travis.yml +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/LICENSE +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/README.markdown +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/example/map.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/index.js +0 -0
- /package/node_modules/{concat-map → fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map}/test/map.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.npmignore +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/.travis.yml +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/CONTRIBUTING.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/LICENSE +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/README.md +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/abbrev.js +0 -0
- /package/node_modules/{abbrev → node-pre-gyp/node_modules/nopt/node_modules/abbrev}/test.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/.eslintrc +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/README.md +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/inflight.js +0 -0
- /package/node_modules/{fstream-ignore/node_modules/minimatch → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/README.md +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/test/basic.js +0 -0
- /package/node_modules/{wrappy → rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy}/wrappy.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob/node_modules/inflight}/test.js +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/README.md +0 -0
- /package/node_modules/rimraf/node_modules/{minimatch → glob/node_modules/minimatch}/minimatch.js +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/README.md +0 -0
- /package/node_modules/{inflight/node_modules/once → rimraf/node_modules/glob/node_modules/once/node_modules/wrappy}/LICENSE +0 -0
- /package/node_modules/{inflight → rimraf/node_modules/glob}/node_modules/once/once.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/index.js +0 -0
- /package/node_modules/{path-is-absolute → rimraf/node_modules/glob/node_modules/path-is-absolute}/readme.md +0 -0
- /package/node_modules/{deep-extend → verror}/.npmignore +0 -0
@@ -161,7 +161,7 @@ request.post({url:'http://service.com/upload', form: {key:'value'}}, function(er
|
|
161
161
|
|
162
162
|
#### multipart/form-data (Multipart Form Uploads)
|
163
163
|
|
164
|
-
For `multipart/form-data` we use the [form-data](https://github.com/
|
164
|
+
For `multipart/form-data` we use the [form-data](https://github.com/form-data/form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option.
|
165
165
|
|
166
166
|
|
167
167
|
```js
|
@@ -179,7 +179,7 @@ var formData = {
|
|
179
179
|
],
|
180
180
|
// Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS}
|
181
181
|
// Use case: for some types of streams, you'll need to provide "file"-related information manually.
|
182
|
-
// See the `form-data` README for more information about options: https://github.com/
|
182
|
+
// See the `form-data` README for more information about options: https://github.com/form-data/form-data
|
183
183
|
custom_file: {
|
184
184
|
value: fs.createReadStream('/dev/urandom'),
|
185
185
|
options: {
|
@@ -206,7 +206,7 @@ form.append('my_field', 'my_value');
|
|
206
206
|
form.append('my_buffer', new Buffer([1, 2, 3]));
|
207
207
|
form.append('custom_file', fs.createReadStream(__dirname + '/unicycle.jpg'), {filename: 'unicycle.jpg'});
|
208
208
|
```
|
209
|
-
See the [form-data README](https://github.com/
|
209
|
+
See the [form-data README](https://github.com/form-data/form-data) for more information & examples.
|
210
210
|
|
211
211
|
|
212
212
|
#### multipart/related
|
@@ -472,7 +472,7 @@ HTTP/1.1 200 OK
|
|
472
472
|
At this point, the connection is left open, and the client is
|
473
473
|
communicating directly with the `endpoint-server.com` machine.
|
474
474
|
|
475
|
-
See [the wikipedia page on HTTP Tunneling](
|
475
|
+
See [the wikipedia page on HTTP Tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel)
|
476
476
|
for more information.
|
477
477
|
|
478
478
|
By default, when proxying `http` traffic, request will simply make a
|
@@ -566,7 +566,7 @@ Here's some examples of valid `no_proxy` values:
|
|
566
566
|
|
567
567
|
## UNIX Domain Sockets
|
568
568
|
|
569
|
-
`request` supports making requests to [UNIX Domain Sockets](
|
569
|
+
`request` supports making requests to [UNIX Domain Sockets](https://en.wikipedia.org/wiki/Unix_domain_socket). To make one, use the following URL scheme:
|
570
570
|
|
571
571
|
```js
|
572
572
|
/* Pattern */ 'http://unix:SOCKET:PATH'
|
@@ -746,7 +746,7 @@ The first argument can be either a `url` or an `options` object. The only requir
|
|
746
746
|
In non-chunked requests, data items with body streams are not allowed.
|
747
747
|
- `preambleCRLF` - append a newline/CRLF before the boundary of your `multipart/form-data` request.
|
748
748
|
- `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request.
|
749
|
-
- `json` - sets `body`
|
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
751
|
|
752
752
|
---
|
@@ -762,7 +762,7 @@ The first argument can be either a `url` or an `options` object. The only requir
|
|
762
762
|
- `followRedirect` - follow HTTP 3xx responses as redirects (default: `true`). This property can also be implemented as function which gets `response` object as a single argument and should return `true` if redirects should continue or `false` otherwise.
|
763
763
|
- `followAllRedirects` - follow non-GET HTTP 3xx responses as redirects (default: `false`)
|
764
764
|
- `maxRedirects` - the maximum number of redirects to follow (default: `10`)
|
765
|
-
- `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`).
|
765
|
+
- `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`). **Note:** if true, referer header set in the initial request is preserved during redirect chain.
|
766
766
|
|
767
767
|
---
|
768
768
|
|
@@ -799,8 +799,7 @@ default in Linux can be anywhere from 20-120 seconds][linux-timeout]).
|
|
799
799
|
- `tunnel` - controls the behavior of
|
800
800
|
[HTTP `CONNECT` tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling)
|
801
801
|
as follows:
|
802
|
-
- `undefined` (default) - `true` if the destination is `https`
|
803
|
-
request in the redirect chain used a tunneling proxy, `false` otherwise
|
802
|
+
- `undefined` (default) - `true` if the destination is `https`, `false` otherwise
|
804
803
|
- `true` - always tunnel to the destination by making a `CONNECT` request to
|
805
804
|
the proxy
|
806
805
|
- `false` - request the destination as a `GET` request.
|
@@ -845,7 +844,7 @@ For example:
|
|
845
844
|
```js
|
846
845
|
//requests using baseRequest() will set the 'x-token' header
|
847
846
|
var baseRequest = request.defaults({
|
848
|
-
headers: {x-token: 'my-token'}
|
847
|
+
headers: {'x-token': 'my-token'}
|
849
848
|
})
|
850
849
|
|
851
850
|
//requests using specialRequest() will include the 'x-token' header set in
|
@@ -933,7 +932,7 @@ There are at least three ways to debug the operation of `request`:
|
|
933
932
|
2. Set `require('request').debug = true` at any time (this does the same thing
|
934
933
|
as #1).
|
935
934
|
|
936
|
-
3. Use the [request-debug module](https://github.com/
|
935
|
+
3. Use the [request-debug module](https://github.com/request/request-debug) to
|
937
936
|
view request and response headers and bodies.
|
938
937
|
|
939
938
|
[back to top](#table-of-contents)
|
@@ -1076,9 +1075,9 @@ request('http://www.google.com', function() {
|
|
1076
1075
|
```
|
1077
1076
|
|
1078
1077
|
The cookie store must be a
|
1079
|
-
[`tough-cookie`](https://github.com/
|
1078
|
+
[`tough-cookie`](https://github.com/SalesforceEng/tough-cookie)
|
1080
1079
|
store and it must support synchronous operations; see the
|
1081
|
-
[`CookieStore` API docs](https://github.com/
|
1080
|
+
[`CookieStore` API docs](https://github.com/SalesforceEng/tough-cookie#cookiestore-api)
|
1082
1081
|
for details.
|
1083
1082
|
|
1084
1083
|
To inspect your cookie jar after a request:
|
@@ -60,43 +60,53 @@ Har.prototype.prep = function (data) {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
// prep body
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
63
|
+
function some (arr) {
|
64
|
+
return arr.some(function (type) {
|
65
|
+
return data.postData.mimeType.indexOf(type) === 0
|
66
|
+
})
|
67
|
+
}
|
68
|
+
|
69
|
+
if (some([
|
70
|
+
'multipart/mixed',
|
71
|
+
'multipart/related',
|
72
|
+
'multipart/form-data',
|
73
|
+
'multipart/alternative'])) {
|
74
|
+
|
75
|
+
// reset values
|
76
|
+
data.postData.mimeType = 'multipart/form-data'
|
77
|
+
}
|
78
|
+
|
79
|
+
else if (some([
|
80
|
+
'application/x-www-form-urlencoded'])) {
|
81
|
+
|
82
|
+
if (!data.postData.params) {
|
83
|
+
data.postData.text = ''
|
84
|
+
} else {
|
85
|
+
data.postData.paramsObj = data.postData.params.reduce(this.reducer, {})
|
86
|
+
|
87
|
+
// always overwrite
|
88
|
+
data.postData.text = qs.stringify(data.postData.paramsObj)
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
else if (some([
|
93
|
+
'text/json',
|
94
|
+
'text/x-json',
|
95
|
+
'application/json',
|
96
|
+
'application/x-json'])) {
|
97
|
+
|
98
|
+
data.postData.mimeType = 'application/json'
|
99
|
+
|
100
|
+
if (data.postData.text) {
|
101
|
+
try {
|
102
|
+
data.postData.jsonObj = JSON.parse(data.postData.text)
|
103
|
+
} catch (e) {
|
104
|
+
this.request.debug(e)
|
105
|
+
|
106
|
+
// force back to text/plain
|
107
|
+
data.postData.mimeType = 'text/plain'
|
98
108
|
}
|
99
|
-
|
109
|
+
}
|
100
110
|
}
|
101
111
|
|
102
112
|
return data
|
@@ -152,51 +162,50 @@ Har.prototype.options = function (options) {
|
|
152
162
|
options.headers = req.headersObj
|
153
163
|
}
|
154
164
|
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
165
|
+
function test (type) {
|
166
|
+
return req.postData.mimeType.indexOf(type) === 0
|
167
|
+
}
|
168
|
+
if (test('application/x-www-form-urlencoded')) {
|
169
|
+
options.form = req.postData.paramsObj
|
170
|
+
}
|
171
|
+
else if (test('application/json')) {
|
172
|
+
if (req.postData.jsonObj) {
|
173
|
+
options.body = req.postData.jsonObj
|
174
|
+
options.json = true
|
175
|
+
}
|
176
|
+
}
|
177
|
+
else if (test('multipart/form-data')) {
|
178
|
+
options.formData = {}
|
169
179
|
|
170
|
-
|
171
|
-
|
180
|
+
req.postData.params.forEach(function (param) {
|
181
|
+
var attachment = {}
|
172
182
|
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
183
|
+
if (!param.fileName && !param.fileName && !param.contentType) {
|
184
|
+
options.formData[param.name] = param.value
|
185
|
+
return
|
186
|
+
}
|
177
187
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
188
|
+
// attempt to read from disk!
|
189
|
+
if (param.fileName && !param.value) {
|
190
|
+
attachment.value = fs.createReadStream(param.fileName)
|
191
|
+
} else if (param.value) {
|
192
|
+
attachment.value = param.value
|
193
|
+
}
|
184
194
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
}
|
195
|
+
if (param.fileName) {
|
196
|
+
attachment.options = {
|
197
|
+
filename: param.fileName,
|
198
|
+
contentType: param.contentType ? param.contentType : null
|
190
199
|
}
|
191
|
-
|
192
|
-
options.formData[param.name] = attachment
|
193
|
-
})
|
194
|
-
break
|
195
|
-
|
196
|
-
default:
|
197
|
-
if (req.postData.text) {
|
198
|
-
options.body = req.postData.text
|
199
200
|
}
|
201
|
+
|
202
|
+
options.formData[param.name] = attachment
|
203
|
+
})
|
204
|
+
}
|
205
|
+
else {
|
206
|
+
if (req.postData.text) {
|
207
|
+
options.body = req.postData.text
|
208
|
+
}
|
200
209
|
}
|
201
210
|
|
202
211
|
return options
|
@@ -105,7 +105,7 @@ Redirect.prototype.onResponse = function (response) {
|
|
105
105
|
|
106
106
|
// handle the case where we change protocol from https to http or vice versa
|
107
107
|
if (request.uri.protocol !== uriPrev.protocol) {
|
108
|
-
request.
|
108
|
+
delete request.agent
|
109
109
|
}
|
110
110
|
|
111
111
|
self.redirects.push(
|
@@ -120,7 +120,6 @@ Redirect.prototype.onResponse = function (response) {
|
|
120
120
|
// request.method = 'GET' // Force all redirects to use GET || commented out fixes #215
|
121
121
|
delete request.src
|
122
122
|
delete request.req
|
123
|
-
delete request.agent
|
124
123
|
delete request._started
|
125
124
|
if (response.statusCode !== 401 && response.statusCode !== 307) {
|
126
125
|
// Remove parameters from the previous response, unless this is the second request
|
@@ -141,7 +140,7 @@ Redirect.prototype.onResponse = function (response) {
|
|
141
140
|
}
|
142
141
|
|
143
142
|
if (!self.removeRefererHeader) {
|
144
|
-
request.setHeader('referer',
|
143
|
+
request.setHeader('referer', uriPrev.href)
|
145
144
|
}
|
146
145
|
|
147
146
|
request.emit('redirect')
|
@@ -34,7 +34,7 @@ var defaultProxyHeaderExclusiveList = [
|
|
34
34
|
]
|
35
35
|
|
36
36
|
function constructProxyHost(uriObject) {
|
37
|
-
var port = uriObject.
|
37
|
+
var port = uriObject.port
|
38
38
|
, protocol = uriObject.protocol
|
39
39
|
, proxyHost = uriObject.hostname + ':'
|
40
40
|
|
@@ -109,22 +109,19 @@ function Tunnel (request) {
|
|
109
109
|
this.request = request
|
110
110
|
this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList
|
111
111
|
this.proxyHeaderExclusiveList = []
|
112
|
-
}
|
113
|
-
|
114
|
-
Tunnel.prototype.isEnabled = function (options) {
|
115
|
-
var request = this.request
|
116
|
-
// Tunnel HTTPS by default, or if a previous request in the redirect chain
|
117
|
-
// was tunneled. Allow the user to override this setting.
|
118
|
-
|
119
|
-
// If self.tunnel is already set (because this is a redirect), use the
|
120
|
-
// existing value.
|
121
112
|
if (typeof request.tunnel !== 'undefined') {
|
122
|
-
|
113
|
+
this.tunnelOverride = request.tunnel
|
123
114
|
}
|
115
|
+
}
|
116
|
+
|
117
|
+
Tunnel.prototype.isEnabled = function () {
|
118
|
+
var self = this
|
119
|
+
, request = self.request
|
120
|
+
// Tunnel HTTPS by default. Allow the user to override this setting.
|
124
121
|
|
125
|
-
// If
|
126
|
-
if (typeof
|
127
|
-
return
|
122
|
+
// If self.tunnelOverride is set (the user specified a value), use it.
|
123
|
+
if (typeof self.tunnelOverride !== 'undefined') {
|
124
|
+
return self.tunnelOverride
|
128
125
|
}
|
129
126
|
|
130
127
|
// If the destination is HTTPS, tunnel.
|
@@ -132,10 +129,8 @@ Tunnel.prototype.isEnabled = function (options) {
|
|
132
129
|
return true
|
133
130
|
}
|
134
131
|
|
135
|
-
// Otherwise,
|
136
|
-
|
137
|
-
// tunneled.
|
138
|
-
return undefined
|
132
|
+
// Otherwise, do not use tunnel.
|
133
|
+
return false
|
139
134
|
}
|
140
135
|
|
141
136
|
Tunnel.prototype.setup = function (options) {
|
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"_from": "request@2.x",
|
3
|
-
"_id": "request@2.
|
3
|
+
"_id": "request@2.67.0",
|
4
4
|
"_location": "/request",
|
5
|
-
"_nodeVersion": "
|
5
|
+
"_nodeVersion": "5.0.0",
|
6
6
|
"_npmUser": {
|
7
7
|
"email": "simeonvelichkov@gmail.com",
|
8
8
|
"name": "simov"
|
9
9
|
},
|
10
|
-
"_npmVersion": "
|
10
|
+
"_npmVersion": "3.3.12",
|
11
11
|
"_phantomChildren": {},
|
12
12
|
"_requiredBy": [
|
13
13
|
"/node-pre-gyp"
|
14
14
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/request/-/request-2.
|
16
|
-
"_shasum": "
|
15
|
+
"_resolved": "https://registry.npmjs.org/request/-/request-2.67.0.tgz",
|
16
|
+
"_shasum": "8af74780e2bf11ea0ae9aa965c11f11afd272742",
|
17
17
|
"author": {
|
18
18
|
"email": "mikeal.rogers@gmail.com",
|
19
19
|
"name": "Mikeal Rogers"
|
@@ -31,11 +31,12 @@
|
|
31
31
|
"form-data": "~1.0.0-rc3",
|
32
32
|
"har-validator": "~2.0.2",
|
33
33
|
"hawk": "~3.1.0",
|
34
|
-
"http-signature": "~
|
34
|
+
"http-signature": "~1.1.0",
|
35
|
+
"is-typedarray": "~1.0.0",
|
35
36
|
"isstream": "~0.1.2",
|
36
37
|
"json-stringify-safe": "~5.0.1",
|
37
38
|
"mime-types": "~2.1.7",
|
38
|
-
"node-uuid": "~1.4.
|
39
|
+
"node-uuid": "~1.4.7",
|
39
40
|
"oauth-sign": "~0.8.0",
|
40
41
|
"qs": "~5.2.0",
|
41
42
|
"stringstream": "~0.0.4",
|
@@ -44,19 +45,19 @@
|
|
44
45
|
},
|
45
46
|
"description": "Simplified HTTP request client.",
|
46
47
|
"devDependencies": {
|
47
|
-
"bluebird": "^
|
48
|
-
"browserify": "^
|
48
|
+
"bluebird": "^3.0.2",
|
49
|
+
"browserify": "^12.0.1",
|
49
50
|
"browserify-istanbul": "^0.1.5",
|
50
51
|
"buffer-equal": "^0.0.1",
|
51
52
|
"codecov.io": "^0.1.6",
|
52
53
|
"coveralls": "^2.11.4",
|
53
|
-
"eslint": "
|
54
|
+
"eslint": "1.9.0",
|
54
55
|
"function-bind": "^1.0.2",
|
55
|
-
"istanbul": "^0.
|
56
|
+
"istanbul": "^0.4.0",
|
56
57
|
"karma": "^0.13.10",
|
57
58
|
"karma-browserify": "^4.4.0",
|
58
59
|
"karma-cli": "^0.1.1",
|
59
|
-
"karma-coverage": "^0.
|
60
|
+
"karma-coverage": "^0.5.3",
|
60
61
|
"karma-phantomjs-launcher": "^0.1.4",
|
61
62
|
"karma-tap": "^1.0.3",
|
62
63
|
"rimraf": "^2.2.8",
|
@@ -66,13 +67,13 @@
|
|
66
67
|
},
|
67
68
|
"directories": {},
|
68
69
|
"dist": {
|
69
|
-
"shasum": "
|
70
|
-
"tarball": "http://registry.npmjs.org/request/-/request-2.
|
70
|
+
"shasum": "8af74780e2bf11ea0ae9aa965c11f11afd272742",
|
71
|
+
"tarball": "http://registry.npmjs.org/request/-/request-2.67.0.tgz"
|
71
72
|
},
|
72
73
|
"engines": {
|
73
74
|
"node": ">=0.8.0"
|
74
75
|
},
|
75
|
-
"gitHead": "
|
76
|
+
"gitHead": "76f0655befbe8b37fa246bdca1107cbf57798d9a",
|
76
77
|
"homepage": "https://github.com/request/request#readme",
|
77
78
|
"license": "Apache-2.0",
|
78
79
|
"main": "index.js",
|
@@ -114,5 +115,5 @@
|
|
114
115
|
"util",
|
115
116
|
"utility"
|
116
117
|
],
|
117
|
-
"version": "2.
|
118
|
+
"version": "2.67.0"
|
118
119
|
}
|
@@ -15,6 +15,7 @@ var http = require('http')
|
|
15
15
|
, caseless = require('caseless')
|
16
16
|
, ForeverAgent = require('forever-agent')
|
17
17
|
, FormData = require('form-data')
|
18
|
+
, isTypedArray = require('is-typedarray').strict
|
18
19
|
, helpers = require('./lib/helpers')
|
19
20
|
, cookies = require('./lib/cookies')
|
20
21
|
, getProxyFromURI = require('./lib/getProxyFromURI')
|
@@ -122,7 +123,6 @@ function Request (options) {
|
|
122
123
|
var reserved = Object.keys(Request.prototype)
|
123
124
|
var nonReserved = filterForNonReserved(reserved, options)
|
124
125
|
|
125
|
-
stream.Stream.call(self)
|
126
126
|
util._extend(self, nonReserved)
|
127
127
|
options = filterOutReservedFunctions(reserved, options)
|
128
128
|
|
@@ -249,6 +249,11 @@ Request.prototype.init = function (options) {
|
|
249
249
|
self.uri = url.parse(self.uri)
|
250
250
|
}
|
251
251
|
|
252
|
+
// Some URL objects are not from a URL parsed string and need href added
|
253
|
+
if (!self.uri.href) {
|
254
|
+
self.uri.href = url.format(self.uri)
|
255
|
+
}
|
256
|
+
|
252
257
|
// DEPRECATED: Warning for users of the old Unix Sockets URL Scheme
|
253
258
|
if (self.uri.protocol === 'unix:') {
|
254
259
|
return self.emit('error', new Error('`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`'))
|
@@ -277,6 +282,7 @@ Request.prototype.init = function (options) {
|
|
277
282
|
message += '. This can be caused by a crappy redirection.'
|
278
283
|
}
|
279
284
|
// This error was fatal
|
285
|
+
self.abort()
|
280
286
|
return self.emit('error', new Error(message))
|
281
287
|
}
|
282
288
|
|
@@ -284,7 +290,7 @@ Request.prototype.init = function (options) {
|
|
284
290
|
self.proxy = getProxyFromURI(self.uri)
|
285
291
|
}
|
286
292
|
|
287
|
-
self.tunnel = self._tunnel.isEnabled(
|
293
|
+
self.tunnel = self._tunnel.isEnabled()
|
288
294
|
if (self.proxy) {
|
289
295
|
self._tunnel.setup(options)
|
290
296
|
}
|
@@ -422,6 +428,10 @@ Request.prototype.init = function (options) {
|
|
422
428
|
}
|
423
429
|
|
424
430
|
function setContentLength () {
|
431
|
+
if (isTypedArray(self.body)) {
|
432
|
+
self.body = new Buffer(self.body)
|
433
|
+
}
|
434
|
+
|
425
435
|
if (!self.hasHeader('content-length')) {
|
426
436
|
var length
|
427
437
|
if (typeof self.body === 'string') {
|
@@ -583,63 +593,6 @@ Request.prototype.init = function (options) {
|
|
583
593
|
|
584
594
|
}
|
585
595
|
|
586
|
-
// Must call this when following a redirect from https to http or vice versa
|
587
|
-
// Attempts to keep everything as identical as possible, but update the
|
588
|
-
// httpModule, Tunneling agent, and/or Forever Agent in use.
|
589
|
-
Request.prototype._updateProtocol = function () {
|
590
|
-
var self = this
|
591
|
-
var protocol = self.uri.protocol
|
592
|
-
|
593
|
-
if (protocol === 'https:' || self.tunnel) {
|
594
|
-
// previously was doing http, now doing https
|
595
|
-
// if it's https, then we might need to tunnel now.
|
596
|
-
if (self.proxy) {
|
597
|
-
if (self._tunnel.setup()) {
|
598
|
-
return
|
599
|
-
}
|
600
|
-
}
|
601
|
-
|
602
|
-
self.httpModule = https
|
603
|
-
switch (self.agentClass) {
|
604
|
-
case ForeverAgent:
|
605
|
-
self.agentClass = ForeverAgent.SSL
|
606
|
-
break
|
607
|
-
case http.Agent:
|
608
|
-
self.agentClass = https.Agent
|
609
|
-
break
|
610
|
-
default:
|
611
|
-
// nothing we can do. Just hope for the best.
|
612
|
-
return
|
613
|
-
}
|
614
|
-
|
615
|
-
// if there's an agent, we need to get a new one.
|
616
|
-
if (self.agent) {
|
617
|
-
self.agent = self.getNewAgent()
|
618
|
-
}
|
619
|
-
|
620
|
-
} else {
|
621
|
-
// previously was doing https, now doing http
|
622
|
-
self.httpModule = http
|
623
|
-
switch (self.agentClass) {
|
624
|
-
case ForeverAgent.SSL:
|
625
|
-
self.agentClass = ForeverAgent
|
626
|
-
break
|
627
|
-
case https.Agent:
|
628
|
-
self.agentClass = http.Agent
|
629
|
-
break
|
630
|
-
default:
|
631
|
-
// nothing we can do. just hope for the best
|
632
|
-
return
|
633
|
-
}
|
634
|
-
|
635
|
-
// if there's an agent, then get a new one.
|
636
|
-
if (self.agent) {
|
637
|
-
self.agent = null
|
638
|
-
self.agent = self.getNewAgent()
|
639
|
-
}
|
640
|
-
}
|
641
|
-
}
|
642
|
-
|
643
596
|
Request.prototype.getNewAgent = function () {
|
644
597
|
var self = this
|
645
598
|
var Agent = self.agentClass
|
@@ -1386,6 +1339,8 @@ Request.prototype.pipe = function (dest, opts) {
|
|
1386
1339
|
}
|
1387
1340
|
Request.prototype.write = function () {
|
1388
1341
|
var self = this
|
1342
|
+
if (self._aborted) {return}
|
1343
|
+
|
1389
1344
|
if (!self._started) {
|
1390
1345
|
self.start()
|
1391
1346
|
}
|
@@ -1393,6 +1348,8 @@ Request.prototype.write = function () {
|
|
1393
1348
|
}
|
1394
1349
|
Request.prototype.end = function (chunk) {
|
1395
1350
|
var self = this
|
1351
|
+
if (self._aborted) {return}
|
1352
|
+
|
1396
1353
|
if (chunk) {
|
1397
1354
|
self.write(chunk)
|
1398
1355
|
}
|
@@ -1,12 +1,17 @@
|
|
1
1
|
[](https://travis-ci.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf#info=devDependencies)
|
2
2
|
|
3
|
-
The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
|
3
|
+
The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
|
4
4
|
|
5
5
|
Install with `npm install rimraf`, or just drop rimraf.js somewhere.
|
6
6
|
|
7
7
|
## API
|
8
8
|
|
9
|
-
`rimraf(f, callback)`
|
9
|
+
`rimraf(f, [opts], callback)`
|
10
|
+
|
11
|
+
The first parameter will be interpreted as a globbing pattern for files. If you
|
12
|
+
want to disable globbing you can do so with `opts.disableGlob` (defaults to
|
13
|
+
`false`). This might be handy, for instance, if you have filenames that contain
|
14
|
+
globbing wildcard characters.
|
10
15
|
|
11
16
|
The callback will be called with an error if there is one. Certain
|
12
17
|
errors are handled for you:
|
@@ -1,15 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"wrappy@1",
|
5
|
-
"/Users/eshanker/Code/fsevents/node_modules/inflight"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "wrappy@>=1.0.0 <2.0.0",
|
2
|
+
"_from": "wrappy@1",
|
9
3
|
"_id": "wrappy@1.0.1",
|
10
|
-
"
|
11
|
-
"_installable": true,
|
12
|
-
"_location": "/wrappy",
|
4
|
+
"_location": "/rimraf/glob/inflight/wrappy",
|
13
5
|
"_nodeVersion": "0.10.31",
|
14
6
|
"_npmUser": {
|
15
7
|
"email": "i@izs.me",
|
@@ -17,24 +9,11 @@
|
|
17
9
|
},
|
18
10
|
"_npmVersion": "2.0.0",
|
19
11
|
"_phantomChildren": {},
|
20
|
-
"_requested": {
|
21
|
-
"name": "wrappy",
|
22
|
-
"raw": "wrappy@1",
|
23
|
-
"rawSpec": "1",
|
24
|
-
"scope": null,
|
25
|
-
"spec": ">=1.0.0 <2.0.0",
|
26
|
-
"type": "range"
|
27
|
-
},
|
28
12
|
"_requiredBy": [
|
29
|
-
"/inflight"
|
30
|
-
"/inflight/once",
|
31
|
-
"/rimraf/once"
|
13
|
+
"/rimraf/glob/inflight"
|
32
14
|
],
|
33
15
|
"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
|
34
16
|
"_shasum": "1e65969965ccbc2db4548c6b84a6f2c5aedd4739",
|
35
|
-
"_shrinkwrap": null,
|
36
|
-
"_spec": "wrappy@1",
|
37
|
-
"_where": "/Users/eshanker/Code/fsevents/node_modules/inflight",
|
38
17
|
"author": {
|
39
18
|
"email": "i@izs.me",
|
40
19
|
"name": "Isaac Z. Schlueter",
|
@@ -67,9 +46,10 @@
|
|
67
46
|
],
|
68
47
|
"name": "wrappy",
|
69
48
|
"optionalDependencies": {},
|
49
|
+
"readme": "ERROR: No README data found!",
|
70
50
|
"repository": {
|
71
51
|
"type": "git",
|
72
|
-
"url": "https://github.com/npm/wrappy"
|
52
|
+
"url": "git+https://github.com/npm/wrappy.git"
|
73
53
|
},
|
74
54
|
"scripts": {
|
75
55
|
"test": "tap test/*.js"
|