service_worker 0.4.0 copy "service_worker: ^0.4.0" to clipboard
service_worker: ^0.4.0 copied to clipboard

Platformweb

JavaScript bindings for the Service Worker API.

25
likes
110/ 160
pub points
3.67k
downloads

We analyzed this package 4 days ago, and awarded it 110 pub points (of a possible 160):

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

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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

OUT: Documenting service_worker... Discovering libraries... Linking elements... Precaching local docs for 141701 elements... Initialized dartdoc with 57 libraries Generating docs for library worker.dart from package:service_worker/worker.dart... Generating docs for library window.dart from package:service_worker/window.dart... Generating docs for library service_worker.dart from package:service_worker/service_worker.dart... Documented 3 public libraries in 34.8 seconds ERR: warning: ambiguous reexport of service_worker_api.ServiceWorkerRegistration, canonicalization candidates: (service_worker, service_worker, service_worker.window) -> service_worker.window (confide[...] from service_worker_api.ServiceWorkerRegistration: (file:///tmp/pana_SDXSYB/lib/src/service_worker_api.dart:447:7) service_worker: 0.2100 - (_Reason.deprecated (-1.000), _Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) service_worker: 1.210 - (_Reason.packageName (+1.000), _Reason.longName (+0.01000), _Reason.sharedNamePart (+0.2000)) service_worker.window: 1.220 - (_Reason.packageName (+1.000), _Reason.longName (+0.02000), _Reason.sharedNamePart (+0.2000)) Use {@canonicalFor service_worker_api.ServiceWorkerRegistration} in the desired library's documentation to resolve the ambiguity and/or override dartdoc's decision, or structure your package so the reexport is less ambiguous. The symbol will still be referenced in all candidates -- this only controls the location where it will be written and which library [91 more lines]

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Web

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util
Package not compatible with platform iOS

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util
Package not compatible with platform Windows

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util
Package not compatible with platform Linux

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util
Package not compatible with platform macOS

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:service_worker/service_worker.dart that imports:
  • package:service_worker/src/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/service_worker_api.dart that imports:
  • package:service_worker/src/js_facade/promise.dart that imports:
  • package:js/js.dart that imports:
  • dart:js_util

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.dev/web/wasm for details.

OK
Pass static analysis
50 / 50trigger folding of the section

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

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

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

Package Constraint Compatible Latest
js >=0.6.1 <2.0.0 0.7.1 0.7.1

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 8 errors:

  • UNDEFINED_ANNOTATION - lib/src/js_facade/isomorphic_fetch.dart:54:1 - Undefined name 'staticInterop' used as an annotation.
  • UNDEFINED_ANNOTATION - lib/src/js_facade/isomorphic_fetch.dart:80:1 - Undefined name 'staticInterop' used as an annotation.
  • UNDEFINED_ANNOTATION - lib/src/js_facade/isomorphic_fetch.dart:88:1 - Undefined name 'staticInterop' used as an annotation.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.

25
likes
110
points
3.67k
downloads

Publisher

unverified uploader

Weekly Downloads

JavaScript bindings for the Service Worker API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

js

More

Packages that depend on service_worker