uhst 2.0.0 copy "uhst: ^2.0.0" to clipboard
uhst: ^2.0.0 copied to clipboard

outdated

User Hosted Secure Transmission (uhst) for to: - send messages from client and listen messages broadcasted from host - broadcast messages by host - listen messages from multiple clients by host

3
likes
65/ 160
pub points
0%
popularity

We analyzed this package 2 days ago, and awarded it 65 pub points (of a possible 160):

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

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

0/5 points: Provide a valid README.md

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

README.md:16:16

   ╷
16 │ <p>You can see <a href="http://docs.uhst.io/uhst-client-flutter/">an implemented example</a> and source for it <a href="https://github.com/uhst/uhst-client-flutter/tree/next/example">on GitHub</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.

OK
Provide documentation
20 / 20trigger folding of the section

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

27 out of 102 API elements (26.5 %) have documentation comments.

Some symbols that are missing documentation: uhst, uhst.HostIdAlreadyInUse.exceptionName, uhst.HostIdAlreadyInUse.message, uhst.Message, uhst.Message.Message.

10/10 points: Package has an example

failed
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:uhst/uhst.dart that imports:
  • package:uhst/src/uhst.dart that imports:
  • package:uhst/src/sockets/relay_socket_provider.dart that imports:
  • package:uhst/src/sockets/relay_socket.dart that imports:
  • package:uhst/src/sockets/socket_subsriptions.dart that imports:
  • package:uhst/src/sockets/socket_helper.dart that imports:
  • package:uhst/src/contracts/uhst_event_handlers.dart that imports:
  • package:uhst/src/contracts/uhst_socket.dart that imports:
  • package:universal_html/html.dart that imports:
  • package:universal_html/src/_sdk/html.dart that imports:
  • package:universal_html/src/_sdk_html_additions.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 37 issues. Showing the first 2:

ERROR: The method 'NullThrownError' isn't defined for the type 'SocketHelper'.

lib/src/sockets/socket_helper.dart:25:31

   ╷
25 │     if (vtoken == null) throw NullThrownError();
   │                               ^^^^^^^^^^^^^^^
   ╵

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

WARNING: The '?' is unnecessary because 'dynamic' is nullable without it.

lib/src/models/relay_message.dart:12:35

   ╷
12 │   Future<void> setPayload({dynamic? message}) async {
   │                                   ^
   ╵

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

failed
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
http ^0.13.0 0.13.6 1.2.2
universal_html ^2.0.4 2.2.4 2.2.4
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
characters - 1.3.0 1.3.0
charcode - 1.3.1 1.3.1
collection - 1.18.0 1.19.0
csslib - 1.0.0 1.0.0
html - 0.15.4 0.15.4
http_parser - 4.0.2 4.1.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.15.0
path - 1.9.0 1.9.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
string_scanner - 1.3.0 1.3.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2
universal_io - 2.2.2 2.2.2
vector_math - 2.1.4 2.1.4

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.13.0` on http does not support the stable version `1.0.0`.

Try running dart pub upgrade --major-versions http to update the constraint.

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 1 error:

  • UNDEFINED_METHOD - lib/src/sockets/socket_helper.dart:25:31 - The method 'NullThrownError' isn't defined for the type 'SocketHelper'.

Run flutter pub downgrade and then flutter 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.22.12, Flutter 3.24.1, Dart 3.5.1.

Check the analysis log for details.

3
likes
65
pub points
0%
popularity

Publisher

verified publisheruhst.io

User Hosted Secure Transmission (uhst) for to: - send messages from client and listen messages broadcasted from host - broadcast messages by host - listen messages from multiple clients by host

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, universal_html

More

Packages that depend on uhst