Skip to content

Commit

Permalink
now prints to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
insign committed Apr 8, 2023
1 parent 23b8c0d commit 880b05d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.5.0
- now prints to stderr
## v0.4.3
- better score
## v0.4.2
Expand Down
2 changes: 1 addition & 1 deletion lib/pubspec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const name = 'var_dump';
const description =
'Dumps details in tree from variable. Optionally exits. Can use dump() or var_dump(), or dd() for "dump and die"';
const version = '0.4.3';
const version = '0.5.0';
const repository = 'https://github.com/insign/dart_var_dump';
const homepage = 'https://github.com/insign/dart_var_dump';
const environment = '{sdk: >=2.17.0 <3.0.0}';
Expand Down
3 changes: 2 additions & 1 deletion lib/src/var_dump.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ int level = 0;
/// - [obj]: The variable to dump
/// - [colorize]: Whether to colorize the output
void dump(dynamic obj, {bool colorize = true}) {
print(analyse(obj, colorize: colorize));
// prints to stderr to avoid messing up stdout
stderr.writeln(analyse(obj, colorize: colorize));
}

/// Dump the variable to the console
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: var_dump
description: 'Dumps details in tree from variable. Optionally exits. Can use dump() or var_dump(), or dd() for "dump and die"'
version: 0.4.3
version: 0.5.0
repository: https://github.com/insign/dart_var_dump
homepage: https://github.com/insign/dart_var_dump

Expand Down

0 comments on commit 880b05d

Please sign in to comment.