jaguar_cors 3.0.1
jaguar_cors: ^3.0.1 copied to clipboard
CORS interceptor for Jaguar. Use Cors interceptor and CorsOptions configuration class to add CORS support to Jaguar server applications.
We analyzed this package 40 hours ago, and awarded it 100 pub points (of a possible 160):
10/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.
10/10 points: 20% or more of the public API has dartdoc comments
13 out of 16 API elements (81.3 %) have documentation comments.
Some symbols that are missing documentation: jaguar_cors.CorsOptions.CorsOptions.new, 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.
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.dartthat imports:package:jaguar_cors/src/jaguar_cors.dartthat imports:package:jaguar/jaguar.dartthat imports:dart:io
0/50 points: code has no errors, warnings, lints, or formatting issues
Found 24 issues. Showing the first 2:
ERROR: The type 'RouteInterceptor' is declared with 0 type parameters, but 1 type arguments were given.
lib/src/jaguar_cors.dart:13:1
╷
13 │ RouteInterceptor<void> cors(CorsOptions options) =>
│ ^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/jaguar_cors.dart
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
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
jaguar |
^3.0.6 |
3.1.4 | 3.1.4 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
auth_header |
- | 3.0.1 | 3.0.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.7 | 3.0.7 | |
http_server |
- | 1.0.0 | 1.0.0 | Discontinued |
jaguar_common |
- | 3.0.0 | 3.0.0 | |
logging |
- | 1.3.0 | 1.3.0 | |
meta |
- | 1.18.0 | 1.18.0 | |
mime |
- | 1.0.6 | 2.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_tree |
- | 3.0.0 | 3.0.0 | |
stack_trace |
- | 1.12.1 | 1.12.1 | |
typed_data |
- | 1.4.0 | 1.4.0 |
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
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.8, Dart 3.10.7.
Check the analysis log for details.