fresh_grpc 1.0.0 copy "fresh_grpc: ^1.0.0" to clipboard
fresh_grpc: ^1.0.0 copied to clipboard

An grpc link for token refresh. Built on top of package:grpc and manages authentication tokens transparently.

0
likes
105/ 140
pub points
28%
popularity

We analyzed this package 7 days ago, and awarded it 105 pub points (of a possible 140):

failed
Follow Dart file conventions
25 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 1 link is insecure.

README.md:25:49

   ╷
25 │ <p>Please file feature requests and bugs at the <a href="http://example.com/issues/replaceme">issue tracker</a>.</p>
   │                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MIT.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

30 out of 38 API elements (78.9 %) have documentation comments.

Some symbols that are missing documentation: fresh_grpc, fresh_grpc.FreshGrpc.authenticate, fresh_grpc.FreshGrpc.oAuth2, fresh_grpc.FreshGrpc.obtainAccessCredentials, fresh_grpc.FreshGrpc.toCallOptions.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
Platform support
20 / 20trigger folding of the section

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:fresh_grpc/fresh_grpc.dart that imports:
  • package:fresh_grpc/src/fresh.dart that imports:
  • package:grpc/grpc.dart that imports:
  • package:grpc/src/shared/streams.dart that imports:
  • package:http2/transport.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

WARNING: This 'onError' handler must return a value assignable to 'T', but ends without returning a value.

lib/src/fresh.dart:115:27

    ╷
115 │           .catchError((_) {})
    │                           ^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/fresh.dart

INFO: The null check operator shouldn't be used on a variable whose type is a potentially nullable type parameter.

lib/src/fresh.dart:106:37

    ╷
106 │         ? _tokenHeader!(_accessToken!)
    │                                     ^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/fresh.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
fresh ^0.4.1 0.4.2 0.4.2
grpc ^3.2.0 3.2.4 3.2.4
http >=0.13.0 <2.0.0 1.2.1 1.2.1
http2 ^2.2.0 2.3.0 2.3.0
meta ^1.3.0 1.12.0 1.12.0
retry ^3.1.0 3.1.2 3.1.2
Transitive dependencies
Package Constraint Compatible Latest
archive - 3.4.10 3.4.10
args - 2.4.2 2.4.2
async - 2.11.0 2.11.0
clock - 1.1.1 1.1.1
collection - 1.18.0 1.18.0
convert - 3.1.1 3.1.1
crypto - 3.0.3 3.0.3
fixnum - 1.1.0 1.1.0
google_identity_services_web - 0.3.1+1 0.3.1+1
googleapis_auth - 1.5.1 1.5.1
http_parser - 4.0.2 4.0.2
js - 0.7.1 0.7.1
path - 1.9.0 1.9.0
pointycastle - 3.7.4 3.7.4
protobuf - 3.1.0 3.1.0
source_span - 1.10.0 1.10.0
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
web - 0.5.1 0.5.1

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

Analyzed with Pana 0.22.2, Dart 3.3.0.

Check the analysis log for details.

0
likes
105
pub points
28%
popularity

Publisher

unverified uploader

An grpc link for token refresh. Built on top of package:grpc and manages authentication tokens transparently.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

fresh, grpc, http, http2, meta, retry

More

Packages that depend on fresh_grpc