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
@@ -2,76 +2,82 @@
|
|
2
2
|
|
3
3
|
A querystring parsing and stringifying library with some added security.
|
4
4
|
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://api.travis-ci.org/ljharb/qs.svg)](http://travis-ci.org/ljharb/qs)
|
6
6
|
|
7
|
-
Lead Maintainer: [
|
7
|
+
Lead Maintainer: [Jordan Harband](https://github.com/ljharb)
|
8
8
|
|
9
9
|
The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring).
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
13
|
```javascript
|
14
|
-
var
|
14
|
+
var qs = require('qs');
|
15
|
+
var assert = require('assert');
|
15
16
|
|
16
|
-
var obj =
|
17
|
-
|
17
|
+
var obj = qs.parse('a=c');
|
18
|
+
assert.deepEqual(obj, { a: 'c' });
|
19
|
+
|
20
|
+
var str = qs.stringify(obj);
|
21
|
+
assert.equal(str, 'a=c');
|
18
22
|
```
|
19
23
|
|
20
24
|
### Parsing Objects
|
21
25
|
|
26
|
+
[](#preventEval)
|
22
27
|
```javascript
|
23
|
-
|
28
|
+
qs.parse(string, [options]);
|
24
29
|
```
|
25
30
|
|
26
31
|
**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`.
|
27
32
|
For example, the string `'foo[bar]=baz'` converts to:
|
28
33
|
|
29
34
|
```javascript
|
30
|
-
{
|
35
|
+
assert.deepEqual(qs.parse('foo[bar]=baz'), {
|
31
36
|
foo: {
|
32
37
|
bar: 'baz'
|
33
38
|
}
|
34
|
-
}
|
39
|
+
});
|
35
40
|
```
|
36
41
|
|
37
42
|
When using the `plainObjects` option the parsed value is returned as a plain object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
|
38
43
|
|
39
44
|
```javascript
|
40
|
-
|
41
|
-
|
45
|
+
var plainObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true });
|
46
|
+
assert.deepEqual(plainObject, { a: { hasOwnProperty: 'b' } });
|
42
47
|
```
|
43
48
|
|
44
49
|
By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.
|
45
50
|
|
46
51
|
```javascript
|
47
|
-
|
48
|
-
|
52
|
+
var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true });
|
53
|
+
assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } });
|
49
54
|
```
|
50
55
|
|
51
56
|
URI encoded strings work too:
|
52
57
|
|
53
58
|
```javascript
|
54
|
-
|
55
|
-
|
59
|
+
assert.deepEqual(qs.parse('a%5Bb%5D=c'), {
|
60
|
+
a: { b: 'c' }
|
61
|
+
});
|
56
62
|
```
|
57
63
|
|
58
64
|
You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:
|
59
65
|
|
60
66
|
```javascript
|
61
|
-
{
|
67
|
+
assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), {
|
62
68
|
foo: {
|
63
69
|
bar: {
|
64
70
|
baz: 'foobarbaz'
|
65
71
|
}
|
66
72
|
}
|
67
|
-
}
|
73
|
+
});
|
68
74
|
```
|
69
75
|
|
70
76
|
By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like
|
71
77
|
`'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
|
72
78
|
|
73
79
|
```javascript
|
74
|
-
{
|
80
|
+
var expected = {
|
75
81
|
a: {
|
76
82
|
b: {
|
77
83
|
c: {
|
@@ -85,14 +91,16 @@ By default, when nesting objects **qs** will only parse up to 5 children deep. T
|
|
85
91
|
}
|
86
92
|
}
|
87
93
|
}
|
88
|
-
}
|
94
|
+
};
|
95
|
+
var string = 'a[b][c][d][e][f][g][h][i]=j';
|
96
|
+
assert.deepEqual(qs.parse(string), expected);
|
89
97
|
```
|
90
98
|
|
91
|
-
This depth can be overridden by passing a `depth` option to `
|
99
|
+
This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`:
|
92
100
|
|
93
101
|
```javascript
|
94
|
-
|
95
|
-
|
102
|
+
var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
|
103
|
+
assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } });
|
96
104
|
```
|
97
105
|
|
98
106
|
The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number.
|
@@ -100,29 +108,29 @@ The depth limit helps mitigate abuse when **qs** is used to parse user input, an
|
|
100
108
|
For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
|
101
109
|
|
102
110
|
```javascript
|
103
|
-
|
104
|
-
|
111
|
+
var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
|
112
|
+
assert.deepEqual(limited, { a: 'b' });
|
105
113
|
```
|
106
114
|
|
107
115
|
An optional delimiter can also be passed:
|
108
116
|
|
109
117
|
```javascript
|
110
|
-
|
111
|
-
|
118
|
+
var delimited = qs.parse('a=b;c=d', { delimiter: ';' });
|
119
|
+
assert.deepEqual(delimited, { a: 'b', c: 'd' });
|
112
120
|
```
|
113
121
|
|
114
122
|
Delimiters can be a regular expression too:
|
115
123
|
|
116
124
|
```javascript
|
117
|
-
|
118
|
-
|
125
|
+
var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
|
126
|
+
assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' });
|
119
127
|
```
|
120
128
|
|
121
129
|
Option `allowDots` can be used to enable dot notation:
|
122
130
|
|
123
131
|
```javascript
|
124
|
-
|
125
|
-
|
132
|
+
var withDots = qs.parse('a.b=c', { allowDots: true });
|
133
|
+
assert.deepEqual(withDots, { a: { b: 'c' } });
|
126
134
|
```
|
127
135
|
|
128
136
|
### Parsing Arrays
|
@@ -130,15 +138,15 @@ Qs.parse('a.b=c', { allowDots: true });
|
|
130
138
|
**qs** can also parse arrays using a similar `[]` notation:
|
131
139
|
|
132
140
|
```javascript
|
133
|
-
|
134
|
-
|
141
|
+
var withArray = qs.parse('a[]=b&a[]=c');
|
142
|
+
assert.deepEqual(withArray, { a: ['b', 'c'] });
|
135
143
|
```
|
136
144
|
|
137
145
|
You may specify an index as well:
|
138
146
|
|
139
147
|
```javascript
|
140
|
-
|
141
|
-
|
148
|
+
var withIndexes = qs.parse('a[1]=c&a[0]=b');
|
149
|
+
assert.deepEqual(withIndexes, { a: ['b', 'c'] });
|
142
150
|
```
|
143
151
|
|
144
152
|
Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number
|
@@ -146,75 +154,75 @@ to create an array. When creating arrays with specific indices, **qs** will comp
|
|
146
154
|
their order:
|
147
155
|
|
148
156
|
```javascript
|
149
|
-
|
150
|
-
|
157
|
+
var noSparse = qs.parse('a[1]=b&a[15]=c');
|
158
|
+
assert.deepEqual(noSparse, { a: ['b', 'c'] });
|
151
159
|
```
|
152
160
|
|
153
161
|
Note that an empty string is also a value, and will be preserved:
|
154
162
|
|
155
163
|
```javascript
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
164
|
+
var withEmptyString = qs.parse('a[]=&a[]=b');
|
165
|
+
assert.deepEqual(withEmptyString, { a: ['', 'b'] });
|
166
|
+
|
167
|
+
var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c');
|
168
|
+
assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
|
160
169
|
```
|
161
170
|
|
162
171
|
**qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
|
163
172
|
instead be converted to an object with the index as the key:
|
164
173
|
|
165
174
|
```javascript
|
166
|
-
|
167
|
-
|
175
|
+
var withMaxIndex = qs.parse('a[100]=b');
|
176
|
+
assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
|
168
177
|
```
|
169
178
|
|
170
179
|
This limit can be overridden by passing an `arrayLimit` option:
|
171
180
|
|
172
181
|
```javascript
|
173
|
-
|
174
|
-
|
182
|
+
var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
|
183
|
+
assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
|
175
184
|
```
|
176
185
|
|
177
186
|
To disable array parsing entirely, set `parseArrays` to `false`.
|
178
187
|
|
179
188
|
```javascript
|
180
|
-
|
181
|
-
|
189
|
+
var noParsingArrays = qs.parse('a[]=b', { parseArrays: false });
|
190
|
+
assert.deepEqual(noParsingArrays, { a: { '0': 'b' } });
|
182
191
|
```
|
183
192
|
|
184
193
|
If you mix notations, **qs** will merge the two items into an object:
|
185
194
|
|
186
195
|
```javascript
|
187
|
-
|
188
|
-
|
196
|
+
var mixedNotation = qs.parse('a[0]=b&a[b]=c');
|
197
|
+
assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } });
|
189
198
|
```
|
190
199
|
|
191
200
|
You can also create arrays of objects:
|
192
201
|
|
193
202
|
```javascript
|
194
|
-
|
195
|
-
|
203
|
+
var arraysOfObjects = qs.parse('a[][b]=c');
|
204
|
+
assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] });
|
196
205
|
```
|
197
206
|
|
198
207
|
### Stringifying
|
199
208
|
|
209
|
+
[](#preventEval)
|
200
210
|
```javascript
|
201
|
-
|
211
|
+
qs.stringify(object, [options]);
|
202
212
|
```
|
203
213
|
|
204
214
|
When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
|
205
215
|
|
206
216
|
```javascript
|
207
|
-
|
208
|
-
|
209
|
-
Qs.stringify({ a: { b: 'c' } });
|
210
|
-
// 'a%5Bb%5D=c'
|
217
|
+
assert.equal(qs.stringify({ a: 'b' }), 'a=b');
|
218
|
+
assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
|
211
219
|
```
|
212
220
|
|
213
221
|
This encoding can be disabled by setting the `encode` option to `false`:
|
214
222
|
|
215
223
|
```javascript
|
216
|
-
|
217
|
-
|
224
|
+
var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false });
|
225
|
+
assert.equal(unencoded, 'a[b]=c');
|
218
226
|
```
|
219
227
|
|
220
228
|
Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
|
@@ -222,47 +230,44 @@ Examples beyond this point will be shown as though the output is not URI encoded
|
|
222
230
|
When arrays are stringified, by default they are given explicit indices:
|
223
231
|
|
224
232
|
```javascript
|
225
|
-
|
233
|
+
qs.stringify({ a: ['b', 'c', 'd'] });
|
226
234
|
// 'a[0]=b&a[1]=c&a[2]=d'
|
227
235
|
```
|
228
236
|
|
229
237
|
You may override this by setting the `indices` option to `false`:
|
230
238
|
|
231
239
|
```javascript
|
232
|
-
|
240
|
+
qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
|
233
241
|
// 'a=b&a=c&a=d'
|
234
242
|
```
|
235
243
|
|
236
244
|
You may use the `arrayFormat` option to specify the format of the output array
|
237
245
|
|
238
246
|
```javascript
|
239
|
-
|
247
|
+
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
|
240
248
|
// 'a[0]=b&a[1]=c'
|
241
|
-
|
249
|
+
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
|
242
250
|
// 'a[]=b&a[]=c'
|
243
|
-
|
251
|
+
qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
|
244
252
|
// 'a=b&a=c'
|
245
253
|
```
|
246
254
|
|
247
255
|
Empty strings and null values will omit the value, but the equals sign (=) remains in place:
|
248
256
|
|
249
257
|
```javascript
|
250
|
-
|
251
|
-
// 'a='
|
258
|
+
assert.equal(qs.stringify({ a: '' }), 'a=');
|
252
259
|
```
|
253
260
|
|
254
261
|
Properties that are set to `undefined` will be omitted entirely:
|
255
262
|
|
256
263
|
```javascript
|
257
|
-
|
258
|
-
// 'a='
|
264
|
+
assert.equal(qs.stringify({ a: null, b: undefined }), 'a=');
|
259
265
|
```
|
260
266
|
|
261
267
|
The delimiter may be overridden with stringify as well:
|
262
268
|
|
263
269
|
```javascript
|
264
|
-
|
265
|
-
// 'a=b;c=d'
|
270
|
+
assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
|
266
271
|
```
|
267
272
|
|
268
273
|
Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
|
@@ -283,11 +288,11 @@ function filterFunc(prefix, value) {
|
|
283
288
|
}
|
284
289
|
return value;
|
285
290
|
}
|
286
|
-
|
291
|
+
qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc });
|
287
292
|
// 'a=b&c=d&e[f]=123&e[g][0]=4'
|
288
|
-
|
293
|
+
qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] });
|
289
294
|
// 'a=b&e=f'
|
290
|
-
|
295
|
+
qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] });
|
291
296
|
// 'a[0]=b&a[2]=d'
|
292
297
|
```
|
293
298
|
|
@@ -296,36 +301,35 @@ Qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] })
|
|
296
301
|
By default, `null` values are treated like empty strings:
|
297
302
|
|
298
303
|
```javascript
|
299
|
-
|
300
|
-
|
304
|
+
var withNull = qs.stringify({ a: null, b: '' });
|
305
|
+
assert.equal(withNull, 'a=&b=');
|
301
306
|
```
|
302
307
|
|
303
308
|
Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
|
304
309
|
|
305
310
|
```javascript
|
306
|
-
|
307
|
-
|
311
|
+
var equalsInsensitive = qs.parse('a&b=');
|
312
|
+
assert.deepEqual(equalsInsensitive, { a: '', b: '' });
|
308
313
|
```
|
309
314
|
|
310
315
|
To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
|
311
316
|
values have no `=` sign:
|
312
317
|
|
313
318
|
```javascript
|
314
|
-
|
315
|
-
|
319
|
+
var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
|
320
|
+
assert.equal(strictNull, 'a&b=');
|
316
321
|
```
|
317
322
|
|
318
323
|
To parse values without `=` back to `null` use the `strictNullHandling` flag:
|
319
324
|
|
320
325
|
```javascript
|
321
|
-
|
322
|
-
|
323
|
-
|
326
|
+
var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true });
|
327
|
+
assert.deepEqual(parsedStrictNull, { a: null, b: '' });
|
324
328
|
```
|
325
329
|
|
326
330
|
To completely skip rendering keys with `null` values, use the `skipNulls` flag:
|
327
331
|
|
328
332
|
```javascript
|
329
|
-
qs.stringify({ a: 'b', c: null}, { skipNulls: true })
|
330
|
-
|
333
|
+
var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true });
|
334
|
+
assert.equal(nullsSkipped, 'a=b');
|
331
335
|
```
|