From 6325185f4e4aa7331a07ae93eba7abd54cbfbe5c Mon Sep 17 00:00:00 2001 From: thomashii Date: Wed, 5 Jan 2022 12:03:02 +0800 Subject: [PATCH] Updated to lints linter --- TODO.md | 2 ++ packages/file_service/.idea/file_service.iml | 16 ---------------- packages/file_service/.idea/modules.xml | 8 -------- packages/file_service/.idea/vcs.xml | 6 ------ packages/mustache/CHANGELOG.md | 4 ++++ packages/mustache/README.md | 1 - packages/mustache/pubspec.yaml | 2 +- packages/oauth2/.DS_Store | Bin 6148 -> 0 bytes packages/oauth2/.idea/auth_oauth2_server.iml | 15 --------------- packages/oauth2/.idea/modules.xml | 8 -------- .../tests_in_auth_oauth2_server.xml | 8 -------- packages/oauth2/.idea/vcs.xml | 6 ------ packages/oauth2/CHANGELOG.md | 4 ++++ packages/oauth2/README.md | 3 +-- packages/oauth2/pubspec.yaml | 2 +- packages/oauth2/test/auth_code_test.dart | 14 +++++++------- packages/paginate/.idea/modules.xml | 8 -------- packages/paginate/.idea/paginate.iml | 18 ------------------ .../.idea/runConfigurations/All_Tests.xml | 7 ------- packages/paginate/.idea/vcs.xml | 6 ------ packages/paginate/README.md | 1 - packages/paginate/pubspec.yaml | 4 ++-- packages/proxy/README.md | 1 - packages/proxy/pubspec.yaml | 4 ++-- packages/sembast/CHANGELOG.md | 4 ++++ packages/sembast/README.md | 5 ++--- packages/sembast/pubspec.yaml | 4 ++-- packages/seo/README.md | 1 - packages/validate/CHANGELOG.md | 2 ++ packages/validate/README.md | 1 - packages/validate/pubspec.yaml | 4 ++-- 31 files changed, 36 insertions(+), 133 deletions(-) delete mode 100644 packages/file_service/.idea/file_service.iml delete mode 100644 packages/file_service/.idea/modules.xml delete mode 100644 packages/file_service/.idea/vcs.xml delete mode 100644 packages/oauth2/.DS_Store delete mode 100644 packages/oauth2/.idea/auth_oauth2_server.iml delete mode 100644 packages/oauth2/.idea/modules.xml delete mode 100644 packages/oauth2/.idea/runConfigurations/tests_in_auth_oauth2_server.xml delete mode 100644 packages/oauth2/.idea/vcs.xml delete mode 100644 packages/paginate/.idea/modules.xml delete mode 100644 packages/paginate/.idea/paginate.iml delete mode 100644 packages/paginate/.idea/runConfigurations/All_Tests.xml delete mode 100644 packages/paginate/.idea/vcs.xml diff --git a/TODO.md b/TODO.md index def244a5..509f55c4 100644 --- a/TODO.md +++ b/TODO.md @@ -5,6 +5,8 @@ * Update examples * Update User Guide * Fix bugs + * `angel3_oauth2` failed test cases + * `angel3_proxy` failed test cases ## Long Term Goal diff --git a/packages/file_service/.idea/file_service.iml b/packages/file_service/.idea/file_service.iml deleted file mode 100644 index eae13016..00000000 --- a/packages/file_service/.idea/file_service.iml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/file_service/.idea/modules.xml b/packages/file_service/.idea/modules.xml deleted file mode 100644 index 7ebf9e82..00000000 --- a/packages/file_service/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/packages/file_service/.idea/vcs.xml b/packages/file_service/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/packages/file_service/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/packages/mustache/CHANGELOG.md b/packages/mustache/CHANGELOG.md index 8ec5dfb3..3d3ed4ff 100644 --- a/packages/mustache/CHANGELOG.md +++ b/packages/mustache/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 3.1.1 + +* Updated README + ## 3.1.0 * Updated linter to `package:lints` diff --git a/packages/mustache/README.md b/packages/mustache/README.md index d1cef551..69962bc4 100644 --- a/packages/mustache/README.md +++ b/packages/mustache/README.md @@ -1,7 +1,6 @@ # Mustache View Template for Angel3 ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_mustache?include_prereleases) -[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_mustache) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/mustache/LICENSE) diff --git a/packages/mustache/pubspec.yaml b/packages/mustache/pubspec.yaml index 3b30c48b..c9f9203c 100644 --- a/packages/mustache/pubspec.yaml +++ b/packages/mustache/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_mustache -version: 3.1.0 +version: 3.1.1 description: A service that renders Mustache template into HTML view for Angel3 homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/mustache diff --git a/packages/oauth2/.DS_Store b/packages/oauth2/.DS_Store deleted file mode 100644 index 10f4d43063cf2afdea345ed0e8725c067b6d3ef7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~O=`nH427SXECStlndNM9fZkvT$q90S5(*^{5-7CmIeMRdHg&o#raXc4Mj8v- z-@;=7u>I%T3orrL&|R_fFf(Jm!W9>szfK>w>;3l5idTWBh?%i6VYXk}5)lvq5fA|p z5P<~|$Wt7f=LJ2J9z_I1U>OAb`_SmFy>z6;r-LCz0P33MFs@^kpf)d1d+A7Jg=RH9 zShZS=AzqJmYOCvd=}66XSPdUmcQ&75XqN4;#)M`)L_q{ZU`Ak-`Q+#Sk^bBKKWkAc z0wVCw2-x~?I_&vUb+$gdp4VTi>gz$L#^nq@egc^IQM{#xaliS3+Dk_&D>VHG1O^2W H_)`MkvH%f) diff --git a/packages/oauth2/.idea/auth_oauth2_server.iml b/packages/oauth2/.idea/auth_oauth2_server.iml deleted file mode 100644 index ae9af975..00000000 --- a/packages/oauth2/.idea/auth_oauth2_server.iml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/oauth2/.idea/modules.xml b/packages/oauth2/.idea/modules.xml deleted file mode 100644 index 2dde0608..00000000 --- a/packages/oauth2/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/packages/oauth2/.idea/runConfigurations/tests_in_auth_oauth2_server.xml b/packages/oauth2/.idea/runConfigurations/tests_in_auth_oauth2_server.xml deleted file mode 100644 index cc52d764..00000000 --- a/packages/oauth2/.idea/runConfigurations/tests_in_auth_oauth2_server.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/oauth2/.idea/vcs.xml b/packages/oauth2/.idea/vcs.xml deleted file mode 100644 index 35eb1ddf..00000000 --- a/packages/oauth2/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/packages/oauth2/CHANGELOG.md b/packages/oauth2/CHANGELOG.md index a212a025..8d4c2863 100644 --- a/packages/oauth2/CHANGELOG.md +++ b/packages/oauth2/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 4.1.1 + +* Updated README + ## 4.1.0 * Updated linter to `package:lints` diff --git a/packages/oauth2/README.md b/packages/oauth2/README.md index 2b4803df..adbba106 100644 --- a/packages/oauth2/README.md +++ b/packages/oauth2/README.md @@ -1,7 +1,6 @@ # Angel3 OAuth2 Server ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_oauth2?include_prereleases) -[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_oauth2) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/oauth2/LICENSE) @@ -22,7 +21,7 @@ In your `pubspec.yaml`: ```yaml dependencies: angel3_framework: ^4.2.0 - angel3_oauth2: ^4.0.0 + angel3_oauth2: ^4.1.0 ``` ## Usage diff --git a/packages/oauth2/pubspec.yaml b/packages/oauth2/pubspec.yaml index fbe7240c..90f8af73 100644 --- a/packages/oauth2/pubspec.yaml +++ b/packages/oauth2/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_oauth2 -version: 4.1.0 +version: 4.1.1 description: A class containing handlers that can be used within Angel to build a spec-compliant OAuth 2.0 server. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/oauth2 diff --git a/packages/oauth2/test/auth_code_test.dart b/packages/oauth2/test/auth_code_test.dart index 23261287..d8cd931c 100644 --- a/packages/oauth2/test/auth_code_test.dart +++ b/packages/oauth2/test/auth_code_test.dart @@ -62,7 +62,7 @@ void main() { test('show authorization form', () async { var grant = createGrant(); var url = grant.getAuthorizationUrl(redirectUri, state: 'hello'); - var response = await testClient.client!.get(url); + var response = await testClient.client.get(url); print('Body: ${response.body}'); expect( response.body, @@ -73,7 +73,7 @@ void main() { test('preserves state', () async { var grant = createGrant(); var url = grant.getAuthorizationUrl(redirectUri, state: 'goodbye'); - var response = await testClient.client!.get(url); + var response = await testClient.client.get(url); print('Body: ${response.body}'); expect(json.decode(response.body)['state'], 'goodbye'); }); @@ -81,7 +81,7 @@ void main() { test('sends auth code', () async { var grant = createGrant(); var url = grant.getAuthorizationUrl(redirectUri); - var response = await testClient.client!.get(url); + var response = await testClient.client.get(url); print('Body: ${response.body}'); expect( json.decode(response.body), @@ -95,7 +95,7 @@ void main() { test('exchange code for token', () async { var grant = createGrant(); var url = grant.getAuthorizationUrl(redirectUri); - var response = await testClient.client!.get(url); + var response = await testClient.client.get(url); print('Body: ${response.body}'); var authCode = json.decode(response.body)['code'].toString(); @@ -106,7 +106,7 @@ void main() { test('can send refresh token', () async { var grant = createGrant(); var url = grant.getAuthorizationUrl(redirectUri, state: 'can_refresh'); - var response = await testClient.client!.get(url); + var response = await testClient.client.get(url); print('Body: ${response.body}'); var authCode = json.decode(response.body)['code'].toString(); @@ -152,7 +152,7 @@ class _Server extends AuthorizationServer { } var authCode = _uuid.v4(); - var authCodes = req.container!.make()!; + var authCodes = req.container!.make(); authCodes[authCode] = state; res.headers['content-type'] = 'application/json'; @@ -168,7 +168,7 @@ class _Server extends AuthorizationServer { String? redirectUri, RequestContext req, ResponseContext res) async { - var authCodes = req.container!.make()!; + var authCodes = req.container!.make(); var state = authCodes[authCode!]; var refreshToken = state == 'can_refresh' ? '${authCode}_refresh' : null; return AuthorizationTokenResponse('${authCode}_access', diff --git a/packages/paginate/.idea/modules.xml b/packages/paginate/.idea/modules.xml deleted file mode 100644 index 95e1559d..00000000 --- a/packages/paginate/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/packages/paginate/.idea/paginate.iml b/packages/paginate/.idea/paginate.iml deleted file mode 100644 index 02bd9dfb..00000000 --- a/packages/paginate/.idea/paginate.iml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/paginate/.idea/runConfigurations/All_Tests.xml b/packages/paginate/.idea/runConfigurations/All_Tests.xml deleted file mode 100644 index bdb678e2..00000000 --- a/packages/paginate/.idea/runConfigurations/All_Tests.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/packages/paginate/.idea/vcs.xml b/packages/paginate/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/packages/paginate/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/packages/paginate/README.md b/packages/paginate/README.md index 36c45c66..c2306173 100644 --- a/packages/paginate/README.md +++ b/packages/paginate/README.md @@ -1,7 +1,6 @@ # Angel3 Paginate ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_paginate?include_prereleases) -[![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_paginate) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/paginate/LICENSE) diff --git a/packages/paginate/pubspec.yaml b/packages/paginate/pubspec.yaml index ad4df423..f518ae72 100644 --- a/packages/paginate/pubspec.yaml +++ b/packages/paginate/pubspec.yaml @@ -6,9 +6,9 @@ repository: https://github.com/dukefirehawk/angel/tree/master/packages/paginate environment: sdk: '>=2.12.0 <3.0.0' dependencies: - angel3_framework: ^4.0.0 + angel3_framework: ^4.2.0 dev_dependencies: - angel3_test: ^4.0.0 + angel3_test: ^4.1.0 logging: ^1.0.1 test: ^1.17.8 lints: ^1.0.0 \ No newline at end of file diff --git a/packages/proxy/README.md b/packages/proxy/README.md index c34bc298..1c3ac7a2 100644 --- a/packages/proxy/README.md +++ b/packages/proxy/README.md @@ -1,7 +1,6 @@ # Angel3 Proxy ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_proxy?include_prereleases) -[![version](https://img.shields.io/badge/pub-v4.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_proxy) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/proxy/LICENSE) diff --git a/packages/proxy/pubspec.yaml b/packages/proxy/pubspec.yaml index 59e14432..734cc29d 100644 --- a/packages/proxy/pubspec.yaml +++ b/packages/proxy/pubspec.yaml @@ -11,8 +11,8 @@ dependencies: http_parser: ^4.0.0 path: ^1.8.0 dev_dependencies: - angel3_test: ^4.0.0 - angel3_mock_request: ^2.0.0 + angel3_test: ^4.1.0 + angel3_mock_request: ^2.1.0 logging: ^1.0.1 lints: ^1.0.0 test: ^1.17.7 diff --git a/packages/sembast/CHANGELOG.md b/packages/sembast/CHANGELOG.md index 74594173..2474542a 100644 --- a/packages/sembast/CHANGELOG.md +++ b/packages/sembast/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 3.0.1 + +* Updated README + ## 3.0.0 * Updated linter to `package:lints` diff --git a/packages/sembast/README.md b/packages/sembast/README.md index 88fe3127..74042c6b 100644 --- a/packages/sembast/README.md +++ b/packages/sembast/README.md @@ -1,7 +1,6 @@ -# A Sembast Persistent Service for Angel3 +# Sembast Persistent Service for Angel3 ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_sembast?include_prereleases) -[![version](https://img.shields.io/badge/pub-v2.0.1-brightgreen)](https://pub.dartlang.org/packages/angel3_sembast) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/sembast/LICENSE) @@ -14,7 +13,7 @@ Add the following to your `pubspec.yaml`: ```yaml dependencies: - angel3_sembast: ^2.1.0 + angel3_sembast: ^3.0.0 ``` ## Usage diff --git a/packages/sembast/pubspec.yaml b/packages/sembast/pubspec.yaml index d4926d07..8d29e54f 100644 --- a/packages/sembast/pubspec.yaml +++ b/packages/sembast/pubspec.yaml @@ -1,5 +1,5 @@ name: angel3_sembast -version: 3.0.0 +version: 3.0.1 description: A plugin service that persist data to Sembast for Angel3 framework. homepage: https://angel3-framework.web.app/ repository: https://github.com/dukefirehawk/angel/tree/master/packages/sembast @@ -9,7 +9,7 @@ dependencies: angel3_framework: ^4.2.0 sembast: ^3.1.1 dev_dependencies: - angel3_http_exception: ^3.0.0 + angel3_http_exception: ^3.1.0 logging: ^1.0.1 lints: ^1.0.0 test: ^1.17.8 diff --git a/packages/seo/README.md b/packages/seo/README.md index 7a9d1828..f56ff278 100644 --- a/packages/seo/README.md +++ b/packages/seo/README.md @@ -1,7 +1,6 @@ # Angel3 SEO ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_seo?include_prereleases) -[![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_seo) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/seo/LICENSE) diff --git a/packages/validate/CHANGELOG.md b/packages/validate/CHANGELOG.md index 46c646a1..c7c76137 100644 --- a/packages/validate/CHANGELOG.md +++ b/packages/validate/CHANGELOG.md @@ -3,6 +3,8 @@ ## 4.1.0 * Updated linter to `package:lints` +* Updated `build_runner` to major version 2.1.0 +* Updated `build_web_compilers` to major version 3.2.0 ## 4.0.2 diff --git a/packages/validate/README.md b/packages/validate/README.md index 3a5c5b1e..81e0fd0f 100644 --- a/packages/validate/README.md +++ b/packages/validate/README.md @@ -1,7 +1,6 @@ # Angel3 Request Validator ![Pub Version (including pre-releases)](https://img.shields.io/pub/v/angel3_validate?include_prereleases) -[![version](https://img.shields.io/badge/pub-v4.0.2-brightgreen)](https://pub.dartlang.org/packages/angel3_validate) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/master/packages/validate/LICENSE) diff --git a/packages/validate/pubspec.yaml b/packages/validate/pubspec.yaml index 9eb18ea2..fc250135 100644 --- a/packages/validate/pubspec.yaml +++ b/packages/validate/pubspec.yaml @@ -12,8 +12,8 @@ dependencies: dev_dependencies: #angel3_test: angel3_mock_request: ^2.0.0 - build_runner: ^1.11.1 - build_web_compilers: ^2.12.2 + build_runner: ^2.1.0 + build_web_compilers: ^3.2.0 logging: ^1.0.1 lints: ^1.0.0 test: ^1.17.4 \ No newline at end of file