File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9+ ## [ 1.0.1] - 2019-04-05
10+ ### Changed
11+ - Bump the dependencies' versions
12+
913## [ 1.0.0] - 2019-03-20
1014### Changed
1115- JSON: API Server moved out
@@ -56,7 +60,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5660### Added
5761- Client: fetch resources, collections, related resources and relationships
5862
59- [ Unreleased ] : https://github.com/f3ath/json-api-dart/compare/1.0.0...HEAD
63+ [ Unreleased ] : https://github.com/f3ath/json-api-dart/compare/1.0.1...HEAD
64+ [ 1.0.1 ] : https://github.com/f3ath/json-api-dart/compare/0.6.0...1.0.0
6065[ 1.0.0 ] : https://github.com/f3ath/json-api-dart/compare/0.6.0...1.0.0
6166[ 0.6.0 ] : https://github.com/f3ath/json-api-dart/compare/0.5.0...0.6.0
6267[ 0.5.0 ] : https://github.com/f3ath/json-api-dart/compare/0.4.0...0.5.0
Original file line number Diff line number Diff line change @@ -176,18 +176,18 @@ class JsonApiClient {
176176 Future <http.Response > fn (http.Client client)) async {
177177 final client = _factory ();
178178 try {
179- final r = await fn (client);
180- if (r .body.isEmpty) {
181- return Response (r .statusCode, r .headers);
179+ final httpResponse = await fn (client);
180+ if (httpResponse .body.isEmpty) {
181+ return Response (httpResponse .statusCode, httpResponse .headers);
182182 }
183- final body = json.decode (r .body);
184- if (StatusCode (r .statusCode).isPending) {
185- return Response (r .statusCode, r .headers,
183+ final body = json.decode (httpResponse .body);
184+ if (StatusCode (httpResponse .statusCode).isPending) {
185+ return Response (httpResponse .statusCode, httpResponse .headers,
186186 asyncDocument: body == null
187187 ? null
188188 : _parser.parseDocument (body, _parser.parseResourceData));
189189 }
190- return Response (r .statusCode, r .headers,
190+ return Response (httpResponse .statusCode, httpResponse .headers,
191191 document: body == null ? null : _parser.parseDocument (body, parse));
192192 } finally {
193193 client.close ();
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ dev_dependencies:
1111 json_api_server : " ^0.0.1"
1212 json_matcher : " ^0.2.3"
1313 stream_channel : " ^1.6.8"
14- test : " ^1.3.0 "
15- uuid : " ^2.0.0 "
14+ test : " ^1.6.1 "
15+ uuid : " ^2.0.1 "
1616environment :
1717 sdk : " >=2.0.0 <3.0.0"
You can’t perform that action at this time.
0 commit comments