Skip to content

Commit

Permalink
chore: bump Powertools for AWS Lambda (TypeScript) to v2.0.3 (#500)
Browse files Browse the repository at this point in the history
* chore: bump Powertools for AWS Lambda (TypeScript)

* chore: revert changed lines

---------

Co-authored-by: Lucas <[email protected]>
  • Loading branch information
dreamorosi and lucashuy authored Apr 9, 2024
1 parent ce37b8d commit 653b808
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%}
import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
import { Metrics } from '@aws-lambda-powertools/metrics';
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%}
import { Logger } from '@aws-lambda-powertools/logger';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"author": "SAM CLI",
"license": "MIT",
"dependencies": {
"@aws-lambda-powertools/logger": "^1.5.1",
"@aws-lambda-powertools/metrics": "^1.5.1",
"@aws-lambda-powertools/tracer": "^1.5.1",
"@aws-lambda-powertools/logger": "^2.0.3",
"@aws-lambda-powertools/metrics": "^2.0.3",
"@aws-lambda-powertools/tracer": "^2.0.3",
"esbuild": "^0.17.6"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%}
import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
import { Metrics } from '@aws-lambda-powertools/metrics';
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%}
import { Logger } from '@aws-lambda-powertools/logger';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"author": "SAM CLI",
"license": "MIT",
"dependencies": {
"@aws-lambda-powertools/logger": "^1.5.1",
"@aws-lambda-powertools/metrics": "^1.5.1",
"@aws-lambda-powertools/tracer": "^1.5.1",
"@aws-lambda-powertools/logger": "^2.0.3",
"@aws-lambda-powertools/metrics": "^2.0.3",
"@aws-lambda-powertools/tracer": "^2.0.3",
"esbuild": "^0.17.6"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from 'aws-lambda';
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Metrics"] == "enabled"%}
import { Metrics, MetricUnits } from '@aws-lambda-powertools/metrics';
import { Metrics } from '@aws-lambda-powertools/metrics';
{%- endif %}
{%- if cookiecutter["Powertools for AWS Lambda (TypeScript) Logging"] == "enabled"%}
import { Logger } from '@aws-lambda-powertools/logger';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "hello_world",
2{0 3"name": "hello_world",
"version": "1.0.0",
"description": "hello world sample for NodeJS",
"main": "app.js",
"repository": "https://github.com/aws/aws-sam-cli-app-templates/tree/master/nodejs20.x/hello-ts-pt",
"author": "SAM CLI",
"license": "MIT",
"dependencies": {
"@aws-lambda-powertools/logger": "^1.5.1",
"@aws-lambda-powertools/metrics": "^1.5.1",
"@aws-lambda-powertools/tracer": "^1.5.1",
"@aws-lambda-powertools/logger": "^2.0.3",
"@aws-lambda-powertools/metrics": "^2.0.3",
"@aws-lambda-powertools/tracer": "^2.0.3",
"esbuild": "^0.17.6"
},
"scripts": {
Expand Down

0 comments on commit 653b808

Please sign in to comment.