Commit 65d485b
console: add
Add an `inspectOptions` option to the `console` constructor. That
way it's possible to define all inspection defaults for each
`console` instance instead of relying on the `inspect()` defaults.
PR-URL: #24978
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>inspectOptions option1 parent 57323e8 commit 65d485bCopy full SHA for 65d485b
File tree
Expand file treeCollapse file tree
5 files changed
+66
-6
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- console
- test/parallel
Expand file treeCollapse file tree
5 files changed
+66
-6
lines changedOpen diff view settings
Collapse file
+7-1Lines changed: 7 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
88 | 88 | |
89 | 89 | |
90 | 90 | |
| 91 | + |
| 92 | + |
| 93 | + |
91 | 94 | |
92 | 95 | |
93 | 96 | |
| ||
98 | 101 | |
99 | 102 | |
100 | 103 | |
101 | | - |
| 104 | + |
| 105 | + |
102 | 106 | |
| 107 | + |
| 108 | + |
103 | 109 | |
104 | 110 | |
105 | 111 | |
|
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1141 | 1141 | |
1142 | 1142 | |
1143 | 1143 | |
| 1144 | + |
| 1145 | + |
| 1146 | + |
| 1147 | + |
| 1148 | + |
| 1149 | + |
1144 | 1150 | |
1145 | 1151 | |
1146 | 1152 | |
|
Collapse file
lib/internal/console/constructor.js
Copy file name to clipboardExpand all lines: lib/internal/console/constructor.js+22-1Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| ||
54 | 55 | |
55 | 56 | |
56 | 57 | |
| 58 | + |
| 59 | + |
57 | 60 | |
58 | 61 | |
59 | 62 | |
| ||
74 | 77 | |
75 | 78 | |
76 | 79 | |
77 | | - |
| 80 | + |
| 81 | + |
78 | 82 | |
79 | 83 | |
80 | 84 | |
| ||
87 | 91 | |
88 | 92 | |
89 | 93 | |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
90 | 103 | |
91 | 104 | |
92 | 105 | |
| ||
243 | 256 | |
244 | 257 | |
245 | 258 | |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
246 | 267 | |
247 | 268 | |
248 | 269 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
702 | 702 | |
703 | 703 | |
704 | 704 | |
| 705 | + |
| 706 | + |
705 | 707 | |
706 | 708 | |
707 | 709 | |
|
Collapse file
test/parallel/test-console-tty-colors.js
Copy file name to clipboardExpand all lines: test/parallel/test-console-tty-colors.js+29-4Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
9 | 9 | |
10 | 10 | |
11 | 11 | |
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
| 21 | + |
| 22 | + |
22 | 23 | |
23 | 24 | |
24 | 25 | |
| ||
31 | 32 | |
32 | 33 | |
33 | 34 | |
34 | | - |
| 35 | + |
| 36 | + |
35 | 37 | |
36 | 38 | |
37 | 39 | |
| ||
40 | 42 | |
41 | 43 | |
42 | 44 | |
| 45 | + |
| 46 | + |
| 47 | + |
43 | 48 | |
44 | 49 | |
45 | 50 | |
46 | 51 | |
47 | 52 | |
48 | | - |
| 53 | + |
49 | 54 | |
50 | 55 | |
51 | 56 | |
| ||
67 | 72 | |
68 | 73 | |
69 | 74 | |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
70 | 95 | |
0 commit comments