Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey committed Jan 29, 2024
1 parent 79232da commit 139658f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/aws_common/lib/src/http/aws_clock_skew.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:aws_common/aws_common.dart';
class AWSClockSkew {
final _skewWindow = const Duration(minutes: 5);

/// Updates the clock skew of the given [request] based on the [serverTime].
/// Updates the clock skew of the given [request] based on the [clockSkewOffsetInMs].
/// Returns the updated [request] with the corrected date header.
AWSBaseHttpRequest updateClockSkew(
AWSBaseHttpRequest request,
Expand All @@ -27,7 +27,7 @@ class AWSClockSkew {
return newDate.formatFull();
}

/// Calculates and returns the updated system clock offset based on the [clockTime]
/// Calculates and returns the updated system clock offset based on the [offsetInMs]
/// received from the server and the [offsetInMs].
int getUpdatedSystemClockOffset(
String serverHeader,
Expand Down
2 changes: 0 additions & 2 deletions packages/aws_common/lib/src/http/aws_date_time.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ class AWSDateTime {

/// Find the difference between two dates
Duration difference(DateTime d) {
final years = dateTime.year - d.year;
final days = dateTime.day - d.day;
final hours = dateTime.hour - d.hour;
final minutes = dateTime.minute - d.minute;
print('years: $years, days: $days, hours: $hours, minutes: $minutes');

return Duration(days: days, hours: hours, minutes: minutes);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/aws_common/lib/src/http/aws_http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ abstract class AWSBaseHttpClient extends AWSCustomHttpClient {
safePrint(e.message);
return send(request).operation.value;
}
throw e;
throw e as Exception;
},
),
);
Expand Down
6 changes: 3 additions & 3 deletions packages/aws_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ dependencies:
built_value: ">=8.6.0 <8.9.0"
collection: ^1.15.0
http2: ^2.0.0
intl: ^0.18.1 # todo: update to 19.0 before merge -- requires project wide bump
intl: ">=0.18.0 <1.0.0"
js: ^0.6.4
json_annotation: ">=4.8.1 <4.9.0"
logging: ^1.0.0
meta: ^1.7.0
mime: ^1.0.0
os_detect: ^2.0.0
path: ">=1.8.0 <2.0.0"
stream_transform: ^2.0.0
uuid: ">=3.0.6 <5.0.0"
smithy: 0.6.2
smithy_aws: 0.6.1
stream_transform: ^2.0.0
uuid: ">=3.0.6 <5.0.0"

dev_dependencies:
amplify_lints: ">=3.0.0 <3.1.0"
Expand Down

0 comments on commit 139658f

Please sign in to comment.