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,4 +1,11 @@
|
|
1
1
|
|
2
|
+
0.3.1 / 2016-01-14
|
3
|
+
==================
|
4
|
+
|
5
|
+
* add MIT LICENSE file (#23, @kasicka)
|
6
|
+
* preserve chaining after redundant style-method calls (#19, @drewblaisdell)
|
7
|
+
* package: add "license" field (#16, @BenjaminTsai)
|
8
|
+
|
2
9
|
0.3.0 / 2014-05-09
|
3
10
|
==================
|
4
11
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
(The MIT License)
|
2
|
+
|
3
|
+
Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person
|
6
|
+
obtaining a copy of this software and associated documentation
|
7
|
+
files (the "Software"), to deal in the Software without
|
8
|
+
restriction, including without limitation the rights to use,
|
9
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the
|
11
|
+
Software is furnished to do so, subject to the following
|
12
|
+
conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
19
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
21
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
22
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
24
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
@@ -238,14 +238,14 @@ Object.keys(styles).forEach(function (style) {
|
|
238
238
|
, r = reset[style]
|
239
239
|
|
240
240
|
Cursor.prototype[style] = function () {
|
241
|
-
if (this[name]) return
|
241
|
+
if (this[name]) return this
|
242
242
|
this.enabled && this.write(prefix + c + suffix)
|
243
243
|
this[name] = true
|
244
244
|
return this
|
245
245
|
}
|
246
246
|
|
247
247
|
Cursor.prototype['reset' + name] = function () {
|
248
|
-
if (!this[name]) return
|
248
|
+
if (!this[name]) return this
|
249
249
|
this.enabled && this.write(prefix + r + suffix)
|
250
250
|
this[name] = false
|
251
251
|
return this
|
@@ -1,19 +1,21 @@
|
|
1
1
|
{
|
2
|
-
"_from": "ansi@~0.3.
|
3
|
-
"_id": "ansi@0.3.
|
2
|
+
"_from": "ansi@~0.3.1",
|
3
|
+
"_id": "ansi@0.3.1",
|
4
4
|
"_location": "/ansi",
|
5
|
+
"_nodeVersion": "5.3.0",
|
5
6
|
"_npmUser": {
|
6
7
|
"email": "nathan@tootallnate.net",
|
7
8
|
"name": "tootallnate"
|
8
9
|
},
|
9
|
-
"_npmVersion": "
|
10
|
+
"_npmVersion": "3.3.12",
|
10
11
|
"_phantomChildren": {},
|
11
12
|
"_requiredBy": [
|
12
13
|
"/gauge",
|
13
14
|
"/npmlog"
|
14
15
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.
|
16
|
-
"_shasum": "
|
16
|
+
"_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz",
|
17
|
+
"_shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
|
18
|
+
"_shrinkwrap": null,
|
17
19
|
"author": {
|
18
20
|
"email": "nathan@tootallnate.net",
|
19
21
|
"name": "Nathan Rajlich",
|
@@ -27,10 +29,11 @@
|
|
27
29
|
"devDependencies": {},
|
28
30
|
"directories": {},
|
29
31
|
"dist": {
|
30
|
-
"shasum": "
|
31
|
-
"tarball": "http://registry.npmjs.org/ansi/-/ansi-0.3.
|
32
|
+
"shasum": "0c42d4fb17160d5a9af1e484bace1c66922c1b21",
|
33
|
+
"tarball": "http://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz"
|
32
34
|
},
|
33
|
-
"
|
35
|
+
"gitHead": "4d0d4af94e0bdaa648bd7262acd3bde4b98d5246",
|
36
|
+
"homepage": "https://github.com/TooTallNate/ansi.js#readme",
|
34
37
|
"keywords": [
|
35
38
|
"256",
|
36
39
|
"ansi",
|
@@ -41,6 +44,7 @@
|
|
41
44
|
"stream",
|
42
45
|
"terminal"
|
43
46
|
],
|
47
|
+
"license": "MIT",
|
44
48
|
"main": "./lib/ansi.js",
|
45
49
|
"maintainers": [
|
46
50
|
{
|
@@ -54,11 +58,12 @@
|
|
54
58
|
],
|
55
59
|
"name": "ansi",
|
56
60
|
"optionalDependencies": {},
|
57
|
-
"readme": "
|
61
|
+
"readme": "ansi.js\n=========\n### Advanced ANSI formatting tool for Node.js\n\n`ansi.js` is a module for Node.js that provides an easy-to-use API for\nwriting ANSI escape codes to `Stream` instances. ANSI escape codes are used to do\nfancy things in a terminal window, like render text in colors, delete characters,\nlines, the entire window, or hide and show the cursor, and lots more!\n\n#### Features:\n\n * 256 color support for the terminal!\n * Make a beep sound from your terminal!\n * Works with *any* writable `Stream` instance.\n * Allows you to move the cursor anywhere on the terminal window.\n * Allows you to delete existing contents from the terminal window.\n * Allows you to hide and show the cursor.\n * Converts CSS color codes and RGB values into ANSI escape codes.\n * Low-level; you are in control of when escape codes are used, it's not abstracted.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install ansi\n```\n\n\nExample\n-------\n\n``` js\nvar ansi = require('ansi')\n , cursor = ansi(process.stdout)\n\n// You can chain your calls forever:\ncursor\n .red() // Set font color to red\n .bg.grey() // Set background color to grey\n .write('Hello World!') // Write 'Hello World!' to stdout\n .bg.reset() // Reset the bgcolor before writing the trailing \\n,\n // to avoid Terminal glitches\n .write('\\n') // And a final \\n to wrap things up\n\n// Rendering modes are persistent:\ncursor.hex('#660000').bold().underline()\n\n// You can use the regular logging functions, text will be green:\nconsole.log('This is blood red, bold text')\n\n// To reset just the foreground color:\ncursor.fg.reset()\n\nconsole.log('This will still be bold')\n\n// to go to a location (x,y) on the console\n// note: 1-indexed, not 0-indexed:\ncursor.goto(10, 5).write('Five down, ten over')\n\n// to clear the current line:\ncursor.horizontalAbsolute(0).eraseLine().write('Starting again')\n\n// to go to a different column on the current line:\ncursor.horizontalAbsolute(5).write('column five')\n\n// Clean up after yourself!\ncursor.reset()\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
|
62
|
+
"readmeFilename": "README.md",
|
58
63
|
"repository": {
|
59
64
|
"type": "git",
|
60
65
|
"url": "git://github.com/TooTallNate/ansi.js.git"
|
61
66
|
},
|
62
67
|
"scripts": {},
|
63
|
-
"version": "0.3.
|
68
|
+
"version": "0.3.1"
|
64
69
|
}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
"use strict"
|
2
|
-
var stream = require("readable-stream")
|
2
|
+
var stream = require("readable-stream")
|
3
3
|
var EventEmitter = require("events").EventEmitter
|
4
4
|
var util = require("util")
|
5
5
|
var delegate = require("delegates")
|
6
6
|
|
7
|
+
function noteChange (trackerGroup) {
|
8
|
+
return function (name) {
|
9
|
+
trackerGroup.emit('change', name || trackerGroup.name);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
7
13
|
var TrackerGroup = exports.TrackerGroup = function (name) {
|
8
14
|
EventEmitter.call(this)
|
9
15
|
this.name = name
|
10
16
|
this.trackGroup = []
|
11
|
-
var self = this
|
12
17
|
this.totalWeight = 0
|
13
|
-
|
14
|
-
self.emit("change", name || this.name)
|
15
|
-
}.bind(this)
|
16
|
-
this.trackGroup.forEach(function(unit) {
|
17
|
-
unit.on("change", noteChange)
|
18
|
-
})
|
18
|
+
this.noteChange = noteChange(this)
|
19
19
|
}
|
20
20
|
util.inherits(TrackerGroup, EventEmitter)
|
21
21
|
|
@@ -23,9 +23,10 @@ TrackerGroup.prototype.completed = function () {
|
|
23
23
|
if (this.trackGroup.length==0) return 0
|
24
24
|
var valPerWeight = 1 / this.totalWeight
|
25
25
|
var completed = 0
|
26
|
-
this.trackGroup.
|
27
|
-
|
28
|
-
|
26
|
+
for (var i = 0, len = this.trackGroup.length; i < len; i++){
|
27
|
+
var group = this.trackGroup[i];
|
28
|
+
completed += valPerWeight * group.weight * group.completed()
|
29
|
+
}
|
29
30
|
return completed
|
30
31
|
}
|
31
32
|
|
@@ -33,6 +34,7 @@ TrackerGroup.prototype.addUnit = function (unit, weight, noChange) {
|
|
33
34
|
unit.weight = weight || 1
|
34
35
|
this.totalWeight += unit.weight
|
35
36
|
this.trackGroup.push(unit)
|
37
|
+
// Bubble events back up
|
36
38
|
unit.on("change", this.noteChange)
|
37
39
|
if (! noChange) this.emit("change", this.name)
|
38
40
|
return unit
|
@@ -51,12 +53,12 @@ TrackerGroup.prototype.newStream = function (name, todo, weight) {
|
|
51
53
|
}
|
52
54
|
|
53
55
|
TrackerGroup.prototype.finish = function () {
|
54
|
-
if (! this.trackGroup.length)
|
55
|
-
var
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
}
|
56
|
+
if (! this.trackGroup.length) this.addUnit(new Tracker(), 1, true)
|
57
|
+
for (var i = 0, len = this.trackGroup.length; i < len; i++) {
|
58
|
+
var group = this.trackGroup[i]
|
59
|
+
group.removeListener("change", this.noteChange)
|
60
|
+
group.finish()
|
61
|
+
}
|
60
62
|
this.emit("change", this.name)
|
61
63
|
}
|
62
64
|
|
@@ -85,7 +87,7 @@ var Tracker = exports.Tracker = function (name,todo) {
|
|
85
87
|
util.inherits(Tracker, EventEmitter)
|
86
88
|
|
87
89
|
Tracker.prototype.completed = function () {
|
88
|
-
return this.workTodo
|
90
|
+
return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
|
89
91
|
}
|
90
92
|
|
91
93
|
Tracker.prototype.addWork = function (work) {
|
@@ -1,19 +1,20 @@
|
|
1
1
|
{
|
2
|
-
"_from": "are-we-there-yet@~1.0.
|
3
|
-
"_id": "are-we-there-yet@1.0.
|
2
|
+
"_from": "are-we-there-yet@~1.0.6",
|
3
|
+
"_id": "are-we-there-yet@1.0.6",
|
4
4
|
"_location": "/are-we-there-yet",
|
5
|
-
"_nodeVersion": "4.
|
5
|
+
"_nodeVersion": "5.4.0",
|
6
6
|
"_npmUser": {
|
7
7
|
"email": "me@re-becca.org",
|
8
8
|
"name": "iarna"
|
9
9
|
},
|
10
|
-
"_npmVersion": "3.
|
10
|
+
"_npmVersion": "3.6.0",
|
11
11
|
"_phantomChildren": {},
|
12
12
|
"_requiredBy": [
|
13
13
|
"/npmlog"
|
14
14
|
],
|
15
|
-
"_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.
|
16
|
-
"_shasum": "
|
15
|
+
"_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.6.tgz",
|
16
|
+
"_shasum": "a2d28c93102aa6cc96245a26cb954de06ec53f0c",
|
17
|
+
"_shrinkwrap": null,
|
17
18
|
"author": {
|
18
19
|
"name": "Rebecca Turner",
|
19
20
|
"url": "http://re-becca.org"
|
@@ -22,19 +23,19 @@
|
|
22
23
|
"url": "https://github.com/iarna/are-we-there-yet/issues"
|
23
24
|
},
|
24
25
|
"dependencies": {
|
25
|
-
"delegates": "^
|
26
|
+
"delegates": "^1.0.0",
|
26
27
|
"readable-stream": "^2.0.0 || ^1.1.13"
|
27
28
|
},
|
28
29
|
"description": "Keep track of the overall completion of many dispirate processes",
|
29
30
|
"devDependencies": {
|
30
|
-
"tap": "^
|
31
|
+
"tap": "^5.2.0"
|
31
32
|
},
|
32
33
|
"directories": {},
|
33
34
|
"dist": {
|
34
|
-
"shasum": "
|
35
|
-
"tarball": "http://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.
|
35
|
+
"shasum": "a2d28c93102aa6cc96245a26cb954de06ec53f0c",
|
36
|
+
"tarball": "http://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.0.6.tgz"
|
36
37
|
},
|
37
|
-
"gitHead": "
|
38
|
+
"gitHead": "5f19c8b6f9c5afb8b0b17308cb9d66f7027ae526",
|
38
39
|
"homepage": "https://github.com/iarna/are-we-there-yet",
|
39
40
|
"license": "ISC",
|
40
41
|
"main": "index.js",
|
@@ -46,7 +47,8 @@
|
|
46
47
|
],
|
47
48
|
"name": "are-we-there-yet",
|
48
49
|
"optionalDependencies": {},
|
49
|
-
"readme": "
|
50
|
+
"readme": "are-we-there-yet\n----------------\n\nTrack complex hiearchies of asynchronous task completion statuses. This is\nintended to give you a way of recording and reporting the progress of the big\nrecursive fan-out and gather type workflows that are so common in async.\n\nWhat you do with this completion data is up to you, but the most common use case is to\nfeed it to one of the many progress bar modules.\n\nMost progress bar modules include a rudamentary version of this, but my\nneeds were more complex.\n\nUsage\n=====\n\n```javascript\nvar TrackerGroup = require(\"are-we-there-yet\").TrackerGroup\n\nvar top = new TrackerGroup(\"program\")\n\nvar single = top.newItem(\"one thing\", 100)\nsingle.completeWork(20)\n\nconsole.log(top.completed()) // 0.2\n\nfs.stat(\"file\", function(er, stat) {\n if (er) throw er \n var stream = top.newStream(\"file\", stat.size)\n console.log(top.completed()) // now 0.1 as single is 50% of the job and is 20% complete\n // and 50% * 20% == 10%\n fs.createReadStream(\"file\").pipe(stream).on(\"data\", function (chunk) {\n // do stuff with chunk\n })\n top.on(\"change\", function (name) {\n // called each time a chunk is read from \"file\"\n // top.completed() will start at 0.1 and fill up to 0.6 as the file is read\n })\n})\n```\n\nShared Methods\n==============\n\nAll tracker objects described below have the following methods, they, along\nwith the event comprise the interface for consumers of tracker objects.\n\n* var completed = tracker.completed()\n\nReturns the ratio of completed work to work to be done. Range of 0 to 1.\n\n* tracker.finish()\n\nMarks the tracker as completed. With a TrackerGroup this marks all of its\ncomponents as completed.\n\nMarks all of the components of this tracker as finished, which in turn means\nthat `tracker.completed()` for this will now be 1.\n\nThis will result in one or more `change` events being emitted.\n\nEvents\n======\n\nAll tracker objects emit `change` events with an argument of the name of the\nthing changing.\n\nTrackerGroup\n============\n\n* var tracker = new TrackerGroup(**name**)\n\n * **name** *(optional)* - The name of this tracker group, used in change\n notifications if the component updating didn't have a name. Defaults to undefined.\n\nCreates a new empty tracker aggregation group. These are trackers whose\ncompletion status is determined by the completion status of other trackers.\n\n* tracker.addUnit(**otherTracker**, **weight**)\n\n * **otherTracker** - Any of the other are-we-there-yet tracker objects\n * **weight** *(optional)* - The weight to give the tracker, defaults to 1.\n\nAdds the **otherTracker** to this aggregation group. The weight determines\nhow long you expect this tracker to take to complete in proportion to other\nunits. So for instance, if you add one tracker with a weight of 1 and\nanother with a weight of 2, you're saying the second will take twice as long\nto complete as the first. As such, the first will account for 33% of the\ncompletion of this tracker and the second will account for the other 67%.\n\nReturns **otherTracker**.\n\n* var subGroup = tracker.newGroup(**name**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subGroup = tracker.addUnit(new TrackerGroup(name), weight)\n```\n\n* var subItem = tracker.newItem(**name**, **todo**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subItem = tracker.addUnit(new Tracker(name, todo), weight)\n```\n\n* var subStream = tracker.newStream(**name**, **todo**, **weight**)\n\nThe above is exactly equivalent to:\n\n```javascript\n var subStream = tracker.addUnit(new TrackerStream(name, todo), weight)\n```\n\n* console.log( tracker.debug() )\n\nReturns a tree showing the completion of this tracker group and all of its\nchildren, including recursively entering all of the children.\n\nTracker\n=======\n\n* var tracker = new Tracker(**name**, **todo**)\n\n * **name** *(optional)* The name of this counter to report in change\n events. Defaults to undefined.\n * **todo** *(optional)* The amount of work todo (a number). Defaults to 0.\n\nOrdinarily these are constructed as a part of a tracker group (via\n`newItem`).\n\n* var completed = tracker.completed()\n\nReturns the ratio of completed work to work to be done. Range of 0 to 1. If\ntotal work to be done is 0 then it will return 0.\n\n* tracker.addWork(**todo**)\n\n * **todo** A number to add to the amount of work to be done.\n\nIncreases the amount of work to be done, thus decreasing the completion\npercentage. Triggers a `change` event.\n\n* tracker.completeWork(**completed**)\n\n * **completed** A number to add to the work complete\n\nIncrease the amount of work complete, thus increasing the completion percentage.\nWill never increase the work completed past the amount of work todo. That is,\npercentages > 100% are not allowed. Triggers a `change` event.\n\n* tracker.finish()\n\nMarks this tracker as finished, tracker.completed() will now be 1. Triggers\na `change` event.\n\nTrackerStream\n=============\n\n* var tracker = new TrackerStream(**name**, **size**, **options**)\n\n * **name** *(optional)* The name of this counter to report in change\n events. Defaults to undefined.\n * **size** *(optional)* The number of bytes being sent through this stream.\n * **options** *(optional)* A hash of stream options\n\nThe tracker stream object is a pass through stream that updates an internal\ntracker object each time a block passes through. It's intended to track\ndownloads, file extraction and other related activities. You use it by piping\nyour data source into it and then using it as your data source.\n\nIf your data has a length attribute then that's used as the amount of work\ncompleted when the chunk is passed through. If it does not (eg, object\nstreams) then each chunk counts as completing 1 unit of work, so your size\nshould be the total number of objects being streamed.\n\n* tracker.addWork(**todo**)\n\n * **todo** Increase the expected overall size by **todo** bytes.\n\nIncreases the amount of work to be done, thus decreasing the completion\npercentage. Triggers a `change` event.\n",
|
51
|
+
"readmeFilename": "README.md",
|
50
52
|
"repository": {
|
51
53
|
"type": "git",
|
52
54
|
"url": "git+https://github.com/iarna/are-we-there-yet.git"
|
@@ -54,5 +56,5 @@
|
|
54
56
|
"scripts": {
|
55
57
|
"test": "tap test/*.js"
|
56
58
|
},
|
57
|
-
"version": "1.0.
|
59
|
+
"version": "1.0.6"
|
58
60
|
}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
],
|
14
14
|
"_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
|
15
15
|
"_shasum": "dac8787713c9966849fc8180777ebe9c1ddf3b86",
|
16
|
+
"_shrinkwrap": null,
|
16
17
|
"author": {
|
17
18
|
"email": "mcavage@gmail.com",
|
18
19
|
"name": "Mark Cavage"
|
@@ -59,7 +60,8 @@
|
|
59
60
|
],
|
60
61
|
"name": "asn1",
|
61
62
|
"optionalDependencies": {},
|
62
|
-
"readme": "
|
63
|
+
"readme": "node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.\nCurrently BER encoding is supported; at some point I'll likely have to do DER.\n\n## Usage\n\nMostly, if you're *actually* needing to read and write ASN.1, you probably don't\nneed this readme to explain what and why. If you have no idea what ASN.1 is,\nsee this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc\n\nThe source is pretty much self-explanatory, and has read/write methods for the\ncommon types out there.\n\n### Decoding\n\nThe following reads an ASN.1 sequence with a boolean.\n\n var Ber = require('asn1').Ber;\n\n var reader = new Ber.Reader(new Buffer([0x30, 0x03, 0x01, 0x01, 0xff]));\n\n reader.readSequence();\n console.log('Sequence len: ' + reader.length);\n if (reader.peek() === Ber.Boolean)\n console.log(reader.readBoolean());\n\n### Encoding\n\nThe following generates the same payload as above.\n\n var Ber = require('asn1').Ber;\n\n var writer = new Ber.Writer();\n\n writer.startSequence();\n writer.writeBoolean(true);\n writer.endSequence();\n\n console.log(writer.buffer);\n\n## Installation\n\n npm install asn1\n\n## License\n\nMIT.\n\n## Bugs\n\nSee <https://github.com/mcavage/node-asn1/issues>.\n",
|
64
|
+
"readmeFilename": "README.md",
|
63
65
|
"repository": {
|
64
66
|
"type": "git",
|
65
67
|
"url": "git://github.com/mcavage/node-asn1.git"
|
@@ -1,24 +1,26 @@
|
|
1
|
-
#
|
1
|
+
# assert-plus
|
2
2
|
|
3
3
|
This library is a super small wrapper over node's assert module that has two
|
4
4
|
things: (1) the ability to disable assertions with the environment variable
|
5
|
-
|
5
|
+
NODE\_NDEBUG, and (2) some API wrappers for argument testing. Like
|
6
6
|
`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks
|
7
7
|
like this:
|
8
8
|
|
9
|
+
```javascript
|
9
10
|
var assert = require('assert-plus');
|
10
11
|
|
11
12
|
function fooAccount(options, callback) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
assert.object(options, 'options');
|
14
|
+
assert.number(options.id, 'options.id');
|
15
|
+
assert.bool(options.isManager, 'options.isManager');
|
16
|
+
assert.string(options.name, 'options.name');
|
17
|
+
assert.arrayOfString(options.email, 'options.email');
|
18
|
+
assert.func(callback, 'callback');
|
18
19
|
|
19
20
|
// Do stuff
|
20
|
-
|
21
|
+
callback(null, {});
|
21
22
|
}
|
23
|
+
```
|
22
24
|
|
23
25
|
# API
|
24
26
|
|
@@ -27,60 +29,87 @@ take an argument, and then a string 'name' that's not a message; `AssertionError
|
|
27
29
|
will be thrown if the assertion fails with a message like:
|
28
30
|
|
29
31
|
AssertionError: foo (string) is required
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
at test (/home/mark/work/foo/foo.js:3:9)
|
33
|
+
at Object.<anonymous> (/home/mark/work/foo/foo.js:15:1)
|
34
|
+
at Module._compile (module.js:446:26)
|
35
|
+
at Object..js (module.js:464:10)
|
36
|
+
at Module.load (module.js:353:31)
|
37
|
+
at Function._load (module.js:311:12)
|
38
|
+
at Array.0 (module.js:484:10)
|
39
|
+
at EventEmitter._tickCallback (node.js:190:38)
|
38
40
|
|
39
41
|
from:
|
40
42
|
|
43
|
+
```javascript
|
41
44
|
function test(foo) {
|
42
|
-
|
45
|
+
assert.string(foo, 'foo');
|
43
46
|
}
|
47
|
+
```
|
44
48
|
|
45
|
-
There you go. You can check that arrays are of a
|
49
|
+
There you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`:
|
46
50
|
|
51
|
+
```javascript
|
47
52
|
function test(foo) {
|
48
|
-
|
53
|
+
assert.arrayOfString(foo, 'foo');
|
49
54
|
}
|
55
|
+
```
|
50
56
|
|
51
57
|
You can assert IFF an argument is not `undefined` (i.e., an optional arg):
|
52
58
|
|
59
|
+
```javascript
|
53
60
|
assert.optionalString(foo, 'foo');
|
61
|
+
```
|
54
62
|
|
55
63
|
Lastly, you can opt-out of assertion checking altogether by setting the
|
56
64
|
environment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have
|
57
65
|
lots of assertions, and don't want to pay `typeof ()` taxes to v8 in
|
58
|
-
production.
|
66
|
+
production. Be advised: The standard functions re-exported from `assert` are
|
67
|
+
also disabled in assert-plus if NDEBUG is specified. Using them directly from
|
68
|
+
the `assert` module avoids this behavior.
|
59
69
|
|
60
70
|
The complete list of APIs is:
|
61
71
|
|
72
|
+
* assert.array
|
62
73
|
* assert.bool
|
63
74
|
* assert.buffer
|
64
75
|
* assert.func
|
65
76
|
* assert.number
|
66
77
|
* assert.object
|
67
78
|
* assert.string
|
79
|
+
* assert.stream
|
80
|
+
* assert.date
|
81
|
+
* assert.regex
|
82
|
+
* assert.uuid
|
83
|
+
* assert.arrayOfArray
|
68
84
|
* assert.arrayOfBool
|
85
|
+
* assert.arrayOfBuffer
|
69
86
|
* assert.arrayOfFunc
|
70
87
|
* assert.arrayOfNumber
|
71
88
|
* assert.arrayOfObject
|
72
89
|
* assert.arrayOfString
|
90
|
+
* assert.arrayOfStream
|
91
|
+
* assert.arrayOfDate
|
92
|
+
* assert.arrayOfUuid
|
93
|
+
* assert.optionalArray
|
73
94
|
* assert.optionalBool
|
74
95
|
* assert.optionalBuffer
|
75
96
|
* assert.optionalFunc
|
76
97
|
* assert.optionalNumber
|
77
98
|
* assert.optionalObject
|
78
99
|
* assert.optionalString
|
100
|
+
* assert.optionalStream
|
101
|
+
* assert.optionalDate
|
102
|
+
* assert.optionalUuid
|
103
|
+
* assert.optionalArrayOfArray
|
79
104
|
* assert.optionalArrayOfBool
|
105
|
+
* assert.optionalArrayOfBuffer
|
80
106
|
* assert.optionalArrayOfFunc
|
81
107
|
* assert.optionalArrayOfNumber
|
82
108
|
* assert.optionalArrayOfObject
|
83
109
|
* assert.optionalArrayOfString
|
110
|
+
* assert.optionalArrayOfStream
|
111
|
+
* assert.optionalArrayOfDate
|
112
|
+
* assert.optionalArrayOfUuid
|
84
113
|
* assert.AssertionError
|
85
114
|
* assert.fail
|
86
115
|
* assert.ok
|