Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update aws-lambda-powertools-typescript monorepo to v2 (major) #110

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions lambda/log-redirect/package-lock.json

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

4 changes: 2 additions & 2 deletions lambda/log-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "util-lambda",
"version": "1.0.0",
"dependencies": {
"@aws-lambda-powertools/logger": "1.18.1",
"@aws-lambda-powertools/tracer": "1.18.1",
"@aws-lambda-powertools/logger": "2.0.2",
"@aws-lambda-powertools/tracer": "2.0.2",
"@middy/core": "5.2.6",
"@middy/http-header-normalizer": "5.2.6",
"@middy/http-error-handler": "5.2.6",
Expand Down
8 changes: 4 additions & 4 deletions lambda/log-redirect/src/mythplus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import middy from "@middy/core";
import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {getLatestMythPlusReport, getLatestRaidReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer";
import {getLatestMythPlusReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {logger, tracer} from "./util";
import {injectLambdaContext} from "@aws-lambda-powertools/logger";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";

const lambdaHandler = async function (event: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const reportId = await getLatestMythPlusReport();

if(reportId) {
Expand Down
6 changes: 3 additions & 3 deletions lambda/log-redirect/src/raid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {getLatestRaidReport, REPORT_URL_PREFIX, reportsAge} from "./wcl";
import {captureLambdaHandler, Tracer} from "@aws-lambda-powertools/tracer";
import {injectLambdaContext} from "@aws-lambda-powertools/logger";
import {logger, tracer} from "./util";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";

const lambdaHandler = async function (event: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const lambdaHandler = async function (_: APIGatewayProxyEventV2): Promise<APIGatewayProxyResultV2> {
const reportId = await getLatestRaidReport();

if(reportId) {
Expand Down
26 changes: 13 additions & 13 deletions lambda/prime-scout/package-lock.json

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

4 changes: 2 additions & 2 deletions lambda/prime-scout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "prime-scout-lambda",
"version": "1.0.0",
"dependencies": {
"@aws-lambda-powertools/logger": "1.18.1",
"@aws-lambda-powertools/tracer": "1.18.1",
"@aws-lambda-powertools/logger": "2.0.2",
"@aws-lambda-powertools/tracer": "2.0.2",
"@middy/core": "5.2.6",
"@middy/http-header-normalizer": "5.2.6",
"@middy/http-error-handler": "5.2.6",
Expand Down
6 changes: 4 additions & 2 deletions lambda/prime-scout/src/scout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import middy from "@middy/core";
import httpHeaderNormalizer from "@middy/http-header-normalizer";
import errorLogger from "@middy/error-logger";
import httpErrorHandlerMiddleware from "@middy/http-error-handler";
import {captureLambdaHandler, Tracer} from "@aws-lambda-powertools/tracer";
import {injectLambdaContext, Logger} from "@aws-lambda-powertools/logger";
import {Tracer} from "@aws-lambda-powertools/tracer";
import {Logger} from "@aws-lambda-powertools/logger";
import {captureLambdaHandler} from "@aws-lambda-powertools/tracer/middleware";
import {injectLambdaContext} from "@aws-lambda-powertools/logger/middleware";
import httpContentNegotiation from '@middy/http-content-negotiation'
import httpJsonBodyParserMiddleware from '@middy/http-json-body-parser'
import httpResponseSerializerMiddleware from '@middy/http-response-serializer'
Expand Down