* Add snapstore version badge
Fixesbadges/shields#9103
* Add basic test for Snapcraft version
* Handle snapstore-version - package not found
* Add test for invalid snapcraft package
* Remove redundent SnapstoreBase class
not needed as there is no auth
* Remove logo from default
The project convention is using namedLogo by default only for social badges.
This commit removes the default logo usage as this badge is not in the social category.
* Rename snapstore to snapcraft
Keep 1 convention for the snapcraft badge, use only snapcraft and ditch snapstore.
* Fix SnapcraftVersion schema
* Use renderVersionBadge
Replace the costume render in SnapcraftVersion with renderVersionBadge
* Rename folder from snapstore to snapcraft
* Add track & risk path parameters for SnapcraftVersion
enhancing control and clarity
* Add architecture query parameter to SnapcraftVersion
Added architecture query parameter: The snapcraft-version.service.js file now accepts an optional arch query parameter to specify the desired architecture for the Snap package. This defaults to amd64 if not provided.
If an unsupported architecture is specified in the query parameter, a NotFound error is thrown with a specific message indicating that the requested architecture is not found.
The snapcraft-version.tester.js file is updated to include a new test case that verifies the behavior when using the arch query parameter and also includes a test case for handling an invalid architecture.
* move filter logic into a transform function
* Fix filter logic
The goal here was to filter by all conditions with logic and.
Before this fix the only the logic of the last filter is used.
* Add tests for SnapcraftVersion.transform