Skip to content

Commit b3e78d6

Browse files
committed
v6.24.0
1 parent 79d6712 commit b3e78d6

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [6.24.0] - 2025-04-02
2+
3+
* Merge PR contribution from [voytech-net](https://github.com/voytech-net) #37
4+
15
## [6.23.0] - 2025-04-01
26

37
* Added: `toTimestamp()` helper for `DateTime` to convert to a timestamp

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ packages:
419419
path: ".."
420420
relative: true
421421
source: path
422-
version: "6.22.0"
422+
version: "6.23.0"
423423
path:
424424
dependency: transitive
425425
description:

lib/networking/ny_base_api_service.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ class NyBaseApiService {
156156
/// You can return a different value using this callback.
157157
handleResponse<T>(Response response,
158158
{Function(Response response)? handleSuccess}) {
159-
bool wasSuccessful = response.statusCode >= 200 && response.statusCode < 300;
159+
bool wasSuccessful = false;
160+
if (response.statusCode != null) {
161+
wasSuccessful = response.statusCode! >= 200 && response.statusCode! < 300;
162+
}
160163

161164
if (wasSuccessful == true && handleSuccess != null) {
162165
return handleSuccess(response);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_support
22
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
3-
version: 6.23.0
3+
version: 6.24.0
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/support/tree/6.x
66
issue_tracker: https://github.com/nylo-core/support/issues

0 commit comments

Comments
 (0)