jaguar_cors 3.0.2
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.
We analyzed this package 4 days ago, and awarded it 125 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
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("3.0.2").
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
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/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:jaguar_cors/jaguar_cors.dartthat imports:package:jaguar_cors/src/jaguar_cors.dartthat imports:package:jaguar/jaguar.dartthat imports:dart:io
This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.
See https://dart.cn/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 21 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
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
jaguar |
^3.0.12 |
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.6 | 3.0.6 | |
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.17.0 | 1.17.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.0, Dart 3.9.4.
Check the analysis log for details.