webfetch 0.0.17
webfetch: ^0.0.17 copied to clipboard
A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.
We analyzed this package 6 days ago, and awarded it 130 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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
135 out of 150 API elements (90.0 %) have documentation comments.
Some symbols that are missing documentation: webfetch
, webfetch.ArrayBuffer
, webfetch.Client
, webfetch.Client.Client.new
, webfetch.Client.send
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/0 points: WASM compatibility
This package is compatible with runtime wasm
, and will be rewarded additional points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
WARNING: Unnecessary cast.
lib/src/client/client.web.dart:134:39
╷
134 │ _headers!.append('set-cookie', (cookie as js_interop.JSString).toDart);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/client/client.web.dart
WARNING: Unnecessary cast.
lib/src/client/client.web.dart:193:13
╷
193 │ return (value as js_interop.JSString).toDart;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/client/client.web.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
mime |
^1.0.4 |
1.0.6 | 2.0.0 | |
web |
>=0.3.0 <0.6.0 |
0.5.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^1.0.4` on mime does not support the stable version `2.0.0`.
Try running dart pub upgrade --major-versions mime
to update the constraint.
The constraint `>=0.3.0 <0.6.0` on web does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions web
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.22.20
, Dart 3.7.2
.
Check the analysis log for details.