Build(deps-dev): bump prettier from 2.2.1 to 2.3.0, run [ciibestpractices eclipsemarketplacedownloads gemdownloads githubdeployments githubtotaldiscussions githubforks githubhacktoberfest githubissuessearch githubpackagejson githubsponsors githubtag jenkinscoverage node npm nuget scoop teamcitybuild testspace] (#6482)
* Build(deps-dev): bump prettier from 2.2.1 to 2.3.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.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.2.1...2.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * chore: prettier Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
79c9e1a1d2
commit
636ed87057
@@ -183,10 +183,8 @@ class AuthHelper {
|
||||
}
|
||||
|
||||
static _mergeQueryParams(requestParams, query) {
|
||||
const {
|
||||
options: { qs: existingQuery, ...restOptions } = {},
|
||||
...rest
|
||||
} = requestParams
|
||||
const { options: { qs: existingQuery, ...restOptions } = {}, ...rest } =
|
||||
requestParams
|
||||
return {
|
||||
options: {
|
||||
qs: {
|
||||
|
||||
@@ -353,10 +353,8 @@ describe('BaseService', function () {
|
||||
it('handles the request', async function () {
|
||||
expect(mockHandleRequest).to.have.been.calledOnce
|
||||
|
||||
const {
|
||||
queryParams: serviceQueryParams,
|
||||
handler: requestHandler,
|
||||
} = mockHandleRequest.getCall(0).args[1]
|
||||
const { queryParams: serviceQueryParams, handler: requestHandler } =
|
||||
mockHandleRequest.getCall(0).args[1]
|
||||
expect(serviceQueryParams).to.deep.equal([
|
||||
'queryParamA',
|
||||
'legacyQueryParamA',
|
||||
@@ -390,13 +388,8 @@ describe('BaseService', function () {
|
||||
|
||||
describe('getDefinition', function () {
|
||||
it('returns the expected result', function () {
|
||||
const {
|
||||
category,
|
||||
name,
|
||||
isDeprecated,
|
||||
route,
|
||||
examples,
|
||||
} = DummyService.getDefinition()
|
||||
const { category, name, isDeprecated, route, examples } =
|
||||
DummyService.getDefinition()
|
||||
expect({
|
||||
category,
|
||||
name,
|
||||
@@ -510,10 +503,11 @@ describe('BaseService', function () {
|
||||
buffer: 'x'.repeat(65536 + 1),
|
||||
res: { statusCode: 200 },
|
||||
})
|
||||
const serviceInstance = new DummyServiceWithServiceResponseSizeMetricEnabled(
|
||||
{ sendAndCacheRequest, metricHelper },
|
||||
defaultConfig
|
||||
)
|
||||
const serviceInstance =
|
||||
new DummyServiceWithServiceResponseSizeMetricEnabled(
|
||||
{ sendAndCacheRequest, metricHelper },
|
||||
defaultConfig
|
||||
)
|
||||
|
||||
await serviceInstance._request({ url })
|
||||
|
||||
|
||||
@@ -268,8 +268,7 @@ describe('coalesceBadge', function () {
|
||||
coalesceBadge(
|
||||
{ link: 'https://circleci.com/gh/badges/daily-tests' },
|
||||
{
|
||||
link:
|
||||
'https://circleci.com/workflow-run/184ef3de-4836-4805-a2e4-0ceba099f92d',
|
||||
link: 'https://circleci.com/workflow-run/184ef3de-4836-4805-a2e4-0ceba099f92d',
|
||||
},
|
||||
{}
|
||||
).links
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('mergeQueries function', function () {
|
||||
print(
|
||||
mergeQueries(
|
||||
gql`
|
||||
query($param: String!) {
|
||||
query ($param: String!) {
|
||||
foo(param: $param) {
|
||||
bar
|
||||
}
|
||||
@@ -29,7 +29,7 @@ describe('mergeQueries function', function () {
|
||||
print(
|
||||
mergeQueries(
|
||||
gql`
|
||||
query($param: String!) {
|
||||
query ($param: String!) {
|
||||
foo(param: $param) {
|
||||
bar
|
||||
}
|
||||
|
||||
@@ -83,10 +83,8 @@ function handleRequest(cacheHeaderConfig, handlerOptions) {
|
||||
}
|
||||
|
||||
const allowedKeys = flattenQueryParams(handlerOptions.queryParams)
|
||||
const {
|
||||
cacheLength: serviceDefaultCacheLengthSeconds,
|
||||
fetchLimitBytes,
|
||||
} = handlerOptions
|
||||
const { cacheLength: serviceDefaultCacheLengthSeconds, fetchLimitBytes } =
|
||||
handlerOptions
|
||||
|
||||
return (queryParams, match, end, ask) => {
|
||||
/*
|
||||
|
||||
@@ -11,13 +11,12 @@ class MetricHelper {
|
||||
serviceFamily,
|
||||
name,
|
||||
})
|
||||
this.serviceResponseSizeHistogram = metricInstance.createServiceResponseSizeHistogram(
|
||||
{
|
||||
this.serviceResponseSizeHistogram =
|
||||
metricInstance.createServiceResponseSizeHistogram({
|
||||
category,
|
||||
serviceFamily,
|
||||
name,
|
||||
}
|
||||
)
|
||||
})
|
||||
} else {
|
||||
this.metricInstance = undefined
|
||||
this.serviceRequestCounter = undefined
|
||||
|
||||
@@ -19,37 +19,9 @@ module.exports = class PrometheusMetrics {
|
||||
// 250 ms increments up to 2 seconds, then 500 ms increments up to 8
|
||||
// seconds, then 1 second increments up to 15 seconds.
|
||||
buckets: [
|
||||
250,
|
||||
500,
|
||||
750,
|
||||
1000,
|
||||
1250,
|
||||
1500,
|
||||
1750,
|
||||
2000,
|
||||
2250,
|
||||
2500,
|
||||
2750,
|
||||
3000,
|
||||
3250,
|
||||
3500,
|
||||
3750,
|
||||
4000,
|
||||
4500,
|
||||
5000,
|
||||
5500,
|
||||
6000,
|
||||
6500,
|
||||
7000,
|
||||
7500,
|
||||
8000,
|
||||
9000,
|
||||
10000,
|
||||
11000,
|
||||
12000,
|
||||
13000,
|
||||
14000,
|
||||
15000,
|
||||
250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000,
|
||||
3250, 3500, 3750, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500,
|
||||
8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000,
|
||||
],
|
||||
registers: [this.register],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user