Skip to content

Commit 62d6bd6

Browse files
committed
chore: updated dio version and reduced time from delay
1 parent 6e65bfa commit 62d6bd6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
- Add `MockContentTypeEnum` parameter to `ApiManager` to mock sends Plain Text response correctly
44
- Parse String or Json according to the new parameter in mock
55
- Send correct content-type header according to the new parameter in mock
6+
- Update version dio to 5.8.0+1
7+
- Reduce delay to 500 milliseconds
68

79
## [1.1.3] - Add new parameter from Dio override
810

lib/src/mock/mock_reply_params.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class MockReplyParams {
66
const MockReplyParams({
77
required this.mockPath,
88
this.status = HttpStatusEnum.ok,
9-
this.delay = const Duration(seconds: 1),
9+
this.delay = const Duration(milliseconds: 500),
1010
this.contentType = MockContentTypeEnum.json,
1111
});
1212

pubspec.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ packages:
8282
dependency: "direct main"
8383
description:
8484
name: dio
85-
sha256: "5fe8c82766abd7494130a3dc5b9ffb8ca916898900c75a369b287267eac8d5b0"
85+
sha256: "253a18bbd4851fecba42f7343a1df3a9a4c1d31a2c1b37e221086b4fa8c8dbc9"
8686
url: "https://pub.dev"
8787
source: hosted
88-
version: "5.8.0"
88+
version: "5.8.0+1"
8989
dio_web_adapter:
9090
dependency: transitive
9191
description:

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
flutter: ">=3.0.0"
1010

1111
dependencies:
12-
dio: ^5.7.0
12+
dio: ^5.8.0+1
1313
http_mock_adapter: ^0.6.1
1414

1515
dev_dependencies:

0 commit comments

Comments
 (0)