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
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
```
|
7
|
+
```bash
|
8
8
|
$ npm install debug
|
9
9
|
```
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
13
|
With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
|
14
|
-
|
14
|
+
|
15
15
|
Example _app.js_:
|
16
16
|
|
17
17
|
```js
|
@@ -51,30 +51,51 @@ setInterval(function(){
|
|
51
51
|
|
52
52
|
![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)
|
53
53
|
|
54
|
+
#### Windows note
|
55
|
+
|
56
|
+
On Windows the environment variable is set using the `set` command.
|
57
|
+
|
58
|
+
```cmd
|
59
|
+
set DEBUG=*,-not_this
|
60
|
+
```
|
61
|
+
|
62
|
+
Then, run the program to be debugged as usual.
|
63
|
+
|
54
64
|
## Millisecond diff
|
55
65
|
|
56
66
|
When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
|
57
67
|
|
58
68
|
![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)
|
59
69
|
|
60
|
-
When
|
61
|
-
|
62
|
-
|
70
|
+
When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
|
71
|
+
|
63
72
|
![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)
|
64
|
-
|
73
|
+
|
65
74
|
## Conventions
|
66
75
|
|
67
|
-
If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
|
76
|
+
If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser".
|
68
77
|
|
69
78
|
## Wildcards
|
70
79
|
|
71
|
-
The
|
80
|
+
The `*` character may be used as a wildcard. Suppose for example your library has debuggers named "connect:bodyParser", "connect:compress", "connect:session", instead of listing all three with `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
|
72
81
|
|
73
|
-
You can also exclude specific debuggers by prefixing them with a "-" character. For example, `DEBUG
|
82
|
+
You can also exclude specific debuggers by prefixing them with a "-" character. For example, `DEBUG=*,-connect:*` would include all debuggers except those starting with "connect:".
|
74
83
|
|
75
84
|
## Browser support
|
76
85
|
|
77
|
-
|
86
|
+
Debug works in the browser as well, currently persisted by `localStorage`. Consider the situation shown below where you have `worker:a` and `worker:b`, and wish to debug both. Somewhere in the code on your page, include:
|
87
|
+
|
88
|
+
```js
|
89
|
+
window.myDebug = require("debug");
|
90
|
+
```
|
91
|
+
|
92
|
+
("debug" is a global object in the browser so we give this object a different name.) When your page is open in the browser, type the following in the console:
|
93
|
+
|
94
|
+
```js
|
95
|
+
myDebug.enable("worker:*")
|
96
|
+
```
|
97
|
+
|
98
|
+
Refresh the page. Debug output will continue to be sent to the console until it is disabled by typing `myDebug.disable()` in the console.
|
78
99
|
|
79
100
|
```js
|
80
101
|
a = debug('worker:a');
|
@@ -85,15 +106,67 @@ setInterval(function(){
|
|
85
106
|
}, 1000);
|
86
107
|
|
87
108
|
setInterval(function(){
|
88
|
-
|
109
|
+
b('doing some work');
|
89
110
|
}, 1200);
|
90
111
|
```
|
91
112
|
|
92
|
-
|
113
|
+
#### Web Inspector Colors
|
114
|
+
|
115
|
+
Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
|
116
|
+
option. These are WebKit web inspectors, Firefox ([since version
|
117
|
+
31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
|
118
|
+
and the Firebug plugin for Firefox (any version).
|
119
|
+
|
120
|
+
Colored output looks something like:
|
121
|
+
|
122
|
+
![](https://cloud.githubusercontent.com/assets/71256/3139768/b98c5fd8-e8ef-11e3-862a-f7253b6f47c6.png)
|
123
|
+
|
124
|
+
### stderr vs stdout
|
125
|
+
|
126
|
+
You can set an alternative logging method per-namespace by overriding the `log` method on a per-namespace or globally:
|
127
|
+
|
128
|
+
Example _stdout.js_:
|
129
|
+
|
130
|
+
```js
|
131
|
+
var debug = require('debug');
|
132
|
+
var error = debug('app:error');
|
133
|
+
|
134
|
+
// by default stderr is used
|
135
|
+
error('goes to stderr!');
|
136
|
+
|
137
|
+
var log = debug('app:log');
|
138
|
+
// set this namespace to log via console.log
|
139
|
+
log.log = console.log.bind(console); // don't forget to bind to console!
|
140
|
+
log('goes to stdout');
|
141
|
+
error('still goes to stderr!');
|
142
|
+
|
143
|
+
// set all output to go via console.info
|
144
|
+
// overrides all per-namespace log settings
|
145
|
+
debug.log = console.info.bind(console);
|
146
|
+
error('now goes to stdout via console.info');
|
147
|
+
log('still goes to stdout, but via console.info now');
|
148
|
+
```
|
149
|
+
|
150
|
+
### Save debug output to a file
|
151
|
+
|
152
|
+
You can save all debug statements to a file by piping them.
|
153
|
+
|
154
|
+
Example:
|
155
|
+
|
156
|
+
```bash
|
157
|
+
$ DEBUG_FD=3 node your-app.js 3> whatever.log
|
158
|
+
```
|
159
|
+
|
160
|
+
## Authors
|
161
|
+
|
162
|
+
- TJ Holowaychuk
|
163
|
+
- Nathan Rajlich
|
164
|
+
|
165
|
+
## License
|
93
166
|
|
94
167
|
(The MIT License)
|
95
168
|
|
96
|
-
Copyright (c)
|
169
|
+
Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
|
97
170
|
|
98
171
|
Permission is hereby granted, free of charge, to any person obtaining
|
99
172
|
a copy of this software and associated documentation files (the
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "visionmedia-debug",
|
3
|
+
"main": "dist/debug.js",
|
4
|
+
"version": "2.2.0",
|
5
|
+
"homepage": "https://github.com/visionmedia/debug",
|
6
|
+
"authors": [
|
7
|
+
"TJ Holowaychuk <tj@vision-media.ca>"
|
8
|
+
],
|
9
|
+
"description": "visionmedia-debug",
|
10
|
+
"moduleType": [
|
11
|
+
"amd",
|
12
|
+
"es6",
|
13
|
+
"globals",
|
14
|
+
"node"
|
15
|
+
],
|
16
|
+
"keywords": [
|
17
|
+
"visionmedia",
|
18
|
+
"debug"
|
19
|
+
],
|
20
|
+
"license": "MIT",
|
21
|
+
"ignore": [
|
22
|
+
"**/.*",
|
23
|
+
"node_modules",
|
24
|
+
"bower_components",
|
25
|
+
"test",
|
26
|
+
"tests"
|
27
|
+
]
|
28
|
+
}
|
@@ -0,0 +1,168 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* This is the web browser implementation of `debug()`.
|
4
|
+
*
|
5
|
+
* Expose `debug()` as the module.
|
6
|
+
*/
|
7
|
+
|
8
|
+
exports = module.exports = require('./debug');
|
9
|
+
exports.log = log;
|
10
|
+
exports.formatArgs = formatArgs;
|
11
|
+
exports.save = save;
|
12
|
+
exports.load = load;
|
13
|
+
exports.useColors = useColors;
|
14
|
+
exports.storage = 'undefined' != typeof chrome
|
15
|
+
&& 'undefined' != typeof chrome.storage
|
16
|
+
? chrome.storage.local
|
17
|
+
: localstorage();
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Colors.
|
21
|
+
*/
|
22
|
+
|
23
|
+
exports.colors = [
|
24
|
+
'lightseagreen',
|
25
|
+
'forestgreen',
|
26
|
+
'goldenrod',
|
27
|
+
'dodgerblue',
|
28
|
+
'darkorchid',
|
29
|
+
'crimson'
|
30
|
+
];
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
34
|
+
* and the Firebug extension (any Firefox version) are known
|
35
|
+
* to support "%c" CSS customizations.
|
36
|
+
*
|
37
|
+
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
38
|
+
*/
|
39
|
+
|
40
|
+
function useColors() {
|
41
|
+
// is webkit? http://stackoverflow.com/a/16459606/376773
|
42
|
+
return ('WebkitAppearance' in document.documentElement.style) ||
|
43
|
+
// is firebug? http://stackoverflow.com/a/398120/376773
|
44
|
+
(window.console && (console.firebug || (console.exception && console.table))) ||
|
45
|
+
// is firefox >= v31?
|
46
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
47
|
+
(navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31);
|
48
|
+
}
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
52
|
+
*/
|
53
|
+
|
54
|
+
exports.formatters.j = function(v) {
|
55
|
+
return JSON.stringify(v);
|
56
|
+
};
|
57
|
+
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Colorize log arguments if enabled.
|
61
|
+
*
|
62
|
+
* @api public
|
63
|
+
*/
|
64
|
+
|
65
|
+
function formatArgs() {
|
66
|
+
var args = arguments;
|
67
|
+
var useColors = this.useColors;
|
68
|
+
|
69
|
+
args[0] = (useColors ? '%c' : '')
|
70
|
+
+ this.namespace
|
71
|
+
+ (useColors ? ' %c' : ' ')
|
72
|
+
+ args[0]
|
73
|
+
+ (useColors ? '%c ' : ' ')
|
74
|
+
+ '+' + exports.humanize(this.diff);
|
75
|
+
|
76
|
+
if (!useColors) return args;
|
77
|
+
|
78
|
+
var c = 'color: ' + this.color;
|
79
|
+
args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));
|
80
|
+
|
81
|
+
// the final "%c" is somewhat tricky, because there could be other
|
82
|
+
// arguments passed either before or after the %c, so we need to
|
83
|
+
// figure out the correct index to insert the CSS into
|
84
|
+
var index = 0;
|
85
|
+
var lastC = 0;
|
86
|
+
args[0].replace(/%[a-z%]/g, function(match) {
|
87
|
+
if ('%%' === match) return;
|
88
|
+
index++;
|
89
|
+
if ('%c' === match) {
|
90
|
+
// we only are interested in the *last* %c
|
91
|
+
// (the user may have provided their own)
|
92
|
+
lastC = index;
|
93
|
+
}
|
94
|
+
});
|
95
|
+
|
96
|
+
args.splice(lastC, 0, c);
|
97
|
+
return args;
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Invokes `console.log()` when available.
|
102
|
+
* No-op when `console.log` is not a "function".
|
103
|
+
*
|
104
|
+
* @api public
|
105
|
+
*/
|
106
|
+
|
107
|
+
function log() {
|
108
|
+
// this hackery is required for IE8/9, where
|
109
|
+
// the `console.log` function doesn't have 'apply'
|
110
|
+
return 'object' === typeof console
|
111
|
+
&& console.log
|
112
|
+
&& Function.prototype.apply.call(console.log, console, arguments);
|
113
|
+
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Save `namespaces`.
|
117
|
+
*
|
118
|
+
* @param {String} namespaces
|
119
|
+
* @api private
|
120
|
+
*/
|
121
|
+
|
122
|
+
function save(namespaces) {
|
123
|
+
try {
|
124
|
+
if (null == namespaces) {
|
125
|
+
exports.storage.removeItem('debug');
|
126
|
+
} else {
|
127
|
+
exports.storage.debug = namespaces;
|
128
|
+
}
|
129
|
+
} catch(e) {}
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Load `namespaces`.
|
134
|
+
*
|
135
|
+
* @return {String} returns the previously persisted debug modes
|
136
|
+
* @api private
|
137
|
+
*/
|
138
|
+
|
139
|
+
function load() {
|
140
|
+
var r;
|
141
|
+
try {
|
142
|
+
r = exports.storage.debug;
|
143
|
+
} catch(e) {}
|
144
|
+
return r;
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Enable namespaces listed in `localStorage.debug` initially.
|
149
|
+
*/
|
150
|
+
|
151
|
+
exports.enable(load());
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Localstorage attempts to return the localstorage.
|
155
|
+
*
|
156
|
+
* This is necessary because safari throws
|
157
|
+
* when a user disables cookies/localstorage
|
158
|
+
* and you attempt to access it.
|
159
|
+
*
|
160
|
+
* @return {LocalStorage}
|
161
|
+
* @api private
|
162
|
+
*/
|
163
|
+
|
164
|
+
function localstorage(){
|
165
|
+
try {
|
166
|
+
return window.localStorage;
|
167
|
+
} catch (e) {}
|
168
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "debug",
|
3
|
+
"repo": "visionmedia/debug",
|
4
|
+
"description": "small debugging utility",
|
5
|
+
"version": "2.2.0",
|
6
|
+
"keywords": [
|
7
|
+
"debug",
|
8
|
+
"log",
|
9
|
+
"debugger"
|
10
|
+
],
|
11
|
+
"main": "browser.js",
|
12
|
+
"scripts": [
|
13
|
+
"browser.js",
|
14
|
+
"debug.js"
|
15
|
+
],
|
16
|
+
"dependencies": {
|
17
|
+
"rauchg/ms.js": "0.7.1"
|
18
|
+
}
|
19
|
+
}
|
@@ -1,103 +1,164 @@
|
|
1
1
|
|
2
2
|
/**
|
3
|
+
* This is the common logic for both the Node.js and web browser
|
4
|
+
* implementations of `debug()`.
|
5
|
+
*
|
3
6
|
* Expose `debug()` as the module.
|
4
7
|
*/
|
5
8
|
|
6
|
-
module.exports = debug;
|
9
|
+
exports = module.exports = debug;
|
10
|
+
exports.coerce = coerce;
|
11
|
+
exports.disable = disable;
|
12
|
+
exports.enable = enable;
|
13
|
+
exports.enabled = enabled;
|
14
|
+
exports.humanize = require('ms');
|
7
15
|
|
8
16
|
/**
|
9
|
-
*
|
17
|
+
* The currently active debug mode names, and names to skip.
|
18
|
+
*/
|
19
|
+
|
20
|
+
exports.names = [];
|
21
|
+
exports.skips = [];
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Map of special "%n" handling functions, for the debug "format" argument.
|
10
25
|
*
|
11
|
-
*
|
12
|
-
* @return {Type}
|
13
|
-
* @api public
|
26
|
+
* Valid key names are a single, lowercased letter, i.e. "n".
|
14
27
|
*/
|
15
28
|
|
16
|
-
|
17
|
-
if (!debug.enabled(name)) return function(){};
|
29
|
+
exports.formatters = {};
|
18
30
|
|
19
|
-
|
20
|
-
|
31
|
+
/**
|
32
|
+
* Previously assigned color.
|
33
|
+
*/
|
21
34
|
|
22
|
-
|
23
|
-
var ms = curr - (debug[name] || curr);
|
24
|
-
debug[name] = curr;
|
35
|
+
var prevColor = 0;
|
25
36
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
+ ' +' + debug.humanize(ms);
|
37
|
+
/**
|
38
|
+
* Previous log timestamp.
|
39
|
+
*/
|
30
40
|
|
31
|
-
|
32
|
-
// where `console.log` doesn't have 'apply'
|
33
|
-
window.console
|
34
|
-
&& console.log
|
35
|
-
&& Function.prototype.apply.call(console.log, console, arguments);
|
36
|
-
}
|
37
|
-
}
|
41
|
+
var prevTime;
|
38
42
|
|
39
43
|
/**
|
40
|
-
*
|
44
|
+
* Select a color.
|
45
|
+
*
|
46
|
+
* @return {Number}
|
47
|
+
* @api private
|
41
48
|
*/
|
42
49
|
|
43
|
-
|
44
|
-
|
50
|
+
function selectColor() {
|
51
|
+
return exports.colors[prevColor++ % exports.colors.length];
|
52
|
+
}
|
45
53
|
|
46
54
|
/**
|
47
|
-
*
|
48
|
-
* separated by a colon and wildcards.
|
55
|
+
* Create a debugger with the given `namespace`.
|
49
56
|
*
|
50
|
-
* @param {String}
|
57
|
+
* @param {String} namespace
|
58
|
+
* @return {Function}
|
51
59
|
* @api public
|
52
60
|
*/
|
53
61
|
|
54
|
-
debug
|
55
|
-
|
56
|
-
|
57
|
-
|
62
|
+
function debug(namespace) {
|
63
|
+
|
64
|
+
// define the `disabled` version
|
65
|
+
function disabled() {
|
66
|
+
}
|
67
|
+
disabled.enabled = false;
|
58
68
|
|
59
|
-
|
60
|
-
|
69
|
+
// define the `enabled` version
|
70
|
+
function enabled() {
|
61
71
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
72
|
+
var self = enabled;
|
73
|
+
|
74
|
+
// set `diff` timestamp
|
75
|
+
var curr = +new Date();
|
76
|
+
var ms = curr - (prevTime || curr);
|
77
|
+
self.diff = ms;
|
78
|
+
self.prev = prevTime;
|
79
|
+
self.curr = curr;
|
80
|
+
prevTime = curr;
|
81
|
+
|
82
|
+
// add the `color` if not set
|
83
|
+
if (null == self.useColors) self.useColors = exports.useColors();
|
84
|
+
if (null == self.color && self.useColors) self.color = selectColor();
|
85
|
+
|
86
|
+
var args = Array.prototype.slice.call(arguments);
|
87
|
+
|
88
|
+
args[0] = exports.coerce(args[0]);
|
89
|
+
|
90
|
+
if ('string' !== typeof args[0]) {
|
91
|
+
// anything else let's inspect with %o
|
92
|
+
args = ['%o'].concat(args);
|
66
93
|
}
|
67
|
-
|
68
|
-
|
94
|
+
|
95
|
+
// apply any `formatters` transformations
|
96
|
+
var index = 0;
|
97
|
+
args[0] = args[0].replace(/%([a-z%])/g, function(match, format) {
|
98
|
+
// if we encounter an escaped % then don't increase the array index
|
99
|
+
if (match === '%%') return match;
|
100
|
+
index++;
|
101
|
+
var formatter = exports.formatters[format];
|
102
|
+
if ('function' === typeof formatter) {
|
103
|
+
var val = args[index];
|
104
|
+
match = formatter.call(self, val);
|
105
|
+
|
106
|
+
// now we need to remove `args[index]` since it's inlined in the `format`
|
107
|
+
args.splice(index, 1);
|
108
|
+
index--;
|
109
|
+
}
|
110
|
+
return match;
|
111
|
+
});
|
112
|
+
|
113
|
+
if ('function' === typeof exports.formatArgs) {
|
114
|
+
args = exports.formatArgs.apply(self, args);
|
69
115
|
}
|
116
|
+
var logFn = enabled.log || exports.log || console.log.bind(console);
|
117
|
+
logFn.apply(self, args);
|
70
118
|
}
|
71
|
-
|
119
|
+
enabled.enabled = true;
|
120
|
+
|
121
|
+
var fn = exports.enabled(namespace) ? enabled : disabled;
|
122
|
+
|
123
|
+
fn.namespace = namespace;
|
124
|
+
|
125
|
+
return fn;
|
126
|
+
}
|
72
127
|
|
73
128
|
/**
|
74
|
-
*
|
129
|
+
* Enables a debug mode by namespaces. This can include modes
|
130
|
+
* separated by a colon and wildcards.
|
75
131
|
*
|
132
|
+
* @param {String} namespaces
|
76
133
|
* @api public
|
77
134
|
*/
|
78
135
|
|
79
|
-
|
80
|
-
|
81
|
-
|
136
|
+
function enable(namespaces) {
|
137
|
+
exports.save(namespaces);
|
138
|
+
|
139
|
+
var split = (namespaces || '').split(/[\s,]+/);
|
140
|
+
var len = split.length;
|
141
|
+
|
142
|
+
for (var i = 0; i < len; i++) {
|
143
|
+
if (!split[i]) continue; // ignore empty strings
|
144
|
+
namespaces = split[i].replace(/\*/g, '.*?');
|
145
|
+
if (namespaces[0] === '-') {
|
146
|
+
exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
|
147
|
+
} else {
|
148
|
+
exports.names.push(new RegExp('^' + namespaces + '$'));
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
82
152
|
|
83
153
|
/**
|
84
|
-
*
|
154
|
+
* Disable debug output.
|
85
155
|
*
|
86
|
-
* @
|
87
|
-
* @return {String}
|
88
|
-
* @api private
|
156
|
+
* @api public
|
89
157
|
*/
|
90
158
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
, hour = 60 * min;
|
95
|
-
|
96
|
-
if (ms >= hour) return (ms / hour).toFixed(1) + 'h';
|
97
|
-
if (ms >= min) return (ms / min).toFixed(1) + 'm';
|
98
|
-
if (ms >= sec) return (ms / sec | 0) + 's';
|
99
|
-
return ms + 'ms';
|
100
|
-
};
|
159
|
+
function disable() {
|
160
|
+
exports.enable('');
|
161
|
+
}
|
101
162
|
|
102
163
|
/**
|
103
164
|
* Returns true if the given mode name is enabled, false otherwise.
|
@@ -107,31 +168,30 @@ debug.humanize = function(ms) {
|
|
107
168
|
* @api public
|
108
169
|
*/
|
109
170
|
|
110
|
-
|
111
|
-
|
112
|
-
|
171
|
+
function enabled(name) {
|
172
|
+
var i, len;
|
173
|
+
for (i = 0, len = exports.skips.length; i < len; i++) {
|
174
|
+
if (exports.skips[i].test(name)) {
|
113
175
|
return false;
|
114
176
|
}
|
115
177
|
}
|
116
|
-
for (
|
117
|
-
if (
|
178
|
+
for (i = 0, len = exports.names.length; i < len; i++) {
|
179
|
+
if (exports.names[i].test(name)) {
|
118
180
|
return true;
|
119
181
|
}
|
120
182
|
}
|
121
183
|
return false;
|
122
|
-
}
|
184
|
+
}
|
123
185
|
|
124
186
|
/**
|
125
187
|
* Coerce `val`.
|
188
|
+
*
|
189
|
+
* @param {Mixed} val
|
190
|
+
* @return {Mixed}
|
191
|
+
* @api private
|
126
192
|
*/
|
127
193
|
|
128
194
|
function coerce(val) {
|
129
195
|
if (val instanceof Error) return val.stack || val.message;
|
130
196
|
return val;
|
131
197
|
}
|
132
|
-
|
133
|
-
// persist
|
134
|
-
|
135
|
-
try {
|
136
|
-
if (window.localStorage) debug.enable(localStorage.debug);
|
137
|
-
} catch(e){}
|