Skip to content

Commit

Permalink
Merge pull request #194 from atsign-foundation/publish_atCommons
Browse files Browse the repository at this point in the history
build: upgrade at_commons version to 3.0.17
  • Loading branch information
sitaram-kalluri authored Jun 15, 2022
2 parents 4fd40c0 + db6139b commit 68d994f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
2 changes: 2 additions & 0 deletions at_commons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 3.0.17
- Introduce exception hierarchy and new AtException subclasses
## 3.0.16
- Hide at_client_exceptions.dart to prevent at_client_exception being referred from at_commons
## 3.0.15
Expand Down
4 changes: 2 additions & 2 deletions at_commons/lib/src/exception/at_exception_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AtExceptionManager {
return atException;
}
// Else wrap the atException into AtClientException and return.
return (AtClientException.message(atException.message))..fromException(atException);

return (AtClientException.message(atException.message))
..fromException(atException);
}
}
2 changes: 1 addition & 1 deletion at_commons/lib/src/exception/at_exception_stack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AtExceptionStack implements Comparable<AtChainedException> {
if (intent == Intent.shareData) {
return 'Failed to share data';
}
if(intent == Intent.decryptData) {
if (intent == Intent.decryptData) {
return 'Failed to decrypt the data';
}
return 'Failed to notify data';
Expand Down
3 changes: 1 addition & 2 deletions at_commons/lib/src/exception/at_exceptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import 'package:at_commons/src/keystore/at_key.dart';
/// The class [AtException] and its subclasses represents various exceptions that can arise
/// while using the @ protocol.
class AtException implements Exception {
// ignore: prefer_typing_uninitialized_variables
/// Represents error message that details the cause of the exception
var message;
String message;

Intent? intent;

Expand Down
2 changes: 1 addition & 1 deletion at_commons/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: at_commons
description: A library of Dart and Flutter utility classes that are used across other components of the @‎platform.
version: 3.0.16
version: 3.0.17
repository: https://github.com/atsign-foundation/at_tools
homepage: https://atsign.dev

Expand Down
10 changes: 4 additions & 6 deletions at_commons/test/at_key_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ void main() {
group('A group of tests to validate the public keys', () {
test('validate a public key with namespace', () {
var validationResult = AtKeyValidators.get().validate(
'public:phone.me@alice',
ValidationContext()..atSign = '@alice');
'public:phone.me@alice', ValidationContext()..atSign = '@alice');
expect(validationResult.isValid, true);
});

Expand All @@ -228,8 +227,8 @@ void main() {

group('A group of tests to validate the self keys', () {
test('validate a self key with namespace', () {
var validationResult = AtKeyValidators.get().validate(
'phone.me@alice', ValidationContext()..atSign = '@alice');
var validationResult = AtKeyValidators.get()
.validate('phone.me@alice', ValidationContext()..atSign = '@alice');
expect(validationResult.isValid, true);
});

Expand All @@ -255,8 +254,7 @@ void main() {
group('A group of tests to validate the shared keys', () {
test('validate a shared key with namespace', () {
var validationResult = AtKeyValidators.get().validate(
'@bob:phone.me@alice',
ValidationContext()..atSign = '@alice');
'@bob:phone.me@alice', ValidationContext()..atSign = '@alice');
expect(validationResult.isValid, true);
});

Expand Down

0 comments on commit 68d994f

Please sign in to comment.