Pierre-Yves B and GitHub
23c0406bed
Migrate from CommonJS to ESM ( #6651 )
2021-07-09 12:53:55 +01:00
459cf92cd4
catch URL parse error in [endpoint] badge ( #6214 )
...
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2021-02-25 17:45:57 +00:00
Paul Melnikow and GitHub
ac3d0b5dfc
Support gzipped endpoint URLs ( #5869 )
...
Fix #5868
2020-11-28 23:17:58 -05:00
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 and GitHub
614daef08f
convert some service classes to static props, run [EclipseMarketplace Ecologi ElmPackage Endpoint] ( #5544 )
...
* refactor(eclipsemarketplace): convert to static props
* refactor(ecologi): convert to static props
* refactor(elmpackage): convert to static props
* refactor(endpoint): convert to static props
2020-09-15 11:46:27 +00:00
88ea1f9149
Fix invalid Cache-Control header, run [Endpoint] ( #5139 )
...
* Fix invalid Cache-Control header
* Update endpoint.tester.js
* Update legacy-request-handler.spec.js
Co-authored-by: chris48s <chris48s@users.noreply.github.com >
2020-05-31 14:04:37 +01:00
Caleb Cartwright and GitHub
c584ef85e3
tests: fix endpoint mocked cache tests ( #5056 )
2020-05-06 19:55:51 -05:00
chris48s and GitHub
13d75e0607
upgrade to prettier 2 ( #5051 )
...
* arrowParens: avoid
* remove trailingComma setting
2020-05-05 21:07:43 +01:00
347e0a81f3
set followRedirect: false by default in tests ( #4491 )
...
* set followRedirect: false by default in tests
* update tests implicitly relying on redirects
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-01-07 21:13:48 +00:00
9a6b96effc
Use expectRedirect helper in redirect tests; affects [circleci codeclimate codecov discourse endpoint github jenkins jira jitpack lgtm maven nexus scrutinizer sonar swagger symfony teamcity travis twitter vso waffle website wordpress] ( #4481 )
...
* Convert remaining tests to use expectRedirect() helper
* convert last few redirect tests to use svg not json
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
2020-01-03 21:39:58 +00:00
Caleb Cartwright and Paul Melnikow
90f8ffce9e
tests: add endpoint test for #3780 ( #4067 )
2019-09-23 23:51:43 -04:00
chris48s and GitHub
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
dependabot-preview[bot] and Paul Melnikow
294aa1e1df
Build(deps-dev): bump eslint-plugin-import from 2.17.3 to 2.18.0; autofixes ( #3671 )
...
* Build(deps-dev): bump eslint-plugin-import from 2.17.3 to 2.18.0
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.17.3 to 2.18.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.17.3...v2.18.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Autofixes
2019-07-08 12:13:46 -04:00
Paul Melnikow and GitHub
aa135d370f
Auto-annotate live and mock tests ( #3661 )
...
Close #2555
2019-07-07 17:06:01 -04:00
chris48s and GitHub
8621fe42d7
Upgrade Joi ( #3505 )
...
* upgrade joi
* find & replace ALL THE THINGS
* update related deps
2019-06-02 21:59:55 +01:00
Pierre-Yves B and GitHub
25f8541e5b
JSON format modernisation and _shields_test removal ( #3272 )
...
* Modernised JSON format and removed _shields_test style
* Added logoWidth and labelColor fields to JSON response
* Reinstated and updated comment
* Extended expectBadge to accept Joi schemas for all fields
2019-04-07 18:57:55 +01:00
Caleb Cartwright and GitHub
726830f067
Add ability to transform query params in redirct service, run [Endpoint GitHubReleaseRedirect SensioLabs VSO] ( #3125 )
...
* feat(redirector): added transformQueryParams to redirector
* refactor: renamed to transformPath in redirector
* Rename targetUrl to targetPath
Co-Authored-By: calebcartwright <calebcartwright@users.noreply.github.com >
* feat(redirector): handle param conflicts
2019-03-04 18:11:37 -06:00
Pierre-Yves B and GitHub
1f29c22d3d
Migrated most service tests to use new expectBadge ( #3122 )
2019-02-28 21:43:23 +00:00
Paul Melnikow and GitHub
e3d115cf99
Rename maxAge to cacheSeconds ( #3090 )
...
Close #3069
2019-02-23 20:33:38 -05:00
Paul Melnikow and GitHub
ab18bc0f09
Shorten [endpoint] URL ( #3050 )
...
Ref https://github.com/badges/shields/issues/2838#issuecomment-461794344
2019-02-22 00:01:56 -05:00
Paul Melnikow and GitHub
4bd16f93e8
Sort imports and requires ( #3056 )
...
This will definitely save time, and ensure more uniformity.
It moves the `createServiceTester()` calls to a different place from where I'd like them, though I'm happy to have them checked by the linter.
Closes #2701
2019-02-21 22:14:40 -05:00
Paul Melnikow and GitHub
2d7be31b0c
Validate query params in BaseService ( #3042 )
...
This is a mid-sized PR that adds query param validation to BaseService and updates most of the services which use query param validation to use it. There are a couple minor tweaks I made along the way.
Fix #2676
2019-02-20 22:24:47 -05:00
mbarkhau and Paul Melnikow
6e2992a3e3
Rename colorB -> color; colorA -> labelColor ( #3012 )
...
This makes it possible to override the parameters `color` and `labelColor`.
ref #2673
2019-02-19 22:03:45 -05:00
Caleb Cartwright and Paul Melnikow
855c9cd261
Remove dev dep imports in production code ( #2937 )
...
Fixes #2876 with @paulmelnikow's suggestion
Moved imports of `ServiceTester` and `createServiceTester` to a separate file so that dev dependencies are not imported by service classes.
2019-02-05 21:51:55 -05:00
Paul Melnikow and GitHub
7c3bca1ab7
Refactor endpoint functions ( #2909 )
2019-02-03 17:29:52 -05:00
chris48s and Paul Melnikow
bf5438f457
Delete some of our logos (part 1) ( #2857 )
...
Refs #2510
I'm going to delete or change some more logos in a further PR or two, but lets start off with the (hopefully) non-controversial ones. I think in all of these cases it is fairly clear-cut that we are not losing anything by removing our icon in favour of simple-icons now that we apply a sensible colour by default.
2019-01-25 12:51:41 -05:00
Paul Melnikow and GitHub
4e9763b4c3
Provide friendlier error messages for [endpoint] ( #2858 )
...
Ref https://github.com/badges/shields/issues/2838#issuecomment-456594803
2019-01-23 18:43:38 -05:00
Paul Melnikow and GitHub
fc12b591db
Reorganize BaseService-related modules ( #2831 )
...
Ref #2698
2019-01-22 23:52:13 -05:00
Paul Melnikow and GitHub
0fc3df84d7
[Endpoint] badge ( #2473 )
...
This reimplements the idea @bkdotcom came up with in #1519 , and took a stab at in #1525 . It’s a really powerful way to add all sorts of custom badges, particularly considering [tools like RunKit endpoints and Jupyter Kernel Gateway](https://github.com/badges/shields/issues/2259#issuecomment-444186589 ), not to mention all the other ways cloud functions can be deployed these days.
2019-01-21 22:55:24 -05:00