badgen.net icon indicating copy to clipboard operation
badgen.net copied to clipboard

Fix issue when loading platform/sdk info from pub.dev

Open d-markey opened this issue 1 year ago • 2 comments

The response from pub.dev's api/packages/${pck}/metrics API has changed. derivedTags is now available from $.scorecard.panaReport.derivedTags

d-markey avatar Aug 05 '22 13:08 d-markey

@d-markey is attempting to deploy a commit to the Badgen Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 05 '22 13:08 vercel[bot]

Example of broken badges:

SDK Platforms

Check the output of https://pub.dev/api/packages/squadron/metrics:

{
  "score": {
    ...
  },
  "scorecard": {
    "packageName": "squadron",
    "packageVersion": "4.2.0",
    "runtimeVersion": "2022.07.05",
    "updated": "2022-08-03T21:05:21.829067Z",
    "packageCreated": "2021-09-25T17:14:56.549125Z",
    "packageVersionCreated": "2022-08-02T23:36:54.078196Z",
    "flags": ["latest-stable"],
    "dartdocReport": {
      ...
    },
    "panaReport": {
      "timestamp": "2022-08-03T21:05:21.779538Z",
      "panaRuntimeInfo": {
        ...
      },
      "reportStatus": "success",
      "derivedTags": [
        "sdk:dart",
        "sdk:flutter",
        "platform:android",
        "platform:ios",
        "platform:windows",
        "platform:linux",
        "platform:macos",
        "platform:web",
        "runtime:native-aot",
        "runtime:native-jit",
        "runtime:web",
        "is:null-safe",
        "license:mit",
        "license:fsf-libre",
        "license:osi-approved"
      ],
      ...
    }
  }
}

d-markey avatar Aug 05 '22 13:08 d-markey

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
badgen.net ✅ Ready (Inspect) Visit Preview Aug 14, 2022 at 7:35AM (UTC)

vercel[bot] avatar Aug 14 '22 07:08 vercel[bot]

@d-markey Thanks for the fix!

amio avatar Aug 16 '22 00:08 amio