session_shelf 0.2.0 copy "session_shelf: ^0.2.0" to clipboard
session_shelf: ^0.2.0 copied to clipboard

The `session_shelf` is the implementation of `cookiesMiddleware` and `sessionMiddleware` for `shelf`, to store sessions in files or SQL databases as plain or encrypted text.

0
likes
110/ 140
pub points
28%
popularity

We analyzed this package 26 hours ago, and awarded it 110 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: BSD-3-Clause.

failed
Provide documentation
0 / 20trigger folding of the section

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

11 out of 83 API elements (13.3 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Some symbols that are missing documentation: cookies_middleware, cookies_middleware.RequestCookiesExt, file_storage, file_storage.FileStorage, file_storage.FileStorage.FileStorage.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

OK
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:session_shelf/session_shelf.dart that imports:
  • package:session_shelf/storage/sql_storage.dart that imports:
  • package:session_shelf/storage/session_storage.dart that imports:
  • package:session_shelf/session/session.dart that imports:
  • package:session_shelf/middleware/session_middleware.dart that imports:
  • package:session_shelf/middleware/cookies_middleware.dart that imports:
  • dart:io
partial
Pass static analysis
40 / 50trigger folding of the section

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

Found 6 issues. Showing the first 2:

lib/middleware/session_middleware.dart doesn't match the Dart formatter.

To format your files run: dart format .

lib/session/session.dart doesn't match the Dart formatter.

To format your files run: dart format .

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
cryptography ^2.7.0 2.7.0 2.7.0
path ^1.9.0 1.9.0 1.9.0
shelf ^1.4.0 1.4.1 1.4.1
Transitive dependencies
Package Constraint Compatible Latest
async - 2.11.0 2.11.0
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
ffi - 2.1.2 2.1.2
http_parser - 4.0.2 4.0.2
js - 0.6.7 0.7.1
meta - 1.15.0 1.15.0
source_span - 1.10.0 1.10.0
stack_trace - 1.11.1 1.11.1
stream_channel - 2.1.2 2.1.2
string_scanner - 1.2.0 1.2.0
term_glyph - 1.2.1 1.2.1
typed_data - 1.3.2 1.3.2

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.4.0.

Check the analysis log for details.

0
likes
110
pub points
28%
popularity

Publisher

verified publishersunjiao.net

The `session_shelf` is the implementation of `cookiesMiddleware` and `sessionMiddleware` for `shelf`, to store sessions in files or SQL databases as plain or encrypted text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

cryptography, path, shelf

More

Packages that depend on session_shelf