chris48s
0bc512707f
migrate examples to openApi part 7; affects [reuse sourceforge sourcegraph spack stackexchange testspace treeware twitch] ( #9464 )
...
* migrate some services from examples to openApi
* capitalize all words in sourceforge titles
2023-09-04 11:02:05 +01: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
ae018cdddc
conform to standard js quote rules ( #8395 )
...
* restore standardjs quote behaviour
* conform to standard js quote rules
2022-09-12 17:22:12 +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
nixxquality
70947e1ff0
[TwitchExtensionVersion] New badge ( #6900 )
...
* Create Twitch Extension Version badge
* skip tests when there's no token
* use renderVersionBadge
* improve joi schema
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-08-19 16:13:29 +00:00
Pierre-Yves B
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
chris48s
830bb15b58
increase max-age for download and social badges ( #6567 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-06-02 16:28:00 +00:00
Pierre-Yves B
2967c6793b
Make [Twitch] a social badge ( #6183 )
2021-02-14 19:41:02 +00: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
Pierre-Yves B
1639417a55
Fix [Twitch] Client-ID header ( #5217 )
2020-06-17 19:18:25 +02:00
chris48s
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
Pierre-Yves B
8ef54f6f38
Refactor checkShouldSkip, affects [Twitch SymfonyInsight Wheelmap] ( #4807 )
2020-04-02 21:03:22 +02:00
Pierre-Yves B
2de4c55706
Fix Twitch authorization ( #4781 )
2020-03-16 21:37:46 +00:00
chris48s
c762d971b4
upgrade Joi and related packages ( #4060 )
...
* update dependencies
* (core) children --> keys
* (core) fix/update BaseService validate
* (core) update error messages in tests
* (core) only Joi.attempt if we've got a Joi schema
* (core) allow 'expected' to be a regex
* (services) pass 2 schema to .alternatives()
* (services) functions --> Joi schema
* (services) update expected error message
* (services) explicit check for color: undefined
* re-bump joi
* (services) wrap another regex
* (core/services) remove use of array arguments
* (core/services) when --> conditional
* (services) remove more array arguments
* fix spelling in var name
* DRY up sonar helper
2019-09-23 17:36:56 +01:00
Andy Li
4b9053d2d5
add [twitch] user status badge ( #3683 )
...
* add /twitch/status/:user badge
* update comments
* use a proper schema for the Twitch API calls
* use a token to make Twitch api calls
* fix handling of rate-limit error and bad token error
* [twitch] get a token as soon as creating a Twitch service
* [twitch] start both requests to users and stream before awaiting
* [twitch] set a timeout to replace the token before it expires
* [twitch] use authHelper
* [twitch] skip tests when no credentials
* [twitch] add one more status test
* twitch: do not check whether a user exists
2019-09-09 16:41:32 -05:00