browsed 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +2 -2
- data/README.md +12 -17
- data/bin/browse +13 -10
- data/lib/browsed.rb +9 -2
- data/lib/browsed/browser.rb +82 -0
- data/lib/browsed/chrome.rb +21 -12
- data/lib/browsed/client.rb +48 -130
- data/lib/browsed/constants.rb +7 -1
- data/lib/browsed/errors.rb +1 -0
- data/lib/browsed/extensions/hash.rb +27 -0
- data/lib/browsed/firefox.rb +18 -17
- data/lib/browsed/manager.rb +5 -5
- data/lib/browsed/{poltergeist.rb → phantomjs.rb} +2 -2
- data/lib/browsed/proxies.rb +26 -0
- data/lib/browsed/{extensions → proxies}/chrome/proxy_authentication.rb +3 -3
- data/lib/browsed/proxies/proxy-chain-server/node_modules/.bin/portastic +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/LICENSE +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/README.md +57 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/changelog.md +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.js +3824 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.js +5666 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/any.js +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/assert.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/async.js +165 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bind.js +67 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/bluebird.js +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/call_get.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/cancel.js +129 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/catch_filter.js +42 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/context.js +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/debuggability.js +934 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/direct_resolve.js +46 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/each.js +30 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/errors.js +116 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/es5.js +80 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/filter.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/finally.js +146 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/generators.js +223 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/join.js +168 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/map.js +168 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/method.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeback.js +51 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/nodeify.js +58 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise.js +789 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promise_array.js +185 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/promisify.js +314 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/props.js +118 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/queue.js +73 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/race.js +49 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/reduce.js +172 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/schedule.js +62 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/settle.js +43 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/some.js +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/thenables.js +86 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/timers.js +93 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/using.js +226 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/js/release/util.js +389 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/bluebird/package.json +102 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/CHANGELOG.md +408 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/LICENSE +22 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/Readme.md +428 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/index.js +1224 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/package.json +70 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/commander/typings/index.d.ts +310 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.coveralls.yml +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.eslintrc +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.npmignore +9 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/.travis.yml +14 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/CHANGELOG.md +362 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/LICENSE +19 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/Makefile +50 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/README.md +312 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/component.json +19 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/karma.conf.js +70 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/node.js +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/package.json +88 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/browser.js +185 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/debug.js +202 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/index.js +10 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/inspector-log.js +15 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/debug/src/node.js +248 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/index.js +152 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/license.md +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/package.json +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/ms/readme.md +51 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/LICENSE +13 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/README.md +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/bin/portastic +65 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/history.md +7 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/index.js +4 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/monitor.js +59 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/lib/portastic.js +167 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/LICENSE +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/README.md +677 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/changelog.md +1730 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.js +4892 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/any.js +21 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/assert.js +55 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/async.js +150 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bind.js +72 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/bluebird.js +11 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/call_get.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/cancel.js +48 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/captured_trace.js +493 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/catch_filter.js +66 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/context.js +38 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/debuggability.js +162 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/direct_resolve.js +63 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/each.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/errors.js +111 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/es5.js +80 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/filter.js +12 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/finally.js +98 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/generators.js +136 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/join.js +107 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/map.js +133 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/method.js +44 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/nodeify.js +59 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/progress.js +76 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise.js +759 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_array.js +142 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promise_resolver.js +123 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/promisify.js +307 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/props.js +79 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/queue.js +90 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/race.js +47 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/reduce.js +148 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/schedule.js +35 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/settle.js +40 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/some.js +125 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/synchronous_inspection.js +94 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/thenables.js +84 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/timers.js +64 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/using.js +213 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/js/main/util.js +321 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/node_modules/bluebird/package.json +103 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/portastic/package.json +69 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/CHANGELOG.md +109 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/LICENSE +201 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/README.md +278 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/anonymize_proxy.js +100 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_base.js +319 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_custom_response.js +96 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_forward.js +173 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_chain.js +132 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_direct.js +89 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/handler_tunnel_tcp_chain.js +271 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/index.js +26 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/run_locally.js +66 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/server.js +595 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tcp_tunnel.js +138 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/testing_tcp_service.js +37 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/build/tools.js +220 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/proxy-chain/package.json +104 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/LICENSE +23 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/README.md +28 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/package.json +81 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js +5 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore-min.js.map +1 -0
- data/lib/browsed/proxies/proxy-chain-server/node_modules/underscore/underscore.js +1692 -0
- data/lib/browsed/proxies/proxy-chain-server/package-lock.json +63 -0
- data/lib/browsed/proxies/proxy-chain-server/package.json +15 -0
- data/lib/browsed/proxies/proxy-chain-server/server.js +25 -0
- data/lib/browsed/proxies/proxy_chain.rb +36 -0
- data/lib/browsed/version.rb +1 -1
- metadata +160 -4
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"_from": "commander@^2.8.1",
|
3
|
+
"_id": "commander@2.20.0",
|
4
|
+
"_inBundle": false,
|
5
|
+
"_integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==",
|
6
|
+
"_location": "/commander",
|
7
|
+
"_phantomChildren": {},
|
8
|
+
"_requested": {
|
9
|
+
"type": "range",
|
10
|
+
"registry": true,
|
11
|
+
"raw": "commander@^2.8.1",
|
12
|
+
"name": "commander",
|
13
|
+
"escapedName": "commander",
|
14
|
+
"rawSpec": "^2.8.1",
|
15
|
+
"saveSpec": null,
|
16
|
+
"fetchSpec": "^2.8.1"
|
17
|
+
},
|
18
|
+
"_requiredBy": [
|
19
|
+
"/portastic"
|
20
|
+
],
|
21
|
+
"_resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
|
22
|
+
"_shasum": "d58bb2b5c1ee8f87b0d340027e9e94e222c5a422",
|
23
|
+
"_spec": "commander@^2.8.1",
|
24
|
+
"_where": "/Users/sebastianjohnsson/Programming/Javascript/proxy-chain-server/node_modules/portastic",
|
25
|
+
"author": {
|
26
|
+
"name": "TJ Holowaychuk",
|
27
|
+
"email": "tj@vision-media.ca"
|
28
|
+
},
|
29
|
+
"bugs": {
|
30
|
+
"url": "https://github.com/tj/commander.js/issues"
|
31
|
+
},
|
32
|
+
"bundleDependencies": false,
|
33
|
+
"dependencies": {},
|
34
|
+
"deprecated": false,
|
35
|
+
"description": "the complete solution for node.js command-line programs",
|
36
|
+
"devDependencies": {
|
37
|
+
"@types/node": "^10.11.3",
|
38
|
+
"eslint": "^5.6.1",
|
39
|
+
"should": "^13.2.3",
|
40
|
+
"sinon": "^6.3.4",
|
41
|
+
"standard": "^12.0.1",
|
42
|
+
"ts-node": "^7.0.1",
|
43
|
+
"typescript": "^2.9.2"
|
44
|
+
},
|
45
|
+
"files": [
|
46
|
+
"index.js",
|
47
|
+
"typings/index.d.ts"
|
48
|
+
],
|
49
|
+
"homepage": "https://github.com/tj/commander.js#readme",
|
50
|
+
"keywords": [
|
51
|
+
"commander",
|
52
|
+
"command",
|
53
|
+
"option",
|
54
|
+
"parser"
|
55
|
+
],
|
56
|
+
"license": "MIT",
|
57
|
+
"main": "index",
|
58
|
+
"name": "commander",
|
59
|
+
"repository": {
|
60
|
+
"type": "git",
|
61
|
+
"url": "git+https://github.com/tj/commander.js.git"
|
62
|
+
},
|
63
|
+
"scripts": {
|
64
|
+
"lint": "eslint index.js",
|
65
|
+
"test": "node test/run.js && npm run test-typings",
|
66
|
+
"test-typings": "tsc -p tsconfig.json"
|
67
|
+
},
|
68
|
+
"typings": "typings/index.d.ts",
|
69
|
+
"version": "2.20.0"
|
70
|
+
}
|
@@ -0,0 +1,310 @@
|
|
1
|
+
// Type definitions for commander 2.11
|
2
|
+
// Project: https://github.com/visionmedia/commander.js
|
3
|
+
// Definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
5
|
+
|
6
|
+
declare namespace local {
|
7
|
+
|
8
|
+
class Option {
|
9
|
+
flags: string;
|
10
|
+
required: boolean;
|
11
|
+
optional: boolean;
|
12
|
+
bool: boolean;
|
13
|
+
short?: string;
|
14
|
+
long: string;
|
15
|
+
description: string;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Initialize a new `Option` with the given `flags` and `description`.
|
19
|
+
*
|
20
|
+
* @param {string} flags
|
21
|
+
* @param {string} [description]
|
22
|
+
*/
|
23
|
+
constructor(flags: string, description?: string);
|
24
|
+
}
|
25
|
+
|
26
|
+
class Command extends NodeJS.EventEmitter {
|
27
|
+
[key: string]: any;
|
28
|
+
|
29
|
+
args: string[];
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Initialize a new `Command`.
|
33
|
+
*
|
34
|
+
* @param {string} [name]
|
35
|
+
*/
|
36
|
+
constructor(name?: string);
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Set the program version to `str`.
|
40
|
+
*
|
41
|
+
* This method auto-registers the "-V, --version" flag
|
42
|
+
* which will print the version number when passed.
|
43
|
+
*
|
44
|
+
* @param {string} str
|
45
|
+
* @param {string} [flags]
|
46
|
+
* @returns {Command} for chaining
|
47
|
+
*/
|
48
|
+
version(str: string, flags?: string): Command;
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Add command `name`.
|
52
|
+
*
|
53
|
+
* The `.action()` callback is invoked when the
|
54
|
+
* command `name` is specified via __ARGV__,
|
55
|
+
* and the remaining arguments are applied to the
|
56
|
+
* function for access.
|
57
|
+
*
|
58
|
+
* When the `name` is "*" an un-matched command
|
59
|
+
* will be passed as the first arg, followed by
|
60
|
+
* the rest of __ARGV__ remaining.
|
61
|
+
*
|
62
|
+
* @example
|
63
|
+
* program
|
64
|
+
* .version('0.0.1')
|
65
|
+
* .option('-C, --chdir <path>', 'change the working directory')
|
66
|
+
* .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
|
67
|
+
* .option('-T, --no-tests', 'ignore test hook')
|
68
|
+
*
|
69
|
+
* program
|
70
|
+
* .command('setup')
|
71
|
+
* .description('run remote setup commands')
|
72
|
+
* .action(function() {
|
73
|
+
* console.log('setup');
|
74
|
+
* });
|
75
|
+
*
|
76
|
+
* program
|
77
|
+
* .command('exec <cmd>')
|
78
|
+
* .description('run the given remote command')
|
79
|
+
* .action(function(cmd) {
|
80
|
+
* console.log('exec "%s"', cmd);
|
81
|
+
* });
|
82
|
+
*
|
83
|
+
* program
|
84
|
+
* .command('teardown <dir> [otherDirs...]')
|
85
|
+
* .description('run teardown commands')
|
86
|
+
* .action(function(dir, otherDirs) {
|
87
|
+
* console.log('dir "%s"', dir);
|
88
|
+
* if (otherDirs) {
|
89
|
+
* otherDirs.forEach(function (oDir) {
|
90
|
+
* console.log('dir "%s"', oDir);
|
91
|
+
* });
|
92
|
+
* }
|
93
|
+
* });
|
94
|
+
*
|
95
|
+
* program
|
96
|
+
* .command('*')
|
97
|
+
* .description('deploy the given env')
|
98
|
+
* .action(function(env) {
|
99
|
+
* console.log('deploying "%s"', env);
|
100
|
+
* });
|
101
|
+
*
|
102
|
+
* program.parse(process.argv);
|
103
|
+
*
|
104
|
+
* @param {string} name
|
105
|
+
* @param {string} [desc] for git-style sub-commands
|
106
|
+
* @param {CommandOptions} [opts] command options
|
107
|
+
* @returns {Command} the new command
|
108
|
+
*/
|
109
|
+
command(name: string, desc?: string, opts?: commander.CommandOptions): Command;
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Define argument syntax for the top-level command.
|
113
|
+
*
|
114
|
+
* @param {string} desc
|
115
|
+
* @returns {Command} for chaining
|
116
|
+
*/
|
117
|
+
arguments(desc: string): Command;
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Parse expected `args`.
|
121
|
+
*
|
122
|
+
* For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
|
123
|
+
*
|
124
|
+
* @param {string[]} args
|
125
|
+
* @returns {Command} for chaining
|
126
|
+
*/
|
127
|
+
parseExpectedArgs(args: string[]): Command;
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Register callback `fn` for the command.
|
131
|
+
*
|
132
|
+
* @example
|
133
|
+
* program
|
134
|
+
* .command('help')
|
135
|
+
* .description('display verbose help')
|
136
|
+
* .action(function() {
|
137
|
+
* // output help here
|
138
|
+
* });
|
139
|
+
*
|
140
|
+
* @param {(...args: any[]) => void} fn
|
141
|
+
* @returns {Command} for chaining
|
142
|
+
*/
|
143
|
+
action(fn: (...args: any[]) => void): Command;
|
144
|
+
|
145
|
+
/**
|
146
|
+
* Define option with `flags`, `description` and optional
|
147
|
+
* coercion `fn`.
|
148
|
+
*
|
149
|
+
* The `flags` string should contain both the short and long flags,
|
150
|
+
* separated by comma, a pipe or space. The following are all valid
|
151
|
+
* all will output this way when `--help` is used.
|
152
|
+
*
|
153
|
+
* "-p, --pepper"
|
154
|
+
* "-p|--pepper"
|
155
|
+
* "-p --pepper"
|
156
|
+
*
|
157
|
+
* @example
|
158
|
+
* // simple boolean defaulting to false
|
159
|
+
* program.option('-p, --pepper', 'add pepper');
|
160
|
+
*
|
161
|
+
* --pepper
|
162
|
+
* program.pepper
|
163
|
+
* // => Boolean
|
164
|
+
*
|
165
|
+
* // simple boolean defaulting to true
|
166
|
+
* program.option('-C, --no-cheese', 'remove cheese');
|
167
|
+
*
|
168
|
+
* program.cheese
|
169
|
+
* // => true
|
170
|
+
*
|
171
|
+
* --no-cheese
|
172
|
+
* program.cheese
|
173
|
+
* // => false
|
174
|
+
*
|
175
|
+
* // required argument
|
176
|
+
* program.option('-C, --chdir <path>', 'change the working directory');
|
177
|
+
*
|
178
|
+
* --chdir /tmp
|
179
|
+
* program.chdir
|
180
|
+
* // => "/tmp"
|
181
|
+
*
|
182
|
+
* // optional argument
|
183
|
+
* program.option('-c, --cheese [type]', 'add cheese [marble]');
|
184
|
+
*
|
185
|
+
* @param {string} flags
|
186
|
+
* @param {string} [description]
|
187
|
+
* @param {((arg1: any, arg2: any) => void) | RegExp} [fn] function or default
|
188
|
+
* @param {*} [defaultValue]
|
189
|
+
* @returns {Command} for chaining
|
190
|
+
*/
|
191
|
+
option(flags: string, description?: string, fn?: ((arg1: any, arg2: any) => void) | RegExp, defaultValue?: any): Command;
|
192
|
+
option(flags: string, description?: string, defaultValue?: any): Command;
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Allow unknown options on the command line.
|
196
|
+
*
|
197
|
+
* @param {boolean} [arg] if `true` or omitted, no error will be thrown for unknown options.
|
198
|
+
* @returns {Command} for chaining
|
199
|
+
*/
|
200
|
+
allowUnknownOption(arg?: boolean): Command;
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Parse `argv`, settings options and invoking commands when defined.
|
204
|
+
*
|
205
|
+
* @param {string[]} argv
|
206
|
+
* @returns {Command} for chaining
|
207
|
+
*/
|
208
|
+
parse(argv: string[]): Command;
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Parse options from `argv` returning `argv` void of these options.
|
212
|
+
*
|
213
|
+
* @param {string[]} argv
|
214
|
+
* @returns {ParseOptionsResult}
|
215
|
+
*/
|
216
|
+
parseOptions(argv: string[]): commander.ParseOptionsResult;
|
217
|
+
|
218
|
+
/**
|
219
|
+
* Return an object containing options as key-value pairs
|
220
|
+
*
|
221
|
+
* @returns {{[key: string]: any}}
|
222
|
+
*/
|
223
|
+
opts(): { [key: string]: any };
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Set the description to `str`.
|
227
|
+
*
|
228
|
+
* @param {string} str
|
229
|
+
* @param {{[argName: string]: string}} argsDescription
|
230
|
+
* @return {(Command | string)}
|
231
|
+
*/
|
232
|
+
description(str: string, argsDescription?: {[argName: string]: string}): Command;
|
233
|
+
description(): string;
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Set an alias for the command.
|
237
|
+
*
|
238
|
+
* @param {string} alias
|
239
|
+
* @return {(Command | string)}
|
240
|
+
*/
|
241
|
+
alias(alias: string): Command;
|
242
|
+
alias(): string;
|
243
|
+
|
244
|
+
/**
|
245
|
+
* Set or get the command usage.
|
246
|
+
*
|
247
|
+
* @param {string} str
|
248
|
+
* @return {(Command | string)}
|
249
|
+
*/
|
250
|
+
usage(str: string): Command;
|
251
|
+
usage(): string;
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Set the name of the command.
|
255
|
+
*
|
256
|
+
* @param {string} str
|
257
|
+
* @return {Command}
|
258
|
+
*/
|
259
|
+
name(str: string): Command;
|
260
|
+
|
261
|
+
/**
|
262
|
+
* Get the name of the command.
|
263
|
+
*
|
264
|
+
* @return {string}
|
265
|
+
*/
|
266
|
+
name(): string;
|
267
|
+
|
268
|
+
/**
|
269
|
+
* Output help information for this command.
|
270
|
+
*
|
271
|
+
* @param {(str: string) => string} [cb]
|
272
|
+
*/
|
273
|
+
outputHelp(cb?: (str: string) => string): void;
|
274
|
+
|
275
|
+
/** Output help information and exit.
|
276
|
+
*
|
277
|
+
* @param {(str: string) => string} [cb]
|
278
|
+
*/
|
279
|
+
help(cb?: (str: string) => string): never;
|
280
|
+
}
|
281
|
+
|
282
|
+
}
|
283
|
+
|
284
|
+
declare namespace commander {
|
285
|
+
|
286
|
+
type Command = local.Command
|
287
|
+
|
288
|
+
type Option = local.Option
|
289
|
+
|
290
|
+
interface CommandOptions {
|
291
|
+
noHelp?: boolean;
|
292
|
+
isDefault?: boolean;
|
293
|
+
}
|
294
|
+
|
295
|
+
interface ParseOptionsResult {
|
296
|
+
args: string[];
|
297
|
+
unknown: string[];
|
298
|
+
}
|
299
|
+
|
300
|
+
interface CommanderStatic extends Command {
|
301
|
+
Command: typeof local.Command;
|
302
|
+
Option: typeof local.Option;
|
303
|
+
CommandOptions: CommandOptions;
|
304
|
+
ParseOptionsResult: ParseOptionsResult;
|
305
|
+
}
|
306
|
+
|
307
|
+
}
|
308
|
+
|
309
|
+
declare const commander: commander.CommanderStatic;
|
310
|
+
export = commander;
|
@@ -0,0 +1 @@
|
|
1
|
+
repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
|
@@ -0,0 +1,362 @@
|
|
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
|