File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ FROM node:20 AS Build
22ARG NPM_REGISTRY="https://registry.npmjs.org"
33WORKDIR /usr/src/app
44COPY . .
5- RUN npm config set registry ${NPM_REGISTRY} && \
6- npm install && \
7- npm run build && \
8- npm ci --omit=dev
5+ RUN npm config set registry ${NPM_REGISTRY}
6+ RUN npm install
7+ RUN npm run build
8+ RUN npm ci --omit=dev
99
1010FROM node:20-alpine
1111
Original file line number Diff line number Diff line change 2626 "typescript" : " ^5.0.2"
2727 },
2828 "dependencies" : {
29- "@octokit/auth-app" : " ^7.0.0 " ,
30- "applicationinsights" : " ^3.0 .1" ,
29+ "@octokit/auth-app" : " 6.1.1 " ,
30+ "applicationinsights" : " ^3.2 .1" ,
3131 "axios" : " ^1.4.0" ,
3232 "axios-retry" : " ^4.0.0" ,
3333 "dotenv" : " ^16.0.3" ,
Original file line number Diff line number Diff line change 1- const appInsights = require ( "applicationinsights" ) ;
2-
3- import { SeverityLevel } from "applicationinsights/out/Declarations/Contracts" ;
4- import TelemetryClient from "applicationinsights/out/Library/TelemetryClient" ;
1+ import appInsights from "applicationinsights" ;
2+ import { KnownSeverityLevel , TelemetryClient } from "applicationinsights" ;
53
64
75type LogEvent = {
@@ -38,7 +36,7 @@ class AiLogger implements ILogger {
3836 LogError ( ex : string ) : void {
3937 this . client . trackTrace ( {
4038 message : ex ,
41- severity : SeverityLevel . Error
39+ severity : KnownSeverityLevel . Error
4240 } ) ;
4341 }
4442}
You can’t perform that action at this time.
0 commit comments