work 4.0.2 copy "work: ^4.0.2" to clipboard
work: ^4.0.2 copied to clipboard

Encapsulate http business interface protocol, provide limited extension functions, isolate the underlying implementation method of http (currently based on dio).

130/ 160
pub points
524
downloads

We analyzed this package 5 hours ago, and awarded it 130 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
20 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Failed check 0/5 points: Provide a valid README.md

`README.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of README.md in your package should primarily contain characters used in English.

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

359 out of 458 API elements (78.4 %) have documentation comments.

Some symbols that are missing documentation: work, work.BackgroundTransformer.BackgroundTransformer.new, work.BaseOptions.BaseOptions.new, work.BaseOptions.contentType, work.BaseOptions.extra.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

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

Found 15 issues. Showing the first 2:

INFO: 'MultipartFile' is deprecated and shouldn't be used. MultipartFile() is not cloneable when the stream is consumed, use MultipartFile.fromStream() instead.This will be removed in 6.0.0.

lib/src/_convert_native.dart:21:16

   ╷
21 │         return MultipartFile(
   │                ^^^^^^^^^^^^^
   ╵

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

INFO: 'MultipartFile' is deprecated and shouldn't be used. MultipartFile() is not cloneable when the stream is consumed, use MultipartFile.fromStream() instead.This will be removed in 6.0.0.

lib/src/_convert_web.dart:14:14

   ╷
14 │       return MultipartFile(
   │              ^^^^^^^^^^^^^
   ╵

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

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
dio ^5.1.1 5.9.2 5.9.2
http_parser ^4.0.2 4.1.2 4.1.2
meta ^1.8.0 1.18.1 1.18.1
mime ^1.0.3 1.0.6 2.0.0
path ^1.8.2 1.9.1 1.9.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.0 2.13.0
collection - 1.19.1 1.19.1
dio_web_adapter - 2.1.2 2.1.2
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
web - 1.1.1 1.1.1

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

The constraint `^1.0.3` on mime does not support the stable version `2.0.0`.

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

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.10, Dart 3.11.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
130
points
524
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Encapsulate http business interface protocol, provide limited extension functions, isolate the underlying implementation method of http (currently based on dio).

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, http_parser, meta, mime, path

More

Packages that depend on work