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,121 +1,149 @@
|
|
1
|
-
// Load modules
|
2
|
-
|
3
|
-
var Code = require('code');
|
4
|
-
var Hawk = require('../lib');
|
5
|
-
var Lab = require('lab');
|
6
|
-
var Package = require('../package.json');
|
7
|
-
|
8
|
-
|
9
|
-
// Declare internals
|
10
|
-
|
11
|
-
var internals = {};
|
12
|
-
|
13
|
-
|
14
|
-
// Test shortcuts
|
15
|
-
|
16
|
-
var lab = exports.lab = Lab.script();
|
17
|
-
var describe = lab.experiment;
|
18
|
-
var it = lab.test;
|
19
|
-
var expect = Code.expect;
|
20
|
-
|
21
|
-
|
22
|
-
describe('Utils', function () {
|
23
|
-
|
24
|
-
describe('parseHost()', function () {
|
25
|
-
|
26
|
-
it('returns port 80 for non tls node request', function (done) {
|
27
|
-
|
28
|
-
var req = {
|
29
|
-
method: 'POST',
|
30
|
-
url: '/resource/4?filter=a',
|
31
|
-
headers: {
|
32
|
-
host: 'example.com',
|
33
|
-
'content-type': 'text/plain;x=y'
|
34
|
-
}
|
35
|
-
};
|
36
|
-
|
37
|
-
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(80);
|
38
|
-
done();
|
39
|
-
});
|
40
|
-
|
41
|
-
it('returns port 443 for non tls node request', function (done) {
|
42
|
-
|
43
|
-
var req = {
|
44
|
-
method: 'POST',
|
45
|
-
url: '/resource/4?filter=a',
|
46
|
-
headers: {
|
47
|
-
host: 'example.com',
|
48
|
-
'content-type': 'text/plain;x=y'
|
49
|
-
},
|
50
|
-
connection: {
|
51
|
-
encrypted: true
|
52
|
-
}
|
53
|
-
};
|
54
|
-
|
55
|
-
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443);
|
56
|
-
done();
|
57
|
-
});
|
58
|
-
|
59
|
-
it('returns port 443 for non tls node request (IPv6)', function (done) {
|
60
|
-
|
61
|
-
var req = {
|
62
|
-
method: 'POST',
|
63
|
-
url: '/resource/4?filter=a',
|
64
|
-
headers: {
|
65
|
-
host: '[123:123:123]',
|
66
|
-
'content-type': 'text/plain;x=y'
|
67
|
-
},
|
68
|
-
connection: {
|
69
|
-
encrypted: true
|
70
|
-
}
|
71
|
-
};
|
72
|
-
|
73
|
-
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443);
|
74
|
-
done();
|
75
|
-
});
|
76
|
-
|
77
|
-
it('parses IPv6 headers', function (done) {
|
78
|
-
|
79
|
-
var req = {
|
80
|
-
method: 'POST',
|
81
|
-
url: '/resource/4?filter=a',
|
82
|
-
headers: {
|
83
|
-
host: '[123:123:123]:8000',
|
84
|
-
'content-type': 'text/plain;x=y'
|
85
|
-
},
|
86
|
-
connection: {
|
87
|
-
encrypted: true
|
88
|
-
}
|
89
|
-
};
|
90
|
-
|
91
|
-
var host = Hawk.utils.parseHost(req, 'Host');
|
92
|
-
expect(host.port).to.equal('8000');
|
93
|
-
expect(host.name).to.equal('[123:123:123]');
|
94
|
-
done();
|
95
|
-
});
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
1
|
+
// Load modules
|
2
|
+
|
3
|
+
var Code = require('code');
|
4
|
+
var Hawk = require('../lib');
|
5
|
+
var Lab = require('lab');
|
6
|
+
var Package = require('../package.json');
|
7
|
+
|
8
|
+
|
9
|
+
// Declare internals
|
10
|
+
|
11
|
+
var internals = {};
|
12
|
+
|
13
|
+
|
14
|
+
// Test shortcuts
|
15
|
+
|
16
|
+
var lab = exports.lab = Lab.script();
|
17
|
+
var describe = lab.experiment;
|
18
|
+
var it = lab.test;
|
19
|
+
var expect = Code.expect;
|
20
|
+
|
21
|
+
|
22
|
+
describe('Utils', function () {
|
23
|
+
|
24
|
+
describe('parseHost()', function () {
|
25
|
+
|
26
|
+
it('returns port 80 for non tls node request', function (done) {
|
27
|
+
|
28
|
+
var req = {
|
29
|
+
method: 'POST',
|
30
|
+
url: '/resource/4?filter=a',
|
31
|
+
headers: {
|
32
|
+
host: 'example.com',
|
33
|
+
'content-type': 'text/plain;x=y'
|
34
|
+
}
|
35
|
+
};
|
36
|
+
|
37
|
+
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(80);
|
38
|
+
done();
|
39
|
+
});
|
40
|
+
|
41
|
+
it('returns port 443 for non tls node request', function (done) {
|
42
|
+
|
43
|
+
var req = {
|
44
|
+
method: 'POST',
|
45
|
+
url: '/resource/4?filter=a',
|
46
|
+
headers: {
|
47
|
+
host: 'example.com',
|
48
|
+
'content-type': 'text/plain;x=y'
|
49
|
+
},
|
50
|
+
connection: {
|
51
|
+
encrypted: true
|
52
|
+
}
|
53
|
+
};
|
54
|
+
|
55
|
+
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443);
|
56
|
+
done();
|
57
|
+
});
|
58
|
+
|
59
|
+
it('returns port 443 for non tls node request (IPv6)', function (done) {
|
60
|
+
|
61
|
+
var req = {
|
62
|
+
method: 'POST',
|
63
|
+
url: '/resource/4?filter=a',
|
64
|
+
headers: {
|
65
|
+
host: '[123:123:123]',
|
66
|
+
'content-type': 'text/plain;x=y'
|
67
|
+
},
|
68
|
+
connection: {
|
69
|
+
encrypted: true
|
70
|
+
}
|
71
|
+
};
|
72
|
+
|
73
|
+
expect(Hawk.utils.parseHost(req, 'Host').port).to.equal(443);
|
74
|
+
done();
|
75
|
+
});
|
76
|
+
|
77
|
+
it('parses IPv6 headers', function (done) {
|
78
|
+
|
79
|
+
var req = {
|
80
|
+
method: 'POST',
|
81
|
+
url: '/resource/4?filter=a',
|
82
|
+
headers: {
|
83
|
+
host: '[123:123:123]:8000',
|
84
|
+
'content-type': 'text/plain;x=y'
|
85
|
+
},
|
86
|
+
connection: {
|
87
|
+
encrypted: true
|
88
|
+
}
|
89
|
+
};
|
90
|
+
|
91
|
+
var host = Hawk.utils.parseHost(req, 'Host');
|
92
|
+
expect(host.port).to.equal('8000');
|
93
|
+
expect(host.name).to.equal('[123:123:123]');
|
94
|
+
done();
|
95
|
+
});
|
96
|
+
|
97
|
+
it('errors on header too long', function (done) {
|
98
|
+
|
99
|
+
var long = '';
|
100
|
+
for (var i = 0; i < 5000; ++i) {
|
101
|
+
long += 'x';
|
102
|
+
}
|
103
|
+
|
104
|
+
expect(Hawk.utils.parseHost({ headers: { host: long } })).to.be.null();
|
105
|
+
done();
|
106
|
+
});
|
107
|
+
});
|
108
|
+
|
109
|
+
describe('parseAuthorizationHeader()', function () {
|
110
|
+
|
111
|
+
it('errors on header too long', function (done) {
|
112
|
+
|
113
|
+
var long = 'Scheme a="';
|
114
|
+
for (var i = 0; i < 5000; ++i) {
|
115
|
+
long += 'x';
|
116
|
+
}
|
117
|
+
long += '"';
|
118
|
+
|
119
|
+
var err = Hawk.utils.parseAuthorizationHeader(long, ['a']);
|
120
|
+
expect(err).to.be.instanceof(Error);
|
121
|
+
expect(err.message).to.equal('Header length too long');
|
122
|
+
done();
|
123
|
+
});
|
124
|
+
});
|
125
|
+
|
126
|
+
describe('version()', function () {
|
127
|
+
|
128
|
+
it('returns the correct package version number', function (done) {
|
129
|
+
|
130
|
+
expect(Hawk.utils.version()).to.equal(Package.version);
|
131
|
+
done();
|
132
|
+
});
|
133
|
+
});
|
134
|
+
|
135
|
+
describe('unauthorized()', function () {
|
136
|
+
|
137
|
+
it('returns a hawk 401', function (done) {
|
138
|
+
|
139
|
+
expect(Hawk.utils.unauthorized('kaboom').output.headers['WWW-Authenticate']).to.equal('Hawk error="kaboom"');
|
140
|
+
done();
|
141
|
+
});
|
142
|
+
|
143
|
+
it('supports attributes', function (done) {
|
144
|
+
|
145
|
+
expect(Hawk.utils.unauthorized('kaboom', { a: 'b' }).output.headers['WWW-Authenticate']).to.equal('Hawk a="b", error="kaboom"');
|
146
|
+
done();
|
147
|
+
});
|
148
|
+
});
|
149
|
+
});
|
@@ -1,5 +1,12 @@
|
|
1
1
|
# node-http-signature changelog
|
2
2
|
|
3
|
+
## 1.1.1
|
4
|
+
|
5
|
+
- Version of dependency `assert-plus` updated: old version was missing
|
6
|
+
some license information
|
7
|
+
- Corrected examples in `http_signing.md`, added auto-tests to
|
8
|
+
automatically validate these examples
|
9
|
+
|
3
10
|
## 1.1.0
|
4
11
|
|
5
12
|
- Bump version of `sshpk` dependency, remove peerDependency on it since
|
@@ -231,7 +231,7 @@ will want to enforce, but service providers SHOULD at minimum include the
|
|
231
231
|
|
232
232
|
# Appendix A - Test Values
|
233
233
|
|
234
|
-
The following test data uses the RSA (
|
234
|
+
The following test data uses the RSA (1024b) keys, which we will refer
|
235
235
|
to as `keyId=Test` in the following samples:
|
236
236
|
|
237
237
|
-----BEGIN PUBLIC KEY-----
|
@@ -259,6 +259,8 @@ to as `keyId=Test` in the following samples:
|
|
259
259
|
|
260
260
|
And all examples use this request:
|
261
261
|
|
262
|
+
<!-- httpreq -->
|
263
|
+
|
262
264
|
POST /foo?param=value&pet=dog HTTP/1.1
|
263
265
|
Host: example.com
|
264
266
|
Date: Thu, 05 Jan 2014 21:31:40 GMT
|
@@ -268,21 +270,35 @@ And all examples use this request:
|
|
268
270
|
|
269
271
|
{"hello": "world"}
|
270
272
|
|
273
|
+
<!-- /httpreq -->
|
274
|
+
|
271
275
|
### Default
|
272
276
|
|
273
277
|
The string to sign would be:
|
274
278
|
|
279
|
+
<!-- sign {"name": "Default", "options": {"keyId":"Test", "algorithm": "rsa-sha256"}} -->
|
280
|
+
<!-- signstring -->
|
281
|
+
|
275
282
|
date: Thu, 05 Jan 2014 21:31:40 GMT
|
276
283
|
|
284
|
+
<!-- /signstring -->
|
285
|
+
|
277
286
|
The Authorization header would be:
|
278
287
|
|
279
|
-
|
288
|
+
<!-- authz -->
|
289
|
+
|
290
|
+
Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="date",signature="jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9HpFQlG7N4YcJPteKTu4MWCLyk+gIr0wDgqtLWf9NLpMAMimdfsH7FSWGfbMFSrsVTHNTk0rK3usrfFnti1dxsM4jl0kYJCKTGI/UWkqiaxwNiKqGcdlEDrTcUhhsFsOIo8VhddmZTZ8w="
|
291
|
+
|
292
|
+
<!-- /authz -->
|
280
293
|
|
281
294
|
### All Headers
|
282
295
|
|
283
296
|
Parameterized to include all headers, the string to sign would be (`+ "\n"`
|
284
297
|
inserted for readability):
|
285
298
|
|
299
|
+
<!-- sign {"name": "All Headers", "options": {"keyId":"Test", "algorithm": "rsa-sha256", "headers": ["(request-target)", "host", "date", "content-type", "digest", "content-length"]}} -->
|
300
|
+
<!-- signstring -->
|
301
|
+
|
286
302
|
(request-target): post /foo?param=value&pet=dog
|
287
303
|
host: example.com
|
288
304
|
date: Thu, 05 Jan 2014 21:31:40 GMT
|
@@ -290,6 +306,58 @@ inserted for readability):
|
|
290
306
|
digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=
|
291
307
|
content-length: 18
|
292
308
|
|
309
|
+
<!-- /signstring -->
|
310
|
+
|
293
311
|
The Authorization header would be:
|
294
312
|
|
295
|
-
|
313
|
+
<!-- authz -->
|
314
|
+
|
315
|
+
Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="(request-target) host date content-type digest content-length",signature="Ef7MlxLXoBovhil3AlyjtBwAL9g4TN3tibLj7uuNB3CROat/9KaeQ4hW2NiJ+pZ6HQEOx9vYZAyi+7cmIkmJszJCut5kQLAwuX+Ms/mUFvpKlSo9StS2bMXDBNjOh4Auj774GFj4gwjS+3NhFeoqyr/MuN6HsEnkvn6zdgfE2i0="
|
316
|
+
|
317
|
+
<!-- /authz -->
|
318
|
+
|
319
|
+
## Generating and verifying signatures using `openssl`
|
320
|
+
|
321
|
+
The `openssl` commandline tool can be used to generate or verify the signatures listed above.
|
322
|
+
|
323
|
+
Compose the signing string as usual, and pipe it into the the `openssl dgst` command, then into `openssl enc -base64`, as follows:
|
324
|
+
|
325
|
+
$ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
|
326
|
+
openssl dgst -binary -sign /path/to/private.pem -sha256 | \
|
327
|
+
openssl enc -base64
|
328
|
+
jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9Hp...
|
329
|
+
$
|
330
|
+
|
331
|
+
The `-sha256` option is necessary to produce an `rsa-sha256` signature. You can select other hash algorithms such as `sha1` by changing this argument.
|
332
|
+
|
333
|
+
To verify a signature, first save the signature data, Base64-decoded, into a file, then use `openssl dgst` again with the `-verify` option:
|
334
|
+
|
335
|
+
$ echo 'jKyvPcxB4JbmYY4mByy...' | openssl enc -A -d -base64 > signature
|
336
|
+
$ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
|
337
|
+
openssl dgst -sha256 -verify /path/to/public.pem -signature ./signature
|
338
|
+
Verified OK
|
339
|
+
$
|
340
|
+
|
341
|
+
## Generating and verifying signatures using `sshpk-sign`
|
342
|
+
|
343
|
+
You can also generate and check signatures using the `sshpk-sign` tool which is
|
344
|
+
included with the `sshpk` package in `npm`.
|
345
|
+
|
346
|
+
Compose the signing string as above, and pipe it into `sshpk-sign` as follows:
|
347
|
+
|
348
|
+
$ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
|
349
|
+
sshpk-sign -i /path/to/private.pem
|
350
|
+
jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9Hp...
|
351
|
+
$
|
352
|
+
|
353
|
+
This will produce an `rsa-sha256` signature by default, as you can see using
|
354
|
+
the `-v` option:
|
355
|
+
|
356
|
+
sshpk-sign: using rsa-sha256 with a 1024 bit key
|
357
|
+
|
358
|
+
You can also use `sshpk-verify` in a similar manner:
|
359
|
+
|
360
|
+
$ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
|
361
|
+
sshpk-verify -i ./public.pem -s 'jKyvPcxB4JbmYY...'
|
362
|
+
OK
|
363
|
+
$
|
@@ -342,6 +342,11 @@ module.exports = {
|
|
342
342
|
stringToSign += '\n';
|
343
343
|
}
|
344
344
|
|
345
|
+
/* This is just for unit tests. */
|
346
|
+
if (request.hasOwnProperty('_stringToSign')) {
|
347
|
+
request._stringToSign = stringToSign;
|
348
|
+
}
|
349
|
+
|
345
350
|
var signature;
|
346
351
|
if (alg[0] === 'hmac') {
|
347
352
|
if (typeof (options.key) !== 'string' && !Buffer.isBuffer(options.key))
|
@@ -1,19 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"_from": "http-signature@~1.1.0",
|
3
|
-
"_id": "http-signature@1.1.
|
3
|
+
"_id": "http-signature@1.1.1",
|
4
4
|
"_location": "/http-signature",
|
5
|
-
"_nodeVersion": "0.12.
|
5
|
+
"_nodeVersion": "0.12.9",
|
6
6
|
"_npmUser": {
|
7
7
|
"email": "alex@cooperi.net",
|
8
8
|
"name": "arekinath"
|
9
9
|
},
|
10
|
-
"_npmVersion": "2.14.
|
10
|
+
"_npmVersion": "2.14.9",
|
11
11
|
"_phantomChildren": {},
|
12
12
|
"_requiredBy": [
|
13
13
|
"/request"
|
14
14
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.
|
16
|
-
"_shasum": "
|
15
|
+
"_resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
|
16
|
+
"_shasum": "df72e267066cd0ac67fb76adf8e134a8fbcf91bf",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"name": "Joyent, Inc"
|
19
20
|
},
|
@@ -35,7 +36,7 @@
|
|
35
36
|
}
|
36
37
|
],
|
37
38
|
"dependencies": {
|
38
|
-
"assert-plus": "^0.
|
39
|
+
"assert-plus": "^0.2.0",
|
39
40
|
"jsprim": "^1.2.2",
|
40
41
|
"sshpk": "^1.7.0"
|
41
42
|
},
|
@@ -46,14 +47,14 @@
|
|
46
47
|
},
|
47
48
|
"directories": {},
|
48
49
|
"dist": {
|
49
|
-
"shasum": "
|
50
|
-
"tarball": "http://registry.npmjs.org/http-signature/-/http-signature-1.1.
|
50
|
+
"shasum": "df72e267066cd0ac67fb76adf8e134a8fbcf91bf",
|
51
|
+
"tarball": "http://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz"
|
51
52
|
},
|
52
53
|
"engines": {
|
53
54
|
"node": ">=0.8",
|
54
55
|
"npm": ">=1.3.7"
|
55
56
|
},
|
56
|
-
"gitHead": "
|
57
|
+
"gitHead": "74d3f35e3aa436d83723c53b01e266f448e8149a",
|
57
58
|
"homepage": "https://github.com/joyent/node-http-signature/",
|
58
59
|
"keywords": [
|
59
60
|
"https",
|
@@ -77,7 +78,8 @@
|
|
77
78
|
],
|
78
79
|
"name": "http-signature",
|
79
80
|
"optionalDependencies": {},
|
80
|
-
"readme": "
|
81
|
+
"readme": "# node-http-signature\n\nnode-http-signature is a node.js library that has client and server components\nfor Joyent's [HTTP Signature Scheme](http_signing.md).\n\n## Usage\n\nNote the example below signs a request with the same key/cert used to start an\nHTTP server. This is almost certainly not what you actually want, but is just\nused to illustrate the API calls; you will need to provide your own key\nmanagement in addition to this library.\n\n### Client\n\n```js\nvar fs = require('fs');\nvar https = require('https');\nvar httpSignature = require('http-signature');\n\nvar key = fs.readFileSync('./key.pem', 'ascii');\n\nvar options = {\n host: 'localhost',\n port: 8443,\n path: '/',\n method: 'GET',\n headers: {}\n};\n\n// Adds a 'Date' header in, signs it, and adds the\n// 'Authorization' header in.\nvar req = https.request(options, function(res) {\n console.log(res.statusCode);\n});\n\n\nhttpSignature.sign(req, {\n key: key,\n keyId: './cert.pem'\n});\n\nreq.end();\n```\n\n### Server\n\n```js\nvar fs = require('fs');\nvar https = require('https');\nvar httpSignature = require('http-signature');\n\nvar options = {\n key: fs.readFileSync('./key.pem'),\n cert: fs.readFileSync('./cert.pem')\n};\n\nhttps.createServer(options, function (req, res) {\n var rc = 200;\n var parsed = httpSignature.parseRequest(req);\n var pub = fs.readFileSync(parsed.keyId, 'ascii');\n if (!httpSignature.verifySignature(parsed, pub))\n rc = 401;\n\n res.writeHead(rc);\n res.end();\n}).listen(8443);\n```\n\n## Installation\n\n npm install http-signature\n\n## License\n\nMIT.\n\n## Bugs\n\nSee <https://github.com/joyent/node-http-signature/issues>.\n",
|
82
|
+
"readmeFilename": "README.md",
|
81
83
|
"repository": {
|
82
84
|
"type": "git",
|
83
85
|
"url": "git://github.com/joyent/node-http-signature.git"
|
@@ -85,5 +87,5 @@
|
|
85
87
|
"scripts": {
|
86
88
|
"test": "tap test/*.js"
|
87
89
|
},
|
88
|
-
"version": "1.1.
|
90
|
+
"version": "1.1.1"
|
89
91
|
}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz",
|
16
16
|
"_shasum": "0537cb79daf59b59a1a517dff706c86ec039162e",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"email": "i@izs.me",
|
19
20
|
"name": "Isaac Z. Schlueter",
|
@@ -50,7 +51,8 @@
|
|
50
51
|
],
|
51
52
|
"name": "ini",
|
52
53
|
"optionalDependencies": {},
|
53
|
-
"readme": "
|
54
|
+
"readme": "An ini format parser and serializer for node.\n\nSections are treated as nested objects. Items before the first\nheading are saved on the object directly.\n\n## Usage\n\nConsider an ini-file `config.ini` that looks like this:\n\n ; this comment is being ignored\n scope = global\n\n [database]\n user = dbuser\n password = dbpassword\n database = use_this_database\n\n [paths.default]\n datadir = /var/lib/data\n array[] = first value\n array[] = second value\n array[] = third value\n\nYou can read, manipulate and write the ini-file like so:\n\n var fs = require('fs')\n , ini = require('ini')\n\n var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8'))\n\n config.scope = 'local'\n config.database.database = 'use_another_database'\n config.paths.default.tmpdir = '/tmp'\n delete config.paths.default.datadir\n config.paths.default.array.push('fourth value')\n\n fs.writeFileSync('./config_modified.ini', ini.stringify(config, { section: 'section' }))\n\nThis will result in a file called `config_modified.ini` being written\nto the filesystem with the following content:\n\n [section]\n scope=local\n [section.database]\n user=dbuser\n password=dbpassword\n database=use_another_database\n [section.paths.default]\n tmpdir=/tmp\n array[]=first value\n array[]=second value\n array[]=third value\n array[]=fourth value\n\n\n## API\n\n### decode(inistring)\n\nDecode the ini-style formatted `inistring` into a nested object.\n\n### parse(inistring)\n\nAlias for `decode(inistring)`\n\n### encode(object, [options])\n\nEncode the object `object` into an ini-style formatted string. If the\noptional parameter `section` is given, then all top-level properties\nof the object are put into this section and the `section`-string is\nprepended to all sub-sections, see the usage example above.\n\nThe `options` object may contain the following:\n\n* `section` A string which will be the first `section` in the encoded\n ini data. Defaults to none.\n* `whitespace` Boolean to specify whether to put whitespace around the\n `=` character. By default, whitespace is omitted, to be friendly to\n some persnickety old parsers that don't tolerate it well. But some\n find that it's more human-readable and pretty with the whitespace.\n\nFor backwards compatibility reasons, if a `string` options is passed\nin, then it is assumed to be the `section` value.\n\n### stringify(object, [options])\n\nAlias for `encode(object, [options])`\n\n### safe(val)\n\nEscapes the string `val` such that it is safe to be used as a key or\nvalue in an ini-file. Basically escapes quotes. For example\n\n ini.safe('\"unsafe string\"')\n\nwould result in\n\n \"\\\"unsafe string\\\"\"\n\n### unsafe(val)\n\nUnescapes the string `val`\n",
|
55
|
+
"readmeFilename": "README.md",
|
54
56
|
"repository": {
|
55
57
|
"type": "git",
|
56
58
|
"url": "git://github.com/isaacs/ini.git"
|
@@ -11,4 +11,4 @@ exports['alpha'] = /^[a-zA-Z]+$/
|
|
11
11
|
exports['alphanumeric'] = /^[a-zA-Z0-9]+$/
|
12
12
|
exports['style'] = /\s*(.+?):\s*([^;]+);?/g
|
13
13
|
exports['phone'] = /^\+(?:[0-9] ?){6,14}[0-9]$/
|
14
|
-
exports['utc-millisec'] = /^[0-9]
|
14
|
+
exports['utc-millisec'] = /^[0-9]{1,15}\.?[0-9]{0,15}$/
|
@@ -1,19 +1,20 @@
|
|
1
1
|
{
|
2
|
-
"_from": "is-my-json-valid@^2.12.
|
3
|
-
"_id": "is-my-json-valid@2.12.
|
2
|
+
"_from": "is-my-json-valid@^2.12.4",
|
3
|
+
"_id": "is-my-json-valid@2.12.4",
|
4
4
|
"_location": "/is-my-json-valid",
|
5
|
-
"_nodeVersion": "4.
|
5
|
+
"_nodeVersion": "4.2.3",
|
6
6
|
"_npmUser": {
|
7
7
|
"email": "mathiasbuus@gmail.com",
|
8
8
|
"name": "mafintosh"
|
9
9
|
},
|
10
|
-
"_npmVersion": "2.14.
|
10
|
+
"_npmVersion": "2.14.7",
|
11
11
|
"_phantomChildren": {},
|
12
12
|
"_requiredBy": [
|
13
13
|
"/har-validator"
|
14
14
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.
|
16
|
-
"_shasum": "
|
15
|
+
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.4.tgz",
|
16
|
+
"_shasum": "d4ed2bc1d7f88daf8d0f763b3e3e39a69bd37880",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"name": "Mathias Buus"
|
19
20
|
},
|
@@ -32,10 +33,10 @@
|
|
32
33
|
},
|
33
34
|
"directories": {},
|
34
35
|
"dist": {
|
35
|
-
"shasum": "
|
36
|
-
"tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.
|
36
|
+
"shasum": "d4ed2bc1d7f88daf8d0f763b3e3e39a69bd37880",
|
37
|
+
"tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.4.tgz"
|
37
38
|
},
|
38
|
-
"gitHead": "
|
39
|
+
"gitHead": "8978aa8f40eef4ac47a5d18270c13abd48927ddb",
|
39
40
|
"homepage": "https://github.com/mafintosh/is-my-json-valid",
|
40
41
|
"keywords": [
|
41
42
|
"json",
|
@@ -73,5 +74,5 @@
|
|
73
74
|
"scripts": {
|
74
75
|
"test": "tape test/*.js"
|
75
76
|
},
|
76
|
-
"version": "2.12.
|
77
|
+
"version": "2.12.4"
|
77
78
|
}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"_resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
|
16
16
|
"_shasum": "e479c80858df0c1b11ddda6940f96011fcda4a9a",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"email": "hughskennedy@gmail.com",
|
19
20
|
"name": "Hugh Kennedy",
|
@@ -51,7 +52,8 @@
|
|
51
52
|
],
|
52
53
|
"name": "is-typedarray",
|
53
54
|
"optionalDependencies": {},
|
54
|
-
"readme": "
|
55
|
+
"readme": "# is-typedarray [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges)\n\nDetect whether or not an object is a\n[Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays).\n\n## Usage\n\n[![NPM](https://nodei.co/npm/is-typedarray.png)](https://nodei.co/npm/is-typedarray/)\n\n### isTypedArray(array)\n\nReturns `true` when array is a Typed Array, and `false` when it is not.\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details.\n",
|
56
|
+
"readmeFilename": "README.md",
|
55
57
|
"repository": {
|
56
58
|
"type": "git",
|
57
59
|
"url": "git://github.com/hughsk/is-typedarray.git"
|
@@ -9,11 +9,11 @@
|
|
9
9
|
"_npmVersion": "1.2.18",
|
10
10
|
"_phantomChildren": {},
|
11
11
|
"_requiredBy": [
|
12
|
-
"/readable-stream"
|
13
|
-
"/tar-pack/readable-stream"
|
12
|
+
"/readable-stream"
|
14
13
|
],
|
15
14
|
"_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
|
16
15
|
"_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
|
16
|
+
"_shrinkwrap": null,
|
17
17
|
"author": {
|
18
18
|
"email": "mail@juliangruber.com",
|
19
19
|
"name": "Julian Gruber",
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"_resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz",
|
16
16
|
"_shasum": "06d4912255093419477d425633606e0e90782967",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"name": "Michele Bini, Ron Garret, Guy K. Kloss"
|
19
20
|
},
|
@@ -65,7 +66,8 @@
|
|
65
66
|
],
|
66
67
|
"name": "jodid25519",
|
67
68
|
"optionalDependencies": {},
|
68
|
-
"readme": "
|
69
|
+
"readme": "Jodid25519 [![Build Status](https://secure.travis-ci.org/meganz/jodid25519.png)](https://travis-ci.org/meganz/jodid25519)\n===================================================================================================================================\n\nJavascript implementation of the Curve25519 and Ed25519 elliptic cryptography functions by Daniel J. Bernstein.\n\nFor the API, please consult the generated documentation under doc/ (you can run `make` to generate it).\n\nTo run the tests do the following on the console from the project's root directory:\n\n $ npm install\n $ make test\n\n\nContributors\n------------\n\nIf you are one of the contributors and want to add yourself or change the information here, please do submit a pull request. Contributors appear in no particular order.\n\n### For the Curve25519 submodule\n\n* [Graydon Hoare](https://github.com/graydon): suggested clamping the private key by default for increased safety and uniformity with other implementations.\n* [liliakai](https://github.com/liliakai): spotted an unused argument in some of the functions\n* [RyanC](https://github.com/ryancdotorg): removed dependency of a function to the Javascript Math library\n* [Guy Kloss](https://github.com/pohutukawa): performance improvements through bit-shift operations, performance and conformance testing, documentation, compatibility with the npm package ecosystem, and more\n* [Michele Bini](https://github.com/rev22): originally wrote the Javascript implementation\n\n\nCopyright and MIT licensing\n---------------------------\n\n* Copyright (c) 2012 Ron Garret\n* Copyright (c) 2007, 2013, 2014 Michele Bini <michele.bini@gmail.com>\n* Copyright (c) 2014 Mega Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
|
70
|
+
"readmeFilename": "README.md",
|
69
71
|
"repository": {
|
70
72
|
"type": "git",
|
71
73
|
"url": "git+https://github.com/meganz/jodid25519.git"
|