eventsource2 0.3.1
eventsource2: ^0.3.1 copied to clipboard
A null-safe client and server implementation of Server-Sent Events.
We analyzed this package 12 days ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
Repository has no matching pubspec.yaml with name: eventsource2.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: eventsource2, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
17 out of 36 API elements (47.2 %) have documentation comments.
Some symbols that are missing documentation: eventsource, eventsource.EventSource.client, eventsource.EventSource.headers, eventsource.EventSource.onError, eventsource.EventSource.onMessage.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add 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:eventsource2/io_server.dartthat imports:package:eventsource2/src/encoder.dartthat imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 13 issues. Showing the first 2:
INFO: Missing type annotation.
lib/eventsource.dart:61:38
╷
61 │ static Future<EventSource> connect(url,
│ ^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/eventsource.dart
INFO: Using a colon as the separator before a default value is deprecated and will not be supported in language version 3.0 and later.
lib/io_server.dart:14:20
╷
14 │ {String channel: "", bool gzip: false}) {
│ ^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/io_server.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
>=1.4.1 <2.0.0 |
1.19.1 | 1.19.1 | |
http |
>=0.11.0 <0.14.0 |
0.13.6 | 1.6.0 | |
http_parser |
>=3.0.0 <5.0.0 |
4.1.2 | 4.1.2 | |
logging |
^1.0.2 |
1.3.0 | 1.3.0 | |
sync |
^0.3.0 |
0.3.0 | 0.3.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
async |
- | 2.13.1 | 2.13.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `>=0.11.0 <0.14.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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.19, Dart 3.13.1.
Check the analysis log for details.