postdoc 0.2.0.beta4 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/postdoc.rb +50 -18
- metadata +24 -378
- data/lib/pdf.js +0 -27
- data/node_modules/agent-base/History.md +0 -113
- data/node_modules/agent-base/README.md +0 -145
- data/node_modules/agent-base/index.js +0 -160
- data/node_modules/agent-base/package.json +0 -35
- data/node_modules/agent-base/patch-core.js +0 -37
- data/node_modules/agent-base/test/ssl-cert-snakeoil.key +0 -15
- data/node_modules/agent-base/test/ssl-cert-snakeoil.pem +0 -12
- data/node_modules/agent-base/test/test.js +0 -673
- data/node_modules/async-limiter/LICENSE +0 -8
- data/node_modules/async-limiter/coverage/coverage.json +0 -1
- data/node_modules/async-limiter/coverage/lcov-report/async-throttle/index.html +0 -73
- data/node_modules/async-limiter/coverage/lcov-report/async-throttle/index.js.html +0 -246
- data/node_modules/async-limiter/coverage/lcov-report/base.css +0 -182
- data/node_modules/async-limiter/coverage/lcov-report/index.html +0 -73
- data/node_modules/async-limiter/coverage/lcov-report/prettify.css +0 -1
- data/node_modules/async-limiter/coverage/lcov-report/prettify.js +0 -1
- data/node_modules/async-limiter/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- data/node_modules/async-limiter/coverage/lcov-report/sorter.js +0 -156
- data/node_modules/async-limiter/coverage/lcov.info +0 -74
- data/node_modules/async-limiter/index.js +0 -67
- data/node_modules/async-limiter/package.json +0 -35
- data/node_modules/async-limiter/readme.md +0 -132
- data/node_modules/balanced-match/LICENSE.md +0 -21
- data/node_modules/balanced-match/README.md +0 -91
- data/node_modules/balanced-match/index.js +0 -59
- data/node_modules/balanced-match/package.json +0 -49
- data/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/buffer-from/index.js +0 -69
- data/node_modules/buffer-from/package.json +0 -16
- data/node_modules/buffer-from/readme.md +0 -69
- data/node_modules/buffer-from/test.js +0 -12
- data/node_modules/concat-map/LICENSE +0 -18
- data/node_modules/concat-map/README.markdown +0 -62
- data/node_modules/concat-map/example/map.js +0 -6
- data/node_modules/concat-map/index.js +0 -13
- data/node_modules/concat-map/package.json +0 -43
- data/node_modules/concat-map/test/map.js +0 -39
- data/node_modules/concat-stream/LICENSE +0 -24
- data/node_modules/concat-stream/index.js +0 -144
- data/node_modules/concat-stream/package.json +0 -55
- data/node_modules/concat-stream/readme.md +0 -102
- data/node_modules/core-util-is/LICENSE +0 -19
- data/node_modules/core-util-is/README.md +0 -3
- data/node_modules/core-util-is/float.patch +0 -604
- data/node_modules/core-util-is/lib/util.js +0 -107
- data/node_modules/core-util-is/package.json +0 -32
- data/node_modules/core-util-is/test.js +0 -68
- data/node_modules/debug/CHANGELOG.md +0 -395
- data/node_modules/debug/LICENSE +0 -19
- data/node_modules/debug/Makefile +0 -58
- data/node_modules/debug/README.md +0 -368
- data/node_modules/debug/karma.conf.js +0 -70
- data/node_modules/debug/node.js +0 -1
- data/node_modules/debug/package.json +0 -43
- data/node_modules/debug/src/browser.js +0 -195
- data/node_modules/debug/src/debug.js +0 -225
- data/node_modules/debug/src/index.js +0 -10
- data/node_modules/debug/src/node.js +0 -186
- data/node_modules/es6-promise/CHANGELOG.md +0 -151
- data/node_modules/es6-promise/LICENSE +0 -19
- data/node_modules/es6-promise/README.md +0 -97
- data/node_modules/es6-promise/auto.js +0 -4
- data/node_modules/es6-promise/dist/es6-promise.auto.js +0 -1181
- data/node_modules/es6-promise/dist/es6-promise.auto.map +0 -1
- data/node_modules/es6-promise/dist/es6-promise.auto.min.js +0 -1
- data/node_modules/es6-promise/dist/es6-promise.auto.min.map +0 -1
- data/node_modules/es6-promise/dist/es6-promise.js +0 -1179
- data/node_modules/es6-promise/dist/es6-promise.map +0 -1
- data/node_modules/es6-promise/dist/es6-promise.min.js +0 -1
- data/node_modules/es6-promise/dist/es6-promise.min.map +0 -1
- data/node_modules/es6-promise/es6-promise.d.ts +0 -81
- data/node_modules/es6-promise/lib/es6-promise.auto.js +0 -3
- data/node_modules/es6-promise/lib/es6-promise.js +0 -7
- data/node_modules/es6-promise/lib/es6-promise/-internal.js +0 -266
- data/node_modules/es6-promise/lib/es6-promise/asap.js +0 -119
- data/node_modules/es6-promise/lib/es6-promise/enumerator.js +0 -113
- data/node_modules/es6-promise/lib/es6-promise/polyfill.js +0 -35
- data/node_modules/es6-promise/lib/es6-promise/promise.js +0 -427
- data/node_modules/es6-promise/lib/es6-promise/promise/all.js +0 -52
- data/node_modules/es6-promise/lib/es6-promise/promise/race.js +0 -84
- data/node_modules/es6-promise/lib/es6-promise/promise/reject.js +0 -46
- data/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +0 -48
- data/node_modules/es6-promise/lib/es6-promise/then.js +0 -32
- data/node_modules/es6-promise/lib/es6-promise/utils.js +0 -21
- data/node_modules/es6-promise/package.json +0 -75
- data/node_modules/es6-promisify/README.md +0 -89
- data/node_modules/es6-promisify/dist/promise.js +0 -73
- data/node_modules/es6-promisify/dist/promisify.js +0 -85
- data/node_modules/es6-promisify/package.json +0 -41
- data/node_modules/extract-zip/CONTRIBUTING.md +0 -1
- data/node_modules/extract-zip/LICENSE +0 -23
- data/node_modules/extract-zip/cli.js +0 -20
- data/node_modules/extract-zip/index.js +0 -205
- data/node_modules/extract-zip/node_modules/debug/CHANGELOG.md +0 -362
- data/node_modules/extract-zip/node_modules/debug/LICENSE +0 -19
- data/node_modules/extract-zip/node_modules/debug/Makefile +0 -50
- data/node_modules/extract-zip/node_modules/debug/README.md +0 -312
- data/node_modules/extract-zip/node_modules/debug/component.json +0 -19
- data/node_modules/extract-zip/node_modules/debug/karma.conf.js +0 -70
- data/node_modules/extract-zip/node_modules/debug/node.js +0 -1
- data/node_modules/extract-zip/node_modules/debug/package.json +0 -49
- data/node_modules/extract-zip/node_modules/debug/src/browser.js +0 -185
- data/node_modules/extract-zip/node_modules/debug/src/debug.js +0 -202
- data/node_modules/extract-zip/node_modules/debug/src/index.js +0 -10
- data/node_modules/extract-zip/node_modules/debug/src/inspector-log.js +0 -15
- data/node_modules/extract-zip/node_modules/debug/src/node.js +0 -248
- data/node_modules/extract-zip/package.json +0 -35
- data/node_modules/extract-zip/readme.md +0 -49
- data/node_modules/fd-slicer/CHANGELOG.md +0 -49
- data/node_modules/fd-slicer/LICENSE +0 -21
- data/node_modules/fd-slicer/README.md +0 -189
- data/node_modules/fd-slicer/index.js +0 -277
- data/node_modules/fd-slicer/package.json +0 -36
- data/node_modules/fd-slicer/test/test.js +0 -350
- data/node_modules/fs.realpath/LICENSE +0 -43
- data/node_modules/fs.realpath/README.md +0 -33
- data/node_modules/fs.realpath/index.js +0 -66
- data/node_modules/fs.realpath/old.js +0 -303
- data/node_modules/fs.realpath/package.json +0 -26
- data/node_modules/glob/LICENSE +0 -15
- data/node_modules/glob/README.md +0 -368
- data/node_modules/glob/changelog.md +0 -67
- data/node_modules/glob/common.js +0 -240
- data/node_modules/glob/glob.js +0 -790
- data/node_modules/glob/package.json +0 -43
- data/node_modules/glob/sync.js +0 -486
- data/node_modules/https-proxy-agent/History.md +0 -124
- data/node_modules/https-proxy-agent/README.md +0 -137
- data/node_modules/https-proxy-agent/index.js +0 -229
- data/node_modules/https-proxy-agent/package.json +0 -35
- data/node_modules/https-proxy-agent/test/ssl-cert-snakeoil.key +0 -15
- data/node_modules/https-proxy-agent/test/ssl-cert-snakeoil.pem +0 -12
- data/node_modules/https-proxy-agent/test/test.js +0 -342
- data/node_modules/inflight/LICENSE +0 -15
- data/node_modules/inflight/README.md +0 -37
- data/node_modules/inflight/inflight.js +0 -54
- data/node_modules/inflight/package.json +0 -29
- data/node_modules/inherits/LICENSE +0 -16
- data/node_modules/inherits/README.md +0 -42
- data/node_modules/inherits/inherits.js +0 -7
- data/node_modules/inherits/inherits_browser.js +0 -23
- data/node_modules/inherits/package.json +0 -29
- data/node_modules/isarray/Makefile +0 -6
- data/node_modules/isarray/README.md +0 -60
- data/node_modules/isarray/component.json +0 -19
- data/node_modules/isarray/index.js +0 -5
- data/node_modules/isarray/package.json +0 -45
- data/node_modules/isarray/test.js +0 -20
- data/node_modules/mime/CHANGELOG.md +0 -225
- data/node_modules/mime/CONTRIBUTING.md +0 -5
- data/node_modules/mime/LICENSE +0 -21
- data/node_modules/mime/Mime.js +0 -89
- data/node_modules/mime/README.md +0 -188
- data/node_modules/mime/cli.js +0 -10
- data/node_modules/mime/index.js +0 -4
- data/node_modules/mime/lite.js +0 -4
- data/node_modules/mime/package.json +0 -43
- data/node_modules/mime/src/README_js.md +0 -179
- data/node_modules/mime/src/build.js +0 -71
- data/node_modules/mime/src/test.js +0 -257
- data/node_modules/mime/types/other.json +0 -1
- data/node_modules/mime/types/standard.json +0 -1
- data/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/minimatch/README.md +0 -209
- data/node_modules/minimatch/minimatch.js +0 -923
- data/node_modules/minimatch/package.json +0 -30
- data/node_modules/minimist/LICENSE +0 -18
- data/node_modules/minimist/example/parse.js +0 -2
- data/node_modules/minimist/index.js +0 -187
- data/node_modules/minimist/package.json +0 -40
- data/node_modules/minimist/readme.markdown +0 -73
- data/node_modules/minimist/test/dash.js +0 -24
- data/node_modules/minimist/test/default_bool.js +0 -20
- data/node_modules/minimist/test/dotted.js +0 -16
- data/node_modules/minimist/test/long.js +0 -31
- data/node_modules/minimist/test/parse.js +0 -318
- data/node_modules/minimist/test/parse_modified.js +0 -9
- data/node_modules/minimist/test/short.js +0 -67
- data/node_modules/minimist/test/whitespace.js +0 -8
- data/node_modules/mkdirp/LICENSE +0 -21
- data/node_modules/mkdirp/bin/cmd.js +0 -33
- data/node_modules/mkdirp/bin/usage.txt +0 -12
- data/node_modules/mkdirp/examples/pow.js +0 -6
- data/node_modules/mkdirp/index.js +0 -98
- data/node_modules/mkdirp/package.json +0 -27
- data/node_modules/mkdirp/readme.markdown +0 -100
- data/node_modules/mkdirp/test/chmod.js +0 -41
- data/node_modules/mkdirp/test/clobber.js +0 -38
- data/node_modules/mkdirp/test/mkdirp.js +0 -28
- data/node_modules/mkdirp/test/opts_fs.js +0 -29
- data/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
- data/node_modules/mkdirp/test/perm.js +0 -32
- data/node_modules/mkdirp/test/perm_sync.js +0 -36
- data/node_modules/mkdirp/test/race.js +0 -37
- data/node_modules/mkdirp/test/rel.js +0 -32
- data/node_modules/mkdirp/test/return.js +0 -25
- data/node_modules/mkdirp/test/return_sync.js +0 -24
- data/node_modules/mkdirp/test/root.js +0 -19
- data/node_modules/mkdirp/test/sync.js +0 -32
- data/node_modules/mkdirp/test/umask.js +0 -28
- data/node_modules/mkdirp/test/umask_sync.js +0 -32
- data/node_modules/ms/index.js +0 -152
- data/node_modules/ms/license.md +0 -21
- data/node_modules/ms/package.json +0 -37
- data/node_modules/ms/readme.md +0 -51
- data/node_modules/once/LICENSE +0 -15
- data/node_modules/once/README.md +0 -79
- data/node_modules/once/once.js +0 -42
- data/node_modules/once/package.json +0 -33
- data/node_modules/path-is-absolute/index.js +0 -20
- data/node_modules/path-is-absolute/license +0 -21
- data/node_modules/path-is-absolute/package.json +0 -43
- data/node_modules/path-is-absolute/readme.md +0 -59
- data/node_modules/pend/LICENSE +0 -23
- data/node_modules/pend/README.md +0 -41
- data/node_modules/pend/index.js +0 -55
- data/node_modules/pend/package.json +0 -18
- data/node_modules/pend/test.js +0 -137
- data/node_modules/process-nextick-args/index.js +0 -44
- data/node_modules/process-nextick-args/license.md +0 -19
- data/node_modules/process-nextick-args/package.json +0 -25
- data/node_modules/process-nextick-args/readme.md +0 -18
- data/node_modules/progress/CHANGELOG.md +0 -115
- data/node_modules/progress/LICENSE +0 -22
- data/node_modules/progress/Makefile +0 -8
- data/node_modules/progress/README.md +0 -146
- data/node_modules/progress/index.js +0 -1
- data/node_modules/progress/lib/node-progress.js +0 -231
- data/node_modules/progress/package.json +0 -25
- data/node_modules/proxy-from-env/README.md +0 -131
- data/node_modules/proxy-from-env/index.js +0 -103
- data/node_modules/proxy-from-env/package.json +0 -35
- data/node_modules/proxy-from-env/test.js +0 -393
- data/node_modules/puppeteer/CONTRIBUTING.md +0 -206
- data/node_modules/puppeteer/DeviceDescriptors.js +0 -704
- data/node_modules/puppeteer/LICENSE +0 -202
- data/node_modules/puppeteer/README.md +0 -306
- data/node_modules/puppeteer/index.js +0 -28
- data/node_modules/puppeteer/install.js +0 -122
- data/node_modules/puppeteer/lib/Browser.js +0 -186
- data/node_modules/puppeteer/lib/BrowserFetcher.js +0 -279
- data/node_modules/puppeteer/lib/Connection.js +0 -246
- data/node_modules/puppeteer/lib/Coverage.js +0 -301
- data/node_modules/puppeteer/lib/Dialog.js +0 -84
- data/node_modules/puppeteer/lib/ElementHandle.js +0 -328
- data/node_modules/puppeteer/lib/EmulationManager.js +0 -89
- data/node_modules/puppeteer/lib/ExecutionContext.js +0 -232
- data/node_modules/puppeteer/lib/FrameManager.js +0 -997
- data/node_modules/puppeteer/lib/Input.js +0 -309
- data/node_modules/puppeteer/lib/Launcher.js +0 -310
- data/node_modules/puppeteer/lib/Multimap.js +0 -95
- data/node_modules/puppeteer/lib/NavigatorWatcher.js +0 -137
- data/node_modules/puppeteer/lib/NetworkManager.js +0 -796
- data/node_modules/puppeteer/lib/Page.js +0 -1098
- data/node_modules/puppeteer/lib/Pipe.js +0 -69
- data/node_modules/puppeteer/lib/Puppeteer.js +0 -60
- data/node_modules/puppeteer/lib/Target.js +0 -88
- data/node_modules/puppeteer/lib/TaskQueue.js +0 -17
- data/node_modules/puppeteer/lib/Tracing.js +0 -99
- data/node_modules/puppeteer/lib/USKeyboardLayout.js +0 -281
- data/node_modules/puppeteer/lib/helper.js +0 -248
- data/node_modules/puppeteer/node6/lib/Browser.js +0 -394
- data/node_modules/puppeteer/node6/lib/BrowserFetcher.js +0 -357
- data/node_modules/puppeteer/node6/lib/Connection.js +0 -350
- data/node_modules/puppeteer/node6/lib/Coverage.js +0 -561
- data/node_modules/puppeteer/node6/lib/Dialog.js +0 -136
- data/node_modules/puppeteer/node6/lib/ElementHandle.js +0 -796
- data/node_modules/puppeteer/node6/lib/EmulationManager.js +0 -115
- data/node_modules/puppeteer/node6/lib/ExecutionContext.js +0 -414
- data/node_modules/puppeteer/node6/lib/FrameManager.js +0 -1621
- data/node_modules/puppeteer/node6/lib/Input.js +0 -569
- data/node_modules/puppeteer/node6/lib/Launcher.js +0 -362
- data/node_modules/puppeteer/node6/lib/Multimap.js +0 -95
- data/node_modules/puppeteer/node6/lib/NavigatorWatcher.js +0 -163
- data/node_modules/puppeteer/node6/lib/NetworkManager.js +0 -1108
- data/node_modules/puppeteer/node6/lib/Page.js +0 -2242
- data/node_modules/puppeteer/node6/lib/Pipe.js +0 -69
- data/node_modules/puppeteer/node6/lib/Puppeteer.js +0 -60
- data/node_modules/puppeteer/node6/lib/Target.js +0 -114
- data/node_modules/puppeteer/node6/lib/TaskQueue.js +0 -17
- data/node_modules/puppeteer/node6/lib/Tracing.js +0 -177
- data/node_modules/puppeteer/node6/lib/USKeyboardLayout.js +0 -281
- data/node_modules/puppeteer/node6/lib/helper.js +0 -274
- data/node_modules/puppeteer/package.json +0 -61
- data/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- data/node_modules/readable-stream/GOVERNANCE.md +0 -136
- data/node_modules/readable-stream/LICENSE +0 -47
- data/node_modules/readable-stream/README.md +0 -58
- data/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- data/node_modules/readable-stream/duplex-browser.js +0 -1
- data/node_modules/readable-stream/duplex.js +0 -1
- data/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- data/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- data/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- data/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- data/node_modules/readable-stream/lib/_stream_writable.js +0 -687
- data/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- data/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
- data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- data/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- data/node_modules/readable-stream/package.json +0 -52
- data/node_modules/readable-stream/passthrough.js +0 -1
- data/node_modules/readable-stream/readable-browser.js +0 -7
- data/node_modules/readable-stream/readable.js +0 -19
- data/node_modules/readable-stream/transform.js +0 -1
- data/node_modules/readable-stream/writable-browser.js +0 -1
- data/node_modules/readable-stream/writable.js +0 -8
- data/node_modules/rimraf/LICENSE +0 -15
- data/node_modules/rimraf/README.md +0 -101
- data/node_modules/rimraf/bin.js +0 -50
- data/node_modules/rimraf/package.json +0 -26
- data/node_modules/rimraf/rimraf.js +0 -364
- data/node_modules/safe-buffer/LICENSE +0 -21
- data/node_modules/safe-buffer/README.md +0 -584
- data/node_modules/safe-buffer/index.d.ts +0 -187
- data/node_modules/safe-buffer/index.js +0 -62
- data/node_modules/safe-buffer/package.json +0 -37
- data/node_modules/string_decoder/LICENSE +0 -48
- data/node_modules/string_decoder/README.md +0 -47
- data/node_modules/string_decoder/lib/string_decoder.js +0 -296
- data/node_modules/string_decoder/package.json +0 -31
- data/node_modules/typedarray/LICENSE +0 -35
- data/node_modules/typedarray/example/tarray.js +0 -4
- data/node_modules/typedarray/index.js +0 -630
- data/node_modules/typedarray/package.json +0 -55
- data/node_modules/typedarray/readme.markdown +0 -61
- data/node_modules/typedarray/test/server/undef_globals.js +0 -19
- data/node_modules/typedarray/test/tarray.js +0 -10
- data/node_modules/ultron/LICENSE +0 -22
- data/node_modules/ultron/README.md +0 -113
- data/node_modules/ultron/index.js +0 -136
- data/node_modules/ultron/package.json +0 -41
- data/node_modules/util-deprecate/History.md +0 -16
- data/node_modules/util-deprecate/LICENSE +0 -24
- data/node_modules/util-deprecate/README.md +0 -53
- data/node_modules/util-deprecate/browser.js +0 -67
- data/node_modules/util-deprecate/node.js +0 -6
- data/node_modules/util-deprecate/package.json +0 -27
- data/node_modules/wrappy/LICENSE +0 -15
- data/node_modules/wrappy/README.md +0 -36
- data/node_modules/wrappy/package.json +0 -29
- data/node_modules/wrappy/wrappy.js +0 -33
- data/node_modules/ws/LICENSE +0 -21
- data/node_modules/ws/README.md +0 -341
- data/node_modules/ws/index.js +0 -15
- data/node_modules/ws/lib/BufferUtil.js +0 -71
- data/node_modules/ws/lib/Constants.js +0 -10
- data/node_modules/ws/lib/ErrorCodes.js +0 -28
- data/node_modules/ws/lib/EventTarget.js +0 -151
- data/node_modules/ws/lib/Extensions.js +0 -203
- data/node_modules/ws/lib/PerMessageDeflate.js +0 -507
- data/node_modules/ws/lib/Receiver.js +0 -553
- data/node_modules/ws/lib/Sender.js +0 -412
- data/node_modules/ws/lib/Validation.js +0 -17
- data/node_modules/ws/lib/WebSocket.js +0 -717
- data/node_modules/ws/lib/WebSocketServer.js +0 -326
- data/node_modules/ws/package.json +0 -46
- data/node_modules/yauzl/LICENSE +0 -21
- data/node_modules/yauzl/README.md +0 -467
- data/node_modules/yauzl/index.js +0 -626
- data/node_modules/yauzl/package.json +0 -36
- data/package.json +0 -5
- data/yarn.lock +0 -240
|
@@ -1,362 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
2.6.9 / 2017-09-22
|
|
3
|
-
==================
|
|
4
|
-
|
|
5
|
-
* remove ReDoS regexp in %o formatter (#504)
|
|
6
|
-
|
|
7
|
-
2.6.8 / 2017-05-18
|
|
8
|
-
==================
|
|
9
|
-
|
|
10
|
-
* Fix: Check for undefined on browser globals (#462, @marbemac)
|
|
11
|
-
|
|
12
|
-
2.6.7 / 2017-05-16
|
|
13
|
-
==================
|
|
14
|
-
|
|
15
|
-
* Fix: Update ms to 2.0.0 to fix regular expression denial of service vulnerability (#458, @hubdotcom)
|
|
16
|
-
* Fix: Inline extend function in node implementation (#452, @dougwilson)
|
|
17
|
-
* Docs: Fix typo (#455, @msasad)
|
|
18
|
-
|
|
19
|
-
2.6.5 / 2017-04-27
|
|
20
|
-
==================
|
|
21
|
-
|
|
22
|
-
* Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek)
|
|
23
|
-
* Misc: clean up browser reference checks (#447, @thebigredgeek)
|
|
24
|
-
* Misc: add npm-debug.log to .gitignore (@thebigredgeek)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
2.6.4 / 2017-04-20
|
|
28
|
-
==================
|
|
29
|
-
|
|
30
|
-
* Fix: bug that would occure if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
|
|
31
|
-
* Chore: ignore bower.json in npm installations. (#437, @joaovieira)
|
|
32
|
-
* Misc: update "ms" to v0.7.3 (@tootallnate)
|
|
33
|
-
|
|
34
|
-
2.6.3 / 2017-03-13
|
|
35
|
-
==================
|
|
36
|
-
|
|
37
|
-
* Fix: Electron reference to `process.env.DEBUG` (#431, @paulcbetts)
|
|
38
|
-
* Docs: Changelog fix (@thebigredgeek)
|
|
39
|
-
|
|
40
|
-
2.6.2 / 2017-03-10
|
|
41
|
-
==================
|
|
42
|
-
|
|
43
|
-
* Fix: DEBUG_MAX_ARRAY_LENGTH (#420, @slavaGanzin)
|
|
44
|
-
* Docs: Add backers and sponsors from Open Collective (#422, @piamancini)
|
|
45
|
-
* Docs: Add Slackin invite badge (@tootallnate)
|
|
46
|
-
|
|
47
|
-
2.6.1 / 2017-02-10
|
|
48
|
-
==================
|
|
49
|
-
|
|
50
|
-
* Fix: Module's `export default` syntax fix for IE8 `Expected identifier` error
|
|
51
|
-
* Fix: Whitelist DEBUG_FD for values 1 and 2 only (#415, @pi0)
|
|
52
|
-
* Fix: IE8 "Expected identifier" error (#414, @vgoma)
|
|
53
|
-
* Fix: Namespaces would not disable once enabled (#409, @musikov)
|
|
54
|
-
|
|
55
|
-
2.6.0 / 2016-12-28
|
|
56
|
-
==================
|
|
57
|
-
|
|
58
|
-
* Fix: added better null pointer checks for browser useColors (@thebigredgeek)
|
|
59
|
-
* Improvement: removed explicit `window.debug` export (#404, @tootallnate)
|
|
60
|
-
* Improvement: deprecated `DEBUG_FD` environment variable (#405, @tootallnate)
|
|
61
|
-
|
|
62
|
-
2.5.2 / 2016-12-25
|
|
63
|
-
==================
|
|
64
|
-
|
|
65
|
-
* Fix: reference error on window within webworkers (#393, @KlausTrainer)
|
|
66
|
-
* Docs: fixed README typo (#391, @lurch)
|
|
67
|
-
* Docs: added notice about v3 api discussion (@thebigredgeek)
|
|
68
|
-
|
|
69
|
-
2.5.1 / 2016-12-20
|
|
70
|
-
==================
|
|
71
|
-
|
|
72
|
-
* Fix: babel-core compatibility
|
|
73
|
-
|
|
74
|
-
2.5.0 / 2016-12-20
|
|
75
|
-
==================
|
|
76
|
-
|
|
77
|
-
* Fix: wrong reference in bower file (@thebigredgeek)
|
|
78
|
-
* Fix: webworker compatibility (@thebigredgeek)
|
|
79
|
-
* Fix: output formatting issue (#388, @kribblo)
|
|
80
|
-
* Fix: babel-loader compatibility (#383, @escwald)
|
|
81
|
-
* Misc: removed built asset from repo and publications (@thebigredgeek)
|
|
82
|
-
* Misc: moved source files to /src (#378, @yamikuronue)
|
|
83
|
-
* Test: added karma integration and replaced babel with browserify for browser tests (#378, @yamikuronue)
|
|
84
|
-
* Test: coveralls integration (#378, @yamikuronue)
|
|
85
|
-
* Docs: simplified language in the opening paragraph (#373, @yamikuronue)
|
|
86
|
-
|
|
87
|
-
2.4.5 / 2016-12-17
|
|
88
|
-
==================
|
|
89
|
-
|
|
90
|
-
* Fix: `navigator` undefined in Rhino (#376, @jochenberger)
|
|
91
|
-
* Fix: custom log function (#379, @hsiliev)
|
|
92
|
-
* Improvement: bit of cleanup + linting fixes (@thebigredgeek)
|
|
93
|
-
* Improvement: rm non-maintainted `dist/` dir (#375, @freewil)
|
|
94
|
-
* Docs: simplified language in the opening paragraph. (#373, @yamikuronue)
|
|
95
|
-
|
|
96
|
-
2.4.4 / 2016-12-14
|
|
97
|
-
==================
|
|
98
|
-
|
|
99
|
-
* Fix: work around debug being loaded in preload scripts for electron (#368, @paulcbetts)
|
|
100
|
-
|
|
101
|
-
2.4.3 / 2016-12-14
|
|
102
|
-
==================
|
|
103
|
-
|
|
104
|
-
* Fix: navigation.userAgent error for react native (#364, @escwald)
|
|
105
|
-
|
|
106
|
-
2.4.2 / 2016-12-14
|
|
107
|
-
==================
|
|
108
|
-
|
|
109
|
-
* Fix: browser colors (#367, @tootallnate)
|
|
110
|
-
* Misc: travis ci integration (@thebigredgeek)
|
|
111
|
-
* Misc: added linting and testing boilerplate with sanity check (@thebigredgeek)
|
|
112
|
-
|
|
113
|
-
2.4.1 / 2016-12-13
|
|
114
|
-
==================
|
|
115
|
-
|
|
116
|
-
* Fix: typo that broke the package (#356)
|
|
117
|
-
|
|
118
|
-
2.4.0 / 2016-12-13
|
|
119
|
-
==================
|
|
120
|
-
|
|
121
|
-
* Fix: bower.json references unbuilt src entry point (#342, @justmatt)
|
|
122
|
-
* Fix: revert "handle regex special characters" (@tootallnate)
|
|
123
|
-
* Feature: configurable util.inspect()`options for NodeJS (#327, @tootallnate)
|
|
124
|
-
* Feature: %O`(big O) pretty-prints objects (#322, @tootallnate)
|
|
125
|
-
* Improvement: allow colors in workers (#335, @botverse)
|
|
126
|
-
* Improvement: use same color for same namespace. (#338, @lchenay)
|
|
127
|
-
|
|
128
|
-
2.3.3 / 2016-11-09
|
|
129
|
-
==================
|
|
130
|
-
|
|
131
|
-
* Fix: Catch `JSON.stringify()` errors (#195, Jovan Alleyne)
|
|
132
|
-
* Fix: Returning `localStorage` saved values (#331, Levi Thomason)
|
|
133
|
-
* Improvement: Don't create an empty object when no `process` (Nathan Rajlich)
|
|
134
|
-
|
|
135
|
-
2.3.2 / 2016-11-09
|
|
136
|
-
==================
|
|
137
|
-
|
|
138
|
-
* Fix: be super-safe in index.js as well (@TooTallNate)
|
|
139
|
-
* Fix: should check whether process exists (Tom Newby)
|
|
140
|
-
|
|
141
|
-
2.3.1 / 2016-11-09
|
|
142
|
-
==================
|
|
143
|
-
|
|
144
|
-
* Fix: Added electron compatibility (#324, @paulcbetts)
|
|
145
|
-
* Improvement: Added performance optimizations (@tootallnate)
|
|
146
|
-
* Readme: Corrected PowerShell environment variable example (#252, @gimre)
|
|
147
|
-
* Misc: Removed yarn lock file from source control (#321, @fengmk2)
|
|
148
|
-
|
|
149
|
-
2.3.0 / 2016-11-07
|
|
150
|
-
==================
|
|
151
|
-
|
|
152
|
-
* Fix: Consistent placement of ms diff at end of output (#215, @gorangajic)
|
|
153
|
-
* Fix: Escaping of regex special characters in namespace strings (#250, @zacronos)
|
|
154
|
-
* Fix: Fixed bug causing crash on react-native (#282, @vkarpov15)
|
|
155
|
-
* Feature: Enabled ES6+ compatible import via default export (#212 @bucaran)
|
|
156
|
-
* Feature: Added %O formatter to reflect Chrome's console.log capability (#279, @oncletom)
|
|
157
|
-
* Package: Update "ms" to 0.7.2 (#315, @DevSide)
|
|
158
|
-
* Package: removed superfluous version property from bower.json (#207 @kkirsche)
|
|
159
|
-
* Readme: fix USE_COLORS to DEBUG_COLORS
|
|
160
|
-
* Readme: Doc fixes for format string sugar (#269, @mlucool)
|
|
161
|
-
* Readme: Updated docs for DEBUG_FD and DEBUG_COLORS environment variables (#232, @mattlyons0)
|
|
162
|
-
* Readme: doc fixes for PowerShell (#271 #243, @exoticknight @unreadable)
|
|
163
|
-
* Readme: better docs for browser support (#224, @matthewmueller)
|
|
164
|
-
* Tooling: Added yarn integration for development (#317, @thebigredgeek)
|
|
165
|
-
* Misc: Renamed History.md to CHANGELOG.md (@thebigredgeek)
|
|
166
|
-
* Misc: Added license file (#226 #274, @CantemoInternal @sdaitzman)
|
|
167
|
-
* Misc: Updated contributors (@thebigredgeek)
|
|
168
|
-
|
|
169
|
-
2.2.0 / 2015-05-09
|
|
170
|
-
==================
|
|
171
|
-
|
|
172
|
-
* package: update "ms" to v0.7.1 (#202, @dougwilson)
|
|
173
|
-
* README: add logging to file example (#193, @DanielOchoa)
|
|
174
|
-
* README: fixed a typo (#191, @amir-s)
|
|
175
|
-
* browser: expose `storage` (#190, @stephenmathieson)
|
|
176
|
-
* Makefile: add a `distclean` target (#189, @stephenmathieson)
|
|
177
|
-
|
|
178
|
-
2.1.3 / 2015-03-13
|
|
179
|
-
==================
|
|
180
|
-
|
|
181
|
-
* Updated stdout/stderr example (#186)
|
|
182
|
-
* Updated example/stdout.js to match debug current behaviour
|
|
183
|
-
* Renamed example/stderr.js to stdout.js
|
|
184
|
-
* Update Readme.md (#184)
|
|
185
|
-
* replace high intensity foreground color for bold (#182, #183)
|
|
186
|
-
|
|
187
|
-
2.1.2 / 2015-03-01
|
|
188
|
-
==================
|
|
189
|
-
|
|
190
|
-
* dist: recompile
|
|
191
|
-
* update "ms" to v0.7.0
|
|
192
|
-
* package: update "browserify" to v9.0.3
|
|
193
|
-
* component: fix "ms.js" repo location
|
|
194
|
-
* changed bower package name
|
|
195
|
-
* updated documentation about using debug in a browser
|
|
196
|
-
* fix: security error on safari (#167, #168, @yields)
|
|
197
|
-
|
|
198
|
-
2.1.1 / 2014-12-29
|
|
199
|
-
==================
|
|
200
|
-
|
|
201
|
-
* browser: use `typeof` to check for `console` existence
|
|
202
|
-
* browser: check for `console.log` truthiness (fix IE 8/9)
|
|
203
|
-
* browser: add support for Chrome apps
|
|
204
|
-
* Readme: added Windows usage remarks
|
|
205
|
-
* Add `bower.json` to properly support bower install
|
|
206
|
-
|
|
207
|
-
2.1.0 / 2014-10-15
|
|
208
|
-
==================
|
|
209
|
-
|
|
210
|
-
* node: implement `DEBUG_FD` env variable support
|
|
211
|
-
* package: update "browserify" to v6.1.0
|
|
212
|
-
* package: add "license" field to package.json (#135, @panuhorsmalahti)
|
|
213
|
-
|
|
214
|
-
2.0.0 / 2014-09-01
|
|
215
|
-
==================
|
|
216
|
-
|
|
217
|
-
* package: update "browserify" to v5.11.0
|
|
218
|
-
* node: use stderr rather than stdout for logging (#29, @stephenmathieson)
|
|
219
|
-
|
|
220
|
-
1.0.4 / 2014-07-15
|
|
221
|
-
==================
|
|
222
|
-
|
|
223
|
-
* dist: recompile
|
|
224
|
-
* example: remove `console.info()` log usage
|
|
225
|
-
* example: add "Content-Type" UTF-8 header to browser example
|
|
226
|
-
* browser: place %c marker after the space character
|
|
227
|
-
* browser: reset the "content" color via `color: inherit`
|
|
228
|
-
* browser: add colors support for Firefox >= v31
|
|
229
|
-
* debug: prefer an instance `log()` function over the global one (#119)
|
|
230
|
-
* Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
|
|
231
|
-
|
|
232
|
-
1.0.3 / 2014-07-09
|
|
233
|
-
==================
|
|
234
|
-
|
|
235
|
-
* Add support for multiple wildcards in namespaces (#122, @seegno)
|
|
236
|
-
* browser: fix lint
|
|
237
|
-
|
|
238
|
-
1.0.2 / 2014-06-10
|
|
239
|
-
==================
|
|
240
|
-
|
|
241
|
-
* browser: update color palette (#113, @gscottolson)
|
|
242
|
-
* common: make console logging function configurable (#108, @timoxley)
|
|
243
|
-
* node: fix %o colors on old node <= 0.8.x
|
|
244
|
-
* Makefile: find node path using shell/which (#109, @timoxley)
|
|
245
|
-
|
|
246
|
-
1.0.1 / 2014-06-06
|
|
247
|
-
==================
|
|
248
|
-
|
|
249
|
-
* browser: use `removeItem()` to clear localStorage
|
|
250
|
-
* browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
|
|
251
|
-
* package: add "contributors" section
|
|
252
|
-
* node: fix comment typo
|
|
253
|
-
* README: list authors
|
|
254
|
-
|
|
255
|
-
1.0.0 / 2014-06-04
|
|
256
|
-
==================
|
|
257
|
-
|
|
258
|
-
* make ms diff be global, not be scope
|
|
259
|
-
* debug: ignore empty strings in enable()
|
|
260
|
-
* node: make DEBUG_COLORS able to disable coloring
|
|
261
|
-
* *: export the `colors` array
|
|
262
|
-
* npmignore: don't publish the `dist` dir
|
|
263
|
-
* Makefile: refactor to use browserify
|
|
264
|
-
* package: add "browserify" as a dev dependency
|
|
265
|
-
* Readme: add Web Inspector Colors section
|
|
266
|
-
* node: reset terminal color for the debug content
|
|
267
|
-
* node: map "%o" to `util.inspect()`
|
|
268
|
-
* browser: map "%j" to `JSON.stringify()`
|
|
269
|
-
* debug: add custom "formatters"
|
|
270
|
-
* debug: use "ms" module for humanizing the diff
|
|
271
|
-
* Readme: add "bash" syntax highlighting
|
|
272
|
-
* browser: add Firebug color support
|
|
273
|
-
* browser: add colors for WebKit browsers
|
|
274
|
-
* node: apply log to `console`
|
|
275
|
-
* rewrite: abstract common logic for Node & browsers
|
|
276
|
-
* add .jshintrc file
|
|
277
|
-
|
|
278
|
-
0.8.1 / 2014-04-14
|
|
279
|
-
==================
|
|
280
|
-
|
|
281
|
-
* package: re-add the "component" section
|
|
282
|
-
|
|
283
|
-
0.8.0 / 2014-03-30
|
|
284
|
-
==================
|
|
285
|
-
|
|
286
|
-
* add `enable()` method for nodejs. Closes #27
|
|
287
|
-
* change from stderr to stdout
|
|
288
|
-
* remove unnecessary index.js file
|
|
289
|
-
|
|
290
|
-
0.7.4 / 2013-11-13
|
|
291
|
-
==================
|
|
292
|
-
|
|
293
|
-
* remove "browserify" key from package.json (fixes something in browserify)
|
|
294
|
-
|
|
295
|
-
0.7.3 / 2013-10-30
|
|
296
|
-
==================
|
|
297
|
-
|
|
298
|
-
* fix: catch localStorage security error when cookies are blocked (Chrome)
|
|
299
|
-
* add debug(err) support. Closes #46
|
|
300
|
-
* add .browser prop to package.json. Closes #42
|
|
301
|
-
|
|
302
|
-
0.7.2 / 2013-02-06
|
|
303
|
-
==================
|
|
304
|
-
|
|
305
|
-
* fix package.json
|
|
306
|
-
* fix: Mobile Safari (private mode) is broken with debug
|
|
307
|
-
* fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
|
|
308
|
-
|
|
309
|
-
0.7.1 / 2013-02-05
|
|
310
|
-
==================
|
|
311
|
-
|
|
312
|
-
* add repository URL to package.json
|
|
313
|
-
* add DEBUG_COLORED to force colored output
|
|
314
|
-
* add browserify support
|
|
315
|
-
* fix component. Closes #24
|
|
316
|
-
|
|
317
|
-
0.7.0 / 2012-05-04
|
|
318
|
-
==================
|
|
319
|
-
|
|
320
|
-
* Added .component to package.json
|
|
321
|
-
* Added debug.component.js build
|
|
322
|
-
|
|
323
|
-
0.6.0 / 2012-03-16
|
|
324
|
-
==================
|
|
325
|
-
|
|
326
|
-
* Added support for "-" prefix in DEBUG [Vinay Pulim]
|
|
327
|
-
* Added `.enabled` flag to the node version [TooTallNate]
|
|
328
|
-
|
|
329
|
-
0.5.0 / 2012-02-02
|
|
330
|
-
==================
|
|
331
|
-
|
|
332
|
-
* Added: humanize diffs. Closes #8
|
|
333
|
-
* Added `debug.disable()` to the CS variant
|
|
334
|
-
* Removed padding. Closes #10
|
|
335
|
-
* Fixed: persist client-side variant again. Closes #9
|
|
336
|
-
|
|
337
|
-
0.4.0 / 2012-02-01
|
|
338
|
-
==================
|
|
339
|
-
|
|
340
|
-
* Added browser variant support for older browsers [TooTallNate]
|
|
341
|
-
* Added `debug.enable('project:*')` to browser variant [TooTallNate]
|
|
342
|
-
* Added padding to diff (moved it to the right)
|
|
343
|
-
|
|
344
|
-
0.3.0 / 2012-01-26
|
|
345
|
-
==================
|
|
346
|
-
|
|
347
|
-
* Added millisecond diff when isatty, otherwise UTC string
|
|
348
|
-
|
|
349
|
-
0.2.0 / 2012-01-22
|
|
350
|
-
==================
|
|
351
|
-
|
|
352
|
-
* Added wildcard support
|
|
353
|
-
|
|
354
|
-
0.1.0 / 2011-12-02
|
|
355
|
-
==================
|
|
356
|
-
|
|
357
|
-
* Added: remove colors unless stderr isatty [TooTallNate]
|
|
358
|
-
|
|
359
|
-
0.0.1 / 2010-01-03
|
|
360
|
-
==================
|
|
361
|
-
|
|
362
|
-
* Initial release
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
6
|
-
and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
7
|
-
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
8
|
-
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
-
subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
-
portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
-
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
17
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
18
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
|
|
2
|
-
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
|
3
|
-
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
|
|
4
|
-
|
|
5
|
-
# BIN directory
|
|
6
|
-
BIN := $(THIS_DIR)/node_modules/.bin
|
|
7
|
-
|
|
8
|
-
# Path
|
|
9
|
-
PATH := node_modules/.bin:$(PATH)
|
|
10
|
-
SHELL := /bin/bash
|
|
11
|
-
|
|
12
|
-
# applications
|
|
13
|
-
NODE ?= $(shell which node)
|
|
14
|
-
YARN ?= $(shell which yarn)
|
|
15
|
-
PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
|
|
16
|
-
BROWSERIFY ?= $(NODE) $(BIN)/browserify
|
|
17
|
-
|
|
18
|
-
.FORCE:
|
|
19
|
-
|
|
20
|
-
install: node_modules
|
|
21
|
-
|
|
22
|
-
node_modules: package.json
|
|
23
|
-
@NODE_ENV= $(PKG) install
|
|
24
|
-
@touch node_modules
|
|
25
|
-
|
|
26
|
-
lint: .FORCE
|
|
27
|
-
eslint browser.js debug.js index.js node.js
|
|
28
|
-
|
|
29
|
-
test-node: .FORCE
|
|
30
|
-
istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
|
|
31
|
-
|
|
32
|
-
test-browser: .FORCE
|
|
33
|
-
mkdir -p dist
|
|
34
|
-
|
|
35
|
-
@$(BROWSERIFY) \
|
|
36
|
-
--standalone debug \
|
|
37
|
-
. > dist/debug.js
|
|
38
|
-
|
|
39
|
-
karma start --single-run
|
|
40
|
-
rimraf dist
|
|
41
|
-
|
|
42
|
-
test: .FORCE
|
|
43
|
-
concurrently \
|
|
44
|
-
"make test-node" \
|
|
45
|
-
"make test-browser"
|
|
46
|
-
|
|
47
|
-
coveralls:
|
|
48
|
-
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
|
49
|
-
|
|
50
|
-
.PHONY: all install clean distclean
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
# debug
|
|
2
|
-
[](https://travis-ci.org/visionmedia/debug) [](https://coveralls.io/github/visionmedia/debug?branch=master) [](https://visionmedia-community-slackin.now.sh/) [](#backers)
|
|
3
|
-
[](#sponsors)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
A tiny node.js debugging utility modelled after node core's debugging technique.
|
|
8
|
-
|
|
9
|
-
**Discussion around the V3 API is under way [here](https://github.com/visionmedia/debug/issues/370)**
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
$ npm install debug
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.
|
|
20
|
-
|
|
21
|
-
Example _app.js_:
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
var debug = require('debug')('http')
|
|
25
|
-
, http = require('http')
|
|
26
|
-
, name = 'My App';
|
|
27
|
-
|
|
28
|
-
// fake app
|
|
29
|
-
|
|
30
|
-
debug('booting %s', name);
|
|
31
|
-
|
|
32
|
-
http.createServer(function(req, res){
|
|
33
|
-
debug(req.method + ' ' + req.url);
|
|
34
|
-
res.end('hello\n');
|
|
35
|
-
}).listen(3000, function(){
|
|
36
|
-
debug('listening');
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// fake worker of some kind
|
|
40
|
-
|
|
41
|
-
require('./worker');
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Example _worker.js_:
|
|
45
|
-
|
|
46
|
-
```js
|
|
47
|
-
var debug = require('debug')('worker');
|
|
48
|
-
|
|
49
|
-
setInterval(function(){
|
|
50
|
-
debug('doing some work');
|
|
51
|
-
}, 1000);
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:
|
|
55
|
-
|
|
56
|
-

|
|
57
|
-
|
|
58
|
-

|
|
59
|
-
|
|
60
|
-
#### Windows note
|
|
61
|
-
|
|
62
|
-
On Windows the environment variable is set using the `set` command.
|
|
63
|
-
|
|
64
|
-
```cmd
|
|
65
|
-
set DEBUG=*,-not_this
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Note that PowerShell uses different syntax to set environment variables.
|
|
69
|
-
|
|
70
|
-
```cmd
|
|
71
|
-
$env:DEBUG = "*,-not_this"
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Then, run the program to be debugged as usual.
|
|
75
|
-
|
|
76
|
-
## Millisecond diff
|
|
77
|
-
|
|
78
|
-
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.
|
|
79
|
-
|
|
80
|
-

|
|
81
|
-
|
|
82
|
-
When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:
|
|
83
|
-
|
|
84
|
-

|
|
85
|
-
|
|
86
|
-
## Conventions
|
|
87
|
-
|
|
88
|
-
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".
|
|
89
|
-
|
|
90
|
-
## Wildcards
|
|
91
|
-
|
|
92
|
-
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=*`.
|
|
93
|
-
|
|
94
|
-
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:".
|
|
95
|
-
|
|
96
|
-
## Environment Variables
|
|
97
|
-
|
|
98
|
-
When running through Node.js, you can set a few environment variables that will
|
|
99
|
-
change the behavior of the debug logging:
|
|
100
|
-
|
|
101
|
-
| Name | Purpose |
|
|
102
|
-
|-----------|-------------------------------------------------|
|
|
103
|
-
| `DEBUG` | Enables/disables specific debugging namespaces. |
|
|
104
|
-
| `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
|
|
105
|
-
| `DEBUG_DEPTH` | Object inspection depth. |
|
|
106
|
-
| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
__Note:__ The environment variables beginning with `DEBUG_` end up being
|
|
110
|
-
converted into an Options object that gets used with `%o`/`%O` formatters.
|
|
111
|
-
See the Node.js documentation for
|
|
112
|
-
[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
|
|
113
|
-
for the complete list.
|
|
114
|
-
|
|
115
|
-
## Formatters
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. Below are the officially supported formatters:
|
|
119
|
-
|
|
120
|
-
| Formatter | Representation |
|
|
121
|
-
|-----------|----------------|
|
|
122
|
-
| `%O` | Pretty-print an Object on multiple lines. |
|
|
123
|
-
| `%o` | Pretty-print an Object all on a single line. |
|
|
124
|
-
| `%s` | String. |
|
|
125
|
-
| `%d` | Number (both integer and float). |
|
|
126
|
-
| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. |
|
|
127
|
-
| `%%` | Single percent sign ('%'). This does not consume an argument. |
|
|
128
|
-
|
|
129
|
-
### Custom formatters
|
|
130
|
-
|
|
131
|
-
You can add custom formatters by extending the `debug.formatters` object. For example, if you wanted to add support for rendering a Buffer as hex with `%h`, you could do something like:
|
|
132
|
-
|
|
133
|
-
```js
|
|
134
|
-
const createDebug = require('debug')
|
|
135
|
-
createDebug.formatters.h = (v) => {
|
|
136
|
-
return v.toString('hex')
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// …elsewhere
|
|
140
|
-
const debug = createDebug('foo')
|
|
141
|
-
debug('this is hex: %h', new Buffer('hello world'))
|
|
142
|
-
// foo this is hex: 68656c6c6f20776f726c6421 +0ms
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Browser support
|
|
146
|
-
You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
|
|
147
|
-
or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
|
|
148
|
-
if you don't want to build it yourself.
|
|
149
|
-
|
|
150
|
-
Debug's enable state is currently persisted by `localStorage`.
|
|
151
|
-
Consider the situation shown below where you have `worker:a` and `worker:b`,
|
|
152
|
-
and wish to debug both. You can enable this using `localStorage.debug`:
|
|
153
|
-
|
|
154
|
-
```js
|
|
155
|
-
localStorage.debug = 'worker:*'
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
And then refresh the page.
|
|
159
|
-
|
|
160
|
-
```js
|
|
161
|
-
a = debug('worker:a');
|
|
162
|
-
b = debug('worker:b');
|
|
163
|
-
|
|
164
|
-
setInterval(function(){
|
|
165
|
-
a('doing some work');
|
|
166
|
-
}, 1000);
|
|
167
|
-
|
|
168
|
-
setInterval(function(){
|
|
169
|
-
b('doing some work');
|
|
170
|
-
}, 1200);
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
#### Web Inspector Colors
|
|
174
|
-
|
|
175
|
-
Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
|
|
176
|
-
option. These are WebKit web inspectors, Firefox ([since version
|
|
177
|
-
31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
|
|
178
|
-
and the Firebug plugin for Firefox (any version).
|
|
179
|
-
|
|
180
|
-
Colored output looks something like:
|
|
181
|
-
|
|
182
|
-

|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
## Output streams
|
|
186
|
-
|
|
187
|
-
By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
|
|
188
|
-
|
|
189
|
-
Example _stdout.js_:
|
|
190
|
-
|
|
191
|
-
```js
|
|
192
|
-
var debug = require('debug');
|
|
193
|
-
var error = debug('app:error');
|
|
194
|
-
|
|
195
|
-
// by default stderr is used
|
|
196
|
-
error('goes to stderr!');
|
|
197
|
-
|
|
198
|
-
var log = debug('app:log');
|
|
199
|
-
// set this namespace to log via console.log
|
|
200
|
-
log.log = console.log.bind(console); // don't forget to bind to console!
|
|
201
|
-
log('goes to stdout');
|
|
202
|
-
error('still goes to stderr!');
|
|
203
|
-
|
|
204
|
-
// set all output to go via console.info
|
|
205
|
-
// overrides all per-namespace log settings
|
|
206
|
-
debug.log = console.info.bind(console);
|
|
207
|
-
error('now goes to stdout via console.info');
|
|
208
|
-
log('still goes to stdout, but via console.info now');
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## Authors
|
|
213
|
-
|
|
214
|
-
- TJ Holowaychuk
|
|
215
|
-
- Nathan Rajlich
|
|
216
|
-
- Andrew Rhyne
|
|
217
|
-
|
|
218
|
-
## Backers
|
|
219
|
-
|
|
220
|
-
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)]
|
|
221
|
-
|
|
222
|
-
<a href="https://opencollective.com/debug/backer/0/website" target="_blank"><img src="https://opencollective.com/debug/backer/0/avatar.svg"></a>
|
|
223
|
-
<a href="https://opencollective.com/debug/backer/1/website" target="_blank"><img src="https://opencollective.com/debug/backer/1/avatar.svg"></a>
|
|
224
|
-
<a href="https://opencollective.com/debug/backer/2/website" target="_blank"><img src="https://opencollective.com/debug/backer/2/avatar.svg"></a>
|
|
225
|
-
<a href="https://opencollective.com/debug/backer/3/website" target="_blank"><img src="https://opencollective.com/debug/backer/3/avatar.svg"></a>
|
|
226
|
-
<a href="https://opencollective.com/debug/backer/4/website" target="_blank"><img src="https://opencollective.com/debug/backer/4/avatar.svg"></a>
|
|
227
|
-
<a href="https://opencollective.com/debug/backer/5/website" target="_blank"><img src="https://opencollective.com/debug/backer/5/avatar.svg"></a>
|
|
228
|
-
<a href="https://opencollective.com/debug/backer/6/website" target="_blank"><img src="https://opencollective.com/debug/backer/6/avatar.svg"></a>
|
|
229
|
-
<a href="https://opencollective.com/debug/backer/7/website" target="_blank"><img src="https://opencollective.com/debug/backer/7/avatar.svg"></a>
|
|
230
|
-
<a href="https://opencollective.com/debug/backer/8/website" target="_blank"><img src="https://opencollective.com/debug/backer/8/avatar.svg"></a>
|
|
231
|
-
<a href="https://opencollective.com/debug/backer/9/website" target="_blank"><img src="https://opencollective.com/debug/backer/9/avatar.svg"></a>
|
|
232
|
-
<a href="https://opencollective.com/debug/backer/10/website" target="_blank"><img src="https://opencollective.com/debug/backer/10/avatar.svg"></a>
|
|
233
|
-
<a href="https://opencollective.com/debug/backer/11/website" target="_blank"><img src="https://opencollective.com/debug/backer/11/avatar.svg"></a>
|
|
234
|
-
<a href="https://opencollective.com/debug/backer/12/website" target="_blank"><img src="https://opencollective.com/debug/backer/12/avatar.svg"></a>
|
|
235
|
-
<a href="https://opencollective.com/debug/backer/13/website" target="_blank"><img src="https://opencollective.com/debug/backer/13/avatar.svg"></a>
|
|
236
|
-
<a href="https://opencollective.com/debug/backer/14/website" target="_blank"><img src="https://opencollective.com/debug/backer/14/avatar.svg"></a>
|
|
237
|
-
<a href="https://opencollective.com/debug/backer/15/website" target="_blank"><img src="https://opencollective.com/debug/backer/15/avatar.svg"></a>
|
|
238
|
-
<a href="https://opencollective.com/debug/backer/16/website" target="_blank"><img src="https://opencollective.com/debug/backer/16/avatar.svg"></a>
|
|
239
|
-
<a href="https://opencollective.com/debug/backer/17/website" target="_blank"><img src="https://opencollective.com/debug/backer/17/avatar.svg"></a>
|
|
240
|
-
<a href="https://opencollective.com/debug/backer/18/website" target="_blank"><img src="https://opencollective.com/debug/backer/18/avatar.svg"></a>
|
|
241
|
-
<a href="https://opencollective.com/debug/backer/19/website" target="_blank"><img src="https://opencollective.com/debug/backer/19/avatar.svg"></a>
|
|
242
|
-
<a href="https://opencollective.com/debug/backer/20/website" target="_blank"><img src="https://opencollective.com/debug/backer/20/avatar.svg"></a>
|
|
243
|
-
<a href="https://opencollective.com/debug/backer/21/website" target="_blank"><img src="https://opencollective.com/debug/backer/21/avatar.svg"></a>
|
|
244
|
-
<a href="https://opencollective.com/debug/backer/22/website" target="_blank"><img src="https://opencollective.com/debug/backer/22/avatar.svg"></a>
|
|
245
|
-
<a href="https://opencollective.com/debug/backer/23/website" target="_blank"><img src="https://opencollective.com/debug/backer/23/avatar.svg"></a>
|
|
246
|
-
<a href="https://opencollective.com/debug/backer/24/website" target="_blank"><img src="https://opencollective.com/debug/backer/24/avatar.svg"></a>
|
|
247
|
-
<a href="https://opencollective.com/debug/backer/25/website" target="_blank"><img src="https://opencollective.com/debug/backer/25/avatar.svg"></a>
|
|
248
|
-
<a href="https://opencollective.com/debug/backer/26/website" target="_blank"><img src="https://opencollective.com/debug/backer/26/avatar.svg"></a>
|
|
249
|
-
<a href="https://opencollective.com/debug/backer/27/website" target="_blank"><img src="https://opencollective.com/debug/backer/27/avatar.svg"></a>
|
|
250
|
-
<a href="https://opencollective.com/debug/backer/28/website" target="_blank"><img src="https://opencollective.com/debug/backer/28/avatar.svg"></a>
|
|
251
|
-
<a href="https://opencollective.com/debug/backer/29/website" target="_blank"><img src="https://opencollective.com/debug/backer/29/avatar.svg"></a>
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
## Sponsors
|
|
255
|
-
|
|
256
|
-
Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)]
|
|
257
|
-
|
|
258
|
-
<a href="https://opencollective.com/debug/sponsor/0/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/0/avatar.svg"></a>
|
|
259
|
-
<a href="https://opencollective.com/debug/sponsor/1/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/1/avatar.svg"></a>
|
|
260
|
-
<a href="https://opencollective.com/debug/sponsor/2/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/2/avatar.svg"></a>
|
|
261
|
-
<a href="https://opencollective.com/debug/sponsor/3/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/3/avatar.svg"></a>
|
|
262
|
-
<a href="https://opencollective.com/debug/sponsor/4/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/4/avatar.svg"></a>
|
|
263
|
-
<a href="https://opencollective.com/debug/sponsor/5/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/5/avatar.svg"></a>
|
|
264
|
-
<a href="https://opencollective.com/debug/sponsor/6/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/6/avatar.svg"></a>
|
|
265
|
-
<a href="https://opencollective.com/debug/sponsor/7/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/7/avatar.svg"></a>
|
|
266
|
-
<a href="https://opencollective.com/debug/sponsor/8/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/8/avatar.svg"></a>
|
|
267
|
-
<a href="https://opencollective.com/debug/sponsor/9/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/9/avatar.svg"></a>
|
|
268
|
-
<a href="https://opencollective.com/debug/sponsor/10/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/10/avatar.svg"></a>
|
|
269
|
-
<a href="https://opencollective.com/debug/sponsor/11/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/11/avatar.svg"></a>
|
|
270
|
-
<a href="https://opencollective.com/debug/sponsor/12/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/12/avatar.svg"></a>
|
|
271
|
-
<a href="https://opencollective.com/debug/sponsor/13/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/13/avatar.svg"></a>
|
|
272
|
-
<a href="https://opencollective.com/debug/sponsor/14/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/14/avatar.svg"></a>
|
|
273
|
-
<a href="https://opencollective.com/debug/sponsor/15/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/15/avatar.svg"></a>
|
|
274
|
-
<a href="https://opencollective.com/debug/sponsor/16/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/16/avatar.svg"></a>
|
|
275
|
-
<a href="https://opencollective.com/debug/sponsor/17/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/17/avatar.svg"></a>
|
|
276
|
-
<a href="https://opencollective.com/debug/sponsor/18/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/18/avatar.svg"></a>
|
|
277
|
-
<a href="https://opencollective.com/debug/sponsor/19/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/19/avatar.svg"></a>
|
|
278
|
-
<a href="https://opencollective.com/debug/sponsor/20/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/20/avatar.svg"></a>
|
|
279
|
-
<a href="https://opencollective.com/debug/sponsor/21/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/21/avatar.svg"></a>
|
|
280
|
-
<a href="https://opencollective.com/debug/sponsor/22/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/22/avatar.svg"></a>
|
|
281
|
-
<a href="https://opencollective.com/debug/sponsor/23/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/23/avatar.svg"></a>
|
|
282
|
-
<a href="https://opencollective.com/debug/sponsor/24/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/24/avatar.svg"></a>
|
|
283
|
-
<a href="https://opencollective.com/debug/sponsor/25/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/25/avatar.svg"></a>
|
|
284
|
-
<a href="https://opencollective.com/debug/sponsor/26/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/26/avatar.svg"></a>
|
|
285
|
-
<a href="https://opencollective.com/debug/sponsor/27/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/27/avatar.svg"></a>
|
|
286
|
-
<a href="https://opencollective.com/debug/sponsor/28/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/28/avatar.svg"></a>
|
|
287
|
-
<a href="https://opencollective.com/debug/sponsor/29/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/29/avatar.svg"></a>
|
|
288
|
-
|
|
289
|
-
## License
|
|
290
|
-
|
|
291
|
-
(The MIT License)
|
|
292
|
-
|
|
293
|
-
Copyright (c) 2014-2016 TJ Holowaychuk <tj@vision-media.ca>
|
|
294
|
-
|
|
295
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
296
|
-
a copy of this software and associated documentation files (the
|
|
297
|
-
'Software'), to deal in the Software without restriction, including
|
|
298
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
299
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
300
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
301
|
-
the following conditions:
|
|
302
|
-
|
|
303
|
-
The above copyright notice and this permission notice shall be
|
|
304
|
-
included in all copies or substantial portions of the Software.
|
|
305
|
-
|
|
306
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
307
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
308
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
309
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
310
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
311
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
312
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|