Skip to content

Commit

Permalink
Version 0.2.8
Browse files Browse the repository at this point in the history
Merge pull request #11 from Djcharles26/work
  • Loading branch information
Djcharles26 authored Jan 19, 2023
2 parents ec477cc + ed4ed29 commit cec5b7e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.10.3'
flutter-version: '3.3.5'
- name: Install dependencies
run: flutter pub get
- name: Analyze
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@
- Added submessage field to http exception model

## 0.2.7
- Added print unknown exception flag in all body utils
- Added print unknown exception flag in all body utils

## 0.2.8
- Updated where unknown exception should print in json list field
2 changes: 1 addition & 1 deletion CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Added print unknown exception flag in all body utils
- Updated where unknown exception should print in json list field
10 changes: 5 additions & 5 deletions lib/body_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,18 @@ dynamic jsonListField<T> (
map (item)
);
i++;
} on BodyException catch (error, bt) {
if (printUnknownException) {
Completer ().completeError(error, bt);
}
} on BodyException catch (error) {
throw BodyException(
type: error.type,
fieldName: field.join ("-") + "[" + error.fieldName + "]",
currentType: error.currentType,
failedType: error.failedType,
index: i
);
} catch (error) {
} catch (error, bt) {
if (printUnknownException) {
Completer ().completeError(error, bt);
}
throw BodyException(
type: BodyExceptionType.undefined,
fieldName: field.join ("-"),
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: http_request_utils
description: Http requests utils
version: 0.2.7
version: 0.2.8
homepage: https://github.com/Djcharles26/
repository: https://github.com/Djcharles26/http_utils.git

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.7
0.2.8

0 comments on commit cec5b7e

Please sign in to comment.