Skip to content

Commit

Permalink
refactor(@whook/graphql): update Apollo server to the last major version
Browse files Browse the repository at this point in the history
fix #140
  • Loading branch information
nfroidure committed Nov 9, 2022
1 parent 86ab901 commit ffa8f5d
Show file tree
Hide file tree
Showing 60 changed files with 37,253 additions and 39,201 deletions.
5,947 changes: 3,364 additions & 2,583 deletions package-lock.json

Large diffs are not rendered by default.

3,752 changes: 1,751 additions & 2,001 deletions packages/whook-authorization/package-lock.json

Large diffs are not rendered by default.

3,874 changes: 1,863 additions & 2,011 deletions packages/whook-aws-lambda/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/whook-aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"homepage": "https://github.com/nfroidure/whook",
"dependencies": {
"@types/aws-lambda": "^8.10.102",
"@types/aws-lambda": "^8.10.108",
"@types/bytes": "^3.1.1",
"@whook/cli": "^10.0.6",
"@whook/cors": "^10.0.6",
Expand All @@ -61,8 +61,8 @@
"openapi-types": "^12.0.2",
"qs": "^6.11.0",
"strict-qs": "^7.0.1",
"type-fest": "^2.19.0",
"uuid": "^8.3.2",
"type-fest": "^3.1.0",
"uuid": "^9.0.0",
"yerror": "^6.1.1",
"yhttperror": "^6.1.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async function handleForAWSConsumerLambda(
lambdaName: OPERATION.operationId,
parameters: { body: ':EventRecord' },
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-aws-lambda/src/wrappers/awsCronLambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function handleForAWSCronLambda<T extends JsonObject = JsonObject>(
lambdaName: OPERATION.operationId,
parameters,
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
6 changes: 3 additions & 3 deletions packages/whook-aws-lambda/src/wrappers/awsHTTPLambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ async function handleForAWSHTTPLambda(
apm('CALL', {
id: event.requestContext.requestId,
transactionId:
request.headers['x-transaction-id'] &&
(request.headers['x-transaction-id'] &&
new RegExp(uuidPattern).test(
request.headers['x-transaction-id'] as string,
)
? event.headers['x-transaction-id']
: event.requestContext.requestId,
: event.requestContext.requestId) || 'no_id',
environment: NODE_ENV,
method: event.requestContext.httpMethod,
resourcePath: event.requestContext.resourcePath,
Expand All @@ -465,7 +465,7 @@ async function handleForAWSHTTPLambda(
),
bodyLength: awsResponse.body ? awsResponse.body.length : 0,
type: responseLog.type,
stack: responseLog.stack,
stack: responseLog.stack || 'no_stack',
code: responseLog.code,
params: responseLog.params,
startTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function handleForAWSKafkaConsumerLambda(
lambdaName: OPERATION.operationId,
parameters: { body: ':MSKEventRecord' },
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function handleForAWSLogSubscriberLambda(
lambdaName: OPERATION.operationId,
parameters: { body: ':LogRecord' },
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
2 changes: 1 addition & 1 deletion packages/whook-aws-lambda/src/wrappers/awsS3Lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function handleForAWSS3Lambda(
lambdaName: OPERATION.operationId,
parameters: { body: ':S3EventRecord' },
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function handleForAWSTransformerLambda(
lambdaName: OPERATION.operationId,
parameters: { body: ':EventRecord' },
type: 'error',
stack: castedErr.stack,
stack: castedErr.stack || 'no_stack',
code: castedErr.code,
params: castedErr.params,
startTime,
Expand Down
Loading

0 comments on commit ffa8f5d

Please sign in to comment.