webfetch 0.0.16 copy "webfetch: ^0.0.16" to clipboard
webfetch: ^0.0.16 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.

3
likes
130/ 140
pub points
43%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

OK
Provide documentation
20 / 20trigger folding of the section

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

135 out of 151 API elements (89.4 %) have documentation comments.

Some symbols that are missing documentation: webfetch, webfetch.ArrayBuffer, webfetch.Client, webfetch.Client.Client, webfetch.Client.send.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS
  • ✓ Web
partial
Pass static analysis
40 / 50trigger folding of the section

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

INFO: 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

INFO: 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

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
mime ^1.0.4 1.0.5 1.0.5
web >=0.3.0 <0.6.0 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.3, Dart 3.3.4.

Check the analysis log for details.

3
likes
130
pub points
43%
popularity

Publisher

verified publisherodroe.com

A Dart implementation of the Web Fetch API that allows you to make requests and process results just like using fetch in a browser.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

mime, web

More

Packages that depend on webfetch