Skip to content

Commit

Permalink
fix(deps): bump got and serverless (#867)
Browse files Browse the repository at this point in the history
* fix(deps): bump got and serverless

Bumps [got](https://github.com/sindresorhus/got) to 11.8.6 and updates ancestor dependency [serverless](https://github.com/serverless/serverless). These dependencies need to be updated together.


Updates `got` from 9.6.0 to 11.8.6
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](sindresorhus/got@v9.6.0...v11.8.6)

Updates `serverless` from 2.72.3 to 3.30.1
- [Release notes](https://github.com/serverless/serverless/releases)
- [Changelog](https://github.com/serverless/serverless/blob/main/CHANGELOG.md)
- [Commits](serverless/serverless@v2.72.3...v3.30.1)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: serverless
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: fix serverless warnings

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Bourne <[email protected]>
  • Loading branch information
dependabot[bot] and jamesmbourne authored May 4, 2023
1 parent 20f5728 commit 6e7cc1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"semantic-release": "^19.0.0",
"serverless": "^3.0.0",
"serverless": "^3.30.1",
"ts-jest": "^26.5.0",
"typescript": "^4.1.3"
},
Expand Down
12 changes: 7 additions & 5 deletions src/__tests__/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ provider:
stackName: ${self:custom.baseName}
deploymentBucket:
blockPublicAccess: true
runtime: nodejs12.x
runtime: nodejs18.x
memorySize: 256

functions:
Expand All @@ -25,10 +25,12 @@ resources:
# Override generated resources

HttpApi:
Type: AWS::ApiGatewayV2::Api
Properties:
Name: ${self:custom.baseName}

HttpApiRouteDefault:
Type: AWS::ApiGatewayV2::Route
Properties:
AuthorizationType: AWS_IAM

Expand Down Expand Up @@ -57,7 +59,7 @@ resources:
- !Sub arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${HttpApi}/*
- PolicyName: assume-role
PolicyDocument:
Version: '2012-10-17'
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
Expand All @@ -67,11 +69,11 @@ resources:

AssumedClientRole:
Type: AWS::IAM::Role
DependsOn: [ ClientRole ]
DependsOn: [ClientRole]
Properties:
RoleName: ${self:custom.baseName}-assumedClientRole
AssumeRolePolicyDocument:
Version: '2012-10-17'
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
Expand All @@ -80,7 +82,7 @@ resources:
Policies:
- PolicyName: http
PolicyDocument:
Version: '2012-10-17'
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
Expand Down

0 comments on commit 6e7cc1d

Please sign in to comment.