fusionauth_dart_client 1.48.0
fusionauth_dart_client: ^1.48.0 copied to clipboard
A FusionAuth client library written in Dart.
We analyzed this package 6 days ago, and awarded it 70 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.
0/5 points: Provide a valid README.md
Links in `README.md` should be secure. 1 image link is insecure.
README.md:1:28
╷
1 │ <h1>FusionAuth Dart Client <img src="http://img.shields.io/badge/semver-2.0.0-brightgreen.svg?style=flat-square" alt="semver 2.0.0 compliant" /></h1>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
Use https URLs instead.
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("1.48.0").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: Apache-2.0.
10/10 points: 20% or more of the public API has dartdoc comments
962 out of 4476 API elements (21.5 %) have documentation comments.
Some symbols that are missing documentation: fusionauth_dart_client.APIKey.APIKey.fromJson, fusionauth_dart_client.APIKey.APIKey.new, fusionauth_dart_client.APIKey.id, fusionauth_dart_client.APIKey.insertInstant, fusionauth_dart_client.APIKey.ipAccessControlListId.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:fusionauth_dart_client/fusionauth_dart_client.dartthat imports:package:fusionauth_dart_client/src/FusionAuthRESTClient.dartthat imports:dart:io
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 3060 issues. Showing the first 2:
ERROR: Non-nullable instance field 'credentials' must be initialized.
lib/src/FusionAuthClient.dart:38:3
╷
38 │ FusionAuthClient(this.apiKey, this.host, this.tenantId);
│ ^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/FusionAuthClient.dart
ERROR: A value of type 'Future
lib/src/FusionAuthClient.dart:72:12
╷
72 │ return _start<ActionResponse, Errors>()
│ ┌────────────^
73 │ │ .withUri('/api/user/action')
74 │ │ .withJSONBody(request)
75 │ │ .withMethod('POST')
76 │ │ .withResponseHandler(
77 │ │ defaultResponseHandlerBuilder((d) => ActionResponse.fromJson(d)))
78 │ │ .go();
│ └─────────────^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/FusionAuthClient.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
json_annotation |
^4.1.0 |
4.9.0 | 4.9.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
meta |
- | 1.17.0 | 1.17.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 2208 errors:
NOT_INITIALIZED_NON_NULLABLE_INSTANCE_FIELD-lib/src/FusionAuthClient.dart:38:3- Non-nullable instance field 'credentials' must be initialized.RETURN_OF_INVALID_TYPE-lib/src/FusionAuthClient.dart:72:12- A value of type 'Future<ClientResponse<dynamic, dynamic>>' can't be returned from the method 'actionUser' because it has a return type of 'Future<ClientResponse<ActionResponse, Errors>>'.RETURN_OF_INVALID_TYPE-lib/src/FusionAuthClient.dart:86:12- A value of type 'Future<ClientResponse<dynamic, dynamic>>' can't be returned from the method 'activateReactor' because it has a return type of 'Future<ClientResponse<void, Errors>>'.
Run dart pub downgrade and then dart analyze to reproduce the above problem.
You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.23.3, Dart 3.10.4.
Check the analysis log for details.