service_worker 0.2.4 icon indicating copy to clipboard operation
service_worker: ^0.2.4 copied to clipboard

Platformweb

JavaScript bindings for the Service Worker API.

19
likes
70/ 130
pub points
75%
popularity

We analyzed this package 30 hours ago, and awarded it 70 pub points (of a possible 130):

icon indicating section status
Follow Dart file conventions
10 / 20icon to trigger 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

icon indicating section status
Provide documentation
0 / 20icon to trigger folding of the section

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

0/10 points: Failed to run dartdoc

  • dartdoc failed with:
exitCode: 255
stdout: [2022-08-05T12:39:56.960439] Starting...
Documenting service_worker...
Initialized dartdoc with 48 libraries
Generating docs for library service_worker from package:service_worker/worker.dart...
Generating docs for library service_worker.window from package:service_worker/window.dart...
Generating docs for library service_worker from package:service_worker/service_worker.dart...
Documented 3 public libraries in 33.8 seconds

stderr:   warning: ambiguous reexport of service_worker_api.PushManager, canonicalization candidates: (service_worker, service_worker, service_worker.window) -> service_worker.window (confidence 0.01000)
    from service_worker_api.PushManager: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/src/service_worker_api.dart:528:7)
        service_worker: -0.7900 - is deprecated (-1.000), name is long (+0.01000), element location shares parts with name (+0.2000)
        service_worker: 0.2100 - name is long (+0.01000), element location shares parts with name (+0.2000)
        service_worker.window: 0.2200 - name is long (+0.02000), element location shares parts with name (+0.2000)
            Use {@canonicalFor service_worker_api.PushManager} 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 will be displayed in navigation for the relevant pages. The
            flag --ambiguous-reexport-scorer-min-confidence allows you to set the
            threshold at which this warning will appear.
  warning: ambiguous reexport of service_worker_api.ShowNotificationOptions, canonicalization candidates: (service_worker, service_worker, service_worker.window) -> service_worker.window (confidence 0.01000)
    from service_worker_api.ShowNotificationOptions: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/src/js_facade/service_worker_api.dart:503:7)
        service_worker: -0.8233 - is deprecated (-1.000), name is long (+0.01000), element location shares parts with name (+0.1667)
        service_worker: 0.1767 - name is long (+0.01000), element location shares parts with name (+0.1667)
        service_worker.window: 0.1867 - name is long (+0.02000), element location shares parts with name (+0.1667)
  warning: ambiguous reexport of service_worker_api.ServiceWorkerRegistration, canonicalization candidates: (service_worker, service_worker, service_worker.window) -> service_worker.window (confidence 0.01000)
    from service_worker_api.ServiceWorkerRegistration: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/src/service_worker_api.dart:438:7)
[...]
    from service_worker.window: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/window.dart:1:9)
  warning: unresolved doc reference [300, 100, 400]
    from service_worker.window.ShowNotificationOptions.vibrate: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/src/js_facade/service_worker_api.dart:562:26)
  error: failed to write file at: service_worker/service_worker-library.html
    for symbol service_worker: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/service_worker.dart:4:9)
    conflicting with file already generated by service_worker: (file:///tmp/pub-dartlang-dartdocWPYYWA/pkg/lib/worker.dart:2:9)
            Dartdoc generates a path and filename to write to for each symbol.
            service_worker conflicts with another symbol in the generated
            path, and therefore can not be written out.  Changing the name,
            library name, or class name (if appropriate) of one of the
            conflicting items can resolve the conflict.   Alternatively, use the
            @nodoc tag in one symbol's documentation comments to hide it.
Found 12 warnings and 1 error.
Unhandled exception:
encountered 1 errors
#0      Dartdoc.generateDocs (package:dartdoc/src/dartdoc.dart:231:9)
<asynchronous suspension>
#1      main (file:///project/pkg/pub_dartdoc/bin/pub_dartdoc.dart:32:19)
<asynchronous suspension>


icon indicating section status
Platform support
20 / 20icon to trigger 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
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
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
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
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
icon indicating section status
Pass static analysis
20 / 30icon to trigger folding of the section

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

Found 29 issues. Showing the first 2:

INFO: Provide a deprecation message, via @Deprecated("message").

lib/service_worker.dart:3:1

  ╷
3 │ @deprecated
  │ ^^^^^^^^^^^
  ╵

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

INFO: Provide a deprecation message, via @Deprecated("message").

lib/service_worker.dart:11:1

   ╷
11 │ @deprecated
   │ ^^^^^^^^^^^
   ╵

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

icon indicating section status
Support up-to-date dependencies
20 / 20icon to trigger folding of the section

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

PackageConstraintCompatibleLatest
js^0.6.10.6.40.6.4

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

icon indicating section status
Support sound null safety
0 / 20icon to trigger folding of the section

0/20 points: Package does not opt in to null safety.

Package language version (indicated by the sdk constraint `>=2.0.0 <3.0.0`) is less than 2.12.

Consider migrating.

Analysed with Pana 0.21.14, Dart 2.17.5.

19
likes
70
pub points
75%
popularity

Publisher

unverified uploader

JavaScript bindings for the Service Worker API.

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

js

More

Packages that depend on service_worker