chris48s
2c0737592b
migrate examples to openApi part 8; affects [ubuntu uptimerobot vaadin vcpkg visualstudiomarketplace wheelmap] ( #9463 )
...
* migrate some services from examples to openApi
* improve and de-dupe service titles
2023-08-31 20:31:11 +00:00
dependabot[bot]
b9d96755ec
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 ( #9357 )
...
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* reformat all the things (prettier 3)
* update tests to await calls to prettier.format()
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev >
2023-07-10 09:27:51 +00:00
chris48s
14892e3943
Implement a pattern for dealing with upstream APIs which are slow on the first hit; affects [endpoint] ( #9233 )
...
* allow serviceData to override cacheSeconds with a longer value
* prevent [endpoint] json cacheSeconds property exceeding service default
* allow ShieldsRuntimeError to specify a cacheSeconds property
By default error responses use the cacheLength of
the service class throwing the error.
This allows error to tell the handling layer the maxAge
that should be set on the error badge response.
* add customExceptions param
This
1. allows us to specify custom properties to pass to the exception
constructor if we throw any of the standard got errors
e.g: `ETIMEDOUT`, `ECONNRESET`, etc
2. uses a custom `cacheSeconds` property (if set on the exception)
to set the response maxAge
* customExceptions --> systemErrors
* errorMessages --> httpErrors
2023-06-13 21:08:43 +01:00
chris48s
c73072deed
Remove requestOptions2GotOptions compatibility layer ( #7270 )
...
* gzip --> decompress
* strictSSL --> https.rejectUnauthorized
* auth --> username/password
* qs --> searchParams
* fix base service auth docs
* completely remove requestOptions2GotOptions layer
* update the docs
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-11-15 19:56:08 +00:00
Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
Jabbar Memon
4d712e8386
Completed [twitch twitter ubuntu uptimerobot vaadindirectory] from static classes to props ( #5660 )
...
Co-authored-by: Jabbar Memon <jabbar@zoop.one >
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-10-03 21:26:33 +00:00
chris48s
504015c0ba
migrate hapi/joi to joi ( #5624 )
...
* update joi + joi-extension-semver
* @hapi/joi --> joi
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-09-30 17:51:02 +00:00
Caleb Cartwright
13d1cbe0f9
tests: fix service test for ubuntu ( #4174 )
2019-10-14 18:13:10 +02:00
Paul Melnikow
aa135d370f
Auto-annotate live and mock tests ( #3661 )
...
Close #2555
2019-07-07 17:06:01 -04:00
chris48s
8621fe42d7
Upgrade Joi ( #3505 )
...
* upgrade joi
* find & replace ALL THE THINGS
* update related deps
2019-06-02 21:59:55 +01:00
Ville Skyttä
742f287f06
Move optional path components to the end for [Debian] and [Ubuntu] ( #3409 )
...
Refs https://github.com/badges/shields/pull/3372
2019-05-03 17:05:57 -04:00
Ville Skyttä
26852eece9
Add [Ubuntu] package version support ( #3398 )
...
* Add [Ubuntu] package version support
https://api.launchpad.net/1.0/
* Mark 400 responses as series not found
* Extract API call into separate fetch function
2019-05-01 11:24:21 -05:00