jaguar_cors 3.0.2 copy "jaguar_cors: ^3.0.2" to clipboard
jaguar_cors: ^3.0.2 copied to clipboard

CORS interceptor for Jaguar. Use Cors interceptor and CorsOptions configuration class to add CORS support to Jaguar server applications.

2
likes
100/ 140
pub points
59%
popularity

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

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

0/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis http://jaguar-dart.github.io was unreachable. Make sure that the website is reachable via HEAD requests.

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
10 / 20trigger folding of the section

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

13 out of 15 API elements (86.7 %) have documentation comments.

Some symbols that are missing documentation: jaguar_cors.CorsOptions.allowNonCorsRequests, jaguar_cors.CorsOptions.vary.

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:jaguar_cors/jaguar_cors.dart that imports:
  • package:jaguar_cors/src/jaguar_cors.dart that imports:
  • package:jaguar/jaguar.dart that imports:
  • dart:io
failed
Pass static analysis
30 / 50trigger folding of the section

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

Found 20 issues. Showing the first 2:

WARNING: The operand can't be null, so the condition is always 'false'.

lib/src/jaguar_cors.dart:130:32

    ╷
130 │     if (options.allowedHeaders == null) {
    │                                ^^^^^^^
    ╵

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

INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.

lib/src/jaguar_cors.dart:102:9

    ╷
102 │     if (options.allowedMethods.length == 0) {
    │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/jaguar_cors.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
jaguar ^3.0.12 3.1.3 3.1.3
Transitive dependencies
Package Constraint Compatible Latest
auth_header - 3.0.1 3.0.1
collection - 1.18.0 1.18.0
crypto - 3.0.3 3.0.3
http_server - 1.0.0 1.0.0
jaguar_common - 3.0.0 3.0.0
logging - 1.2.0 1.2.0
meta - 1.14.0 1.14.0
mime - 1.0.5 1.0.5
path - 1.9.0 1.9.0
path_tree - 3.0.0 3.0.0
stack_trace - 1.11.1 1.11.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.3.3.

Check the analysis log for details.

2
likes
100
pub points
59%
popularity

Publisher

unverified uploader

CORS interceptor for Jaguar. Use Cors interceptor and CorsOptions configuration class to add CORS support to Jaguar server applications.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

jaguar

More

Packages that depend on jaguar_cors