fsevents 1.0.7 → 1.0.8
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/node_modules/ansi/History.md +7 -0
- package/node_modules/ansi/LICENSE +24 -0
- package/node_modules/ansi/lib/ansi.js +2 -2
- package/node_modules/ansi/package.json +15 -10
- package/node_modules/ansi-regex/package.json +1 -0
- package/node_modules/ansi-styles/package.json +1 -0
- package/node_modules/are-we-there-yet/.npmignore +2 -0
- package/node_modules/are-we-there-yet/index.js +20 -18
- package/node_modules/are-we-there-yet/package.json +15 -13
- package/node_modules/asn1/package.json +3 -1
- package/node_modules/assert-plus/README.md +50 -21
- package/node_modules/assert-plus/assert.js +168 -207
- package/node_modules/assert-plus/package.json +55 -15
- package/node_modules/async/README.md +86 -4
- package/node_modules/async/dist/async.js +4 -3
- package/node_modules/async/dist/async.min.js +1 -1
- package/node_modules/async/lib/async.js +4 -3
- package/node_modules/async/package.json +10 -10
- package/node_modules/aws-sign2/package.json +1 -0
- package/node_modules/aws4/.npmignore +3 -0
- package/node_modules/aws4/.tern-port +1 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match → aws4}/.travis.yml +2 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/LICENSE.md → aws4/LICENSE} +1 -3
- package/node_modules/aws4/README.md +510 -0
- package/node_modules/aws4/aws4.js +313 -0
- package/node_modules/aws4/example.js +372 -0
- package/node_modules/aws4/node_modules/lru-cache/.npmignore +1 -0
- package/node_modules/aws4/node_modules/lru-cache/.travis.yml +8 -0
- package/node_modules/aws4/node_modules/lru-cache/CONTRIBUTORS +14 -0
- package/node_modules/aws4/node_modules/lru-cache/README.md +137 -0
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +334 -0
- package/node_modules/aws4/node_modules/lru-cache/package.json +66 -0
- package/node_modules/aws4/node_modules/lru-cache/test/basic.js +396 -0
- package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +120 -0
- package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +51 -0
- package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +216 -0
- package/node_modules/aws4/package.json +113 -0
- package/node_modules/bl/.travis.yml +5 -6
- package/node_modules/bl/bl.js +5 -0
- package/node_modules/bl/package.json +16 -13
- package/node_modules/bl/test/test.js +554 -6
- package/node_modules/block-stream/package.json +1 -0
- package/node_modules/boom/package.json +1 -0
- package/node_modules/caseless/package.json +1 -0
- package/node_modules/chalk/package.json +1 -0
- package/node_modules/combined-stream/package.json +1 -0
- package/node_modules/commander/package.json +1 -0
- package/node_modules/core-util-is/package.json +2 -2
- package/node_modules/cryptiles/package.json +1 -0
- package/node_modules/dashdash/README.md +70 -7
- package/node_modules/dashdash/etc/dashdash.bash_completion.in +388 -0
- package/node_modules/dashdash/lib/dashdash.js +202 -2
- package/node_modules/dashdash/package.json +12 -9
- package/node_modules/debug/.jshintrc +3 -0
- package/node_modules/debug/.npmignore +6 -0
- package/node_modules/debug/History.md +195 -0
- package/node_modules/debug/Makefile +36 -0
- package/node_modules/debug/Readme.md +86 -13
- package/node_modules/debug/bower.json +28 -0
- package/node_modules/debug/browser.js +168 -0
- package/node_modules/debug/component.json +19 -0
- package/node_modules/debug/debug.js +132 -72
- package/node_modules/debug/node.js +209 -0
- package/node_modules/debug/package.json +32 -22
- package/node_modules/deep-extend/README.md +51 -50
- package/node_modules/deep-extend/package.json +14 -16
- package/node_modules/delayed-stream/package.json +1 -0
- package/node_modules/delegates/History.md +6 -0
- package/node_modules/delegates/License +20 -0
- package/node_modules/delegates/package.json +17 -13
- package/node_modules/ecc-jsbn/package.json +3 -1
- package/node_modules/escape-string-regexp/package.json +2 -2
- package/node_modules/extend/package.json +1 -0
- package/node_modules/extsprintf/package.json +4 -2
- package/node_modules/forever-agent/package.json +1 -0
- package/node_modules/form-data/package.json +1 -0
- package/node_modules/fstream/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/package.json +1 -0
- package/node_modules/fstream-ignore/package.json +3 -1
- package/node_modules/gauge/package.json +14 -12
- package/node_modules/gauge/progress-bar.js +4 -5
- package/node_modules/gauge/test/progress-bar.js +1 -1
- package/node_modules/generate-function/package.json +1 -0
- package/node_modules/generate-object-property/package.json +1 -0
- package/node_modules/graceful-fs/README.md +17 -0
- package/node_modules/graceful-fs/graceful-fs.js +2 -0
- package/node_modules/graceful-fs/package.json +16 -11
- package/node_modules/graceful-readlink/package.json +1 -0
- package/node_modules/har-validator/README.md +45 -122
- package/node_modules/har-validator/package.json +16 -16
- package/node_modules/has-ansi/package.json +1 -0
- package/node_modules/has-unicode/README.md +6 -3
- package/node_modules/has-unicode/index.js +7 -3
- package/node_modules/has-unicode/package.json +15 -13
- package/node_modules/has-unicode/test/index.js +1 -1
- package/node_modules/hawk/README.md +634 -634
- package/node_modules/hawk/bower.json +24 -24
- package/node_modules/hawk/component.json +18 -18
- package/node_modules/hawk/dist/client.js +343 -340
- package/node_modules/hawk/example/usage.js +78 -78
- package/node_modules/hawk/lib/browser.js +637 -637
- package/node_modules/hawk/lib/client.js +369 -369
- package/node_modules/hawk/lib/crypto.js +126 -126
- package/node_modules/hawk/lib/index.js +15 -15
- package/node_modules/hawk/lib/server.js +548 -540
- package/node_modules/hawk/lib/utils.js +184 -164
- package/node_modules/hawk/package.json +9 -8
- package/node_modules/hawk/test/browser.js +1492 -1492
- package/node_modules/hawk/test/client.js +440 -440
- package/node_modules/hawk/test/crypto.js +70 -70
- package/node_modules/hawk/test/index.js +378 -378
- package/node_modules/hawk/test/readme.js +95 -95
- package/node_modules/hawk/test/server.js +1329 -1302
- package/node_modules/hawk/test/uri.js +838 -838
- package/node_modules/hawk/test/utils.js +149 -121
- package/node_modules/hoek/package.json +1 -0
- package/node_modules/http-signature/CHANGES.md +7 -0
- package/node_modules/http-signature/http_signing.md +71 -3
- package/node_modules/http-signature/lib/signer.js +5 -0
- package/node_modules/http-signature/package.json +13 -11
- package/node_modules/ini/package.json +3 -1
- package/node_modules/is-my-json-valid/formats.js +1 -1
- package/node_modules/is-my-json-valid/package.json +11 -10
- package/node_modules/is-property/package.json +1 -0
- package/node_modules/is-typedarray/package.json +3 -1
- package/node_modules/isarray/package.json +2 -2
- package/node_modules/isstream/package.json +1 -0
- package/node_modules/jodid25519/package.json +3 -1
- package/node_modules/jsbn/package.json +3 -1
- package/node_modules/json-schema/package.json +2 -1
- package/node_modules/json-stringify-safe/package.json +1 -0
- package/node_modules/jsonpointer/package.json +1 -0
- package/node_modules/jsprim/package.json +3 -1
- package/node_modules/lodash._basetostring/package.json +4 -4
- package/node_modules/lodash._createpadding/package.json +3 -2
- package/node_modules/lodash._root/LICENSE +22 -0
- package/node_modules/lodash._root/README.md +18 -0
- package/node_modules/lodash._root/index.js +53 -0
- package/node_modules/lodash._root/package.json +77 -0
- package/node_modules/lodash.pad/LICENSE +2 -2
- package/node_modules/lodash.pad/README.md +4 -6
- package/node_modules/lodash.pad/index.js +347 -15
- package/node_modules/lodash.pad/package.json +20 -34
- package/node_modules/lodash.padleft/package.json +3 -1
- package/node_modules/lodash.padright/package.json +3 -1
- package/node_modules/lodash.repeat/LICENSE +2 -2
- package/node_modules/lodash.repeat/README.md +4 -6
- package/node_modules/lodash.repeat/index.js +262 -11
- package/node_modules/lodash.repeat/package.json +21 -34
- package/node_modules/mime-db/package.json +2 -2
- package/node_modules/mime-types/package.json +2 -2
- package/node_modules/ms/.npmignore +5 -0
- package/node_modules/{deep-extend → ms}/LICENSE +2 -2
- package/node_modules/ms/README.md +35 -0
- package/node_modules/ms/index.js +125 -0
- package/node_modules/ms/package.json +56 -0
- package/node_modules/node-pre-gyp/CHANGELOG.md +8 -0
- package/node_modules/node-pre-gyp/LICENSE +27 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +36 -0
- package/node_modules/node-pre-gyp/package.json +23 -22
- package/node_modules/node-uuid/package.json +1 -0
- package/node_modules/npmlog/package.json +18 -16
- package/node_modules/oauth-sign/index.js +2 -0
- package/node_modules/oauth-sign/package.json +10 -9
- package/node_modules/once/README.md +18 -0
- package/node_modules/once/once.js +8 -6
- package/node_modules/once/package.json +20 -12
- package/node_modules/pinkie/index.js +3 -3
- package/node_modules/pinkie/package.json +10 -9
- package/node_modules/pinkie/readme.md +1 -1
- package/node_modules/pinkie-promise/package.json +1 -0
- package/node_modules/process-nextick-args/package.json +2 -2
- package/node_modules/qs/.eslintrc +17 -0
- package/node_modules/qs/.travis.yml +66 -5
- package/node_modules/qs/CHANGELOG.md +86 -75
- package/node_modules/qs/README.md +85 -81
- package/node_modules/qs/bower.json +1 -1
- package/node_modules/qs/component.json +1 -1
- package/node_modules/qs/dist/qs.js +108 -177
- package/node_modules/qs/lib/index.js +1 -7
- package/node_modules/qs/lib/parse.js +26 -49
- package/node_modules/qs/lib/stringify.js +22 -46
- package/node_modules/qs/lib/utils.js +45 -73
- package/node_modules/qs/package.json +51 -28
- package/node_modules/qs/test/index.js +5 -0
- package/node_modules/qs/test/parse.js +236 -321
- package/node_modules/qs/test/stringify.js +139 -197
- package/node_modules/qs/test/utils.js +6 -25
- package/node_modules/rc/node_modules/minimist/package.json +1 -0
- package/node_modules/rc/package.json +1 -0
- package/node_modules/readable-stream/package.json +1 -0
- package/node_modules/request/CHANGELOG.md +16 -1
- package/node_modules/request/README.md +1 -1
- package/node_modules/request/lib/har.js +3 -2
- package/node_modules/request/lib/multipart.js +3 -0
- package/node_modules/request/lib/tunnel.js +0 -2
- package/node_modules/request/package.json +20 -17
- package/node_modules/request/request.js +50 -26
- package/node_modules/rimraf/README.md +1 -1
- package/node_modules/rimraf/node_modules/glob/README.md +2 -2
- package/node_modules/rimraf/node_modules/glob/glob.js +14 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +2 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +1 -0
- package/node_modules/rimraf/node_modules/glob/package.json +11 -11
- package/node_modules/rimraf/package.json +13 -12
- package/node_modules/semver/package.json +3 -1
- package/node_modules/sntp/package.json +1 -0
- package/node_modules/sshpk/.npmignore +1 -0
- package/node_modules/sshpk/bin/sshpk-sign +176 -0
- package/node_modules/sshpk/bin/sshpk-verify +166 -0
- package/node_modules/sshpk/lib/ed-compat.js +2 -0
- package/node_modules/sshpk/lib/key.js +6 -0
- package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- package/node_modules/sshpk/package.json +18 -9
- package/node_modules/string_decoder/package.json +2 -2
- package/node_modules/stringstream/package.json +1 -0
- package/node_modules/strip-ansi/package.json +1 -0
- package/node_modules/strip-json-comments/package.json +1 -0
- package/node_modules/supports-color/package.json +1 -0
- package/node_modules/tar/package.json +1 -0
- package/node_modules/tar-pack/README.md +2 -2
- package/node_modules/tar-pack/package.json +25 -26
- package/node_modules/tough-cookie/package.json +1 -0
- package/node_modules/tunnel-agent/package.json +1 -0
- package/node_modules/tweetnacl/README.md +1 -1
- package/node_modules/tweetnacl/package.json +13 -11
- package/node_modules/uid-number/package.json +14 -13
- package/node_modules/uid-number/uid-number.js +9 -4
- package/node_modules/util-deprecate/package.json +2 -2
- package/node_modules/verror/package.json +1 -0
- package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy → wrappy}/package.json +3 -2
- package/node_modules/xtend/package.json +1 -0
- package/package.json +2 -2
- package/node_modules/are-we-there-yet/README.md~ +0 -183
- package/node_modules/bl/test/basic-test.js +0 -541
- package/node_modules/bl/test/sauce.js +0 -38
- package/node_modules/debug/index.js +0 -5
- package/node_modules/debug/lib/debug.js +0 -147
- package/node_modules/deep-extend/test/index.spec.js +0 -220
- package/node_modules/deep-extend/test/mocha.opts +0 -1
- package/node_modules/gauge/README.md~ +0 -161
- package/node_modules/has-unicode/README.md~ +0 -4
- package/node_modules/once/LICENSE +0 -27
- package/node_modules/once/test/once.js +0 -18
- package/node_modules/sshpk/node_modules/assert-plus/README.md +0 -155
- package/node_modules/sshpk/node_modules/assert-plus/assert.js +0 -206
- package/node_modules/sshpk/node_modules/assert-plus/package.json +0 -88
- package/node_modules/tar-pack/node_modules/rimraf/README.md +0 -43
- package/node_modules/tar-pack/node_modules/rimraf/bin.js +0 -40
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/README.md +0 -359
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/common.js +0 -226
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/glob.js +0 -752
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc +0 -17
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md +0 -37
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js +0 -44
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +0 -58
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json +0 -67
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js +0 -97
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE +0 -16
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md +0 -42
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js +0 -1
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -23
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +0 -58
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js +0 -25
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md +0 -216
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js +0 -912
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -3
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -122
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -8
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -191
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -2
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -6
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -89
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -5
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -50
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -79
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -84
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -13
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -90
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -81
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +0 -66
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/README.md +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -36
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/once.js +0 -21
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/once/package.json +0 -70
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/package.json +0 -78
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/node_modules/path-is-absolute/readme.md +0 -51
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/package.json +0 -79
- package/node_modules/tar-pack/node_modules/rimraf/node_modules/glob/sync.js +0 -460
- package/node_modules/tar-pack/node_modules/rimraf/package.json +0 -69
- package/node_modules/tar-pack/node_modules/rimraf/rimraf.js +0 -333
- package/node_modules/uid-number/LICENCE +0 -25
- /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/AUTHORS +0 -0
- /package/node_modules/{sshpk/node_modules/assert-plus → assert-plus}/CHANGES.md +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf → aws4/node_modules/lru-cache}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight → uid-number}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/LICENSE +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/README.md +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/test/basic.js +0 -0
- /package/node_modules/{tar-pack/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy → wrappy}/wrappy.js +0 -0
@@ -1,293 +1,235 @@
|
|
1
|
-
|
2
|
-
// Load modules
|
1
|
+
'use strict';
|
3
2
|
|
4
|
-
var
|
5
|
-
var
|
6
|
-
var Qs = require('../');
|
3
|
+
var test = require('tape');
|
4
|
+
var qs = require('../');
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
var it = lab.test;
|
20
|
-
|
21
|
-
|
22
|
-
describe('stringify()', function () {
|
23
|
-
|
24
|
-
it('stringifies a querystring object', function (done) {
|
25
|
-
|
26
|
-
expect(Qs.stringify({ a: 'b' })).to.equal('a=b');
|
27
|
-
expect(Qs.stringify({ a: 1 })).to.equal('a=1');
|
28
|
-
expect(Qs.stringify({ a: 1, b: 2 })).to.equal('a=1&b=2');
|
29
|
-
expect(Qs.stringify({ a: 'A_Z' })).to.equal('a=A_Z');
|
30
|
-
expect(Qs.stringify({ a: '€' })).to.equal('a=%E2%82%AC');
|
31
|
-
expect(Qs.stringify({ a: '' })).to.equal('a=%EE%80%80');
|
32
|
-
expect(Qs.stringify({ a: 'א' })).to.equal('a=%D7%90');
|
33
|
-
expect(Qs.stringify({ a: '𐐷' })).to.equal('a=%F0%90%90%B7');
|
34
|
-
done();
|
6
|
+
test('stringify()', function (t) {
|
7
|
+
t.test('stringifies a querystring object', function (st) {
|
8
|
+
st.equal(qs.stringify({ a: 'b' }), 'a=b');
|
9
|
+
st.equal(qs.stringify({ a: 1 }), 'a=1');
|
10
|
+
st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2');
|
11
|
+
st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z');
|
12
|
+
st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC');
|
13
|
+
st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80');
|
14
|
+
st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90');
|
15
|
+
st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7');
|
16
|
+
st.end();
|
35
17
|
});
|
36
18
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
done();
|
19
|
+
t.test('stringifies a nested object', function (st) {
|
20
|
+
st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
|
21
|
+
st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e');
|
22
|
+
st.end();
|
42
23
|
});
|
43
24
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
done();
|
25
|
+
t.test('stringifies an array value', function (st) {
|
26
|
+
st.equal(qs.stringify({ a: ['b', 'c', 'd'] }), 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d');
|
27
|
+
st.end();
|
48
28
|
});
|
49
29
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
done();
|
30
|
+
t.test('omits nulls when asked', function (st) {
|
31
|
+
st.equal(qs.stringify({ a: 'b', c: null }, { skipNulls: true }), 'a=b');
|
32
|
+
st.end();
|
54
33
|
});
|
55
34
|
|
56
35
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
done();
|
36
|
+
t.test('omits nested nulls when asked', function (st) {
|
37
|
+
st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c');
|
38
|
+
st.end();
|
61
39
|
});
|
62
40
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
done();
|
41
|
+
t.test('omits array indices when asked', function (st) {
|
42
|
+
st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d');
|
43
|
+
st.end();
|
67
44
|
});
|
68
45
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
done();
|
46
|
+
t.test('stringifies a nested array value', function (st) {
|
47
|
+
st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
|
48
|
+
st.end();
|
73
49
|
});
|
74
50
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
done();
|
51
|
+
t.test('stringifies an object inside an array', function (st) {
|
52
|
+
st.equal(qs.stringify({ a: [{ b: 'c' }] }), 'a%5B0%5D%5Bb%5D=c');
|
53
|
+
st.equal(qs.stringify({ a: [{ b: { c: [1] } }] }), 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1');
|
54
|
+
st.end();
|
80
55
|
});
|
81
56
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
done();
|
57
|
+
t.test('does not omit object keys when indices = false', function (st) {
|
58
|
+
st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c');
|
59
|
+
st.end();
|
86
60
|
});
|
87
61
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
done();
|
62
|
+
t.test('uses indices notation for arrays when indices=true', function (st) {
|
63
|
+
st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c');
|
64
|
+
st.end();
|
92
65
|
});
|
93
66
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
done();
|
67
|
+
t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) {
|
68
|
+
st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c');
|
69
|
+
st.end();
|
98
70
|
});
|
99
71
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
done();
|
72
|
+
t.test('uses indices notation for arrays when no arrayFormat=indices', function (st) {
|
73
|
+
st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c');
|
74
|
+
st.end();
|
104
75
|
});
|
105
76
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
done();
|
77
|
+
t.test('uses repeat notation for arrays when no arrayFormat=repeat', function (st) {
|
78
|
+
st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c');
|
79
|
+
st.end();
|
110
80
|
});
|
111
81
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
done();
|
82
|
+
t.test('uses brackets notation for arrays when no arrayFormat=brackets', function (st) {
|
83
|
+
st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c');
|
84
|
+
st.end();
|
116
85
|
});
|
117
86
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
done();
|
87
|
+
t.test('stringifies a complicated object', function (st) {
|
88
|
+
st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e');
|
89
|
+
st.end();
|
122
90
|
});
|
123
91
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
expect(Qs.stringify({ a: null }, { strictNullHandling: true })).to.equal('a');
|
92
|
+
t.test('stringifies an empty value', function (st) {
|
93
|
+
st.equal(qs.stringify({ a: '' }), 'a=');
|
94
|
+
st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a');
|
128
95
|
|
129
|
-
|
130
|
-
|
96
|
+
st.equal(qs.stringify({ a: '', b: '' }), 'a=&b=');
|
97
|
+
st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b=');
|
131
98
|
|
132
|
-
|
133
|
-
|
134
|
-
|
99
|
+
st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D=');
|
100
|
+
st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D');
|
101
|
+
st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D=');
|
135
102
|
|
136
|
-
|
103
|
+
st.end();
|
137
104
|
});
|
138
105
|
|
139
|
-
|
140
|
-
|
106
|
+
t.test('stringifies an empty object', function (st) {
|
141
107
|
var obj = Object.create(null);
|
142
108
|
obj.a = 'b';
|
143
|
-
|
144
|
-
|
109
|
+
st.equal(qs.stringify(obj), 'a=b');
|
110
|
+
st.end();
|
145
111
|
});
|
146
112
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
done();
|
113
|
+
t.test('returns an empty string for invalid input', function (st) {
|
114
|
+
st.equal(qs.stringify(undefined), '');
|
115
|
+
st.equal(qs.stringify(false), '');
|
116
|
+
st.equal(qs.stringify(null), '');
|
117
|
+
st.equal(qs.stringify(''), '');
|
118
|
+
st.end();
|
154
119
|
});
|
155
120
|
|
156
|
-
|
157
|
-
|
121
|
+
t.test('stringifies an object with an empty object as a child', function (st) {
|
158
122
|
var obj = {
|
159
123
|
a: Object.create(null)
|
160
124
|
};
|
161
125
|
|
162
126
|
obj.a.b = 'c';
|
163
|
-
|
164
|
-
|
127
|
+
st.equal(qs.stringify(obj), 'a%5Bb%5D=c');
|
128
|
+
st.end();
|
165
129
|
});
|
166
130
|
|
167
|
-
|
131
|
+
t.test('drops keys with a value of undefined', function (st) {
|
132
|
+
st.equal(qs.stringify({ a: undefined }), '');
|
168
133
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
expect(Qs.stringify({ a: { b: undefined, c: '' } })).to.equal('a%5Bc%5D=');
|
174
|
-
done();
|
134
|
+
st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D');
|
135
|
+
st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D=');
|
136
|
+
st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D=');
|
137
|
+
st.end();
|
175
138
|
});
|
176
139
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
done();
|
140
|
+
t.test('url encodes values', function (st) {
|
141
|
+
st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
|
142
|
+
st.end();
|
181
143
|
});
|
182
144
|
|
183
|
-
|
184
|
-
|
145
|
+
t.test('stringifies a date', function (st) {
|
185
146
|
var now = new Date();
|
186
147
|
var str = 'a=' + encodeURIComponent(now.toISOString());
|
187
|
-
|
188
|
-
|
148
|
+
st.equal(qs.stringify({ a: now }), str);
|
149
|
+
st.end();
|
189
150
|
});
|
190
151
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
done();
|
152
|
+
t.test('stringifies the weird object from qs', function (st) {
|
153
|
+
st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F');
|
154
|
+
st.end();
|
195
155
|
});
|
196
156
|
|
197
|
-
|
198
|
-
|
157
|
+
t.test('skips properties that are part of the object prototype', function (st) {
|
199
158
|
Object.prototype.crash = 'test';
|
200
|
-
|
201
|
-
|
159
|
+
st.equal(qs.stringify({ a: 'b' }), 'a=b');
|
160
|
+
st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
|
202
161
|
delete Object.prototype.crash;
|
203
|
-
|
162
|
+
st.end();
|
204
163
|
});
|
205
164
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
done();
|
165
|
+
t.test('stringifies boolean values', function (st) {
|
166
|
+
st.equal(qs.stringify({ a: true }), 'a=true');
|
167
|
+
st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true');
|
168
|
+
st.equal(qs.stringify({ b: false }), 'b=false');
|
169
|
+
st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false');
|
170
|
+
st.end();
|
213
171
|
});
|
214
172
|
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
done();
|
173
|
+
t.test('stringifies buffer values', function (st) {
|
174
|
+
st.equal(qs.stringify({ a: new Buffer('test') }), 'a=test');
|
175
|
+
st.equal(qs.stringify({ a: { b: new Buffer('test') } }), 'a%5Bb%5D=test');
|
176
|
+
st.end();
|
220
177
|
});
|
221
178
|
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
done();
|
179
|
+
t.test('stringifies an object using an alternative delimiter', function (st) {
|
180
|
+
st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
|
181
|
+
st.end();
|
226
182
|
});
|
227
183
|
|
228
|
-
|
229
|
-
|
184
|
+
t.test('doesn\'t blow up when Buffer global is missing', function (st) {
|
230
185
|
var tempBuffer = global.Buffer;
|
231
186
|
delete global.Buffer;
|
232
|
-
var result =
|
187
|
+
var result = qs.stringify({ a: 'b', c: 'd' });
|
233
188
|
global.Buffer = tempBuffer;
|
234
|
-
|
235
|
-
|
189
|
+
st.equal(result, 'a=b&c=d');
|
190
|
+
st.end();
|
236
191
|
});
|
237
192
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
done();
|
244
|
-
|
193
|
+
t.test('selects properties when filter=array', function (st) {
|
194
|
+
st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b');
|
195
|
+
st.equal(qs.stringify({ a: 1 }, { filter: [] }), '');
|
196
|
+
st.equal(qs.stringify({ a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' }, { filter: ['a', 'b', 0, 2] }), 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3');
|
197
|
+
st.end();
|
245
198
|
});
|
246
199
|
|
247
|
-
|
248
|
-
|
200
|
+
t.test('supports custom representations when filter=function', function (st) {
|
249
201
|
var calls = 0;
|
250
202
|
var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
|
251
203
|
var filterFunc = function (prefix, value) {
|
252
|
-
|
253
204
|
calls++;
|
254
205
|
if (calls === 1) {
|
255
|
-
|
256
|
-
|
257
|
-
}
|
258
|
-
else if (prefix === 'c') {
|
206
|
+
st.equal(prefix, '', 'prefix is empty');
|
207
|
+
st.equal(value, obj);
|
208
|
+
} else if (prefix === 'c') {
|
259
209
|
return;
|
260
|
-
}
|
261
|
-
|
262
|
-
expect(prefix).to.equal('e[f]');
|
210
|
+
} else if (value instanceof Date) {
|
211
|
+
st.equal(prefix, 'e[f]');
|
263
212
|
return value.getTime();
|
264
213
|
}
|
265
214
|
return value;
|
266
215
|
};
|
267
216
|
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
217
|
+
st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000');
|
218
|
+
st.equal(calls, 5);
|
219
|
+
st.end();
|
272
220
|
});
|
273
221
|
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
done();
|
222
|
+
t.test('can disable uri encoding', function (st) {
|
223
|
+
st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b');
|
224
|
+
st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c');
|
225
|
+
st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c');
|
226
|
+
st.end();
|
280
227
|
});
|
281
228
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
};
|
288
|
-
|
289
|
-
expect(Qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort : sort })).to.equal('a=c&b=f&z=y');
|
290
|
-
expect(Qs.stringify({ a: 'c', z: { j: 'a', i:'b' }, b : 'f' }, { sort : sort })).to.equal('a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
|
291
|
-
done();
|
229
|
+
t.test('can sort the keys', function (st) {
|
230
|
+
var sort = function (a, b) { return a.localeCompare(b); };
|
231
|
+
st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y');
|
232
|
+
st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
|
233
|
+
st.end();
|
292
234
|
});
|
293
235
|
});
|
@@ -1,28 +1,9 @@
|
|
1
|
-
|
1
|
+
'use strict';
|
2
2
|
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var Utils = require('../lib/utils');
|
3
|
+
var test = require('tape');
|
4
|
+
var utils = require('../lib/utils');
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
var internals = {};
|
11
|
-
|
12
|
-
|
13
|
-
// Test shortcuts
|
14
|
-
|
15
|
-
var lab = exports.lab = Lab.script();
|
16
|
-
var expect = Code.expect;
|
17
|
-
var describe = lab.experiment;
|
18
|
-
var it = lab.test;
|
19
|
-
|
20
|
-
|
21
|
-
describe('merge()', function () {
|
22
|
-
|
23
|
-
it('can merge two objects with the same key', function (done) {
|
24
|
-
|
25
|
-
expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] });
|
26
|
-
done();
|
27
|
-
});
|
6
|
+
test('merge()', function (t) {
|
7
|
+
t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
|
8
|
+
t.end();
|
28
9
|
});
|
@@ -1,5 +1,20 @@
|
|
1
1
|
## Change Log
|
2
2
|
|
3
|
+
### v2.68.0 (2016/01/27)
|
4
|
+
- [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
|
5
|
+
- [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
|
6
|
+
- [#2024](https://github.com/request/request/pull/2024) Update har-validator dependency for nsp advisory #76 (@TylerDixon)
|
7
|
+
- [#2016](https://github.com/request/request/pull/2016) Update qs to version 6.0.2 🚀 (@greenkeeperio-bot)
|
8
|
+
- [#2007](https://github.com/request/request/pull/2007) Use the `extend` module instead of util._extend (@simov)
|
9
|
+
- [#2003](https://github.com/request/request/pull/2003) Update browserify to version 13.0.0 🚀 (@greenkeeperio-bot)
|
10
|
+
- [#1989](https://github.com/request/request/pull/1989) Update buffer-equal to version 1.0.0 🚀 (@greenkeeperio-bot)
|
11
|
+
- [#1956](https://github.com/request/request/pull/1956) Check form-data content-length value before setting up the header (@jongyoonlee)
|
12
|
+
- [#1958](https://github.com/request/request/pull/1958) Use IncomingMessage.destroy method (@simov)
|
13
|
+
- [#1952](https://github.com/request/request/pull/1952) Adds example for Tor proxy (@prometheansacrifice)
|
14
|
+
- [#1943](https://github.com/request/request/pull/1943) Update eslint to version 1.10.3 🚀 (@simov, @greenkeeperio-bot)
|
15
|
+
- [#1924](https://github.com/request/request/pull/1924) Update eslint to version 1.10.1 🚀 (@greenkeeperio-bot)
|
16
|
+
- [#1915](https://github.com/request/request/pull/1915) Remove content-length and transfer-encoding headers from defaultProxyHeaderWhiteList (@yaxia)
|
17
|
+
|
3
18
|
### v2.67.0 (2015/11/19)
|
4
19
|
- [#1913](https://github.com/request/request/pull/1913) Update http-signature to version 1.1.0 🚀 (@greenkeeperio-bot)
|
5
20
|
|
@@ -455,7 +470,7 @@
|
|
455
470
|
- [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway421)
|
456
471
|
- [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
|
457
472
|
|
458
|
-
### v2.
|
473
|
+
### v2.18.0 (2013/04/22)
|
459
474
|
- [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway421)
|
460
475
|
- [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway421)
|
461
476
|
- [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
|
@@ -754,7 +754,7 @@ The first argument can be either a `url` or an `options` object. The only requir
|
|
754
754
|
- `auth` - A hash containing values `user` || `username`, `pass` || `password`, and `sendImmediately` (optional). See documentation above.
|
755
755
|
- `oauth` - Options for OAuth HMAC-SHA1 signing. See documentation above.
|
756
756
|
- `hawk` - Options for [Hawk signing](https://github.com/hueniverse/hawk). The `credentials` key must contain the necessary signing info, [see hawk docs for details](https://github.com/hueniverse/hawk#usage-example).
|
757
|
-
- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`. Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services)
|
757
|
+
- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`. Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. **Note:** you need to `npm install aws4` first.
|
758
758
|
- `httpSignature` - Options for the [HTTP Signature Scheme](https://github.com/joyent/node-http-signature/blob/master/http_signing.md) using [Joyent's library](https://github.com/joyent/node-http-signature). The `keyId` and `key` properties must be specified. See the docs for other options.
|
759
759
|
|
760
760
|
---
|
@@ -3,7 +3,7 @@
|
|
3
3
|
var fs = require('fs')
|
4
4
|
var qs = require('querystring')
|
5
5
|
var validate = require('har-validator')
|
6
|
-
var
|
6
|
+
var extend = require('extend')
|
7
7
|
|
8
8
|
function Har (request) {
|
9
9
|
this.request = request
|
@@ -118,7 +118,8 @@ Har.prototype.options = function (options) {
|
|
118
118
|
return options
|
119
119
|
}
|
120
120
|
|
121
|
-
var har =
|
121
|
+
var har = {}
|
122
|
+
extend(har, options.har)
|
122
123
|
|
123
124
|
// only process the first entry
|
124
125
|
if (har.log && har.log.entries) {
|
@@ -68,6 +68,9 @@ Multipart.prototype.build = function (parts, chunked) {
|
|
68
68
|
var body = chunked ? new CombinedStream() : []
|
69
69
|
|
70
70
|
function add (part) {
|
71
|
+
if (typeof part === 'number') {
|
72
|
+
part = part.toString()
|
73
|
+
}
|
71
74
|
return chunked ? body.append(part) : body.push(new Buffer(part))
|
72
75
|
}
|
73
76
|
|
@@ -12,7 +12,6 @@ var defaultProxyHeaderWhiteList = [
|
|
12
12
|
'cache-control',
|
13
13
|
'content-encoding',
|
14
14
|
'content-language',
|
15
|
-
'content-length',
|
16
15
|
'content-location',
|
17
16
|
'content-md5',
|
18
17
|
'content-range',
|
@@ -24,7 +23,6 @@ var defaultProxyHeaderWhiteList = [
|
|
24
23
|
'pragma',
|
25
24
|
'referer',
|
26
25
|
'te',
|
27
|
-
'transfer-encoding',
|
28
26
|
'user-agent',
|
29
27
|
'via'
|
30
28
|
]
|