Skip to content

Commit

Permalink
chore: export some things for use by consumers, docs fixes, updates t…
Browse files Browse the repository at this point in the history
…o the match not found message (#26)

* chore: export some things for use by consumers, docs fixes, and add additional data to the message printed when a match cannot be found

* update test

* back out changes to error logs

* bump version, adjust CHANGELOG
  • Loading branch information
btrautmann authored Apr 13, 2023
1 parent ca68622 commit 0fad2e8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1

- Export `CharlatanHttpRequest` and `CharlatanRequestMatcher`

## 0.3.0

- Add `whenMatch` for more complex matching scenarios
Expand Down
2 changes: 2 additions & 0 deletions lib/charlatan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export 'src/charlatan.dart';
export 'src/charlatan_http_client_adapter.dart';
export 'src/charlatan_response_definition.dart'
show
CharlatanHttpRequest,
CharlatanHttpResponse,
CharlatanRequestMatcher,
requestMatchesAll,
requestMatchesHttpMethod,
requestMatchesPathOrTemplate;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/charlatan_response_definition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CharlatanResponseDefinition {
/// The callback that produces the response.
final CharlatanResponseBuilder responseBuilder;

/// The default status code to use if the [responseBuilder] does not return.
/// The default status code to use if the [responseBuilder] does not return
/// a [CharlatanHttpResponse].
final int defaultStatusCode;

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: charlatan
description: A library for configuring and providing fake HTTP responses to your dio HTTP client.
version: 0.3.0
version: 0.3.1
homepage: https://github.com/Betterment/charlatan
repository: https://github.com/Betterment/charlatan

Expand Down

0 comments on commit 0fad2e8

Please sign in to comment.