Skip to content

Commit

Permalink
chore(deps): update typescript to 4.6.0
Browse files Browse the repository at this point in the history
re aws/aws-cdk#20319

The other option is to do what is mentioned in the referenced issue and
add a devDependency for `@types/prettier`, but since it is possible to
upgrade `typescript` that seems like the better option.
  • Loading branch information
corymhall committed May 13, 2022
1 parent d866599 commit 65d37e3
Show file tree
Hide file tree
Showing 48 changed files with 56 additions and 48 deletions.
2 changes: 1 addition & 1 deletion typescript/amplify-console-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/api-cors-lambda-crud-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/node": "*",
"aws-cdk": "*",
"esbuild": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/api-websocket-lambda-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/application-load-balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/appsync-graphql-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/appsync-graphql-eventbridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"@types/node": "10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7",
"typescript": "~4.6.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion typescript/classic-load-balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/cognito-api-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/custom-logical-names/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"aws-cdk": "*",
"ts-node": "^8.1.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/custom-resource-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ts-jest": "^26.2.0",
"aws-cdk": "*",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/custom-resource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ec2-instance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"@types/node": "10.17.27",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecs/cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecs/cross-stack-load-balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecs/ecs-service-with-logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecs/fargate-service-with-efs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/ecs/fargate-service-with-logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^8.10.38",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/eks/cluster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.40",
"typescript": "~3.9.7",
"typescript": "~4.6.0",
"aws-cdk": "*"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.40",
"typescript": "~3.9.7",
"typescript": "~4.6.0",
"aws-cdk": "*"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion typescript/fsx-ad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/http-proxy-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^14.0.6",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-api-ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@aws-cdk/aws-cloudformation": "*",
"@types/node": "^13.7.0",
"ts-node": "^8.1.0",
"typescript": "~3.9.7",
"typescript": "~4.6.0",
"prettier": "^2.0.4"
},
"dependencies": {
Expand Down
7 changes: 6 additions & 1 deletion typescript/lambda-api-ci/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ const handler = async function (event: any, context: any) {
body: "We only accept GET /",
}
} catch (error) {
const body = error.stack || JSON.stringify(error, null, 2)
let body
if (error instanceof Error) {
body = error.stack
} else {
body = JSON.stringify(error, null, 2)
}
return {
statusCode: 400,
headers: {},
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-api-ci/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"jest": "^24.9.0",
"ts-jest": "^24.0.2",
"ts-node": "^8.1.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-sdk": "^2.617.0"
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-cloudwatch-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ts-jest": "^26.2.0",
"aws-cdk": "*",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/jest": "^26.0.24",
"aws-cdk": "*",
"jest": "^26.6.3",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/lambda-layer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/node": "10.17.27",
"aws-cdk": "*",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/node": "^10.17.27",
"aws-cdk": "*",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/my-widget-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@types/node": "^10.17.0",
"aws-cdk": "*",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/neptune-with-vpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"jest": "^26.4.2",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7",
"typescript": "~4.6.0",
"aws-cdk": "*",
"source-map-support": "^0.5.16"
}
Expand Down
3 changes: 2 additions & 1 deletion typescript/rds/aurora/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"@types/jest": "^26.0.10",
"@types/node": "*",
"jest": "^26.4.2",
"aws-cdk": "*",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion typescript/rds/mysql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"jest": "^26.4.2",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"aws-cdk": "*",
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
3 changes: 2 additions & 1 deletion typescript/rds/oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"@types/jest": "^26.0.10",
"@types/node": "*",
"jest": "^26.4.2",
"aws-cdk": "*",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion typescript/rekognition-lambda-s3-trigger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/node": "10.17.27",
"aws-cdk": "*",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "*",
Expand Down
2 changes: 1 addition & 1 deletion typescript/resource-overrides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"aws-cdk": "*",
"@types/node": "^10.17.0",
"typescript": "~3.9.7"
"typescript": "~4.6.0"
},
"dependencies": {
"aws-cdk-lib": "^2.0.0",
Expand Down
Loading

0 comments on commit 65d37e3

Please sign in to comment.