stripe_js 2.0.1 copy "stripe_js: ^2.0.1" to clipboard
stripe_js: ^2.0.1 copied to clipboard

outdated

Stripe.js bindings for dart

1
likes
60/ 160
pub points
50.8k
downloads

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

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

Failed check 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 50 to 180 characters to describe the package, what it does, and its target use case.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

341 out of 933 API elements (36.5 %) have documentation comments.

Some symbols that are missing documentation: stripe_api, stripe_api.$expanded, stripe_api.$id, stripe_api.AuBecsDebit.AuBecsDebit.fromJson, stripe_api.AuBecsDebit.AuBecsDebit.new.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:stripe_js/stripe_js.dart that imports:
  • package:stripe_js/src/loader/stripe_loader.dart that imports:
  • dart:js
Package not compatible with platform iOS

Because:

  • package:stripe_js/stripe_js.dart that imports:
  • package:stripe_js/src/loader/stripe_loader.dart that imports:
  • dart:js
Package not compatible with platform Windows

Because:

  • package:stripe_js/stripe_js.dart that imports:
  • package:stripe_js/src/loader/stripe_loader.dart that imports:
  • dart:js
Package not compatible with platform Linux

Because:

  • package:stripe_js/stripe_js.dart that imports:
  • package:stripe_js/src/loader/stripe_loader.dart that imports:
  • dart:js
Package not compatible with platform macOS

Because:

  • package:stripe_js/stripe_js.dart that imports:
  • package:stripe_js/src/loader/stripe_loader.dart that imports:
  • dart:js

Failed check 0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

Failed report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 903 issues. Showing the first 2:

ERROR: Undefined class 'PaymentIntent'.

lib/src/api/setup_intents/payment_intent.freezed.dart:17:1

   ╷
17 │ PaymentIntent _$PaymentIntentFromJson(Map<String, dynamic> json) {
   │ ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/api/setup_intents/payment_intent.freezed.dart

ERROR: Undefined name 'JsonKey' used as an annotation.

lib/src/api/setup_intents/payment_intent.freezed.dart:41:3

   ╷
41 │   @JsonKey(name: "amount_capturable")
   │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/api/setup_intents/payment_intent.freezed.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
freezed_annotation ^2.2.0 2.4.4 3.0.0
js ^0.6.3 0.6.7 0.7.2 Discontinued
Transitive dependencies
Package Constraint Compatible Latest Notes
collection - 1.19.1 1.19.1
json_annotation - 4.9.0 4.9.0
meta - 1.16.0 1.16.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 3 issues. Showing the first 2:

The constraint `^2.2.0` on freezed_annotation does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions freezed_annotation to update the constraint.

The constraint `^0.6.3` on js does not support the stable version `0.7.0`.

Try running dart pub upgrade --major-versions js to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 399 errors:

  • UNDEFINED_CLASS - lib/src/api/setup_intents/payment_intent.freezed.dart:17:1 - Undefined class 'PaymentIntent'.
  • UNDEFINED_ANNOTATION - lib/src/api/setup_intents/payment_intent.freezed.dart:41:3 - Undefined name 'JsonKey' used as an annotation.
  • UNDEFINED_ANNOTATION - lib/src/api/setup_intents/payment_intent.freezed.dart:45:3 - Undefined name 'JsonKey' 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.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
60
points
50.8k
downloads

Publisher

verified publisherflutterstripe.io

Weekly Downloads

Stripe.js bindings for dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

freezed_annotation, js

More

Packages that depend on stripe_js