From dc60397a2ff77c4f0e81672c04ed99c122da092c Mon Sep 17 00:00:00 2001 From: Jason Dean Lessenich Date: Mon, 26 Feb 2024 18:33:57 +0100 Subject: [PATCH] Fixed missing `isWeb` in `RestrrBuilder#create` --- CHANGELOG.md | 5 ++++- lib/src/restrr_base.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71b84d4..51e3eb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ +## 0.4.2 +- Fixed missing `isWeb` in `RestrrBuilder#create` + ## 0.4.1 -- Added missing `isWeb` +- Added missing `isWeb` in `RequestHandler` methods ## 0.4 - Added `statusCode` to `RestResponse` diff --git a/lib/src/restrr_base.dart b/lib/src/restrr_base.dart index 99207ed..abb4192 100644 --- a/lib/src/restrr_base.dart +++ b/lib/src/restrr_base.dart @@ -38,7 +38,7 @@ class RestrrBuilder { Future> create() async { Restrr.log.info('Attempting to initialize a session (${initType.name}) with $uri'); // check if the URI is valid - final RestResponse statusResponse = await Restrr.checkUri(uri); + final RestResponse statusResponse = await Restrr.checkUri(uri, isWeb: options.isWeb); if (statusResponse.hasError) { Restrr.log.warning('Invalid financrr URI: $uri'); return statusResponse.error == RestrrError.unknown diff --git a/pubspec.yaml b/pubspec.yaml index 5e26bc6..e1652bc 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.1 +version: 0.4.2 repository: https://github.com/financrr/restrr environment: