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,20 +1,22 @@
|
|
1
1
|
{
|
2
2
|
"_from": "rimraf@~2.5.0",
|
3
|
-
"_id": "rimraf@2.5.
|
3
|
+
"_id": "rimraf@2.5.1",
|
4
4
|
"_location": "/rimraf",
|
5
5
|
"_nodeVersion": "4.0.0",
|
6
6
|
"_npmUser": {
|
7
7
|
"email": "i@izs.me",
|
8
8
|
"name": "isaacs"
|
9
9
|
},
|
10
|
-
"_npmVersion": "
|
10
|
+
"_npmVersion": "2.14.15",
|
11
11
|
"_phantomChildren": {},
|
12
12
|
"_requiredBy": [
|
13
13
|
"/fstream",
|
14
|
-
"/node-pre-gyp"
|
14
|
+
"/node-pre-gyp",
|
15
|
+
"/tar-pack"
|
15
16
|
],
|
16
|
-
"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.
|
17
|
-
"_shasum": "
|
17
|
+
"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.1.tgz",
|
18
|
+
"_shasum": "52e1e946f3f9b9b0d5d8988ba3191aaf2a2dbd43",
|
19
|
+
"_shrinkwrap": null,
|
18
20
|
"author": {
|
19
21
|
"email": "i@izs.me",
|
20
22
|
"name": "Isaac Z. Schlueter",
|
@@ -32,12 +34,12 @@
|
|
32
34
|
"description": "A deep deletion module for node (like `rm -rf`)",
|
33
35
|
"devDependencies": {
|
34
36
|
"mkdirp": "^0.5.1",
|
35
|
-
"tap": "^
|
37
|
+
"tap": "^5.1.1"
|
36
38
|
},
|
37
39
|
"directories": {},
|
38
40
|
"dist": {
|
39
|
-
"shasum": "
|
40
|
-
"tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.5.
|
41
|
+
"shasum": "52e1e946f3f9b9b0d5d8988ba3191aaf2a2dbd43",
|
42
|
+
"tarball": "http://registry.npmjs.org/rimraf/-/rimraf-2.5.1.tgz"
|
41
43
|
},
|
42
44
|
"files": [
|
43
45
|
"LICENSE",
|
@@ -45,7 +47,7 @@
|
|
45
47
|
"bin.js",
|
46
48
|
"rimraf.js"
|
47
49
|
],
|
48
|
-
"gitHead": "
|
50
|
+
"gitHead": "979f7a3aa061d2262f9e1b41c6e4afd66c71d1d5",
|
49
51
|
"homepage": "https://github.com/isaacs/rimraf#readme",
|
50
52
|
"license": "ISC",
|
51
53
|
"main": "rimraf.js",
|
@@ -57,8 +59,7 @@
|
|
57
59
|
],
|
58
60
|
"name": "rimraf",
|
59
61
|
"optionalDependencies": {},
|
60
|
-
"readme": "
|
61
|
-
"readmeFilename": "README.md",
|
62
|
+
"readme": "ERROR: No README data found!",
|
62
63
|
"repository": {
|
63
64
|
"type": "git",
|
64
65
|
"url": "git://github.com/isaacs/rimraf.git"
|
@@ -66,5 +67,5 @@
|
|
66
67
|
"scripts": {
|
67
68
|
"test": "tap test/*.js"
|
68
69
|
},
|
69
|
-
"version": "2.5.
|
70
|
+
"version": "2.5.1"
|
70
71
|
}
|
@@ -14,6 +14,7 @@
|
|
14
14
|
],
|
15
15
|
"_resolved": "https://registry.npmjs.org/semver/-/semver-5.1.0.tgz",
|
16
16
|
"_shasum": "85f2cf8550465c4df000cf7d86f6b054106ab9e5",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"bin": {
|
18
19
|
"semver": "./bin/semver"
|
19
20
|
},
|
@@ -46,7 +47,8 @@
|
|
46
47
|
],
|
47
48
|
"name": "semver",
|
48
49
|
"optionalDependencies": {},
|
49
|
-
"readme": "ERROR: No README data found!",
|
50
|
+
"readme": "semver(1) -- The semantic versioner for npm\n===========================================\n\n## Usage\n\n $ npm install semver\n\n semver.valid('1.2.3') // '1.2.3'\n semver.valid('a.b.c') // null\n semver.clean(' =v1.2.3 ') // '1.2.3'\n semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true\n semver.gt('1.2.3', '9.8.7') // false\n semver.lt('1.2.3', '9.8.7') // true\n\nAs a command-line utility:\n\n $ semver -h\n\n Usage: semver <version> [<version> [...]] [-r <range> | -i <inc> | --preid <identifier> | -l | -rv]\n Test if version(s) satisfy the supplied range(s), and sort them.\n\n Multiple versions or ranges may be supplied, unless increment\n option is specified. In that case, only a single version may\n be used, and it is incremented by the specified level\n\n Program exits successfully if any valid version satisfies\n all supplied ranges, and prints all satisfying versions.\n\n If no versions are valid, or ranges are not satisfied,\n then exits failure.\n\n Versions are printed in ascending order, so supplying\n multiple versions to the utility will just sort them.\n\n## Versions\n\nA \"version\" is described by the `v2.0.0` specification found at\n<http://semver.org/>.\n\nA leading `\"=\"` or `\"v\"` character is stripped off and ignored.\n\n## Ranges\n\nA `version range` is a set of `comparators` which specify versions\nthat satisfy the range.\n\nA `comparator` is composed of an `operator` and a `version`. The set\nof primitive `operators` is:\n\n* `<` Less than\n* `<=` Less than or equal to\n* `>` Greater than\n* `>=` Greater than or equal to\n* `=` Equal. If no operator is specified, then equality is assumed,\n so this operator is optional, but MAY be included.\n\nFor example, the comparator `>=1.2.7` would match the versions\n`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`\nor `1.1.0`.\n\nComparators can be joined by whitespace to form a `comparator set`,\nwhich is satisfied by the **intersection** of all of the comparators\nit includes.\n\nA range is composed of one or more comparator sets, joined by `||`. A\nversion matches a range if and only if every comparator in at least\none of the `||`-separated comparator sets is satisfied by the version.\n\nFor example, the range `>=1.2.7 <1.3.0` would match the versions\n`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,\nor `1.1.0`.\n\nThe range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,\n`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.\n\n### Prerelease Tags\n\nIf a version has a prerelease tag (for example, `1.2.3-alpha.3`) then\nit will only be allowed to satisfy comparator sets if at least one\ncomparator with the same `[major, minor, patch]` tuple also has a\nprerelease tag.\n\nFor example, the range `>1.2.3-alpha.3` would be allowed to match the\nversion `1.2.3-alpha.7`, but it would *not* be satisfied by\n`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically \"greater\nthan\" `1.2.3-alpha.3` according to the SemVer sort rules. The version\nrange only accepts prerelease tags on the `1.2.3` version. The\nversion `3.4.5` *would* satisfy the range, because it does not have a\nprerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.\n\nThe purpose for this behavior is twofold. First, prerelease versions\nfrequently are updated very quickly, and contain many breaking changes\nthat are (by the author's design) not yet fit for public consumption.\nTherefore, by default, they are excluded from range matching\nsemantics.\n\nSecond, a user who has opted into using a prerelease version has\nclearly indicated the intent to use *that specific* set of\nalpha/beta/rc versions. By including a prerelease tag in the range,\nthe user is indicating that they are aware of the risk. However, it\nis still not appropriate to assume that they have opted into taking a\nsimilar risk on the *next* set of prerelease versions.\n\n#### Prerelease Identifiers\n\nThe method `.inc` takes an additional `identifier` string argument that\nwill append the value of the string as a prerelease identifier:\n\n```javascript\n> semver.inc('1.2.3', 'prerelease', 'beta')\n'1.2.4-beta.0'\n```\n\ncommand-line example:\n\n```shell\n$ semver 1.2.3 -i prerelease --preid beta\n1.2.4-beta.0\n```\n\nWhich then can be used to increment further:\n\n```shell\n$ semver 1.2.4-beta.0 -i prerelease\n1.2.4-beta.1\n```\n\n### Advanced Range Syntax\n\nAdvanced range syntax desugars to primitive comparators in\ndeterministic ways.\n\nAdvanced ranges may be combined in the same way as primitive\ncomparators using white space or `||`.\n\n#### Hyphen Ranges `X.Y.Z - A.B.C`\n\nSpecifies an inclusive set.\n\n* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`\n\nIf a partial version is provided as the first version in the inclusive\nrange, then the missing pieces are replaced with zeroes.\n\n* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`\n\nIf a partial version is provided as the second version in the\ninclusive range, then all versions that start with the supplied parts\nof the tuple are accepted, but nothing that would be greater than the\nprovided tuple parts.\n\n* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`\n* `1.2.3 - 2` := `>=1.2.3 <3.0.0`\n\n#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`\n\nAny of `X`, `x`, or `*` may be used to \"stand in\" for one of the\nnumeric values in the `[major, minor, patch]` tuple.\n\n* `*` := `>=0.0.0` (Any version satisfies)\n* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)\n* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)\n\nA partial version range is treated as an X-Range, so the special\ncharacter is in fact optional.\n\n* `\"\"` (empty string) := `*` := `>=0.0.0`\n* `1` := `1.x.x` := `>=1.0.0 <2.0.0`\n* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`\n\n#### Tilde Ranges `~1.2.3` `~1.2` `~1`\n\nAllows patch-level changes if a minor version is specified on the\ncomparator. Allows minor-level changes if not.\n\n* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`\n* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)\n* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)\n* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`\n* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)\n* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)\n* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in\n the `1.2.3` version will be allowed, if they are greater than or\n equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but\n `1.2.4-beta.2` would not, because it is a prerelease of a\n different `[major, minor, patch]` tuple.\n\n#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`\n\nAllows changes that do not modify the left-most non-zero digit in the\n`[major, minor, patch]` tuple. In other words, this allows patch and\nminor updates for versions `1.0.0` and above, patch updates for\nversions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.\n\nMany authors treat a `0.x` version as if the `x` were the major\n\"breaking-change\" indicator.\n\nCaret ranges are ideal when an author may make breaking changes\nbetween `0.2.4` and `0.3.0` releases, which is a common practice.\nHowever, it presumes that there will *not* be breaking changes between\n`0.2.4` and `0.2.5`. It allows for changes that are presumed to be\nadditive (but non-breaking), according to commonly observed practices.\n\n* `^1.2.3` := `>=1.2.3 <2.0.0`\n* `^0.2.3` := `>=0.2.3 <0.3.0`\n* `^0.0.3` := `>=0.0.3 <0.0.4`\n* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in\n the `1.2.3` version will be allowed, if they are greater than or\n equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but\n `1.2.4-beta.2` would not, because it is a prerelease of a\n different `[major, minor, patch]` tuple.\n* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the\n `0.0.3` version *only* will be allowed, if they are greater than or\n equal to `beta`. So, `0.0.3-pr.2` would be allowed.\n\nWhen parsing caret ranges, a missing `patch` value desugars to the\nnumber `0`, but will allow flexibility within that value, even if the\nmajor and minor versions are both `0`.\n\n* `^1.2.x` := `>=1.2.0 <2.0.0`\n* `^0.0.x` := `>=0.0.0 <0.1.0`\n* `^0.0` := `>=0.0.0 <0.1.0`\n\nA missing `minor` and `patch` values will desugar to zero, but also\nallow flexibility within those values, even if the major version is\nzero.\n\n* `^1.x` := `>=1.0.0 <2.0.0`\n* `^0.x` := `>=0.0.0 <1.0.0`\n\n### Range Grammar\n\nPutting all this together, here is a Backus-Naur grammar for ranges,\nfor the benefit of parser authors:\n\n```bnf\nrange-set ::= range ( logical-or range ) *\nlogical-or ::= ( ' ' ) * '||' ( ' ' ) *\nrange ::= hyphen | simple ( ' ' simple ) * | ''\nhyphen ::= partial ' - ' partial\nsimple ::= primitive | partial | tilde | caret\nprimitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial\npartial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?\nxr ::= 'x' | 'X' | '*' | nr\nnr ::= '0' | ['1'-'9']['0'-'9']+\ntilde ::= '~' partial\ncaret ::= '^' partial\nqualifier ::= ( '-' pre )? ( '+' build )?\npre ::= parts\nbuild ::= parts\nparts ::= part ( '.' part ) *\npart ::= nr | [-0-9A-Za-z]+\n```\n\n## Functions\n\nAll methods and classes take a final `loose` boolean argument that, if\ntrue, will be more forgiving about not-quite-valid semver strings.\nThe resulting output will always be 100% strict, of course.\n\nStrict-mode Comparators and Ranges will be strict about the SemVer\nstrings that they parse.\n\n* `valid(v)`: Return the parsed version, or null if it's not valid.\n* `inc(v, release)`: Return the version incremented by the release\n type (`major`, `premajor`, `minor`, `preminor`, `patch`,\n `prepatch`, or `prerelease`), or null if it's not valid\n * `premajor` in one call will bump the version up to the next major\n version and down to a prerelease of that major version.\n `preminor`, and `prepatch` work the same way.\n * If called from a non-prerelease version, the `prerelease` will work the\n same as `prepatch`. It increments the patch version, then makes a\n prerelease. If the input version is already a prerelease it simply\n increments it.\n* `major(v)`: Return the major version number.\n* `minor(v)`: Return the minor version number.\n* `patch(v)`: Return the patch version number.\n\n### Comparison\n\n* `gt(v1, v2)`: `v1 > v2`\n* `gte(v1, v2)`: `v1 >= v2`\n* `lt(v1, v2)`: `v1 < v2`\n* `lte(v1, v2)`: `v1 <= v2`\n* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,\n even if they're not the exact same string. You already know how to\n compare strings.\n* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.\n* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call\n the corresponding function above. `\"===\"` and `\"!==\"` do simple\n string comparison, but are included for completeness. Throws if an\n invalid comparison string is provided.\n* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if\n `v2` is greater. Sorts in ascending order if passed to `Array.sort()`.\n* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions\n in descending order when passed to `Array.sort()`.\n* `diff(v1, v2)`: Returns difference between two versions by the release type\n (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),\n or null if the versions are the same.\n\n\n### Ranges\n\n* `validRange(range)`: Return the valid range or null if it's not valid\n* `satisfies(version, range)`: Return true if the version satisfies the\n range.\n* `maxSatisfying(versions, range)`: Return the highest version in the list\n that satisfies the range, or `null` if none of them do.\n* `gtr(version, range)`: Return `true` if version is greater than all the\n versions possible in the range.\n* `ltr(version, range)`: Return `true` if version is less than all the\n versions possible in the range.\n* `outside(version, range, hilo)`: Return true if the version is outside\n the bounds of the range in either the high or low direction. The\n `hilo` argument must be either the string `'>'` or `'<'`. (This is\n the function called by `gtr` and `ltr`.)\n\nNote that, since ranges may be non-contiguous, a version might not be\ngreater than a range, less than a range, *or* satisfy a range! For\nexample, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`\nuntil `2.0.0`, so the version `1.2.10` would not be greater than the\nrange (because `2.0.1` satisfies, which is higher), nor less than the\nrange (since `1.2.8` satisfies, which is lower), and it also does not\nsatisfy the range.\n\nIf you want to know if a version satisfies or does not satisfy a\nrange, use the `satisfies(version, range)` function.\n",
|
51
|
+
"readmeFilename": "README.md",
|
50
52
|
"repository": {
|
51
53
|
"type": "git",
|
52
54
|
"url": "git+https://github.com/npm/node-semver.git"
|
@@ -0,0 +1,176 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
// -*- mode: js -*-
|
3
|
+
// vim: set filetype=javascript :
|
4
|
+
// Copyright 2015 Joyent, Inc. All rights reserved.
|
5
|
+
|
6
|
+
var dashdash = require('dashdash');
|
7
|
+
var sshpk = require('../lib/index');
|
8
|
+
var fs = require('fs');
|
9
|
+
var path = require('path');
|
10
|
+
|
11
|
+
var options = [
|
12
|
+
{
|
13
|
+
names: ['hash', 'H'],
|
14
|
+
type: 'string',
|
15
|
+
help: 'Hash algorithm (sha1, sha256, sha384, sha512)'
|
16
|
+
},
|
17
|
+
{
|
18
|
+
names: ['verbose', 'v'],
|
19
|
+
type: 'bool',
|
20
|
+
help: 'Display verbose info about key and hash used'
|
21
|
+
},
|
22
|
+
{
|
23
|
+
names: ['identity', 'i'],
|
24
|
+
type: 'string',
|
25
|
+
help: 'Path to key to use'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
names: ['file', 'f'],
|
29
|
+
type: 'string',
|
30
|
+
help: 'Input filename'
|
31
|
+
},
|
32
|
+
{
|
33
|
+
names: ['out', 'o'],
|
34
|
+
type: 'string',
|
35
|
+
help: 'Output filename'
|
36
|
+
},
|
37
|
+
{
|
38
|
+
names: ['format', 't'],
|
39
|
+
type: 'string',
|
40
|
+
help: 'Signature format (asn1, ssh, raw)'
|
41
|
+
},
|
42
|
+
{
|
43
|
+
names: ['binary', 'b'],
|
44
|
+
type: 'bool',
|
45
|
+
help: 'Output raw binary instead of base64'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
names: ['help', 'h'],
|
49
|
+
type: 'bool',
|
50
|
+
help: 'Shows this help text'
|
51
|
+
}
|
52
|
+
];
|
53
|
+
|
54
|
+
if (require.main === module) {
|
55
|
+
var parser = dashdash.createParser({
|
56
|
+
options: options
|
57
|
+
});
|
58
|
+
|
59
|
+
try {
|
60
|
+
var opts = parser.parse(process.argv);
|
61
|
+
} catch (e) {
|
62
|
+
console.error('sshpk-sign: error: %s', e.message);
|
63
|
+
process.exit(1);
|
64
|
+
}
|
65
|
+
|
66
|
+
if (opts.help || opts._args.length > 1) {
|
67
|
+
var help = parser.help({}).trimRight();
|
68
|
+
console.error('sshpk-sign: sign data using an SSH key\n');
|
69
|
+
console.error(help);
|
70
|
+
process.exit(1);
|
71
|
+
}
|
72
|
+
|
73
|
+
if (!opts.identity) {
|
74
|
+
var help = parser.help({}).trimRight();
|
75
|
+
console.error('sshpk-sign: the -i or --identity option ' +
|
76
|
+
'is required\n');
|
77
|
+
console.error(help);
|
78
|
+
process.exit(1);
|
79
|
+
}
|
80
|
+
|
81
|
+
var keyData = fs.readFileSync(opts.identity);
|
82
|
+
|
83
|
+
var key;
|
84
|
+
try {
|
85
|
+
key = sshpk.parsePrivateKey(keyData);
|
86
|
+
} catch (e) {
|
87
|
+
console.error('sshpk-sign: error loading private key "' +
|
88
|
+
opts.identity + '": ' + e.name + ': ' + e.message);
|
89
|
+
process.exit(1);
|
90
|
+
}
|
91
|
+
|
92
|
+
var hash = opts.hash || key.defaultHashAlgorithm();
|
93
|
+
|
94
|
+
var signer;
|
95
|
+
try {
|
96
|
+
signer = key.createSign(hash);
|
97
|
+
} catch (e) {
|
98
|
+
console.error('sshpk-sign: error creating signer: ' +
|
99
|
+
e.name + ': ' + e.message);
|
100
|
+
process.exit(1);
|
101
|
+
}
|
102
|
+
|
103
|
+
if (opts.verbose) {
|
104
|
+
console.error('sshpk-sign: using %s-%s with a %d bit key',
|
105
|
+
key.type, hash, key.size);
|
106
|
+
}
|
107
|
+
|
108
|
+
var inFile = process.stdin;
|
109
|
+
var inFileName = 'stdin';
|
110
|
+
|
111
|
+
var inFilePath;
|
112
|
+
if (opts.file) {
|
113
|
+
inFilePath = opts.file;
|
114
|
+
} else if (opts._args.length === 1) {
|
115
|
+
inFilePath = opts._args[0];
|
116
|
+
}
|
117
|
+
|
118
|
+
if (inFilePath)
|
119
|
+
inFileName = path.basename(inFilePath);
|
120
|
+
|
121
|
+
try {
|
122
|
+
if (inFilePath) {
|
123
|
+
fs.accessSync(inFilePath, fs.R_OK);
|
124
|
+
inFile = fs.createReadStream(inFilePath);
|
125
|
+
}
|
126
|
+
} catch (e) {
|
127
|
+
console.error('sshpk-sign: error opening input file' +
|
128
|
+
': ' + e.name + ': ' + e.message);
|
129
|
+
process.exit(1);
|
130
|
+
}
|
131
|
+
|
132
|
+
var outFile = process.stdout;
|
133
|
+
|
134
|
+
try {
|
135
|
+
if (opts.out && !opts.identify) {
|
136
|
+
fs.accessSync(path.dirname(opts.out), fs.W_OK);
|
137
|
+
outFile = fs.createWriteStream(opts.out);
|
138
|
+
}
|
139
|
+
} catch (e) {
|
140
|
+
console.error('sshpk-sign: error opening output file' +
|
141
|
+
': ' + e.name + ': ' + e.message);
|
142
|
+
process.exit(1);
|
143
|
+
}
|
144
|
+
|
145
|
+
inFile.pipe(signer);
|
146
|
+
inFile.on('end', function () {
|
147
|
+
var sig;
|
148
|
+
try {
|
149
|
+
sig = signer.sign();
|
150
|
+
} catch (e) {
|
151
|
+
console.error('sshpk-sign: error signing data: ' +
|
152
|
+
e.name + ': ' + e.message);
|
153
|
+
process.exit(1);
|
154
|
+
}
|
155
|
+
|
156
|
+
var fmt = opts.format || 'asn1';
|
157
|
+
var output;
|
158
|
+
try {
|
159
|
+
output = sig.toBuffer(fmt);
|
160
|
+
if (!opts.binary)
|
161
|
+
output = output.toString('base64');
|
162
|
+
} catch (e) {
|
163
|
+
console.error('sshpk-sign: error converting signature' +
|
164
|
+
' to ' + fmt + ' format: ' + e.name + ': ' +
|
165
|
+
e.message);
|
166
|
+
process.exit(1);
|
167
|
+
}
|
168
|
+
|
169
|
+
outFile.write(output);
|
170
|
+
if (!opts.binary)
|
171
|
+
outFile.write('\n');
|
172
|
+
outFile.once('drain', function () {
|
173
|
+
process.exit(0);
|
174
|
+
});
|
175
|
+
});
|
176
|
+
}
|
@@ -0,0 +1,166 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
// -*- mode: js -*-
|
3
|
+
// vim: set filetype=javascript :
|
4
|
+
// Copyright 2015 Joyent, Inc. All rights reserved.
|
5
|
+
|
6
|
+
var dashdash = require('dashdash');
|
7
|
+
var sshpk = require('../lib/index');
|
8
|
+
var fs = require('fs');
|
9
|
+
var path = require('path');
|
10
|
+
|
11
|
+
var options = [
|
12
|
+
{
|
13
|
+
names: ['hash', 'H'],
|
14
|
+
type: 'string',
|
15
|
+
help: 'Hash algorithm (sha1, sha256, sha384, sha512)'
|
16
|
+
},
|
17
|
+
{
|
18
|
+
names: ['verbose', 'v'],
|
19
|
+
type: 'bool',
|
20
|
+
help: 'Display verbose info about key and hash used'
|
21
|
+
},
|
22
|
+
{
|
23
|
+
names: ['identity', 'i'],
|
24
|
+
type: 'string',
|
25
|
+
help: 'Path to (public) key to use'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
names: ['file', 'f'],
|
29
|
+
type: 'string',
|
30
|
+
help: 'Input filename'
|
31
|
+
},
|
32
|
+
{
|
33
|
+
names: ['format', 't'],
|
34
|
+
type: 'string',
|
35
|
+
help: 'Signature format (asn1, ssh, raw)'
|
36
|
+
},
|
37
|
+
{
|
38
|
+
names: ['signature', 's'],
|
39
|
+
type: 'string',
|
40
|
+
help: 'base64-encoded signature data'
|
41
|
+
},
|
42
|
+
{
|
43
|
+
names: ['help', 'h'],
|
44
|
+
type: 'bool',
|
45
|
+
help: 'Shows this help text'
|
46
|
+
}
|
47
|
+
];
|
48
|
+
|
49
|
+
if (require.main === module) {
|
50
|
+
var parser = dashdash.createParser({
|
51
|
+
options: options
|
52
|
+
});
|
53
|
+
|
54
|
+
try {
|
55
|
+
var opts = parser.parse(process.argv);
|
56
|
+
} catch (e) {
|
57
|
+
console.error('sshpk-verify: error: %s', e.message);
|
58
|
+
process.exit(3);
|
59
|
+
}
|
60
|
+
|
61
|
+
if (opts.help || opts._args.length > 1) {
|
62
|
+
var help = parser.help({}).trimRight();
|
63
|
+
console.error('sshpk-verify: sign data using an SSH key\n');
|
64
|
+
console.error(help);
|
65
|
+
process.exit(3);
|
66
|
+
}
|
67
|
+
|
68
|
+
if (!opts.identity) {
|
69
|
+
var help = parser.help({}).trimRight();
|
70
|
+
console.error('sshpk-verify: the -i or --identity option ' +
|
71
|
+
'is required\n');
|
72
|
+
console.error(help);
|
73
|
+
process.exit(3);
|
74
|
+
}
|
75
|
+
|
76
|
+
if (!opts.signature) {
|
77
|
+
var help = parser.help({}).trimRight();
|
78
|
+
console.error('sshpk-verify: the -s or --signature option ' +
|
79
|
+
'is required\n');
|
80
|
+
console.error(help);
|
81
|
+
process.exit(3);
|
82
|
+
}
|
83
|
+
|
84
|
+
var keyData = fs.readFileSync(opts.identity);
|
85
|
+
|
86
|
+
var key;
|
87
|
+
try {
|
88
|
+
key = sshpk.parseKey(keyData);
|
89
|
+
} catch (e) {
|
90
|
+
console.error('sshpk-verify: error loading key "' +
|
91
|
+
opts.identity + '": ' + e.name + ': ' + e.message);
|
92
|
+
process.exit(2);
|
93
|
+
}
|
94
|
+
|
95
|
+
var fmt = opts.format || 'asn1';
|
96
|
+
var sigData = new Buffer(opts.signature, 'base64');
|
97
|
+
|
98
|
+
var sig;
|
99
|
+
try {
|
100
|
+
sig = sshpk.parseSignature(sigData, key.type, fmt);
|
101
|
+
} catch (e) {
|
102
|
+
console.error('sshpk-verify: error parsing signature: ' +
|
103
|
+
e.name + ': ' + e.message);
|
104
|
+
process.exit(2);
|
105
|
+
}
|
106
|
+
|
107
|
+
var hash = opts.hash || key.defaultHashAlgorithm();
|
108
|
+
|
109
|
+
var verifier;
|
110
|
+
try {
|
111
|
+
verifier = key.createVerify(hash);
|
112
|
+
} catch (e) {
|
113
|
+
console.error('sshpk-verify: error creating verifier: ' +
|
114
|
+
e.name + ': ' + e.message);
|
115
|
+
process.exit(2);
|
116
|
+
}
|
117
|
+
|
118
|
+
if (opts.verbose) {
|
119
|
+
console.error('sshpk-verify: using %s-%s with a %d bit key',
|
120
|
+
key.type, hash, key.size);
|
121
|
+
}
|
122
|
+
|
123
|
+
var inFile = process.stdin;
|
124
|
+
var inFileName = 'stdin';
|
125
|
+
|
126
|
+
var inFilePath;
|
127
|
+
if (opts.file) {
|
128
|
+
inFilePath = opts.file;
|
129
|
+
} else if (opts._args.length === 1) {
|
130
|
+
inFilePath = opts._args[0];
|
131
|
+
}
|
132
|
+
|
133
|
+
if (inFilePath)
|
134
|
+
inFileName = path.basename(inFilePath);
|
135
|
+
|
136
|
+
try {
|
137
|
+
if (inFilePath) {
|
138
|
+
fs.accessSync(inFilePath, fs.R_OK);
|
139
|
+
inFile = fs.createReadStream(inFilePath);
|
140
|
+
}
|
141
|
+
} catch (e) {
|
142
|
+
console.error('sshpk-verify: error opening input file' +
|
143
|
+
': ' + e.name + ': ' + e.message);
|
144
|
+
process.exit(2);
|
145
|
+
}
|
146
|
+
|
147
|
+
inFile.pipe(verifier);
|
148
|
+
inFile.on('end', function () {
|
149
|
+
var ret;
|
150
|
+
try {
|
151
|
+
ret = verifier.verify(sig);
|
152
|
+
} catch (e) {
|
153
|
+
console.error('sshpk-verify: error verifying data: ' +
|
154
|
+
e.name + ': ' + e.message);
|
155
|
+
process.exit(1);
|
156
|
+
}
|
157
|
+
|
158
|
+
if (ret) {
|
159
|
+
console.error('OK');
|
160
|
+
process.exit(0);
|
161
|
+
}
|
162
|
+
|
163
|
+
console.error('NOT OK');
|
164
|
+
process.exit(1);
|
165
|
+
});
|
166
|
+
}
|
@@ -40,6 +40,8 @@ Verifier.prototype.update = function (chunk) {
|
|
40
40
|
Verifier.prototype.verify = function (signature, fmt) {
|
41
41
|
var sig;
|
42
42
|
if (Signature.isSignature(signature, [2, 0])) {
|
43
|
+
if (signature.type !== 'ed25519')
|
44
|
+
return (false);
|
43
45
|
sig = signature.toBuffer('raw');
|
44
46
|
|
45
47
|
} else if (typeof (signature) === 'string') {
|
@@ -175,8 +175,14 @@ Key.prototype.createVerify = function (hashAlgo) {
|
|
175
175
|
assert.ok(v, 'failed to create verifier');
|
176
176
|
var oldVerify = v.verify.bind(v);
|
177
177
|
var key = this.toBuffer('pkcs8');
|
178
|
+
var self = this;
|
178
179
|
v.verify = function (signature, fmt) {
|
179
180
|
if (Signature.isSignature(signature, [2, 0])) {
|
181
|
+
if (signature.type !== self.type)
|
182
|
+
return (false);
|
183
|
+
if (signature.hashAlgorithm &&
|
184
|
+
signature.hashAlgorithm !== hashAlgo)
|
185
|
+
return (false);
|
180
186
|
return (oldVerify(key, signature.toBuffer('asn1')));
|
181
187
|
|
182
188
|
} else if (typeof (signature) === 'string' ||
|
@@ -0,0 +1,135 @@
|
|
1
|
+
.TH sshpk\-conv 1 "Jan 2016" sshpk "sshpk Commands"
|
2
|
+
.SH NAME
|
3
|
+
.PP
|
4
|
+
sshpk\-conv \- convert between key formats
|
5
|
+
.SH SYNOPSYS
|
6
|
+
.PP
|
7
|
+
\fB\fCsshpk\-conv\fR \-t FORMAT [FILENAME] [OPTIONS...]
|
8
|
+
.PP
|
9
|
+
\fB\fCsshpk\-conv\fR \-i [FILENAME] [OPTIONS...]
|
10
|
+
.SH DESCRIPTION
|
11
|
+
.PP
|
12
|
+
Reads in a public or private key and converts it between different formats,
|
13
|
+
particularly formats used in the SSH protocol and the well\-known PEM PKCS#1/7
|
14
|
+
formats.
|
15
|
+
.PP
|
16
|
+
In the second form, with the \fB\fC\-i\fR option given, identifies a key and prints to
|
17
|
+
stderr information about its nature, size and fingerprint.
|
18
|
+
.SH EXAMPLES
|
19
|
+
.PP
|
20
|
+
Assume the following SSH\-format public key in \fB\fCid_ecdsa.pub\fR:
|
21
|
+
.PP
|
22
|
+
.RS
|
23
|
+
.nf
|
24
|
+
ecdsa\-sha2\-nistp256 AAAAE2VjZHNhLXNoYTI...9M/4c4= user@host
|
25
|
+
.fi
|
26
|
+
.RE
|
27
|
+
.PP
|
28
|
+
Identify it with \fB\fC\-i\fR:
|
29
|
+
.PP
|
30
|
+
.RS
|
31
|
+
.nf
|
32
|
+
$ sshpk\-conv \-i id_ecdsa.pub
|
33
|
+
id_ecdsa: a 256 bit ECDSA public key
|
34
|
+
ECDSA curve: nistp256
|
35
|
+
Comment: user@host
|
36
|
+
Fingerprint:
|
37
|
+
SHA256:vCNX7eUkdvqqW0m4PoxQAZRv+CM4P4fS8+CbliAvS4k
|
38
|
+
81:ad:d5:57:e5:6f:7d:a2:93:79:56:af:d7:c0:38:51
|
39
|
+
.fi
|
40
|
+
.RE
|
41
|
+
.PP
|
42
|
+
Convert it to \fB\fCpkcs8\fR format, for use with e.g. OpenSSL:
|
43
|
+
.PP
|
44
|
+
.RS
|
45
|
+
.nf
|
46
|
+
$ sshpk\-conv \-t pkcs8 id_ecdsa
|
47
|
+
\-\-\-\-\-BEGIN PUBLIC KEY\-\-\-\-\-
|
48
|
+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAsA4R6N6AS3gzaPBeLjG2ObSgUsR
|
49
|
+
zOt+kWJoijLnw3ZMYUKmAx+lD0I5XUxdrPcs1vH5f3cn9TvRvO9L0z/hzg==
|
50
|
+
\-\-\-\-\-END PUBLIC KEY\-\-\-\-\-
|
51
|
+
.fi
|
52
|
+
.RE
|
53
|
+
.PP
|
54
|
+
Retrieve the public half of a private key:
|
55
|
+
.PP
|
56
|
+
.RS
|
57
|
+
.nf
|
58
|
+
$ openssl genrsa 2048 | sshpk\-conv \-t ssh \-c foo@bar
|
59
|
+
ssh\-rsa AAAAB3NzaC1yc2EAAA...koK7 foo@bar
|
60
|
+
.fi
|
61
|
+
.RE
|
62
|
+
.PP
|
63
|
+
Convert a private key to PKCS#1 (OpenSSL) format from a new\-style OpenSSH key
|
64
|
+
format (the \fB\fCssh\-keygen \-o\fR format):
|
65
|
+
.PP
|
66
|
+
.RS
|
67
|
+
.nf
|
68
|
+
$ ssh\-keygen \-o \-f foobar
|
69
|
+
\&...
|
70
|
+
$ sshpk\-conv \-p \-t pkcs1 foobar
|
71
|
+
\-\-\-\-\-BEGIN RSA PRIVATE KEY\-\-\-\-\-
|
72
|
+
MIIDpAIBAAKCAQEA6T/GYJndb1TRH3+NL....
|
73
|
+
\-\-\-\-\-END RSA PRIVATE KEY\-\-\-\-\-
|
74
|
+
.fi
|
75
|
+
.RE
|
76
|
+
.SH OPTIONS
|
77
|
+
.TP
|
78
|
+
\fB\fC\-i, \-\-identify\fR
|
79
|
+
Instead of converting the key, output identifying information about it to
|
80
|
+
stderr, including its type, size and fingerprints.
|
81
|
+
.TP
|
82
|
+
\fB\fC\-p, \-\-private\fR
|
83
|
+
Treat the key as a private key instead of a public key (the default). If you
|
84
|
+
supply \fB\fCsshpk\-conv\fR with a private key and do not give this option, it will
|
85
|
+
extract only the public half of the key from it and work with that.
|
86
|
+
.TP
|
87
|
+
\fB\fC\-f PATH, \-\-file=PATH\fR
|
88
|
+
Input file to take the key from instead of stdin. If a filename is supplied
|
89
|
+
as a positional argument, it is equivalent to using this option.
|
90
|
+
.TP
|
91
|
+
\fB\fC\-o PATH, \-\-out=PATH\fR
|
92
|
+
Output file name to use instead of stdout.
|
93
|
+
.PP
|
94
|
+
\fB\fC\-T FORMAT, \-\-informat=FORMAT\fR
|
95
|
+
.TP
|
96
|
+
\fB\fC\-t FORMAT, \-\-outformat=FORMAT\fR
|
97
|
+
Selects the input and output formats to be used (see FORMATS, below).
|
98
|
+
.TP
|
99
|
+
\fB\fC\-c TEXT, \-\-comment=TEXT\fR
|
100
|
+
Sets the key comment for the output file, if supported.
|
101
|
+
.SH FORMATS
|
102
|
+
.PP
|
103
|
+
Currently supported formats:
|
104
|
+
.TP
|
105
|
+
\fB\fCpem, pkcs1\fR
|
106
|
+
The standard PEM format used by older OpenSSH and most TLS libraries such as
|
107
|
+
OpenSSL. The classic \fB\fCid_rsa\fR file is usually in this format. It is an ASN.1
|
108
|
+
encoded structure, base64\-encoded and placed between PEM headers.
|
109
|
+
.TP
|
110
|
+
\fB\fCssh\fR
|
111
|
+
The SSH public key text format (the format of an \fB\fCid_rsa.pub\fR file). A single
|
112
|
+
line, containing 3 space separated parts: the key type, key body and optional
|
113
|
+
key comment.
|
114
|
+
.TP
|
115
|
+
\fB\fCpkcs8\fR
|
116
|
+
A newer PEM format, usually used only for public keys by TLS libraries such
|
117
|
+
as OpenSSL. The ASN.1 structure is more generic than that of \fB\fCpkcs1\fR\&.
|
118
|
+
.TP
|
119
|
+
\fB\fCopenssh\fR
|
120
|
+
The new \fB\fCssh\-keygen \-o\fR format from OpenSSH. This can be mistaken for a PEM
|
121
|
+
encoding but is actually an OpenSSH internal format.
|
122
|
+
.TP
|
123
|
+
\fB\fCrfc4253\fR
|
124
|
+
The internal binary format of keys when sent over the wire in the SSH
|
125
|
+
protocol. This is also the format that the \fB\fCssh\-agent\fR uses in its protocol.
|
126
|
+
.SH SEE ALSO
|
127
|
+
.PP
|
128
|
+
.BR ssh-keygen (1),
|
129
|
+
.BR openssl (1)
|
130
|
+
.SH BUGS
|
131
|
+
.PP
|
132
|
+
Encrypted (password\-protected) keys are not supported.
|
133
|
+
.PP
|
134
|
+
Report bugs at Github
|
135
|
+
\[la]https://github.com/arekinath/node-sshpk/issues\[ra]
|