diff --git a/CHANGELOG.md b/CHANGELOG.md index 24ed7dc..71b84d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.4.1 +- Added missing `isWeb` + ## 0.4 - Added `statusCode` to `RestResponse` - Moved route config to `RouteOptions` diff --git a/lib/src/service/api_service.dart b/lib/src/service/api_service.dart index d0de582..919ad5a 100644 --- a/lib/src/service/api_service.dart +++ b/lib/src/service/api_service.dart @@ -21,7 +21,7 @@ class RequestHandler { String contentType = 'application/json'}) async { try { final Response response = - await route.submit(routeOptions: routeOptions, body: body, contentType: contentType); + await route.submit(routeOptions: routeOptions, body: body, isWeb: isWeb, contentType: contentType); return RestResponse(data: mapper.call(response.data), statusCode: response.statusCode); } on DioException catch (e) { return _handleDioException(e, isWeb, errorMap); @@ -40,7 +40,7 @@ class RequestHandler { String contentType = 'application/json'}) async { try { final Response response = - await route.submit(routeOptions: routeOptions, body: body, contentType: contentType); + await route.submit(routeOptions: routeOptions, body: body, isWeb: isWeb, contentType: contentType); return RestResponse(data: true, statusCode: response.statusCode); } on DioException catch (e) { return _handleDioException(e, isWeb, errorMap); @@ -62,7 +62,7 @@ class RequestHandler { String contentType = 'application/json'}) async { try { final Response response = - await route.submit(routeOptions: routeOptions, body: body, contentType: contentType); + await route.submit(routeOptions: routeOptions, body: body, isWeb: isWeb, contentType: contentType); if (response.data is! List) { throw StateError('Received response is not a list!'); } diff --git a/pubspec.yaml b/pubspec.yaml index 7adb9f8..5e26bc6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: restrr description: Dart package which allows to communicate with the financrr REST API. -version: 0.4.0 +version: 0.4.1 repository: https://github.com/financrr/restrr environment: