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,147 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Module dependencies.
|
3
|
-
*/
|
4
|
-
|
5
|
-
var tty = require('tty');
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Expose `debug()` as the module.
|
9
|
-
*/
|
10
|
-
|
11
|
-
module.exports = debug;
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Enabled debuggers.
|
15
|
-
*/
|
16
|
-
|
17
|
-
var names = []
|
18
|
-
, skips = [];
|
19
|
-
|
20
|
-
(process.env.DEBUG || '')
|
21
|
-
.split(/[\s,]+/)
|
22
|
-
.forEach(function(name){
|
23
|
-
name = name.replace('*', '.*?');
|
24
|
-
if (name[0] === '-') {
|
25
|
-
skips.push(new RegExp('^' + name.substr(1) + '$'));
|
26
|
-
} else {
|
27
|
-
names.push(new RegExp('^' + name + '$'));
|
28
|
-
}
|
29
|
-
});
|
30
|
-
|
31
|
-
/**
|
32
|
-
* Colors.
|
33
|
-
*/
|
34
|
-
|
35
|
-
var colors = [6, 2, 3, 4, 5, 1];
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Previous debug() call.
|
39
|
-
*/
|
40
|
-
|
41
|
-
var prev = {};
|
42
|
-
|
43
|
-
/**
|
44
|
-
* Previously assigned color.
|
45
|
-
*/
|
46
|
-
|
47
|
-
var prevColor = 0;
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Is stdout a TTY? Colored output is disabled when `true`.
|
51
|
-
*/
|
52
|
-
|
53
|
-
var isatty = tty.isatty(2);
|
54
|
-
|
55
|
-
/**
|
56
|
-
* Select a color.
|
57
|
-
*
|
58
|
-
* @return {Number}
|
59
|
-
* @api private
|
60
|
-
*/
|
61
|
-
|
62
|
-
function color() {
|
63
|
-
return colors[prevColor++ % colors.length];
|
64
|
-
}
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Humanize the given `ms`.
|
68
|
-
*
|
69
|
-
* @param {Number} m
|
70
|
-
* @return {String}
|
71
|
-
* @api private
|
72
|
-
*/
|
73
|
-
|
74
|
-
function humanize(ms) {
|
75
|
-
var sec = 1000
|
76
|
-
, min = 60 * 1000
|
77
|
-
, hour = 60 * min;
|
78
|
-
|
79
|
-
if (ms >= hour) return (ms / hour).toFixed(1) + 'h';
|
80
|
-
if (ms >= min) return (ms / min).toFixed(1) + 'm';
|
81
|
-
if (ms >= sec) return (ms / sec | 0) + 's';
|
82
|
-
return ms + 'ms';
|
83
|
-
}
|
84
|
-
|
85
|
-
/**
|
86
|
-
* Create a debugger with the given `name`.
|
87
|
-
*
|
88
|
-
* @param {String} name
|
89
|
-
* @return {Type}
|
90
|
-
* @api public
|
91
|
-
*/
|
92
|
-
|
93
|
-
function debug(name) {
|
94
|
-
function disabled(){}
|
95
|
-
disabled.enabled = false;
|
96
|
-
|
97
|
-
var match = skips.some(function(re){
|
98
|
-
return re.test(name);
|
99
|
-
});
|
100
|
-
|
101
|
-
if (match) return disabled;
|
102
|
-
|
103
|
-
match = names.some(function(re){
|
104
|
-
return re.test(name);
|
105
|
-
});
|
106
|
-
|
107
|
-
if (!match) return disabled;
|
108
|
-
var c = color();
|
109
|
-
|
110
|
-
function colored(fmt) {
|
111
|
-
fmt = coerce(fmt);
|
112
|
-
|
113
|
-
var curr = new Date;
|
114
|
-
var ms = curr - (prev[name] || curr);
|
115
|
-
prev[name] = curr;
|
116
|
-
|
117
|
-
fmt = ' \u001b[9' + c + 'm' + name + ' '
|
118
|
-
+ '\u001b[3' + c + 'm\u001b[90m'
|
119
|
-
+ fmt + '\u001b[3' + c + 'm'
|
120
|
-
+ ' +' + humanize(ms) + '\u001b[0m';
|
121
|
-
|
122
|
-
console.error.apply(this, arguments);
|
123
|
-
}
|
124
|
-
|
125
|
-
function plain(fmt) {
|
126
|
-
fmt = coerce(fmt);
|
127
|
-
|
128
|
-
fmt = new Date().toUTCString()
|
129
|
-
+ ' ' + name + ' ' + fmt;
|
130
|
-
console.error.apply(this, arguments);
|
131
|
-
}
|
132
|
-
|
133
|
-
colored.enabled = plain.enabled = true;
|
134
|
-
|
135
|
-
return isatty || process.env.DEBUG_COLORS
|
136
|
-
? colored
|
137
|
-
: plain;
|
138
|
-
}
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Coerce `val`.
|
142
|
-
*/
|
143
|
-
|
144
|
-
function coerce(val) {
|
145
|
-
if (val instanceof Error) return val.stack || val.message;
|
146
|
-
return val;
|
147
|
-
}
|
@@ -1,220 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var should = require('should');
|
4
|
-
var extend = require('../index'); // it must be ./lib/deep-extend.js
|
5
|
-
|
6
|
-
describe('deep-extend', function () {
|
7
|
-
|
8
|
-
it('can extend on 1 level', function () {
|
9
|
-
var a = { hello: 1 };
|
10
|
-
var b = { world: 2 };
|
11
|
-
extend(a, b);
|
12
|
-
a.should.eql({
|
13
|
-
hello: 1,
|
14
|
-
world: 2
|
15
|
-
});
|
16
|
-
});
|
17
|
-
|
18
|
-
it('can extend on 2 levels', function () {
|
19
|
-
var a = { person: { name: 'John' } };
|
20
|
-
var b = { person: { age: 30 } };
|
21
|
-
extend(a, b);
|
22
|
-
a.should.eql({
|
23
|
-
person: { name: 'John', age: 30 }
|
24
|
-
});
|
25
|
-
});
|
26
|
-
|
27
|
-
it('can extend with Buffer values', function () {
|
28
|
-
var a = { hello: 1 };
|
29
|
-
var b = { value: new Buffer('world') };
|
30
|
-
extend(a, b);
|
31
|
-
a.should.eql({
|
32
|
-
hello: 1,
|
33
|
-
value: new Buffer('world')
|
34
|
-
});
|
35
|
-
});
|
36
|
-
|
37
|
-
it('Buffer is cloned', function () {
|
38
|
-
var a = { };
|
39
|
-
var b = { value: new Buffer('foo') };
|
40
|
-
extend(a, b);
|
41
|
-
a.value.write('bar');
|
42
|
-
a.value.toString().should.eql('bar');
|
43
|
-
b.value.toString().should.eql('foo');
|
44
|
-
});
|
45
|
-
|
46
|
-
it('Date objects', function () {
|
47
|
-
var a = { d: new Date() };
|
48
|
-
var b = extend({}, a);
|
49
|
-
b.d.should.instanceOf(Date);
|
50
|
-
});
|
51
|
-
|
52
|
-
it('Date object is cloned', function () {
|
53
|
-
var a = { d: new Date() };
|
54
|
-
var b = extend({}, a);
|
55
|
-
b.d.setTime( (new Date()).getTime() + 100000 );
|
56
|
-
b.d.getTime().should.not.eql( a.d.getTime() );
|
57
|
-
});
|
58
|
-
|
59
|
-
it('RegExp objects', function () {
|
60
|
-
var a = { d: new RegExp() };
|
61
|
-
var b = extend({}, a);
|
62
|
-
b.d.should.instanceOf(RegExp);
|
63
|
-
});
|
64
|
-
|
65
|
-
it('RegExp object is cloned', function () {
|
66
|
-
var a = { d: new RegExp('b', 'g') };
|
67
|
-
var b = extend({}, a);
|
68
|
-
b.d.test('abc');
|
69
|
-
b.d.lastIndex.should.not.eql( a.d.lastIndex );
|
70
|
-
});
|
71
|
-
|
72
|
-
it('doesn\'t change sources', function () {
|
73
|
-
var a = {a: [1]};
|
74
|
-
var b = {a: [2]};
|
75
|
-
var c = {c: 3};
|
76
|
-
var d = extend({}, a, b, c);
|
77
|
-
|
78
|
-
a.should.eql({a: [1]});
|
79
|
-
b.should.eql({a: [2]});
|
80
|
-
c.should.eql({c: 3});
|
81
|
-
});
|
82
|
-
|
83
|
-
it('example from README.md', function () {
|
84
|
-
var obj1 = {
|
85
|
-
a: 1,
|
86
|
-
b: 2,
|
87
|
-
d: {
|
88
|
-
a: 1,
|
89
|
-
b: [],
|
90
|
-
c: { test1: 123, test2: 321 }
|
91
|
-
},
|
92
|
-
f: 5,
|
93
|
-
g: 123,
|
94
|
-
i: 321,
|
95
|
-
j: [1, 2]
|
96
|
-
};
|
97
|
-
var obj2 = {
|
98
|
-
b: 3,
|
99
|
-
c: 5,
|
100
|
-
d: {
|
101
|
-
b: { first: 'one', second: 'two' },
|
102
|
-
c: { test2: 222 }
|
103
|
-
},
|
104
|
-
e: { one: 1, two: 2 },
|
105
|
-
f: [],
|
106
|
-
g: (void 0),
|
107
|
-
h: /abc/g,
|
108
|
-
i: null,
|
109
|
-
j: [3, 4]
|
110
|
-
};
|
111
|
-
|
112
|
-
extend(obj1, obj2);
|
113
|
-
|
114
|
-
obj1.should.eql({
|
115
|
-
a: 1,
|
116
|
-
b: 3,
|
117
|
-
d: {
|
118
|
-
a: 1,
|
119
|
-
b: { first: 'one', second: 'two' },
|
120
|
-
c: { test1: 123, test2: 222 }
|
121
|
-
},
|
122
|
-
f: [],
|
123
|
-
g: undefined,
|
124
|
-
c: 5,
|
125
|
-
e: { one: 1, two: 2 },
|
126
|
-
h: /abc/g,
|
127
|
-
i: null,
|
128
|
-
j: [3, 4]
|
129
|
-
});
|
130
|
-
|
131
|
-
('g' in obj1).should.eql(true);
|
132
|
-
('x' in obj1).should.eql(false);
|
133
|
-
});
|
134
|
-
|
135
|
-
it('clone arrays instead of extend', function () {
|
136
|
-
extend({a: [1, 2, 3]}, {a: [2, 3]}).should.eql({a: [2, 3]});
|
137
|
-
});
|
138
|
-
|
139
|
-
it('recursive clone objects and special objects in cloned arrays', function () {
|
140
|
-
var obj1 = {
|
141
|
-
x: 1,
|
142
|
-
y: new Buffer('foo')
|
143
|
-
};
|
144
|
-
var b = new Buffer('bar');
|
145
|
-
var obj2 = {
|
146
|
-
x: 1,
|
147
|
-
y: [2, 4, obj1, b],
|
148
|
-
z: new Buffer('test')
|
149
|
-
};
|
150
|
-
var foo = {
|
151
|
-
a: [obj2, obj2]
|
152
|
-
};
|
153
|
-
var bar = extend({}, foo);
|
154
|
-
bar.a[0].x = 2;
|
155
|
-
bar.a[0].z.write('text', 'utf-8');
|
156
|
-
bar.a[1].x = 3;
|
157
|
-
bar.a[1].z.write('lel', 'utf-8');
|
158
|
-
bar.a[0].y[0] = 3;
|
159
|
-
bar.a[0].y[2].x = 5;
|
160
|
-
bar.a[0].y[2].y.write('heh', 'utf-8');
|
161
|
-
bar.a[0].y[3].write('ho', 'utf-8');
|
162
|
-
bar.a[1].y[1] = 3;
|
163
|
-
bar.a[1].y[2].y.write('nah', 'utf-8');
|
164
|
-
bar.a[1].y[3].write('he', 'utf-8');
|
165
|
-
|
166
|
-
obj2.x.should.eql(1);
|
167
|
-
obj2.z.toString().should.eql('test');
|
168
|
-
bar.a[0].x.should.eql(2);
|
169
|
-
bar.a[0].z.toString().should.eql('text');
|
170
|
-
bar.a[1].x.should.eql(3);
|
171
|
-
bar.a[1].z.toString().should.eql('lelt');
|
172
|
-
obj1.x.should.eql(1);
|
173
|
-
obj1.y.toString().should.eql('foo');
|
174
|
-
b.toString().should.eql('bar');
|
175
|
-
|
176
|
-
bar.a[0].y[0].should.eql(3);
|
177
|
-
bar.a[0].y[1].should.eql(4);
|
178
|
-
bar.a[0].y[2].x.should.eql(5);
|
179
|
-
bar.a[0].y[2].y.toString().should.eql('heh');
|
180
|
-
bar.a[0].y[3].toString().should.eql('hor');
|
181
|
-
|
182
|
-
bar.a[1].y[0].should.eql(2);
|
183
|
-
bar.a[1].y[1].should.eql(3);
|
184
|
-
bar.a[1].y[2].x.should.eql(1);
|
185
|
-
bar.a[1].y[2].y.toString().should.eql('nah');
|
186
|
-
bar.a[1].y[3].toString().should.eql('her');
|
187
|
-
|
188
|
-
foo.a.length.should.eql(2);
|
189
|
-
bar.a.length.should.eql(2);
|
190
|
-
Object.keys(obj2).should.eql(['x', 'y', 'z']);
|
191
|
-
Object.keys(bar.a[0]).should.eql(['x', 'y', 'z']);
|
192
|
-
Object.keys(bar.a[1]).should.eql(['x', 'y', 'z']);
|
193
|
-
obj2.y.length.should.eql(4);
|
194
|
-
bar.a[0].y.length.should.eql(4);
|
195
|
-
bar.a[1].y.length.should.eql(4);
|
196
|
-
Object.keys(obj2.y[2]).should.eql(['x', 'y']);
|
197
|
-
Object.keys(bar.a[0].y[2]).should.eql(['x', 'y']);
|
198
|
-
Object.keys(bar.a[1].y[2]).should.eql(['x', 'y']);
|
199
|
-
});
|
200
|
-
|
201
|
-
it('checking keys for hasOwnPrototype', function () {
|
202
|
-
var A = function () {
|
203
|
-
this.x = 1;
|
204
|
-
this.y = 2;
|
205
|
-
};
|
206
|
-
A.prototype.z = 3;
|
207
|
-
var foo = new A();
|
208
|
-
extend({x: 123}, foo).should.eql({
|
209
|
-
x: 1,
|
210
|
-
y: 2
|
211
|
-
});
|
212
|
-
foo.z = 5;
|
213
|
-
extend({x: 123}, foo, {y: 22}).should.eql({
|
214
|
-
x: 1,
|
215
|
-
y: 22,
|
216
|
-
z: 5
|
217
|
-
});
|
218
|
-
});
|
219
|
-
|
220
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
--reporter spec
|
@@ -1,161 +0,0 @@
|
|
1
|
-
gauge
|
2
|
-
=====
|
3
|
-
|
4
|
-
A nearly stateless terminal based horizontal guage / progress bar.
|
5
|
-
|
6
|
-
```javascript
|
7
|
-
var Gauge = require("gauge")
|
8
|
-
|
9
|
-
var gauge = new Gauge()
|
10
|
-
|
11
|
-
gauge.show("test", 0.20)
|
12
|
-
|
13
|
-
gauge.pulse("this")
|
14
|
-
|
15
|
-
gauge.hide()
|
16
|
-
```
|
17
|
-
|
18
|
-
![](example.png)
|
19
|
-
|
20
|
-
|
21
|
-
### `var gauge = new Gauge([options], [ansiStream])`
|
22
|
-
|
23
|
-
* **options** – *(optional)* An option object. (See [below] for details.)
|
24
|
-
* **ansiStream** – *(optional)* A stream that's been blessed by the [ansi]
|
25
|
-
module to include various commands for controlling the cursor in a terminal.
|
26
|
-
|
27
|
-
[ansi]: https://www.npmjs.com/package/ansi
|
28
|
-
[below]: #theme-objects
|
29
|
-
|
30
|
-
Constructs a new gauge. Gauges are drawn on a single line, and are not drawn
|
31
|
-
if the current terminal isn't a tty.
|
32
|
-
|
33
|
-
The **options** object can have the following properties, all of which are
|
34
|
-
optional:
|
35
|
-
|
36
|
-
* maxUpdateFrequency: defaults to 50 msec, the gauge will not be drawn more
|
37
|
-
than once in this period of time. This applies to `show` and `pulse`
|
38
|
-
calls, but if you `hide` and then `show` the gauge it will draw it
|
39
|
-
regardless of time since last draw.
|
40
|
-
* theme: defaults to Gauge.unicode` if the terminal supports
|
41
|
-
unicode according to [has-unicode], otherwise it defaults to `Gauge.ascii`.
|
42
|
-
Details on the [theme object](#theme-objects) are documented elsewhere.
|
43
|
-
* template: see [documentation elsewhere](#template-objects) for
|
44
|
-
defaults and details.
|
45
|
-
|
46
|
-
[has-unicode]: https://www.npmjs.com/package/has-unicode
|
47
|
-
|
48
|
-
If **ansiStream** isn't passed in, then one will be constructed from stderr
|
49
|
-
with `ansi(process.stderr)`.
|
50
|
-
|
51
|
-
### `gauge.show([name, [completed]])`
|
52
|
-
|
53
|
-
* **name** – *(optional)* The name of the current thing contributing to progress. Defaults to the last value used, or "".
|
54
|
-
* **completed** – *(optional)* The portion completed as a value between 0 and 1. Defaults to the last value used, or 0.
|
55
|
-
|
56
|
-
If `process.stdout.isTTY` is false then this does nothing. If completed is 0
|
57
|
-
and `gauge.pulse` has never been called, then similarly nothing will be printed.
|
58
|
-
|
59
|
-
If `maxUpdateFrequency` msec haven't passed since the last call to `show` or
|
60
|
-
`pulse` then similarly, nothing will be printed. (Actually, the update is
|
61
|
-
deferred until `maxUpdateFrequency` msec have passed and if nothing else has
|
62
|
-
happened, the gauge update will happen.)
|
63
|
-
|
64
|
-
### `gauge.hide()`
|
65
|
-
|
66
|
-
Removes the gauge from the terminal.
|
67
|
-
|
68
|
-
### `gauge.pulse([name])`
|
69
|
-
|
70
|
-
* **name** – *(optional)* The specific thing that triggered this pulse
|
71
|
-
|
72
|
-
Spins the spinner in the gauge to show output. If **name** is included then
|
73
|
-
it will be combined with the last name passed to `gauge.show` using the
|
74
|
-
subsection property of the theme (typically a right facing arrow).
|
75
|
-
|
76
|
-
### `gauge.disable()`
|
77
|
-
|
78
|
-
Hides the gauge and ignores further calls to `show` or `pulse`.
|
79
|
-
|
80
|
-
### `gauge.enable()`
|
81
|
-
|
82
|
-
Shows the gauge and resumes updating when `show` or `pulse` is called.
|
83
|
-
|
84
|
-
### `gauge.setTheme(theme)`
|
85
|
-
|
86
|
-
Change the active theme, will be displayed with the next show or pulse
|
87
|
-
|
88
|
-
### `gauge.setTemplate(template)`
|
89
|
-
|
90
|
-
Change the active template, will be displayed with the next show or pulse
|
91
|
-
|
92
|
-
### Theme Objects
|
93
|
-
|
94
|
-
There are two theme objects available as a part of the module, `Gauge.unicode` and `Gauge.ascii`.
|
95
|
-
Theme objects have the follow properties:
|
96
|
-
|
97
|
-
| Property | Unicode | ASCII |
|
98
|
-
| ---------- | ------- | ----- |
|
99
|
-
| startgroup | ╢ | \| |
|
100
|
-
| endgroup | ╟ | \| |
|
101
|
-
| complete | █ | # |
|
102
|
-
| incomplete | ░ | - |
|
103
|
-
| spinner | ▀▐▄▌ | -\\\|/ |
|
104
|
-
| subsection | → | -> |
|
105
|
-
|
106
|
-
*startgroup*, *endgroup* and *subsection* can be as many characters as you want.
|
107
|
-
|
108
|
-
*complete* and *incomplete* should be a single character width each.
|
109
|
-
|
110
|
-
*spinner* is a list of characters to use in turn when displaying an activity
|
111
|
-
spinner. The Gauge will spin as many characters as you give here.
|
112
|
-
|
113
|
-
### Template Objects
|
114
|
-
|
115
|
-
A template is an array of objects and strings that, after being evaluated,
|
116
|
-
will be turned into the gauge line. The default template is:
|
117
|
-
|
118
|
-
```javascript
|
119
|
-
[
|
120
|
-
{type: "name", separated: true, maxLength: 25, minLength: 25, align: "left"},
|
121
|
-
{type: "spinner", separated: true},
|
122
|
-
{type: "startgroup"},
|
123
|
-
{type: "completionbar"},
|
124
|
-
{type: "endgroup"}
|
125
|
-
]
|
126
|
-
```
|
127
|
-
|
128
|
-
The various template elements can either be **plain strings**, in which case they will
|
129
|
-
be be included verbatum in the output.
|
130
|
-
|
131
|
-
If the template element is an object, it can have the following keys:
|
132
|
-
|
133
|
-
* *type* can be:
|
134
|
-
* `name` – The most recent name passed to `show`; if this is in response to a
|
135
|
-
`pulse` then the name passed to `pulse` will be appended along with the
|
136
|
-
subsection property from the theme.
|
137
|
-
* `spinner` – If you've ever called `pulse` this will be one of the characters
|
138
|
-
from the spinner property of the theme.
|
139
|
-
* `startgroup` – The `startgroup` property from the theme.
|
140
|
-
* `completionbar` – This progress bar itself
|
141
|
-
* `endgroup` – The `endgroup` property from the theme.
|
142
|
-
* *separated* – If true, the element will be separated with spaces from things on
|
143
|
-
either side (and margins count as space, so it won't be indented), but only
|
144
|
-
if its included.
|
145
|
-
* *maxLength* – The maximum length for this element. If its value is longer it
|
146
|
-
will be truncated.
|
147
|
-
* *minLength* – The minimum length for this element. If its value is shorter it
|
148
|
-
will be padded according to the *align* value.
|
149
|
-
* *align* – (Default: left) Possible values "left", "right" and "center". Works
|
150
|
-
as you'd expect from word processors.
|
151
|
-
* *length* – Provides a single value for both *minLength* and *maxLength*. If both
|
152
|
-
*length* and *minLength or *maxLength* are specifed then the latter take precedence.
|
153
|
-
|
154
|
-
### Tracking Completion
|
155
|
-
|
156
|
-
If you have more than one thing going on that you want to track completion
|
157
|
-
of, you may find the related [are-we-there-yet] helpful. It's `change`
|
158
|
-
event can be wired up to the `show` method to get a more traditional
|
159
|
-
progress bar interface.
|
160
|
-
|
161
|
-
[are-we-there-yet]: https://www.npmjs.com/package/are-we-there-yet
|
@@ -1,27 +0,0 @@
|
|
1
|
-
Copyright (c) Isaac Z. Schlueter ("Author")
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
The BSD License
|
5
|
-
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
7
|
-
modification, are permitted provided that the following conditions
|
8
|
-
are met:
|
9
|
-
|
10
|
-
1. Redistributions of source code must retain the above copyright
|
11
|
-
notice, this list of conditions and the following disclaimer.
|
12
|
-
|
13
|
-
2. Redistributions in binary form must reproduce the above copyright
|
14
|
-
notice, this list of conditions and the following disclaimer in the
|
15
|
-
documentation and/or other materials provided with the distribution.
|
16
|
-
|
17
|
-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
18
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
19
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
20
|
-
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
|
21
|
-
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
22
|
-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
23
|
-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
24
|
-
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
25
|
-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
26
|
-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
27
|
-
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,18 +0,0 @@
|
|
1
|
-
var test = require('tap').test
|
2
|
-
var once = require('../once.js')
|
3
|
-
|
4
|
-
test('once', function (t) {
|
5
|
-
var f = 0
|
6
|
-
var foo = once(function (g) {
|
7
|
-
t.equal(f, 0)
|
8
|
-
f ++
|
9
|
-
return f + g + this
|
10
|
-
})
|
11
|
-
for (var i = 0; i < 1E3; i++) {
|
12
|
-
t.same(f, i === 0 ? 0 : 1)
|
13
|
-
var g = foo.call(1, 1)
|
14
|
-
t.same(g, i === 0 ? 3 : undefined)
|
15
|
-
t.same(f, 1)
|
16
|
-
}
|
17
|
-
t.end()
|
18
|
-
})
|